diff --git a/WebContent/Tenwa/Apzl/productCorpus/LbCorpusSourceList.jsp b/WebContent/Tenwa/Apzl/productCorpus/LbCorpusSourceList.jsp new file mode 100644 index 000000000..e55d1bfe4 --- /dev/null +++ b/WebContent/Tenwa/Apzl/productCorpus/LbCorpusSourceList.jsp @@ -0,0 +1,62 @@ +<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%> +<%@page import="com.amarsoft.app.base.businessobject.*"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + 本金资源顺序列表 + */ + String productId= CurPage.getParameter("productId"); + ASObjectModel doTemp = new ASObjectModel("LB_PRODUCT_CORPUS_SOURCE"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(10); + dwTemp.genHTMLObjectWindow(productId); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"true","All","Button","新增","新增","newRecord();","","","","btn_icon_add",""}, + {"true","","Button","保存","保存","save()","","","","",""}, + {"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/Apzl/productCorpus/LbProductCorpusSourceList.jsp b/WebContent/Tenwa/Apzl/productCorpus/LbProductCorpusSourceList.jsp new file mode 100644 index 000000000..b1f5d8117 --- /dev/null +++ b/WebContent/Tenwa/Apzl/productCorpus/LbProductCorpusSourceList.jsp @@ -0,0 +1,78 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + +/* + 产品配置资金来源顺序主页面 + */ + ASObjectModel doTemp = new ASObjectModel("VI_PRODUCT_CORPUS_SOURCE"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); +// dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(10); + dwTemp.genHTMLObjectWindow(""); + + //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","删除","删除","deleteProduct()","","","","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/Apzl/productCorpus/LbProductCorpusUpDown.jsp b/WebContent/Tenwa/Apzl/productCorpus/LbProductCorpusUpDown.jsp new file mode 100644 index 000000000..36534915c --- /dev/null +++ b/WebContent/Tenwa/Apzl/productCorpus/LbProductCorpusUpDown.jsp @@ -0,0 +1,20 @@ +<%@ page contentType="text/html; charset=GBK"%><%@ + include file="/IncludeBegin.jsp"%><% +/* + 页面说明: 示例上下联动框架页面 + */ + String productId = CurPage.getParameter("productId"); +%><%@include file="/Resources/CodeParts/Frame02.jsp"%> + +<%@ include file="/IncludeEnd.jsp"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Apzl/productCorpus/LbProductInfo.jsp b/WebContent/Tenwa/Apzl/productCorpus/LbProductInfo.jsp new file mode 100644 index 000000000..5fa4daa05 --- /dev/null +++ b/WebContent/Tenwa/Apzl/productCorpus/LbProductInfo.jsp @@ -0,0 +1,26 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + 产品简介 + */ + String productId = CurPage.getParameter("productId"); + String sTempletNo = "LbProductInfo";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(productId); + + String sButtons[][] = { + //{"true","All","Button","保存","保存所有修改","save()","","","",""}, + //{"true","All","Button","返回","返回列表","returnList()","","","",""} + }; + sButtonPosition = "south"; +%><%@ 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/Apzl/productCorpus/deleteProductCorpus.jsp b/WebContent/Tenwa/Apzl/productCorpus/deleteProductCorpus.jsp new file mode 100644 index 000000000..bc71928ad --- /dev/null +++ b/WebContent/Tenwa/Apzl/productCorpus/deleteProductCorpus.jsp @@ -0,0 +1,20 @@ + +<%@page import="com.amarsoft.are.jbo.JBOTransaction"%> +<%@page import="com.amarsoft.are.jbo.JBOFactory"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/IncludeBeginMDAJAX.jsp"%><% + String sResult = ""; + String productId = CurPage.getParameter("productId"); + int count = JBOFactory.createBizObjectQuery("jbo.prd.LB_PRODUCT_CORPUS_SOURCE", "select 1 from O where PRODUCT_ID=:productId").setParameter("productId", productId).getTotalCount(); + int count_d = JBOFactory.createBizObjectQuery("jbo.prd.LB_PRODUCT_CORPUS_SOURCE", "delete from O where PRODUCT_ID=:productId").setParameter("productId", productId).executeUpdate(); + if(count==count_d){ + sResult="删除成功"; + }else if(count_d==0){ + sResult="删除失败"; + }else if(count>count_d&&count_d>0){ + sResult="部分删除,请记录当前产品ID或产品名称,并联系系统管理员"; + }else{ + sResult="未知错误,请记录当前产品ID或产品名称,并联系系统管理员"; + } + out.println(sResult); +%><%@ include file="/IncludeEndAJAX.jsp"%> \ No newline at end of file