公安身份信息核验,如果姓名、身份证信息不一致,字体标红

This commit is contained in:
zhangjun 2019-12-25 18:12:20 +08:00
parent 3f0bb81a13
commit c4cd0f8b72

View File

@ -1,43 +1,57 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-07-12
Content:
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String fullName = CurPage.getParameter("fullName");//流程编号
String CertId = CurPage.getParameter("CertId");//流程编号
ASObjectModel doTemp = new ASObjectModel("LC_IDENTITY_CHECK_RESULT_TEMP");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(sFlowUnid+","+fullName+","+CertId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","返回","返回","goBack()","","","","btn_icon_back",""},
//{"true","","Button","清空","清空","clearRecord()","","","","btn_icon_detail",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function goBack(){
//要跳转的url
var url="/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp";
var sparam="FlowUnid="+'<%=sFlowUnid%>';
AsControl.OpenView(url,sparam,"_self","");
}
function clearRecord(){
var flowunid = "<%=sFlowUnid%>";
var result =
RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityCheckRecordClear","doClearRecord","FlowUnid="+flowunid);
if(result == 'SUCCESS'){
alert('数据清空成功!');
reloadSelf();
}else{
alert('数据清空失败!');
}
}
</script>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-07-12
Content:
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String fullName = CurPage.getParameter("fullName");//流程编号
String CertId = CurPage.getParameter("CertId");//流程编号
//String Result = CurPage.getParameter("result");//流程编号
ASObjectModel doTemp = new ASObjectModel("LC_IDENTITY_CHECK_RESULT_TEMP");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
String Result = Sqlca.getString("select result from LC_IDENTITY_CHECK_RESULT_TEMP where flowunid = '"+sFlowUnid+"'");
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(sFlowUnid+","+fullName+","+CertId+","+Result);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","","Button","返回","返回","goBack()","","","","btn_icon_back",""},
//{"true","","Button","清空","清空","clearRecord()","","","","btn_icon_detail",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function goBack(){
//要跳转的url
var url="/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBCarIdentityCheck.jsp";
var sparam="FlowUnid="+'<%=sFlowUnid%>';
AsControl.OpenView(url,sparam,"_self","");
}
function clearRecord(){
var flowunid = "<%=sFlowUnid%>";
var result =
RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityCheckRecordClear","doClearRecord","FlowUnid="+flowunid);
if(result == 'SUCCESS'){
alert('数据清空成功!');
reloadSelf();
}else{
alert('数据清空失败!');
}
}
//校验身份信息不一致时,信息标红
var jq_trs = $("tr[id^=TR_Right]")
for(var i=0; i<jq_trs.length; i++){
var jq_tr = jq_trs.eq(i);
//console.info(jq_tr[0]);
var jq_tds=jq_tr.find('td');
if(jq_tds.eq(1).find('span').text() == '身份证校验结果:不一致,姓名校验结果:不一致'){
jq_tds.eq(1).find('span').css('color','red')
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>