From 4dd98f714a8e182f5b21b97736b4fa3d5ae866f1 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Fri, 26 Jul 2019 20:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E7=94=B5=E5=AD=90=E7=AD=BE?= =?UTF-8?q?=E7=BA=A6=E5=92=8C=E7=9B=96=E7=AB=A0=E4=BA=A7=E5=93=81=E4=B8=AD?= =?UTF-8?q?=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Comm/LBContract/LBContractPrintList.jsp | 704 +++++++++--------- .../LBContractTemplate/contract_template.jsp | 6 +- .../ContractApprovalApplyList.jsp | 16 +- .../action/ContractSignAction.java | 2 +- .../vehicleAssessmentController.java | 2 - 5 files changed, 373 insertions(+), 357 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractPrintList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractPrintList.jsp index 29d7139b1..026ed65ba 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractPrintList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/LBContractPrintList.jsp @@ -1,353 +1,353 @@ -<%@ page contentType="text/html; charset=GBK"%> -<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% - /* - Author: undefined 2017-09-28 - Content: - History Log: - */ - String custtype = CurPage.getParameter("CustomerType"); - String PhaseNo = CurPage.getParameter("PhaseNo"); - String projectId = CurPage.getParameter("ProjectId"); -// String signStatus = CurPage.getParameter("SignStatus"); - String contractNumber = CurPage.getParameter("ContractNumber"); - String productId = CurPage.getParameter("ProductId"); - String flowunid = CurPage.getParameter("FlowUnid"); - String action = CurPage.getParameter("action"); - ASObjectModel doTemp = new ASObjectModel("LBContractPrintList"); - ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); - dwTemp.Style="1"; //--设置为Grid风格-- - dwTemp.ReadOnly = "1"; //只读模式 - dwTemp.setPageSize(20); - String id=projectId; - dwTemp.genHTMLObjectWindow(id+","+flowunid); - String btnflag = "true"; - String btnflagcom = "false"; - String signs = "false"; - if("01".equals(custtype)){ - btnflagcom = "true"; - } - if("queryContract".equals(action)){ - btnflag = "false"; - btnflagcom = "false"; - } - //判断是不是流程的第二步 - if("0020".equals(PhaseNo)){ - btnflag = "false"; - signs = "true"; - } - //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 - String sButtons[][] = { - {btnflag,"","Button","发起电子签约","电子签章合同","signOnLine()","","","","btn_icon_sign",""}, - {btnflag,"","Button","查询签约结果","查询签约结果","getStatus()","","","","btn_icon_obtain",""}, - {btnflag,"","Button","重新发送短信","重新发送短信","sendMessageAgain()","","","","btn_icon_refresh",""}, - {signs,"","Button","公司盖章","公司盖章","sign()","","","","btn_icon_refresh",""}, - }; -%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> - - +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2017-09-28 + Content: + History Log: + */ + String custtype = CurPage.getParameter("CustomerType"); + String PhaseNo = CurPage.getParameter("PhaseNo"); + String projectId = CurPage.getParameter("ProjectId"); +// String signStatus = CurPage.getParameter("SignStatus"); + String contractNumber = CurPage.getParameter("ContractNumber"); + String productId = CurPage.getParameter("ProductId"); + String flowunid = CurPage.getParameter("FlowUnid"); + String action = CurPage.getParameter("action"); + ASObjectModel doTemp = new ASObjectModel("LBContractPrintList"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(20); + String id=projectId; + dwTemp.genHTMLObjectWindow(id+","+flowunid); + String btnflag = "true"; + String btnflagcom = "false"; + String signs = "false"; + if("01".equals(custtype)){ + btnflagcom = "true"; + } + if("queryContract".equals(action)){ + btnflag = "false"; + btnflagcom = "false"; + } + //判断是不是流程的第二步 + if("0020".equals(PhaseNo)){ + btnflag = "false"; + signs = "true"; + } + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {btnflag,"","Button","发起电子签约","电子签章合同","signOnLine()","","","","btn_icon_sign",""}, + {btnflag,"","Button","查询签约结果","查询签约结果","getStatus()","","","","btn_icon_obtain",""}, + {btnflag,"","Button","重新发送短信","重新发送短信","sendMessageAgain()","","","","btn_icon_refresh",""}, + {signs,"","Button","公司盖章","公司盖章","sign()","","","","btn_icon_refresh",""}, + }; +%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> + + <%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp index 4805c767a..3a6991501 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp @@ -13,6 +13,9 @@ */ String sPrevUrl = CurPage.getParameter("PrevUrl"); String customertype = CurPage.getParameter("customertype");//获取客户类型,用于判断生成合同的方法 + String sealType = CurPage.getParameter("sealType");//获取盖章模式 + String signType = CurPage.getParameter("signType");//获取签约模式 + String flowunid=CurPage.getParameter("FlowUnid"); String ishistory=CurPage.getParameter("IsHistory"); String proj_id=CurPage.getParameter("proj_id"); @@ -334,7 +337,8 @@ alert(sReturn0); }else{ RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdf","FlowUnid=<%=flowunid%>,flagType=word"); - if("01"=="<%=customertype%>"||"1"=="<%=CurPage.getParameter("isNetCar")%>"||"BAIC_MOTOR"=="<%=CurPage.getParameter("operationType")%>"||"ZYC"=="<%=CurPage.getParameter("operationType")%>"||"KHSQ"=="<%=CurPage.getParameter("operationType")%>"||"KJZL"=="<%=CurPage.getParameter("operationType")%>"){ +<%-- if("01"=="<%=customertype%>"||"1"=="<%=CurPage.getParameter("isNetCar")%>"||"BAIC_MOTOR"=="<%=CurPage.getParameter("operationType")%>"||"ZYC"=="<%=CurPage.getParameter("operationType")%>"||"KHSQ"=="<%=CurPage.getParameter("operationType")%>"||"KJZL"=="<%=CurPage.getParameter("operationType")%>"){ --%> + if("01"=="<%=customertype%>"||("Auto" == "<%=sealType%>" && "Hand" == "<%=signType%>" )){ var falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>"); if("success"!= falg ){ RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","companyUpdateDocContractStatus","FlowUnid=<%=flowunid%>"+",ProjectId=<%=projectId%>"); diff --git a/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp b/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp index d2833ec6d..62ba1860f 100644 --- a/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Contract/ContractApproval/ContractApprovalApplyList.jsp @@ -10,6 +10,7 @@ function newApply() { + var userid="<%=CurUser.getUserID()%>"; var flowno="<%=CurPage.getParameter("ApplyType")%>"; var selname=""; @@ -58,9 +59,22 @@ var leasform = sReturn[5]; var carAttributes = sReturn[6]; var isNetCar = sReturn[7]; + var signType = sReturn[9]; + var sealType = sReturn[10]; + if("03" == customertype){ + if(""== signType||null == signType||"undefined" == signType){ + alert("请在产品中配置签约方式!!!"); + return ; + + }else if (""== sealType||null == sealType||"undefined" == sealType){ + alert("请在产品中配置盖章模式!!!"); + return ; + } + } + var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>"; - sParams =sParams+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>"; + sParams =sParams+",signType="+signType+",sealType="+sealType+",isNetCar="+isNetCar+",carAttributes="+carAttributes+",leasform="+leasform+",ProductId="+product_id+",ProjectId="+id+",ProjectNo="+project_id+",customertype="+customertype+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>"; if(flowno=="BContractApproveApply"){ sParams =sParams+",operationType="+sReturn[8]; diff --git a/src/com/tenwa/channelportal/action/ContractSignAction.java b/src/com/tenwa/channelportal/action/ContractSignAction.java index cc380e0ba..d8d424af9 100644 --- a/src/com/tenwa/channelportal/action/ContractSignAction.java +++ b/src/com/tenwa/channelportal/action/ContractSignAction.java @@ -383,7 +383,7 @@ public class ContractSignAction{ //BizObject pbo = pbm.createQuery("id=:id").setParameter("id", ProjectId).getSingleResult(true); BizObject pbo = pbm.createQuery("FLOWUNID=:flowunid").setParameter("flowunid", FlowUnid).getSingleResult(true); // 查询lb_doc_contract_list表 - bo = contBom.createQuery("project_id=:projectId and file_flag='yes' and (sendprocess='0' or sendprocess='2' ) ").setParameter("projectId", ProjectId).getResultList(true); + bo = contBom.createQuery("project_id=:projectId and flow_unid=:flowunid and file_flag='yes' and (sendprocess='0' or sendprocess='2' ) ").setParameter("projectId", ProjectId).setParameter("flowunid", FlowUnid).getResultList(true); for (BizObject keys : bo) { String info = keys.getAttribute("id").toString(); con = new ContractSignInfo(); diff --git a/src_tenwa/com/tenwa/lease/app/vehicleAssessment/vehicleAssessmentController.java b/src_tenwa/com/tenwa/lease/app/vehicleAssessment/vehicleAssessmentController.java index 5d36a2aa0..59557e1cf 100644 --- a/src_tenwa/com/tenwa/lease/app/vehicleAssessment/vehicleAssessmentController.java +++ b/src_tenwa/com/tenwa/lease/app/vehicleAssessment/vehicleAssessmentController.java @@ -96,8 +96,6 @@ public class vehicleAssessmentController { String itemno = zoneResult == null ? "" : zoneResult.getAttribute("itemno").toString(); if(null == itemno || "".equals(itemno) || itemno.length() == 0 ){ return "没有查询到对应的上牌地区信息!!!"; - } else if("00".equals(itemno.subSequence(4, 6))){ - return "没有查询到对应的上牌地区信息!!!"; }else{ BizObject usedCarCode = codeSNT.createQuery("select itemname,itemno FROM O WHERE codeno='UsedCarCode' AND itemno=:AREA") .setParameter("AREA",itemno).getSingleResult(false);