78 lines
3.1 KiB
Plaintext
78 lines
3.1 KiB
Plaintext
<%@ 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 SubjectId = CurPage.getParameter("SubjectId");//主体编号
|
||
String flowNo = CurPage.getParameter("FlowNo");//主体编号
|
||
String custTypeParam = "CustomerType";
|
||
if ("BusinessChangeFlow".equals(flowNo)) {
|
||
custTypeParam = "customertype";
|
||
}
|
||
String customertype = CurPage.getParameter(custTypeParam);
|
||
String SubjectIdtemp = Sqlca.getString("select SubjectId from lb_project_info_temp where flowunid='"+sFlowUnid+"'");
|
||
if(SubjectId ==null ){
|
||
SubjectId = SubjectIdtemp;
|
||
}
|
||
String orgName = CurUser.getOrgName();
|
||
String userName = CurUser.getUserName();
|
||
ASObjectModel doTemp = new ASObjectModel("VI_LB_IDENTITY_CHECK");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.MultiSelect = true; //添加多选框
|
||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||
{"true","","Button","身份校验","身份校验","identitycheck()","","","","btn_icon_detail",""}
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function identitycheck(){
|
||
var flowunid = "<%=sFlowUnid%>";
|
||
var username = "<%=userName%>";
|
||
var orgname = "<%=orgName%>";
|
||
var customertype = "<%=customertype%>";
|
||
var relations=getItemValueArray(0,"relation").toString().replace(/,/g,"@");
|
||
var fullNames=getItemValueArray(0,"fullName").toString().replace(/,/g,"@");
|
||
|
||
if(relations.length==0){
|
||
alert("请先选择数据!!!");
|
||
return;
|
||
}
|
||
var result = RunJavaMethodTrans("com.tenwa.lease.flow.project.validate.IdentityVerification","doIdentityVerification","FlowUnid="+flowunid+",UserName="+username+",OrgName="+orgname+",relations="+relations+",fullNames="+fullNames+",customertype="+customertype+",SubjectId=<%=SubjectId%>");
|
||
if(result == 'ERROR'){
|
||
alert("调用数据失败");
|
||
reloadSelf();
|
||
}else if(result == 'SUCCESS'){
|
||
alert('校验成功,请点击详情查看!');
|
||
reloadSelf();
|
||
}else{
|
||
alert(result);
|
||
reloadSelf();
|
||
}
|
||
}
|
||
function viewAndEdit(){
|
||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp";
|
||
var certids=getItemValueArray(0,"certId");
|
||
var fullNames=getItemValueArray(0,"fullName");
|
||
var certids=getItemValueArray(0,"certId");
|
||
if(certids.length==0){
|
||
alert("请先选择数据!!!");
|
||
return;
|
||
}else if(certids.length>1){
|
||
alert("每次只能查询一条数据,请重新选择!");
|
||
reloadSelf();
|
||
return;
|
||
}
|
||
var sparam="FlowUnid="+'<%=sFlowUnid%>'+"&fullName="+fullNames[0]+"&CertId="+certids[0];
|
||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |