diff --git a/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorListForProduct.jsp b/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorListForProduct.jsp new file mode 100644 index 000000000..ecf2c8c9e --- /dev/null +++ b/WebContent/Tenwa/Apzl/DistributorToArea/LmDistributorListForProduct.jsp @@ -0,0 +1,79 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2018-06-06 + Content: + History Log: + */ + String typeno= CurPage.getParameter("TYPENO"); + ASObjectModel doTemp = new ASObjectModel("lmproductdistrictList"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(10); + dwTemp.genHTMLObjectWindow(typeno); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, + //{"true","","Button","关联省份","关联省份","viewAndEdit()","","","","btn_icon_detail",""}, + //{"true","","Button","区域信息维护","区域信息维护","Edit()","","","","btn_icon_detail",""}, + {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete",""}, + }; +%><%@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/Tenwa/Customer/Group/GroupCompany/LmDistributorListForProduct.jsp b/WebContent/Tenwa/Customer/Group/GroupCompany/LmDistributorListForProduct.jsp new file mode 100644 index 000000000..b94b85b72 --- /dev/null +++ b/WebContent/Tenwa/Customer/Group/GroupCompany/LmDistributorListForProduct.jsp @@ -0,0 +1,79 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2018-06-06 + Content: + History Log: + */ + String typeno= CurPage.getParameter("TYPENO"); + ASObjectModel doTemp = new ASObjectModel("lmproductdistributorgroupList"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(10); + dwTemp.genHTMLObjectWindow(typeno); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""}, + //{"true","","Button","关联省份","关联省份","viewAndEdit()","","","","btn_icon_detail",""}, + //{"true","","Button","区域信息维护","区域信息维护","Edit()","","","","btn_icon_detail",""}, + {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete",""}, + }; +%><%@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_comm.xml b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml index 07efbec86..740c4979c 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_comm.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_comm.xml @@ -254,8 +254,8 @@ - - + + @@ -273,8 +273,8 @@ - - + + diff --git a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java index 49bbe654d..630629ae6 100644 --- a/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java +++ b/src_tenwa/com/tenwa/apzl/saveunioncar/saveUnionCarUtil.java @@ -7,6 +7,8 @@ import jbo.app.tenwa.customer.LM_DISTRIBUTOR_TO_CAR; import jbo.app.tenwa.customer.LM_DISTRIBUTOR_TO_PRODUCT; import jbo.app.tenwa.customer.LM_PORTAL_TO_CAR; import jbo.com.tenwa.entity.comm.own.DISTRICT_DISTRIBUTOR_RELATION; +import jbo.com.tenwa.entity.comm.own.LM_PRODUCT_DISTRIBUTOR_GROUP; +import jbo.com.tenwa.entity.comm.own.LM_PRODUCT_DISTRICT; import jbo.com.tenwa.limit.LA_LIMIT_ELEMENT; import com.amarsoft.are.jbo.BizObject; @@ -240,4 +242,73 @@ public String getCarBrandId() { Lmpc.createQuery("delete from o where id = :id").setParameter("id",unionId).executeUpdate(); return "success"; } + + public String saveLmDistrictToProduct(JBOTransaction tx)throws Exception { + String[] params = CarBrandId.split("@~"); + String typeno = params[0]; + int lle=0; + int i; + try{ + BizObjectManager Lmcheck = JBOFactory.getBizObjectManager(LM_PRODUCT_DISTRICT.CLASS_NAME,tx); + for(i=1;i0){ + return "error"; + } + return "success"; + } + + + public String saveLmDistributorGroupToProduct(JBOTransaction tx)throws Exception { + String[] params = CarBrandId.split("@~"); + String typeno = params[0]; + int lle=0; + int i; + try{ + BizObjectManager Lmcheck = JBOFactory.getBizObjectManager(LM_PRODUCT_DISTRIBUTOR_GROUP.CLASS_NAME,tx); + for(i=1;i0){ + return "error"; + } + return "success"; + } }