diff --git a/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/TriditionGeneratedReminderLetterList.jsp b/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/TriditionGeneratedReminderLetterList.jsp new file mode 100644 index 000000000..a6cb1c923 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/RentCollection/generatedreminderletter/TriditionGeneratedReminderLetterList.jsp @@ -0,0 +1,162 @@ +<%@page import="java.util.Date"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%> +<% + /* + Author: undefined 2016-08-06 + Content: + History Log: + */ + Date d=new Date(); + SimpleDateFormat df=new SimpleDateFormat("yyyy/MM/dd"); + String now=df.format(new Date(d.getTime()));//yyyy/MM/dd¸ñʽ + ASObjectModel doTemp = new ASObjectModel("TGeneratedReminderLetterList"); +/* String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract"); + doTemp.appendJboWhere(sCondtion); */ + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ-- + dwTemp.MultiSelect=true; + dwTemp.ReadOnly = "1"; //Ö»¶Áģʽ + dwTemp.setPageSize(10); + //dwTemp.genHTMLObjectWindow(StringFunction.getToday("yyyy/MM/dd")); + + dwTemp.genHTMLObjectWindow("3"); + + + //0¡¢ÊÇ·ñչʾ 1¡¢ ȨÏÞ¿ØÖÆ 2¡¢ չʾÀàÐÍ 3¡¢°´Å¥ÏÔʾÃû³Æ 4¡¢°´Å¥½âÊÍÎÄ×Ö 5¡¢°´Å¥´¥·¢Ê¼þ´úÂë 6¡¢ 7¡¢ 8¡¢ 9¡¢Í¼±ê£¬CSS²ãµþÑùʽ 10¡¢·ç¸ñ + String sButtons[][] = { + {"true","","Button","Éú³É´ßÊÕº¯","Éú³É´ßÊÕº¯","exportExcel('1')","","","","btn_icon_transfer",""}, + {"true","","Button","ÅúÁ¿ÏÂÔØ","ÅúÁ¿ÏÂÔØ","lotdown()","","","","btn_icon_transfer",""}, + {"true","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/fileTemplate/催收函.docx b/WebContent/fileTemplate/催收函.docx index 964487c38..236fdff46 100644 Binary files a/WebContent/fileTemplate/催收函.docx and b/WebContent/fileTemplate/催收函.docx differ diff --git a/src/com/tenwa/channelportal/action/ContractSignAction.java b/src/com/tenwa/channelportal/action/ContractSignAction.java index 918ecd294..77b43390b 100644 --- a/src/com/tenwa/channelportal/action/ContractSignAction.java +++ b/src/com/tenwa/channelportal/action/ContractSignAction.java @@ -1622,6 +1622,8 @@ public void wordToPdfJar(JBOTransaction tx){ DOCRELATIVE=bom.createQuery(" OBJECTTYPE='transfer' and FLOW_UNID=:flowunid and CONTRACT_ID=:contractid ").setParameter("flowunid",FlowUnid).setParameter("contractid",contract_id).getSingleResult(false); }else if("AdjustmentNotice".equals(PLAN_LIST)){ DOCRELATIVE=bom.createQuery(" OBJECTTYPE='AdjustmentNotice' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false); + }else if("TriditionCollection".equals(PLAN_LIST)){ + DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionCollection' and plan_number=:plan_number").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false); }else{ DOCRELATIVE=bom.createQuery("plan_number=:plan_number and plan_list=:plan_list").setParameter("plan_number",PAYMENT_NUMBER).setParameter("plan_list", PLAN_LIST).getSingleResult(false); } @@ -2449,6 +2451,8 @@ public String claimSign(JBOTransaction tx) throws Exception { DOCRELATIVE=bom.createQuery(" OBJECTTYPE='transfer' and FLOW_UNID=:flowunid and CONTRACT_ID=:contractid ").setParameter("flowunid",FlowUnid).setParameter("contractid",contract_id).getSingleResult(false); }else if("AdjustmentNotice".equals(flagType)){ DOCRELATIVE=bom.createQuery(" OBJECTTYPE='AdjustmentNotice' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false); + }else if("TriditionCollection".equals(flagType)){ + DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype='TriditionCollection' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false); }else{ DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype LIKE '%´òÓ¡´ß¿îº¯%' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false); } diff --git a/src_core/com/tenwa/officetempalte/controller/FindCollectAction.java b/src_core/com/tenwa/officetempalte/controller/FindCollectAction.java index 24053243a..417c03b4d 100644 --- a/src_core/com/tenwa/officetempalte/controller/FindCollectAction.java +++ b/src_core/com/tenwa/officetempalte/controller/FindCollectAction.java @@ -113,4 +113,68 @@ public class FindCollectAction { } return attributeid; } + + + public static String TfindFileName(String plan_number) throws JBOException{ + String filename = ""; + BizObjectManager bom = JBOFactory + .getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE = bom.createQuery("plan_number=:plan_number and plan_list is null and objecttype='TriditionCollection'") + .setParameter("plan_number", plan_number) + .getSingleResult(false); + + 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); + filename = bom2.createQuery("library_id=:library_id") + .setParameter("library_id", DOCLIBRARYid) + .getSingleResult(false).getAttribute("filename").toString(); + } + return filename; + } + + public static String TfindAttributeid(String plan_number) throws JBOException{ + String attributeid=""; + BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE=bom.createQuery("plan_number=:plan_number and plan_list is null and objecttype='TriditionCollection'").setParameter("plan_number",plan_number).getSingleResult(false); + + 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); + attributeid=bom2.createQuery("library_id=:library_id").setParameter("library_id", DOCLIBRARYid).getSingleResult(false).getAttribute("id").toString(); + } + return attributeid; + } + public static String TfindCreatime(String plan_number) throws JBOException{ + String creatime = ""; + BizObjectManager bom = JBOFactory + .getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE = bom.createQuery("plan_number=:plan_number and plan_list is null and objecttype='TriditionCollection'") + .setParameter("plan_number", plan_number) + .getSingleResult(false); + + 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); + creatime = bom2.createQuery("library_id=:library_id") + .setParameter("library_id", DOCLIBRARYid) + .getSingleResult(false).getAttribute("inputtime") + .toString(); + } + return creatime; + } } \ No newline at end of file