产权转移证明和提前结清证明模板生成

This commit is contained in:
tangfutang 2018-07-30 15:44:44 +08:00
parent 54444c3038
commit 1ea67ca52b
5 changed files with 40 additions and 13 deletions

View File

@ -34,13 +34,13 @@
BizObjectManager bom=JBOFactory.getBizObjectManager(LB_UNION_LESSEE.CLASS_NAME);
BizObject cust=bom.createQuery("contract_id=:contract_id and is_main='Y'").setParameter("contract_id", contractid).getSingleResult(false);
String custname=cust.getAttribute("customer_name").toString();;//主承租人
String planinformation=ProductParamUtil.getProductParameterValue(product_id,"PRD0314","planinformation");//·½°¸ÀàÐÍ
// String planinformation=ProductParamUtil.getProductParameterValue(product_id,"PRD0314","planinformation");//·½°¸ÀàÐÍ
String money="";//留购价
if("SinglePlan".equals(planinformation)){
BizObjectManager bom1=JBOFactory.getBizObjectManager(LC_CALC_CONDITION.CLASS_NAME);
BizObject condition=bom1.createQuery("contract_id=:contract_id ").setParameter("contract_id", contractid).getSingleResult(false);
money=condition.getAttribute("NOMINAL_PRICE").toString();
}
// if("SinglePlan".equals(planinformation)){
// BizObjectManager bom1=JBOFactory.getBizObjectManager(LC_CALC_CONDITION.CLASS_NAME);
// BizObject condition=bom1.createQuery("contract_id=:contract_id ").setParameter("contract_id", contractid).getSingleResult(false);
// money=condition.getAttribute("NOMINAL_PRICE").toString();
// }
String ishistory=CurPage.getParameter("IsHistory");
String nodeNo=CurPage.getParameter("NodeNo");
String RightType = CurPage.getParameter("RightType");//选择模式
@ -76,7 +76,7 @@
dwTemp.genHTMLObjectWindow(sFlowUnid);//得到的参数
CurPage.getCurComp().setAttribute("RightType",RightType);
dwTemp.replaceColumn("devolution", "<iframe type='iframe' id='frame_list_knowing' name=\"frame_list_knowing\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp?CompClientID="+compClientID+"&flowunid="+sFlowUnid+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("devolution", "<iframe type='iframe' id='frame_list_knowing' name=\"frame_list_knowing\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp?CompClientID="+compClientID+"&flowunid="+sFlowUnid+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&docname=transfer"+"\"></iframe>", CurPage.getObjectWindowOutput());
%>
<%/*~END~*/%>
@ -115,7 +115,8 @@
var sparam="";
//模板号
param["templateNo"]="e1fc3afacfbc46fea0a881ac20de23cc";
//param["templateNo"]="e1fc3afacfbc46fea0a881ac20de23cc";
param["templateNo"]="a9335f5624124b6db29f0d721fc8b61c";
//生成文件关联关系
tempParam["OBJECTTYPE"]="产权转移单";
@ -133,9 +134,10 @@
if(sparam.length>0){sparam+=",";}
sparam+=key+"="+param[key];
}
var deleteparam ="PROJECT_PLAN_NUMBER="+"<%=contractid%>";
var deleteparam ="PROJECT_PLAN_NUMBER="+"<%=contractid%>"+",objecttype=²úÈ¨×ªÒÆµ¥";
var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.QutationAction","deletedevtion",deleteparam);
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","wordToPdfAnnex","contract_id=<%=contractid%>,PLAN_LIST=transfer");
if(bIsInsert)
{
beforeInsert();

View File

@ -16,6 +16,12 @@
String ishistory = CurPage.getParameter("ishistory");
String nodeNo=CurPage.getParameter("NodeNo");
String RightType = CurPage.getParameter("RightType");
String docname = CurPage.getParameter("docname");
if("settle".equals(docname)){
docname = "써헌친겼";
}else if("transfer".equals(docname)){
docname = "끓홈瘻盧聯蝎";
};
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
sTempletNo = "DevolutionList";
String userName = CurUser.getUserName();
@ -28,7 +34,7 @@
dwTemp.Style = "1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1";
dwTemp.setPageSize(50);
dwTemp.genHTMLObjectWindow(contract_id);
dwTemp.genHTMLObjectWindow(docname+","+contract_id);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = null;

View File

@ -1464,6 +1464,10 @@ public void wordToPdfJar(JBOTransaction tx){
BizObject DOCRELATIVE = null;
if("null".equals(PLAN_LIST)){
DOCRELATIVE=bom.createQuery("plan_number=:plan_number").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
}else if("transfer".equals(PLAN_LIST)){
DOCRELATIVE = bom.createQuery("CONTRACT_ID=:CONTRACT_ID and objecttype='끓홈瘻盧데'").setParameter("CONTRACT_ID",contract_id).getSingleResult(false);
}else if("settle".equals(PLAN_LIST)){
DOCRELATIVE = bom.createQuery("CONTRACT_ID=:CONTRACT_ID and objecttype='瓊품써헌聯츠'").setParameter("CONTRACT_ID",contract_id).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);
}
@ -2004,7 +2008,7 @@ public String claimSign(JBOTransaction tx) throws Exception {
/**
* 打印租金通知书并发短信给客户
* 닭澗변맨무鱇覽
* @param tx
* @return
* @throws Exception
@ -2013,7 +2017,12 @@ public String claimSign(JBOTransaction tx) throws Exception {
requestService = (HttpRequestAppService) factory.create(HttpRequestAppService.class, this.getConfigRequestUrl());
String libraryid="";
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
BizObject DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype LIKE '%打印催款函%' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
BizObject DOCRELATIVE = null;
if("settle".equals(flagType)){
DOCRELATIVE=bom.createQuery("CONTRACT_ID=:contractid and objecttype='瓊품써헌聯츠' ").setParameter("contractid",contract_id).getSingleResult(false);
}else{
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and objecttype LIKE '%댔丹닭운변%' ").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
}
if (DOCRELATIVE != null) {
String DOCRELATIVEid=DOCRELATIVE.getAttribute("id").toString();
BizObjectManager bom1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME);

View File

@ -24,6 +24,7 @@ import com.tenwa.officetempalte.util.FileOperatorUtil;
public class QutationAction {
String PROJECT_PLAN_NUMBER;
String CONTRACT_PLAN_NUMBER;
String objecttype;
public String getPROJECT_PLAN_NUMBER() {
@ -44,6 +45,15 @@ public class QutationAction {
public void setCONTRACT_PLAN_NUMBER(String cONTRACT_PLAN_NUMBER) {
CONTRACT_PLAN_NUMBER = cONTRACT_PLAN_NUMBER;
}
public String getObjecttype() {
return objecttype;
}
public void setObjecttype(String objecttype) {
this.objecttype = objecttype;
}
//根据前台参数生成文档
@ -77,6 +87,6 @@ public class QutationAction {
}
public void deletedevtion(JBOTransaction tx) throws Exception{
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
bom.createQuery("delete from O where CONTRACT_ID=:CONTRACT_ID and objecttype='끓홈瘻盧데'").setParameter("CONTRACT_ID",PROJECT_PLAN_NUMBER).executeUpdate();
bom.createQuery("delete from O where CONTRACT_ID=:CONTRACT_ID and objecttype=:objecttype ").setParameter("CONTRACT_ID",PROJECT_PLAN_NUMBER).setParameter("objecttype", objecttype).executeUpdate();
}
}