%@ page contentType="text/html; charset=GBK"%>
<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
*/
String projectId = CurPage.getParameter("ProjectId");
String customerId = CurPage.getParameter("customerId");
String contractId = CurPage.getParameter("ContractId");
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String RightType=CurPage.getParameter("RightType");
String ishistory=CurPage.getParameter("IsHistory");
String FlowUnid=CurPage.getParameter("FlowUnid");
String flowName=CurPage.getParameter("FlowName");
String CustomerType=CurPage.getParameter("CustomerType");
String ApplyType=CurPage.getParameter("ApplyType");
String PhaseNo=CurPage.getParameter("PhaseNo");
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
BizObject ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractId).getSingleResult(false);
System.out.print("=========="+ldcls+"==========");
/* System.out.print("\n\n\n\t--FlowUnid "+FlowUnid+"\t\n\n\n"); */
String sTempletNo = "DebitCardInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//doTemp.setColTips("", "测试");
doTemp.setHtmlEvent("acc_number", "onchange", "getNameOfBank");
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")||("合同制作流程".equals(flowName))){
doTemp.setColInnerBtEvent("ACCOUNT", "");
}
//doTemp.setHtmlEvent("MOBILE", "onchange", "checkMobile");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(PhaseNo.equals("0030")||PhaseNo.equals("0040")||PhaseNo.equals("0050")||("合同制作流程".equals(flowName)&&null!=ldcls)){
dwTemp.ReadOnly = "-2";//只读模式
}
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))||("合同制作流程".equals(flowName))){
dwTemp.ReadOnly = "-2";//只读模式
RightType="ReadOnly";
isShowButton=false;
}else{
isShowButton=true;
}
dwTemp.genHTMLObjectWindow(FlowUnid);
dwTemp.replaceColumn("PaymentCard", "", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("S_PaymentCard", "", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","保存","保存所有修改","save()","","","",""},
{"false","All","Button","校验银行卡信息","校验银行卡四要素","verifyFourelementBank()","","","","btn_icon_return"}
}
/* {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
} */;
sButtonPosition = "north";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<%@ include file="/Frame/resources/include/include_end.jspf"%>