From f3d554f7228579a5d5f2409b5f402b8ab5dfe940 Mon Sep 17 00:00:00 2001 From: zhangjun Date: Fri, 2 Aug 2019 15:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=B8=85=E5=8D=95=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=BC=96=E7=A0=81=E5=81=9A=E5=94=AF=E4=B8=80=E6=80=A7?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FileListConfigUrationInfo.jsp | 12 ++++++++++-- .../FileListConfigUrationList.jsp | 13 ------------- .../group/CustomerGroupCompanyController.java | 15 ++++++++++++--- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp index 13514a01e..1e70d3a33 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp @@ -21,7 +21,15 @@ include parent.AsDialog.ClosePage(); } function saveRecord(sPostEvents) { - as_save("myiframe0", "goBack()"); - } + //校验文件清单配置代码项编号是否唯一 + var ITEMNO = getItemValue(0,0,'ITEMNO'); + var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","file_repeat","ITEMNO="+ITEMNO); + if("false" ==sReturnInfo){ + AsDebug.alert("提示","代码项编号已存在,请重新输入!!!"); + return; + }else{ + as_save("myiframe0", "goBack()"); + } + } <%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationList.jsp index 99c8271e0..9fc50901b 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationList.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationList.jsp @@ -105,19 +105,6 @@ <%/*~END~*/%> <%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%> <%/*~END~*/%> <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java b/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java index d696c4d2e..d28a0476e 100644 --- a/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java +++ b/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java @@ -22,7 +22,16 @@ public class CustomerGroupCompanyController { private String DISTRIBUTOR_CODING = ""; private String flowunid; private String ITEMNO = ""; - private String SORTNO = ""; + + + public String getITEMNO() { + return ITEMNO; + } + + public void setITEMNO(String iTEMNO) { + ITEMNO = iTEMNO; + } + public String getFlowunid() { return flowunid; @@ -188,10 +197,10 @@ public class CustomerGroupCompanyController { - + //校验文件清单配置代码项编号是否唯一 public String file_repeat(JBOTransaction tx) throws Exception{ BizObjectManager filedc = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME); - BizObject dgfc = filedc.createQuery("ITEMNO=:ITEMNO").setParameter("ITEMNO", ITEMNO).getSingleResult(false); + BizObject dgfc = filedc.createQuery("ITEMNO=:ITEMNO and codeno='DocList'").setParameter("ITEMNO", ITEMNO).getSingleResult(false); if(dgfc == null){ return "true"; }else{