From 5d68ec394573dfb365cc9dae1d61a941cc550e8b Mon Sep 17 00:00:00 2001 From: amarsoft Date: Tue, 9 Oct 2018 20:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E9=94=80=E5=95=86=E5=AD=90=E5=85=AC?= =?UTF-8?q?=E5=8F=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LDistributorSubsidiaryInfo.jsp | 106 ++++++++++++++++++ .../LDistributorSubsidiaryList.jsp | 96 ++++++++++++++++ WebContent/WEB-INF/etc/jbo/jbo_customer.xml | 61 ++++++++++ 3 files changed, 263 insertions(+) create mode 100644 WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryInfo.jsp create mode 100644 WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryList.jsp diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryInfo.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryInfo.jsp new file mode 100644 index 000000000..cd7259cb3 --- /dev/null +++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryInfo.jsp @@ -0,0 +1,106 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2017-10-11 + Content: + History Log: + */ + String id = CurPage.getParameter("id");//账号id + String sflowunid = CurPage.getParameter("flowunid"); + String flowunid=CurPage.getParameter("ObjectNo"); + String rightType=CurPage.getParameter("RightType"); + if(id == null) id=""; + String sTempletNo = "distributor_subsidiary_temp_info"; //模板号 + // if(sTempletNo == null) sTempletNo = "LDistributorAccountInfo"; + BizObject flow=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT","flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + String DISTRIBUTOR_NO=flow!=null?flow.getAttribute("proj_id").getString():""; + + + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setDefaultValue("FLOWUNID", flowunid); + //doTemp.setDefaultValue("DISTRIBUTOR_ID", DISTRIBUTOR_NO); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="2"; //--设置为Grid风格-- + if("ReadOnly".equals(rightType)){ + dwTemp.ReadOnly = "1"; //只读模式 + //doTemp.setColInnerBtEvent("provinceInfo", ""); + //doTemp.setColInnerBtEvent("district", ""); + } + + dwTemp.genHTMLObjectWindow(id); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"ReadOnly".equals(rightType)?"false":"true","","Button","保存","保存所有修改","save()","","","","btn_icon_save"}, + {"true","","Button","返回","返回","returnList()","","","","btn_icon_return"} + }; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryList.jsp b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryList.jsp new file mode 100644 index 000000000..c40c65d37 --- /dev/null +++ b/WebContent/Tenwa/Lease/DistributorManage/DistributorApproval/LDistributorSubsidiaryList.jsp @@ -0,0 +1,96 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2017-10-11 + Content: + History Log: + */ + String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 + String sFlowName = CurPage.getParameter("applyType");//获取流程名称 + String PhaseNo = CurPage.getParameter("PhaseNo"); + + String ishistory=CurPage.getParameter("IsHistory"); + String RightType=CurPage.getParameter("RightType"); + String disno=""; + List nolist=JBOFactory.getBizObjectManager("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT").createQuery("select di.distributor_no from O ,jbo.app.tenwa.customer.DISTRIBUTOR_INFO di where di.id=O.proj_id and flow_unid=:flowunid") + .setParameter("flowunid",sFlowUnid).getResultList(false); + if(nolist.size()>0){ + disno=nolist.get(0).getAttribute("distributor_no").getString(); + } + if(sFlowUnid == null) sFlowUnid=""; + String sTempletNo = CurPage.getParameter("TempletNo");//模板号 + if(sTempletNo == null) sTempletNo = "distributor_susidiary_temp_list"; + if("DealerDepositReturnApply".equals(sFlowName)||"DealerDepositChargeApply".equals(sFlowName)){ + sTempletNo = "LDistributorAccountListS"; + sFlowUnid=disno; + } + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + //dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(20); + dwTemp.genHTMLObjectWindow(sFlowUnid); + + String temp = "true"; + if("0020".equals(PhaseNo)){ + temp="false"; + }; + String sButtons[][] =null; + if("DealerDepositReturnApply".equals(sFlowName)||"DealerDepositChargeApply".equals(sFlowName)){ + sButtons=new String[][] { + /* {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, + {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""}, + {"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, + {"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""}, */ + }; + }else{ + sButtons=new String[][] { + {temp,"All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, + {temp,"","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""}, + {temp,"","Button","详情","查看/修改详情","view()","","","","btn_icon_detail"}, + //{"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, + {temp,"All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, + }; + + } + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 +%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml index 548733483..9d1a53718 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_customer.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_customer.xml @@ -3014,5 +3014,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +