diff --git a/WebContent/AppFresh/AppPage/AppLibraryTemplateList.jsp b/WebContent/AppFresh/AppPage/AppLibraryTemplateList.jsp index fd570ec0f..d15215843 100644 --- a/WebContent/AppFresh/AppPage/AppLibraryTemplateList.jsp +++ b/WebContent/AppFresh/AppPage/AppLibraryTemplateList.jsp @@ -10,7 +10,7 @@ dwTemp.Style="1"; //设置为Grid风格 dwTemp.ReadOnly = "1";//编辑模式 - dwTemp.setPageSize(10); + dwTemp.setPageSize(100); dwTemp.ConvertCode2Title = "1"; dwTemp.genHTMLObjectWindow(GROUP_CODE); diff --git a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp index 9bb72b94e..c5390aa3a 100644 --- a/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp +++ b/WebContent/Tenwa/Apzl/PortalToCarType/LmDistributorToproductList.jsp @@ -66,10 +66,15 @@ AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self',''); } function asDelete(){ + var unionId=getItemValueArray(0,"ID"); + if(typeof(unionId)=="undefined" || unionId.length==0 ){ + alert("请选择先选择数据,再操作!"); + return; + } if(!confirm("是否确认删除?"))return; - var unionId = getItemValue(0,getRow(0),"ID"); - //alert(unionId); - var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","deleteLmDistributorToProduct","unionId="+unionId); +// var unionId = getItemValue(0,getRow(0),"ID"); + var unionIds = unionId.join('@'); + var sReturnInfo = RunJavaMethodTrans("com.tenwa.apzl.saveunioncar.saveUnionCarUtil","deleteLmDistributorToProduct","unionId="+unionIds); if(sReturnInfo=="success"){ alert("删除成功!"); } diff --git a/WebContent/Tenwa/Lease/Flow/AfterLeasingPatrol/AfterLeasingVisit/AfterLeasingVisitPaymentList.jsp b/WebContent/Tenwa/Lease/Flow/AfterLeasingPatrol/AfterLeasingVisit/AfterLeasingVisitPaymentList.jsp index 7b22dbc3a..64ce1f3b5 100644 --- a/WebContent/Tenwa/Lease/Flow/AfterLeasingPatrol/AfterLeasingVisit/AfterLeasingVisitPaymentList.jsp +++ b/WebContent/Tenwa/Lease/Flow/AfterLeasingPatrol/AfterLeasingVisit/AfterLeasingVisitPaymentList.jsp @@ -16,7 +16,7 @@ ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "0"; //只读模式 - dwTemp.setPageSize(10); + dwTemp.setPageSize((pageSize==null||"undefined".equals(pageSize))?20:Integer.parseInt(pageSize)); String sButtons[][] =null; if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ diff --git a/WebContent/Tenwa/Lease/Flow/CollectionAudit/ChargebackVoucherDetail.jsp b/WebContent/Tenwa/Lease/Flow/CollectionAudit/ChargebackVoucherDetail.jsp index 32a8c1a60..0c1eb594c 100644 --- a/WebContent/Tenwa/Lease/Flow/CollectionAudit/ChargebackVoucherDetail.jsp +++ b/WebContent/Tenwa/Lease/Flow/CollectionAudit/ChargebackVoucherDetail.jsp @@ -14,7 +14,7 @@ //dwTemp.MultiSelect = true; //多选 dwTemp.ReadOnly = "1"; //只读模式 dwTemp.ShowSummary = "1"; //显示小计 - dwTemp.setPageSize(10); + dwTemp.setPageSize((pageSize==null||"undefined".equals(pageSize))?20:Integer.parseInt(pageSize)); dwTemp.genHTMLObjectWindow(HIRE_DATE+","+OWN_NUMBER+","+CHANNEL); //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp index f90dcb7aa..248592de6 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp @@ -105,7 +105,7 @@ return; } var number=getItemValue(0, getRow(0), "acc_number"); - var reg = /^(\d{14}|\d{16}|\d{19})$/; + var reg = /^(\d{14}|\d{16}|\d{18}|\d{19})$/; if(!reg.test(number)){ setErrorTips("acc_number","银行账号格式错误!"); return ; diff --git a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java index c947c3028..c155b9bab 100644 --- a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java +++ b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java @@ -16,6 +16,7 @@ import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; +import com.amarsoft.awe.util.Transaction; public class saveUnionCarUtil { private String CarBrandId; @@ -226,8 +227,8 @@ public String getCarBrandId() { return "success"; } public String deleteLmDistributorToProduct(JBOTransaction tx)throws Exception { - BizObjectManager Lmpc = JBOFactory.getBizObjectManager(LM_DISTRIBUTOR_TO_PRODUCT.CLASS_NAME,tx); - Lmpc.createQuery("delete from o where id = :id").setParameter("id",unionId).executeUpdate(); + Transaction sqlca = Transaction.createTransaction(tx); + sqlca.executeSQL("delete from LM_DISTRIBUTOR_TO_PRODUCT where id in ('"+unionId.replaceAll("@", "','")+"')"); return "success"; } public String deleteLmDistributorToDistrict(JBOTransaction tx)throws Exception {