From e9cfd0807135519b38944c39bf4f8ff00c9a126c Mon Sep 17 00:00:00 2001 From: zhanglei Date: Mon, 22 Mar 2021 13:56:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E8=90=A5=E5=BA=97=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9-=E8=87=AA=E8=90=A5=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectApprovalCreationInfo.jsp | 925 +++++++++--------- 1 file changed, 462 insertions(+), 463 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index f8bce9363..fdfc30cc7 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -2,7 +2,7 @@ <%@ include file="/Frame/resources/include/include_begin_info.jspf"%> <%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%> - <% +<% /* Author:jyshen 2017-05-09 Tester: @@ -12,66 +12,66 @@ History Log: */ - %> +%> <%/*~END~*/%> - + <%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%> - <% +<% String PG_TITLE = "新增申请"; // 浏览器窗口标题 PG_TITLE - %> +%> <%/*~END~*/%> - + <%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%> - <% - String distributorNo = ""; - String distributorType = ""; - String orgId = CurUser.getOrgID(); - //如果是直营店,则显示子经销。 - String sSql = "select DISTRIBUTOR_NO,TYPE from O where ORGID = :orgId"; - // TYPE=type03 直营店 包含 中车 - BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false); - if(bo != null){ - distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString(); - distributorType = bo.getAttribute("TYPE").getString(); - } - System.out.println(distributorNo); - System.out.println(distributorType); - String sApplyType = CurPage.getParameter("ApplyType"); - String sInputUserID = CurUser.getUserID(); - - if(StringX.isSpace(sApplyType)) sApplyType = ""; - if(StringX.isSpace(sInputUserID)) sInputUserID = ""; - - %> +<% + String distributorNo = ""; + String distributorType = ""; + String orgId = CurUser.getOrgID(); + //如果是直营店,则显示子经销。 + String sSql = "select DISTRIBUTOR_NO,TYPE from O where ORGID = :orgId"; + // TYPE=type03 直营店 包含 中车 + BizObject bo = JBOFactory.createBizObjectQuery("jbo.app.tenwa.customer.DISTRIBUTOR_INFO", sSql).setParameter("orgId", orgId).getSingleResult(false); + if(bo != null){ + distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString(); + distributorType = bo.getAttribute("TYPE").getString(); + } + System.out.println(distributorNo); + System.out.println(distributorType); + String sApplyType = CurPage.getParameter("ApplyType"); + String sInputUserID = CurUser.getUserID(); + + if(StringX.isSpace(sApplyType)) sApplyType = ""; + if(StringX.isSpace(sInputUserID)) sInputUserID = ""; + +%> <%/*~END~*/%> <%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%> - <% - String sTempletNo = "BusnessApprovalApplyCreationInfo";//--模板号-- - ASObjectModel doTemp = new ASObjectModel(sTempletNo); - doTemp.setHtmlEvent("Customer_type", "onchange", "setCertType"); - doTemp.setHtmlEvent("carAttributes", "onchange", "changeProductName"); - doTemp.setHtmlEvent("leasehold", "onchange", "changeProductName"); - //doTemp.setHtmlEvent("CustomerName", "onchange", "checkNameAndCertId"); - ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); - dwTemp.Style = "2";//freeform - dwTemp.genHTMLObjectWindow(""); - %> +<% + String sTempletNo = "BusnessApprovalApplyCreationInfo";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setHtmlEvent("Customer_type", "onchange", "setCertType"); + doTemp.setHtmlEvent("carAttributes", "onchange", "changeProductName"); + doTemp.setHtmlEvent("leasehold", "onchange", "changeProductName"); + //doTemp.setHtmlEvent("CustomerName", "onchange", "checkNameAndCertId"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + dwTemp.genHTMLObjectWindow(""); +%> <%/*~END~*/%> - - + + <%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%> <% String sButtons[][] = { - //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 {"true","","Button","确认","确认新增申请","doCreation()",""}, - {"true","","Button","取消","取消新增申请","doCancel()",""} + {"true","","Button","取消","取消新增申请","doCancel()",""} }; sButtonPosition = "south"; - %> +%> <%/*~END~*/%> <% @@ -80,13 +80,13 @@ <%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%> - <%@ include file="/Frame/resources/include/ui/include_info.jspf"%> +<%@ include file="/Frame/resources/include/ui/include_info.jspf"%> <%/*~END~*/%> - + <%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%> - -<%/*~END~*/%> + if(!checkCertInfo(true)) return ; + if(!iV_all(0)) return ; + saveRecord(); + } + + /*~[Describe=返回列表;InputParam=无;OutPutParam=无;]~*/ + function doCancel() + { + parent.AsDialog.ClosePage(); + reloadSelf(); + } + + +<%/*~END~*/%> <%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info07;Describe=自定义函数;]~*/%> - + if(CheckLicense(certid) ){ + return true; + }else{ + setErrorTips("certid","身份证格式错误!"); + return false; + } + } + if(certType =='Ent02'){ + if(!checkORGRight(certid) ){ + setErrorTips("certid","统一社会信用代码格式错误!"); + return false; + } + } + return true; + } + + <%/*~END~*/%> - - + + <%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info08;Describe=页面装载时,进行初始化;]~*/%> - - <%/*~END~*/%> - - + +<%/*~END~*/%> + + <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file