diff --git a/WebContent/Accounting/LoanSimulation_dormant/LCRentDormantInfo.jsp b/WebContent/Accounting/LoanSimulation_dormant/LCRentDormantInfo.jsp new file mode 100644 index 000000000..6e1ba0ffc --- /dev/null +++ b/WebContent/Accounting/LoanSimulation_dormant/LCRentDormantInfo.jsp @@ -0,0 +1,178 @@ +<%@page import="com.amarsoft.awe.control.model.Parameter"%> +<%@ page contentType="text/html; charset=GBK"%> +<%@ page import="com.tenwa.reckon.product.ASObjectWindowCalc" %> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2017-06-29 + Content: 示例详情页面 + History Log: + */ + String calType = CurPage.getParameter("calType"); + String paymentNumber=CurPage.getParameter("payment_number"); + String ishistory=CurPage.getParameter("IsHistory"); + String nodeNo=CurPage.getParameter("NodeNo"); + String flowunid = CurPage.getParameter("FlowUnid"); + String ProductId = CurPage.getParameter("ProductId"); + String sRightType= CurPage.getParameter("RightType"); + String taskno = CurPage.getParameter("TaskNo"); + String flowNo = CurPage.getParameter("FlowNo"); + String settleMethod=""; + String rentOrRate=""; + BizObject condition=null; + if(paymentNumber==null){ + condition=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP","flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false); + paymentNumber=condition.getAttribute("payment_number").getString(); + settleMethod=condition.getAttribute("SETTLE_METHOD").getString(); + rentOrRate=condition.getAttribute("RENT_OR_RATE").getString(); + } + + String sTempletNo = "LCRentDormantInfo";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + String groupHidden=""; + doTemp.setDefaultValue("flowunid", flowunid); + doTemp.setDefaultValue("payment_number", paymentNumber); + doTemp.setHtmlEvent("START_LIST","onchange","startListChange"); + + doTemp.appendJboWhere(" and payment_number='"+paymentNumber+"'"); + + if(null!=ishistory&&ishistory.equals("true")){ + doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.onhirechange.RentPlanChangeShow");//如果是历史则新显示历史数据 + } + List rents=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_RENT_PLAN_TEMP","select * from O where flowunid='"+flowunid+"' and payment_number='"+paymentNumber+"' order by plan_list").getResultList(false); + int rentLists = rents.size(); + if(rentLists>0){ + doTemp.setDefaultValue("DORMANT_YEAR_RATE",rents.get(rentLists-1).getAttribute("YEAR_RATE").getString()); + } + ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request); + /*Parameter p=new Parameter("NodeNo",nodeNo+"_1"); + Parameter p2=new Parameter("payment_number",paymentNumber); + Vector v=CurPage.parameterList; + v.add(p); + v.add(p2);*/ + dwTemp.Style = "2";//freeform + //dwTemp.ReadOnly = "-2";//只读模式 + if((null!=sRightType&&sRightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + dwTemp.ReadOnly = "-2";//只读模式 + isShowButton=false; + }else{ + isShowButton=true; + } + dwTemp.setGroupHidden(groupHidden); + dwTemp.setAttr("inputWidth","120"); + dwTemp.setAttr("spanWidth","107"); + dwTemp.genHTMLObjectWindow(flowunid); + String compClientID = request.getParameter("CompClientID"); + String url="/Accounting/LoanSimulation_change/LoanBasicInfo.jsp"; + sRightType="ReadOnly"; + dwTemp.replaceColumn("pay_condition", "", CurPage.getObjectWindowOutput()); + String sButtons[][] = { + {"true","","Button","休眠变更","休眠变更","saveRecord()","","","","btn_icon_rentchange"}, + //{"true","","Button","休眠撤销","休眠撤销","cancelChange()","","","","btn_icon_delete"} + }; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Accounting/LoanSimulation_dormant/RentDormantApplyList.jsp b/WebContent/Accounting/LoanSimulation_dormant/RentDormantApplyList.jsp new file mode 100644 index 000000000..65f65d299 --- /dev/null +++ b/WebContent/Accounting/LoanSimulation_dormant/RentDormantApplyList.jsp @@ -0,0 +1,43 @@ +<%@page import="com.tenwa.util.SerialNumberUtil"%> +<%@ page contentType="text/html; charset=GBK"%> + <%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%> +<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%> + + <%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%> diff --git a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml index bffa1eea9..7687eaaad 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_calc.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_calc.xml @@ -4579,5 +4579,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/calc/com/tenwa/flow/CopyDormantRentTempToFormal.java b/calc/com/tenwa/flow/CopyDormantRentTempToFormal.java new file mode 100644 index 000000000..1d6ea6122 --- /dev/null +++ b/calc/com/tenwa/flow/CopyDormantRentTempToFormal.java @@ -0,0 +1,37 @@ +package com.tenwa.flow; + +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; +import jbo.app.tenwa.calc.LC_CALC_CONDITION; +import jbo.app.tenwa.calc.LC_CALC_CONDITION_HIS; +import jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST; +import jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST_TEMP; + +import java.util.HashMap; +import java.util.Map; + +public class CopyDormantRentTempToFormal extends BaseBussiness{ + /** + * 租金休眠临时拷正式 + * @param Sqlca + * @return + * @throws Exception + */ + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + MapfromCondtion=new HashMap(); + fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString()); + MapfromCondtion2=new HashMap(); + fromCondtion.put("contract_id",this.getAttribute("ContractId").toString()); + MapotherProperty2=new HashMap(); + otherProperty2.put("flowunid",this.getAttribute("FlowUnid").toString()); + DataOperatorUtil.copySingleJBO(LC_DORMANT_RENT_ADJUST_TEMP.CLASS_NAME, fromCondtion, LC_DORMANT_RENT_ADJUST.CLASS_NAME, null, null, Sqlca); + DataOperatorUtil.copySingleJBO(LC_CALC_CONDITION.CLASS_NAME, fromCondtion2, LC_CALC_CONDITION_HIS.CLASS_NAME, null, otherProperty2, Sqlca); + + String sMessage="true"; + return sMessage; + } + +} diff --git a/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST.java b/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST.java new file mode 100644 index 000000000..d5941a082 --- /dev/null +++ b/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST.java @@ -0,0 +1,68 @@ +package jbo.app.tenwa.calc; + +import java.lang.String; + +/** +* 休眠租金 - JBO命名常量类

+* Note: This file is generated by ADE tools, dont modify it.
+ +*/ +public interface LC_DORMANT_RENT_ADJUST{ + /** + * 休眠租金

+ * 代表本类映射的BizObjectClass + */ + public static final String CLASS_NAME = "jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST"; + /** + * 标识 STRING(32)
+ */ + public static final String ID = "ID"; + /** + * 项目编号 STRING(32)
+ */ + public static final String PROJECT_ID = "PROJECT_ID"; + /** + * 合同编号 STRING(32)
+ */ + public static final String CONTRACT_ID = "CONTRACT_ID"; + /** + * 投放编号 STRING(32)
+ */ + public static final String PAYMENT_NUMBER = "PAYMENT_NUMBER"; + /** + * 休眠开始期次 STRING(20)
+ */ + public static final String START_LIST = "START_LIST"; + /** + * 休眠结束期次 STRING(20)
+ */ + public static final String END_LIST = "END_LIST"; + /** + * 休眠年利率 STRING(200)
+ */ + public static final String DORMANT_YEAR_RATE = "DORMANT_YEAR_RATE"; + /** + * 登记人 STRING(32)
+ */ + public static final String INPUTUSERID = "INPUTUSERID"; + /** + * 登记部门 STRING(32)
+ */ + public static final String INPUTORGID = "INPUTORGID"; + /** + * 登记时间 STRING(32)
+ */ + public static final String INPUTTIME = "INPUTTIME"; + /** + * 更新人 STRING(32)
+ */ + public static final String UPDATEUSERID = "UPDATEUSERID"; + /** + * 更新部门 STRING(32)
+ */ + public static final String UPDATEORGID = "UPDATEORGID"; + /** + * 更新时间 STRING(32)
+ */ + public static final String UPDATETIME = "UPDATETIME"; +} \ No newline at end of file diff --git a/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST_TEMP.java b/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST_TEMP.java new file mode 100644 index 000000000..0c08c9c03 --- /dev/null +++ b/src_jbo/jbo/app/tenwa/calc/LC_DORMANT_RENT_ADJUST_TEMP.java @@ -0,0 +1,72 @@ +package jbo.app.tenwa.calc; + +import java.lang.String; + +/** +* 休眠租金临时表 - JBO命名常量类

+* Note: This file is generated by ADE tools, dont modify it.
+ +*/ +public interface LC_DORMANT_RENT_ADJUST_TEMP{ + /** + * 休眠租金临时表

+ * 代表本类映射的BizObjectClass + */ + public static final String CLASS_NAME = "jbo.app.tenwa.calc.LC_DORMANT_RENT_ADJUST_TEMP"; + /** + * 标识 STRING(32)
+ */ + public static final String ID = "ID"; + /** + * 流程编号 STRING(32)
+ */ + public static final String FLOWUNID = "FLOWUNID"; + /** + * 项目编号 STRING(32)
+ */ + public static final String PROJECT_ID = "PROJECT_ID"; + /** + * 合同编号 STRING(32)
+ */ + public static final String CONTRACT_ID = "CONTRACT_ID"; + /** + * 投放编号 STRING(32)
+ */ + public static final String PAYMENT_NUMBER = "PAYMENT_NUMBER"; + /** + * 休眠开始期次 STRING(20)
+ */ + public static final String START_LIST = "START_LIST"; + /** + * 休眠结束期次 STRING(20)
+ */ + public static final String END_LIST = "END_LIST"; + /** + * 休眠年利率 STRING(200)
+ */ + public static final String DORMANT_YEAR_RATE = "DORMANT_YEAR_RATE"; + /** + * 登记人 STRING(32)
+ */ + public static final String INPUTUSERID = "INPUTUSERID"; + /** + * 登记部门 STRING(32)
+ */ + public static final String INPUTORGID = "INPUTORGID"; + /** + * 登记时间 STRING(32)
+ */ + public static final String INPUTTIME = "INPUTTIME"; + /** + * 更新人 STRING(32)
+ */ + public static final String UPDATEUSERID = "UPDATEUSERID"; + /** + * 更新部门 STRING(32)
+ */ + public static final String UPDATEORGID = "UPDATEORGID"; + /** + * 更新时间 STRING(32)
+ */ + public static final String UPDATETIME = "UPDATETIME"; +} \ No newline at end of file