diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContract/ReminderLetterCustomer.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/ReminderLetterCustomer.jsp new file mode 100644 index 000000000..5549ba4ca --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/ReminderLetterCustomer.jsp @@ -0,0 +1,160 @@ +<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%> +<%@ page import="com.tenwa.doc.action.DocListInitAction" %> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<%@ page import="com.amarsoft.app.util.*" %> +<% + /* + Author: undefined 2016-09-01 + Content: 催收函-客户 ReminderLetterCustomer.jsp + History Log: + */ + + String userId = CurUser.getUserID(); + String orgId =CurUser.getOrgID(); + System.out.print(orgId); + String falg = "true"; + String compClientID = request.getParameter("CompClientID"); + ASObjectModel doTemp = new ASObjectModel("ReminderLetterCustomer"); + + + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; + dwTemp.setPageSize(pageSize==null?20:Integer.parseInt(pageSize)); + dwTemp.MultiSelect = true; + dwTemp.genHTMLObjectWindow(userId); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] =null; + sButtons=new String[][]{ + {"true","All","Button","生成催收函","生成催收函","generateQuotation()","","","","btn_icon_generate"}, + {"true","All","Button","批量下载","批量下载","lotdown()","","","","btn_icon_down"}, + {"false","All","Button","公司盖章","公司盖章","stamp()","","","",""}, + }; + +%><%@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/Lease/Flow/Comm/LBContract/ReminderLetterGu.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/ReminderLetterGu.jsp new file mode 100644 index 000000000..3a290fb11 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContract/ReminderLetterGu.jsp @@ -0,0 +1,160 @@ +<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%> +<%@ page import="com.tenwa.doc.action.DocListInitAction" %> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<%@ page import="com.amarsoft.app.util.*" %> +<% + /* + Author: undefined 2016-09-01 + Content: 催收函-担保人 ReminderLetterGu.jsp + History Log: + */ + + String userId = CurUser.getUserID(); + String orgId =CurUser.getOrgID(); + System.out.print(orgId); + String falg = "true"; + String compClientID = request.getParameter("CompClientID"); + ASObjectModel doTemp = new ASObjectModel("ReminderLetterGu"); + + + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; + dwTemp.setPageSize(pageSize==null?20:Integer.parseInt(pageSize)); + dwTemp.MultiSelect = true; + dwTemp.genHTMLObjectWindow(userId); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] =null; + sButtons=new String[][]{ + {"true","All","Button","生成催收函","生成催收函","generateQuotation()","","","","btn_icon_generate"}, + {"true","All","Button","批量下载","批量下载","lotdown()","","","","btn_icon_down"}, + {"false","All","Button","公司盖章","公司盖章","stamp()","","","",""}, + }; + +%><%@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/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java b/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java index 2c777409b..3543e3f0e 100644 --- a/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java +++ b/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java @@ -135,4 +135,33 @@ public class RentNotinyDeleteAction { } + + //根据前台参数生成文档 + public void deletequtationByType(JBOTransaction tx) throws Exception{ + BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE=null; + if(objecttype!=null){ + DOCRELATIVE=bom.createQuery(" PROJ_ID=:projectId and OBJECTTYPE=:objecttype"). + setParameter("projectId",projectId).setParameter("objecttype",objecttype).getSingleResult(false); + System.out.println("deletequtationBytype---------------------------:"+objecttype); + } + if(DOCRELATIVE!=null){ + String DOCRELATIVEid=DOCRELATIVE.getAttribute("id").toString(); + BizObjectManager bom1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME); + String DOCLIBRARYid=bom1.createQuery("relative_id=:relative_id").setParameter("relative_id", DOCRELATIVEid).getSingleResult(false).getAttribute("id").toString(); + BizObjectManager bom2=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME); + String DOCATTRIBUTEid=bom2.createQuery("library_id=:library_id").setParameter("library_id", DOCLIBRARYid).getSingleResult(false).getAttribute("id").toString(); + Map condtion= new HashMap(); + condtion.put("id", DOCRELATIVEid); + DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME, condtion, tx); + condtion.clear(); + condtion.put("id", DOCLIBRARYid); + DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME, condtion, tx); + condtion.clear(); + condtion.put("id", DOCATTRIBUTEid); + DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME, condtion, tx); + } + + + } } \ No newline at end of file