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 diff --git a/WebContent/WEB-INF/etc/jbo/jbo_prd.xml b/WebContent/WEB-INF/etc/jbo/jbo_prd.xml index 19e8a2402..e6d96e58d 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_prd.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_prd.xml @@ -182,26 +182,26 @@ - + - + - - - - - - - - + + + + + + + + @@ -246,7 +246,37 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src_jbo/jbo/prd/LB_PRODUCT_CORPUS_SOURCE.java b/src_jbo/jbo/prd/LB_PRODUCT_CORPUS_SOURCE.java new file mode 100644 index 000000000..5eceb647b --- /dev/null +++ b/src_jbo/jbo/prd/LB_PRODUCT_CORPUS_SOURCE.java @@ -0,0 +1,48 @@ +package jbo.prd; + +import java.lang.String; + +/** +* 产品资金来源表 - JBO命名常量类

+* Note: This file is generated by ADE tools, dont modify it.
+ +*/ +public interface LB_PRODUCT_CORPUS_SOURCE{ + /** + * 产品资金来源表

+ * 代表本类映射的BizObjectClass + */ + public static final String CLASS_NAME = "jbo.prd.LB_PRODUCT_CORPUS_SOURCE"; + /** + * ID STRING(32)
+ */ + public static final String ID = "ID"; + /** + * 产品ID STRING(32)
+ */ + public static final String PRODUCT_ID = "PRODUCT_ID"; + /** + * 资金来源 STRING(32)
+ */ + public static final String CORPUS_SOURCE = "CORPUS_SOURCE"; + /** + * 资金顺序 STRING(20)
+ */ + public static final String ORDER_LIST = "ORDER_LIST"; + /** + * 创建时间 STRING(30)
+ */ + public static final String INPUTTIME = "INPUTTIME"; + /** + * 创建人 STRING(30)
+ */ + public static final String INPUTUSERID = "INPUTUSERID"; + /** + * 更新时间 STRING(30)
+ */ + public static final String UPDATETIME = "UPDATETIME"; + /** + * 更新人 STRING(30)
+ */ + public static final String UPDATEUSERID = "UPDATEUSERID"; +} \ No newline at end of file diff --git a/src_jbo/jbo/prd/VI_PRODUCT_CORPUS_SOURCE.java b/src_jbo/jbo/prd/VI_PRODUCT_CORPUS_SOURCE.java new file mode 100644 index 000000000..0c518138e --- /dev/null +++ b/src_jbo/jbo/prd/VI_PRODUCT_CORPUS_SOURCE.java @@ -0,0 +1,28 @@ +package jbo.prd; + +import java.lang.String; + +/** +* 产品资金来源清单 - JBO命名常量类

+* Note: This file is generated by ADE tools, dont modify it.
+ +*/ +public interface VI_PRODUCT_CORPUS_SOURCE{ + /** + * 产品资金来源清单

+ * 代表本类映射的BizObjectClass + */ + public static final String CLASS_NAME = "jbo.prd.VI_PRODUCT_CORPUS_SOURCE"; + /** + * 产品编号 STRING(20)
+ */ + public static final String PRODUCT_ID = "PRODUCT_ID"; + /** + * 产品名称 STRING(20)
+ */ + public static final String PRODUCT_NAME = "PRODUCT_NAME"; + /** + * 资金来源顺序 STRING(20)
+ */ + public static final String CORPUS_SOURCE_LIST = "CORPUS_SOURCE_LIST"; +} \ No newline at end of file