From f452eaabf51d7093cef4c6013156edd587ec2194 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Fri, 27 Jul 2018 18:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E8=B5=81=E7=89=A9=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=9C=A8=E5=90=88=E5=90=8C=E5=88=B6=E4=BD=9C=E5=92=8C=E5=90=88?= =?UTF-8?q?=E5=90=8C=E5=8F=98=E6=9B=B4=E8=BD=A6=E6=9E=B6=E5=8F=B7=E3=80=81?= =?UTF-8?q?=E5=8F=91=E5=8A=A8=E6=9C=BA=E5=8F=B7=E3=80=81=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Comm/LBEquipment_Car/LBEquipmentInfo.jsp | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp index 730c0d55b..1602052ac 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp @@ -81,19 +81,29 @@ doTemp.setRequired("ENGINE_NUMBER",true); doTemp.setRequired("CAR_COLOUR",true); } - if("合同制作流程".equals(flowName)){ + String falg = "false"; + if("业务申请流程".equals(flowName)){ + falg ="true"; + } + if("合同制作流程".equals(flowName)||"合同变更流程".equals(flowName)){ + falg ="true"; doTemp.setReadOnly("",true);//设置所有字段都只读。 doTemp.setReadOnly("FRAME_NUMBER",false); doTemp.setReadOnly("CAR_COLOUR",false); doTemp.setReadOnly("ENGINE_NUMBER",false); + + doTemp.setColInnerBtEvent("BRAND", ""); + doTemp.setColInnerBtEvent("CAR_SERIES", ""); + doTemp.setColInnerBtEvent("MODEL", ""); + doTemp.setColInnerBtEvent("zone", ""); } ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform - if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + if(((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true")))&&!("合同变更流程".equals(flowName))){ dwTemp.ReadOnly = "-2";//只读模式 } dwTemp.genHTMLObjectWindow(FlowUnid); - CurPage.getCurComp().setAttribute("RightType", RightType); +// CurPage.getCurComp().setAttribute("RightType", RightType); %> <%/*~END~*/%> @@ -104,7 +114,7 @@ <% String sButtons[][] = { //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 - {"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}, + {falg,"All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}, //{"true","","Button","返回","返回列表页面","goBack()","","","","btn_icon_return"} }; sButtonPosition = "north"; @@ -133,6 +143,11 @@ $("#A_div_1339").attr("style","display:none;"); $("#A_div_1350").attr("style","display:none;"); } + if("合同制作流程"=="<%=flowName%>"||"合同变更流程"=="<%=flowName%>"){ + setItemRequired(0,"FRAME_NUMBER",true); + setItemRequired(0,"CAR_COLOUR",true); + setItemRequired(0,"ENGINE_NUMBER",true); + } }); //省市 @@ -172,7 +187,7 @@ var ApplyType = "<%=ApplyType%>"; if(plate_number!=null&&plate_number!=""){ - if(ApplyType=="BContractApproveApply"){ + if(ApplyType=="BContractApproveApply"||ApplyType=="BContractChangeApply"){ as_save("myiframe0",""); return; }else{