修改休眠页面展示

This commit is contained in:
32189 2021-05-20 11:05:46 +08:00
parent fbc78bcc26
commit 966c847e2e
5 changed files with 18 additions and 8 deletions

View File

@ -14,7 +14,8 @@
String nodeNo=CurPage.getParameter("NodeNo");
ASObjectModel doTemp = new ASObjectModel("LCCashFlowTemp");
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
if(null!=ishistory&&ishistory.equals("true")){
String flowNo=CurPage.getParameter("FlowNo");
if(null!=ishistory&&ishistory.equals("true") && !flowNo.equals("RentDormantFlow")){
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcRentListArachiveShow");
}
CurPage.setAttribute("modelno","cash");

View File

@ -12,7 +12,8 @@
String nodeNo=CurPage.getParameter("NodeNo");
ASObjectModel doTemp = new ASObjectModel("LCFundPlanChangeTemp");
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
if(null!=ishistory&&ishistory.equals("true")){
String flowNo=CurPage.getParameter("FlowNo");
if(null!=ishistory&&ishistory.equals("true") && !flowNo.equals("RentDormantFlow")){
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcRentListArachiveShow");
}
CurPage.setAttribute("modelno","fund");

View File

@ -86,6 +86,7 @@
// TODO: handle exception
}
initYearRate();
financingCar();
});
function initYearRate(){
@ -219,5 +220,10 @@
//setItemRequired(0,"ADDITIONAL_RATE",false);
}
}
function financingCar(){
var financingCar = getItemValue(0, 0, "EQUIP_AMT")-getItemValue(0, 0, "FIRST_PAYMENT");
setItemValue(0, 0, "financing_car", financingCar);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -5,10 +5,11 @@
String sRightType= CurPage.getParameter("RightType");;
String calType=CurPage.getParameter("calType");
String ishistory=CurPage.getParameter("IsHistory");
String flowNo=CurPage.getParameter("FlowNo");
String nodeNo=CurPage.getParameter("NodeNo");
ASObjectModel doTemp = new ASObjectModel("LCRentPlanTempList");
doTemp.appendJboWhere(" and payment_number='"+plannumber+"'");
if(null!=ishistory&&ishistory.equals("true")){
if(null!=ishistory&&ishistory.equals("true") && !flowNo.equals("RentDormantFlow")){
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcRentListArachiveShow");
}
CurPage.setAttribute("modelno","rent");

View File

@ -33,6 +33,7 @@
String sRightType= CurPage.getParameter("RightType");
String taskno = CurPage.getParameter("TaskNo");
String flowNo = CurPage.getParameter("FlowNo");
String phaseNo = CurPage.getParameter("PhaseNo");
String settleMethod="";
String rentOrRate="";
BizObject condition=null;
@ -52,9 +53,9 @@
doTemp.appendJboWhere(" and payment_number='"+paymentNumber+"'");
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.onhirechange.RentPlanChangeShow");//如果是历史则新显示历史数据
}
// if(null!=ishistory&&ishistory.equals("true")){
// doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.onhirechange.RentPlanChangeShow");//如果是历史则新显示历史数据
// }
BizObject boLCC=JBOFactory.createBizObjectQuery("jbo.app.tenwa.calc.LC_CALC_CONDITION","PAYMENT_NUMBER=:paymentNumber").setParameter("paymentNumber", paymentNumber).getSingleResult(false);
String irr = boLCC.getAttribute("IRR").toString();
List<BizObject> 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);
@ -71,8 +72,8 @@
v.add(p2);*/
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
if(null!=ishistory&&ishistory.equals("true")){
dwTemp.ReadOnly = "-2";//只读模式
if(null!=ishistory&&ishistory.equals("true") || !phaseNo.equals("0010")){
dwTemp.ReadOnly = "1";//只读模式
isShowButton=false;
}else{
isShowButton=true;