更新业务申请相关校验
This commit is contained in:
parent
94c59e1000
commit
71cf5d3ea0
@ -1,4 +1,5 @@
|
||||
<%@ 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"%>
|
||||
<script type="text/javascript" src="<%=sWebRootPath%>/Frame/page/js/bankBin.js"></script><%
|
||||
/*
|
||||
@ -8,23 +9,31 @@
|
||||
*/
|
||||
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)&&null!=ldcls)){
|
||||
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")){
|
||||
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"))){
|
||||
@ -47,6 +56,7 @@
|
||||
sButtonPosition = "north";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
//根据选择的用户名选择对应的证件号
|
||||
function autoSetCustId(){
|
||||
var param1 = "";
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List03;Describe=定义数据对象;]~*/%>
|
||||
<%
|
||||
String FlowUnid = CurPage.getParameter("FlowUnid");
|
||||
String rightType = CurPage.getParameter("RightType");
|
||||
String sTempletNo =sInfoTempletNo;//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
if(null!=ishistory&&ishistory.equals("true")){
|
||||
@ -81,7 +82,7 @@
|
||||
doTemp.setRequired("CAR_COLOUR",true);
|
||||
}
|
||||
String falg = "false";
|
||||
if("业务申请流程".equals(flowName)){
|
||||
if("业务申请流程".equals(flowName)&& !"ReadOnly".equals(rightType)){
|
||||
falg ="true";
|
||||
}
|
||||
if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){
|
||||
@ -135,12 +136,12 @@
|
||||
|
||||
$(function(){
|
||||
if("new_car"=="<%=carAttributes%>"){
|
||||
setItemRequired(0,"zone",false);
|
||||
setItemRequired(0,"regDate",false);
|
||||
setItemRequired(0,"mile",false);
|
||||
$("#A_div_1262").attr("style","display:none;");
|
||||
$("#A_div_1339").attr("style","display:none;");
|
||||
$("#A_div_1350").attr("style","display:none;");
|
||||
setItemRequired(0,"zone",false);
|
||||
setItemRequired(0,"regDate",false);
|
||||
setItemRequired(0,"mile",false);
|
||||
}else{
|
||||
setItemRequired(0,"FRAME_NUMBER",true);
|
||||
setItemRequired(0,"ENGINE_NUMBER",true);
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
return;
|
||||
}
|
||||
if(confirm("是否确定要删除?")){
|
||||
as_delete(0);
|
||||
as_delete("0","window.location.reload()");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -26,7 +26,10 @@
|
||||
doTemp.setReadOnly("PROJECT_SOURCE", false);
|
||||
|
||||
}
|
||||
|
||||
if("ReadOnly".equals(rightType)){
|
||||
doTemp.setReadOnly("INPUTNAME", true);
|
||||
doTemp.setReadOnly("INPUTTEL", true);
|
||||
}
|
||||
String userll=null;
|
||||
userll="/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp?CompClientID=";
|
||||
if("01".equals(custype)||"01".equals(customertype)){
|
||||
|
||||
@ -10,8 +10,13 @@
|
||||
String customerType = CurPage.getParameter("CustomerType");
|
||||
String ProjectId = CurPage.getParameter("ProjectId");
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String flowName = CurPage.getParameter("FlowName");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
|
||||
|
||||
String falg = "true";
|
||||
if("ºÏÍ¬ÖÆ×÷Á÷³Ì".equals(flowName)){
|
||||
falg = "false";
|
||||
}
|
||||
String sTempletNo = "CustomerFamilyJoinTempInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setColTips("", "");
|
||||
@ -37,7 +42,7 @@
|
||||
|
||||
String sButtons[][] = {
|
||||
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
|
||||
{"true","","Button","±£´æ","±£´æ","viewAndEdit()","","","","btn_icon_edit"},
|
||||
{falg,"","Button","±£´æ","±£´æ","viewAndEdit()","","","","btn_icon_edit"},
|
||||
//{"true","All","Button","保存","保存所有修改","save(0)","","","",""},
|
||||
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user