diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp
new file mode 100644
index 000000000..c9c7b8788
--- /dev/null
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/EarlyClearanceList.jsp
@@ -0,0 +1,211 @@
+<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION"%>
+<%@page import="jbo.com.tenwa.lease.comm.LB_UNION_LESSEE"%>
+<%@ page contentType="text/html; charset=GBK"%>
+<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
+<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
+<%@ page import="com.amarsoft.app.util.*" %>
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info01;Describe=定义页面属性;]~*/%>
+ <%
+ String PG_TITLE = "提前结清"; // 浏览器窗口标题
PG_TITLE
+ %>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info02;Describe=定义变量,获取参数;]~*/%>
+<%
+
+
+ String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
+ if(sFlowUnid == null) sFlowUnid = "";
+ BizObject flow=GetFlowAction.getFlowBussinessObject(sFlowUnid);
+ String product_id=flow.getAttribute("productId").toString();
+ String contractid=flow.getAttribute("contract_id").toString();
+ String projectid=flow.getAttribute("proj_id").toString();
+ String contract_number=flow.getAttribute("flow_key").toString();//业务合同号
+ 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 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();
+// }
+ String ishistory=CurPage.getParameter("IsHistory");
+ String nodeNo=CurPage.getParameter("NodeNo");
+ String RightType = CurPage.getParameter("RightType");//选择模式
+ String sTempletNo = "LBContractTermainateTemp";//模板号
+%>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info03;Describe=定义数据对象;]~*/%>
+<%
+ ASObjectModel doTemp = new ASObjectModel(sTempletNo);
+ doTemp.setDefaultValue("accept_person", custname);
+ doTemp.setDefaultValue("contract_id", contractid);
+ doTemp.setDefaultValue("project_id", projectid);
+ doTemp.setDefaultValue("flowunid", sFlowUnid);
+ doTemp.setDefaultValue("RESERVE_PRICE", money);
+ if(null!=ishistory&&ishistory.equals("true")){
+ doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
+ }
+
+ CurPage.getCurComp().setAttribute("RightType", null);
+ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
+ dwTemp.Style = "2";//freeform
+ if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
+ dwTemp.ReadOnly = "-2";//只读模式
+ isShowButton=false;
+ }else{
+ isShowButton=true;
+ }
+ String compClientID = request.getParameter("CompClientID");
+
+ dwTemp.genHTMLObjectWindow(sFlowUnid);//得到的参数
+ CurPage.getCurComp().setAttribute("RightType",RightType);
+ dwTemp.replaceColumn("devolution", "", CurPage.getObjectWindowOutput());
+%>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info04;Describe=定义按钮;]~*/%>
+ <%
+ String sButtons[][] = {
+ {"true","All","Button","生成提前结清","生成提前结清","saveRecord()","","","","btn_icon_save"},
+ {"true","All","Button","公司盖章","盖公司电子章","stamp()","","","",""},
+ };
+ sButtonPosition = "north";
+ %>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=Info05;Describe=主体页面;]~*/%>
+<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info07;Describe=自定义函数;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info08;Describe=页面装载时,进行初始化;]~*/%>
+
+<%/*~END~*/%>
+
+
+
+
+<%@ include file="/Frame/resources/include/include_end.jspf"%>
\ No newline at end of file
diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp
index 33adca868..cf47c4d37 100644
--- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp
+++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractEnd/QuotationList.jsp
@@ -21,6 +21,8 @@
docname = "结清模板";
}else if("transfer".equals(docname)){
docname = "产权转移证书";
+ }else if("settletradition".equals(docname)){
+ docname = "提前结清(传统)";
};
String sTempletNo = CurPage.getParameter("TempletNo");//模板号
sTempletNo = "DevolutionList";
diff --git a/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx b/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx
new file mode 100644
index 000000000..79986d837
Binary files /dev/null and b/WebContent/fileTemplate/琛ㄥ崟8锛氱粨娓呰瘉鏄(1).docx differ
diff --git a/src/com/tenwa/channelportal/action/ContractSignAction.java b/src/com/tenwa/channelportal/action/ContractSignAction.java
index bf2e8747b..8865f3a12 100644
--- a/src/com/tenwa/channelportal/action/ContractSignAction.java
+++ b/src/com/tenwa/channelportal/action/ContractSignAction.java
@@ -1626,6 +1626,8 @@ public void wordToPdfJar(JBOTransaction tx){
DOCRELATIVE=bom.createQuery(" OBJECTTYPE='TriditionCollection' and plan_number=:plan_number").setParameter("plan_number",PAYMENT_NUMBER).getSingleResult(false);
}else if("TriditionSuspension".equals(PLAN_LIST)){
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{
DOCRELATIVE=bom.createQuery("plan_number=:plan_number and plan_list=:plan_list").setParameter("plan_number",PAYMENT_NUMBER).setParameter("plan_list", PLAN_LIST).getSingleResult(false);
}