diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp index 76bd3deca..95570fa96 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp @@ -309,7 +309,7 @@ alert(sReturn0); }else{ RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdf","FlowUnid=<%=flowunid%>,flagType=word"); - if("01"=="<%=customertype%>"&&"1"!="<%=CurPage.getParameter("isNetCar")%>"){ + if("01"=="<%=customertype%>"||"1"=="<%=CurPage.getParameter("isNetCar")%>"){ var falg = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","compnySignIng","FlowUnid=<%=flowunid%>,flagType=word,ProjectId=<%=projectId%>"); if("success"== falg ){ alert("Éú³É³É¹¦"); diff --git a/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp b/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp new file mode 100644 index 000000000..8d1b636c9 --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/RentNotify/LetterApprovalList.jsp @@ -0,0 +1,166 @@ +<%@page import="org.apache.catalina.User"%> +<%@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: + History Log: + */ + + String userId = CurUser.getUserID(); + String orgId =CurUser.getOrgID(); + System.out.print(orgId); + String falg = "true"; + if(userId.indexOf("8006")>-1){ + falg = "false"; + } + String compClientID = request.getParameter("CompClientID"); + ASObjectModel doTemp = new ASObjectModel("LetterApprovaList"); + /* if(userId.indexOf("8006")>-1){ + doTemp.appendJboWhere(" O.orgid="+CurUser.getOrgID()+""); + } */ + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--ÉèÖÃΪGrid·ç¸ñ-- + dwTemp.ReadOnly = "1"; + dwTemp.setPageSize(15); + 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"}, + {"false","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/fileTemplate/批准函.docx b/WebContent/fileTemplate/批准函.docx new file mode 100644 index 000000000..00aabf8ce Binary files /dev/null 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 e52ebd560..c1df5ab09 100644 --- a/src/com/tenwa/channelportal/action/ContractSignAction.java +++ b/src/com/tenwa/channelportal/action/ContractSignAction.java @@ -1628,6 +1628,8 @@ public void wordToPdfJar(JBOTransaction tx){ DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionSuspension' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false); }else if("settletradition".equals(PLAN_LIST)){ DOCRELATIVE=bom.createQuery(" OBJECTTYPE='settletradition' and FLOW_UNID=:flowunid ").setParameter("flowunid",FlowUnid).getSingleResult(false); + }else if("LetterApprova".equals(PLAN_LIST)){ + DOCRELATIVE=bom.createQuery(" OBJECTTYPE='LetterApprova' and PROJ_ID=:projectId ").setParameter("projectId",ProjectId).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); } @@ -2306,6 +2308,8 @@ public String claimSign(JBOTransaction tx) throws Exception { BizObject DOCRELATIVE = null; if("settle".equals(flagType)){ DOCRELATIVE=bom.createQuery("CONTRACT_ID=:contractid and objecttype='settle' ").setParameter("contractid",contract_id).getSingleResult(false); + }else if("LetterApprova".equals(flagType)){ + DOCRELATIVE=bom.createQuery("PROJ_ID=:projectId and objecttype='LetterApprova' ").setParameter("projectId",ProjectId).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/FindNotifyAction.java b/src_core/com/tenwa/officetempalte/controller/FindNotifyAction.java index 09ce07db5..a6c6d813b 100644 --- a/src_core/com/tenwa/officetempalte/controller/FindNotifyAction.java +++ b/src_core/com/tenwa/officetempalte/controller/FindNotifyAction.java @@ -71,5 +71,51 @@ public class FindNotifyAction { } return attributeid; } + + //»ñÈ¡Åú×¼º¯µÄÊý¾Ý + public static String findFileNameApprova(String projectId) throws JBOException{ + BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE=bom.createQuery("PROJ_ID=:porjectId and OBJECTTYPE='LetterApprova'").setParameter("porjectId",projectId).getSingleResult(false); + String filename=""; + 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 findCreatimeApprova(String projectId) throws JBOException{ + String creatime=""; + + BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE=bom.createQuery("PROJ_ID=:porjectId and OBJECTTYPE='LetterApprova'").setParameter("porjectId",projectId).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; + } + + public static String findAttributeidApprova(String projectId) throws JBOException{ + String attributeid=""; + + BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME); + BizObject DOCRELATIVE=bom.createQuery("PROJ_ID=:porjectId and OBJECTTYPE='LetterApprova'").setParameter("porjectId",projectId).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; + } } \ 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 8da410a8d..82787c123 100644 --- a/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java +++ b/src_core/com/tenwa/officetempalte/controller/RentNotinyDeleteAction.java @@ -24,6 +24,9 @@ import com.tenwa.officetempalte.util.FileOperatorUtil; public class RentNotinyDeleteAction { String plan_number; String plan_list; + String objecttype;//ÎļþÀàÐÍ + String projectId;//ÏîÄ¿id + String contractId;//ºÏͬid public String getPlan_number() { return plan_number; @@ -40,6 +43,28 @@ public class RentNotinyDeleteAction { public void setPlan_list(String plan_list) { this.plan_list = plan_list; } + public String getObjecttype() { + return objecttype; + } + + public void setObjecttype(String objecttype) { + this.objecttype = objecttype; + } + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getContractId() { + return contractId; + } + + public void setContractId(String contractId) { + this.contractId = contractId; + } //¸ù¾Ýǰ̨²ÎÊýÉú³ÉÎĵµ public void deletequtation(JBOTransaction tx) throws Exception{ @@ -47,6 +72,8 @@ public class RentNotinyDeleteAction { BizObject DOCRELATIVE=null; if("TriditionSuspension".equals(plan_list)){ DOCRELATIVE=bom.createQuery("FLOW_UNID=:flowunid and OBJECTTYPE=:objecttype").setParameter("flowunid",plan_number).setParameter("objecttype", plan_list).getSingleResult(false); + }else if("LetterApprova".equals(objecttype)){ + DOCRELATIVE=bom.createQuery(" PROJ_ID=:projectId and OBJECTTYPE='LetterApprova'").setParameter("projectId",projectId).getSingleResult(false); }else{ DOCRELATIVE=bom.createQuery("plan_number=:plan_number and plan_list=:plan_list").setParameter("plan_number",plan_number).setParameter("plan_list", plan_list).getSingleResult(false); }