休眠期申请产品名称未显示BUG修改
This commit is contained in:
parent
57f6469df5
commit
176885c87c
@ -1,3 +1,4 @@
|
||||
<%@page import="jbo.prd.BUSINESS_TYPE"%>
|
||||
<%@page import="com.amarsoft.awe.control.model.Parameter"%>
|
||||
<%@page import="com.tenwa.reckon.product.ProductCondition"%>
|
||||
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
|
||||
@ -14,14 +15,14 @@
|
||||
String plannumber=CurPage.getParameter("plannumber");
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
String nodeNo=CurPage.getParameter("NodeNo");
|
||||
String FlowNo=CurPage.getParameter("FlowNo");//流程名称
|
||||
String FlowNo=CurPage.getParameter("FlowNo");//流程名称
|
||||
String taskno = CurPage.getParameter("TaskNo");
|
||||
if(null!=ishistory&&ishistory.equals("true")){
|
||||
// doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据
|
||||
}
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);
|
||||
String productId=flow.getAttribute("productId").getString();
|
||||
|
||||
|
||||
String calType ="pay_process";
|
||||
String planCName="PAYMENT_NUMBER";
|
||||
if(plannumber==null){
|
||||
@ -31,13 +32,17 @@
|
||||
}
|
||||
}
|
||||
String RightType= CurPage.getParameter("RightType");
|
||||
|
||||
|
||||
Vector<ValidateRule> vali=new Vector<ValidateRule>();
|
||||
|
||||
|
||||
//费用规则
|
||||
ProductCondition pc=new ProductCondition();
|
||||
String calcRules=pc.getProductRules(doTemp, productId,vali);
|
||||
|
||||
//获取产品名称
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(BUSINESS_TYPE.CLASS_NAME,"typeno=:productID")
|
||||
.setParameter("productID", productId).getSingleResult(false);
|
||||
String productName = (bo==null)?"":bo.getAttribute("typename").getString();
|
||||
|
||||
CurPage.getCurComp().setAttribute("RightType", null);
|
||||
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
|
||||
doTemp.setVisible("IRR",true);
|
||||
@ -45,10 +50,10 @@
|
||||
Parameter p=new Parameter("plannumber",plannumber);
|
||||
Vector<Parameter> v=CurPage.parameterList;
|
||||
v.add(p);
|
||||
|
||||
|
||||
dwTemp.Style = "2";//freeform
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.ReadOnly = "1";//只读模式
|
||||
isShowButton=false;
|
||||
}else{
|
||||
isShowButton=true;
|
||||
@ -58,158 +63,161 @@
|
||||
dwTemp.setAttr("showRatio", true);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
CurPage.getCurComp().setAttribute("RightType", RightType);
|
||||
|
||||
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
dwTemp.replaceColumn("condition_plan", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"600px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation_change/condition_plan.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&productId="+productId+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("condition_plan", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"600px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation_change/condition_plan.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&productId="+productId+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
// dwTemp.replaceColumn("even_subsection", "<iframe type='iframe' id='frame_even_break' name=\"frame_even_subsection\" width=\"100%\" height=\"300px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/subsection/LCCalcSubsectionList.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
// dwTemp.replaceColumn("knowing_config", "<iframe type='iframe' id='frame_list_knowing' name=\"frame_list_knowing\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/KnowConfigList.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&calType="+calType+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
|
||||
String sButtons[][] = {
|
||||
{"ContractOnhireCarChangeFlow".equals(FlowNo)?"false":"true","","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var calcRules=eval("(<%=calcRules%>)");
|
||||
$(function(){
|
||||
|
||||
var calcRules=eval("(<%=calcRules%>)");
|
||||
$(function(){
|
||||
// document.getElementById('div_my0').innerHTML = '<div style="width:100%;overflow: scroll;">'+document.getElementById('div_my0').innerHTML+'</div>';
|
||||
try {
|
||||
changeSettleMethod();
|
||||
} catch (e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
initYearRate();
|
||||
});
|
||||
var productName="<%=productName%>";
|
||||
setItemValue(0, 0, "PRODUCT_NAME", productName);
|
||||
try {
|
||||
changeSettleMethod();
|
||||
} catch (e) {
|
||||
// TODO: handle exception
|
||||
}
|
||||
initYearRate();
|
||||
});
|
||||
|
||||
function initYearRate(){
|
||||
var adjustList = parent.getItemValue(0,getRow(),"START_LIST");
|
||||
if(!adjustList){
|
||||
parent.setItemValue(0,0,"START_LIST",getItemValue(0,0,"INCOME_NUMBER"));
|
||||
}
|
||||
var yearRate_adjust = parent.getItemValue(0,getRow(),"YEAR_RATE");
|
||||
if(!yearRate_adjust){
|
||||
parent.setItemValue(0,0,"YEAR_RATE",getItemValue(0,0,"YEAR_RATE"));
|
||||
}
|
||||
}
|
||||
function initYearRate(){
|
||||
var adjustList = parent.getItemValue(0,getRow(),"START_LIST");
|
||||
if(!adjustList){
|
||||
parent.setItemValue(0,0,"START_LIST",getItemValue(0,0,"INCOME_NUMBER"));
|
||||
}
|
||||
var yearRate_adjust = parent.getItemValue(0,getRow(),"YEAR_RATE");
|
||||
if(!yearRate_adjust){
|
||||
parent.setItemValue(0,0,"YEAR_RATE",getItemValue(0,0,"YEAR_RATE"));
|
||||
}
|
||||
}
|
||||
|
||||
//租金推算方法
|
||||
function rentOrRateChange(){
|
||||
var rentOrRate ="<%=dwTemp.getData().get("RENT_OR_RATE")%>";//租金推算方式
|
||||
document.all("A_Group_calc_config").style.display="none";
|
||||
if(rentOrRate == 'knowing_rent'){//已知租金规则 只能固定利率
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/KnowConfigList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate== 'knowing_corpus'){//已知本金规则
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/KnowConfigList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate=='rent_period'){//已知租金表
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/reriod/LCCalcReriodList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate=='corpus_period'){//已知本金表
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/reriod/LCCalcReriodList.jsp",param,"frame_list_knowing");
|
||||
}
|
||||
}
|
||||
//租金推算方法
|
||||
function rentOrRateChange(){
|
||||
var rentOrRate ="<%=dwTemp.getData().get("RENT_OR_RATE")%>";//租金推算方式
|
||||
document.all("A_Group_calc_config").style.display="none";
|
||||
if(rentOrRate == 'knowing_rent'){//已知租金规则 只能固定利率
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/KnowConfigList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate== 'knowing_corpus'){//已知本金规则
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/KnowConfigList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate=='rent_period'){//已知租金表
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/reriod/LCCalcReriodList.jsp",param,"frame_list_knowing");
|
||||
}else if(rentOrRate=='corpus_period'){//已知本金表
|
||||
document.all("A_Group_calc_config").style.display="block";
|
||||
var param="CompClientID=<%=compClientID%>&flowunid=<%=flowunid%>&plannumber=<%=plannumber%>&planCName=<%=planCName%>&IsHistory=<%=ishistory%>&NodeNo=<%=nodeNo%>&calType=<%=calType%>";
|
||||
AsControl.OpenView("/Accounting/LoanSimulation/reriod/LCCalcReriodList.jsp",param,"frame_list_knowing");
|
||||
}
|
||||
}
|
||||
|
||||
//改变租金计算方式
|
||||
function changeSettleMethod(){
|
||||
var method="<%=dwTemp.getData().get("SETTLE_METHOD")%>";
|
||||
//按计算方式 显示按钮 和分段测算录入页面
|
||||
document.all("A_Group_even_subsection").style.display="none";
|
||||
if(method=='even_subsection'){
|
||||
document.all("A_Group_even_subsection").style.display="block";
|
||||
}
|
||||
rentOrRateChange();
|
||||
//日期
|
||||
//计划日期
|
||||
var plan;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
plan="";
|
||||
}else{
|
||||
plan=calcRules['method'][method]["date_proc"].split(",");
|
||||
}
|
||||
var planflag={};
|
||||
for(var i=0;i<plan.length;i++){
|
||||
if(plan[i]==1){
|
||||
showItem(0,"FIRST_PLAN_DATE");
|
||||
//setItemRequired(0,"FIRST_PLAN_DATE",true);
|
||||
planflag["FIRST_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==4){
|
||||
showItem(0,"SECOND_PLAN_DATE");
|
||||
//setItemRequired(0,"SECOND_PLAN_DATE",true);
|
||||
planflag["SECOND_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==2){
|
||||
showItem(0,"LAST_PLAN_DATE")
|
||||
//setItemRequired(0,"LAST_PLAN_DATE",true);
|
||||
planflag["LAST_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==3){
|
||||
showItem(0,"PLAN_DATE_HOILDAY")
|
||||
//setItemRequired(0,"PLAN_DATE_HOILDAY",true);
|
||||
planflag["PLAN_DATE_HOILDAY"]=0;
|
||||
}
|
||||
}
|
||||
var plana=["PLAN_DATE_HOILDAY","SECOND_PLAN_DATE","LAST_PLAN_DATE","PLAN_DATE_HOILDAY"];
|
||||
for(var i=0;i<plana.length;i++){
|
||||
if(planflag[plana[i]]!=0){
|
||||
hideItem(0,plana[i]);
|
||||
//setItemRequired(0,plana[i],false);
|
||||
}
|
||||
}
|
||||
//计息日期
|
||||
var interest;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
interest="";
|
||||
}else{
|
||||
interest=calcRules['method'][method]["interest_date_proc"].split(",");
|
||||
}
|
||||
var interestflag={};
|
||||
for(var i=0;i<interest.length;i++){
|
||||
if(interest[i]==1){
|
||||
showItem(0,"FIRST_INTEREST_DATE");
|
||||
//setItemRequired(0,"FIRST_INTEREST_DATE",true);
|
||||
interestflag["FIRST_INTEREST_DATE"]=0;
|
||||
}
|
||||
if(interest[i]==2){
|
||||
showItem(0,"LAST_INTEREST_DATA")
|
||||
//setItemRequired(0,"LAST_INTEREST_DATA",true);
|
||||
interestflag["LAST_INTEREST_DATA"]=0;
|
||||
}
|
||||
if(interest[i]==3){
|
||||
showItem(0,"INTEREST_DATE_HOLIDAY")
|
||||
//setItemRequired(0,"INTEREST_DATE_HOLIDAY",true);
|
||||
interestflag["INTEREST_DATE_HOLIDAY"]=0;
|
||||
}
|
||||
}
|
||||
var interesta=["FIRST_INTEREST_DATE","LAST_INTEREST_DATA","INTEREST_DATE_HOLIDAY"];
|
||||
for(var i=0;i<interesta.length;i++){
|
||||
if(interestflag[interesta[i]]!=0){
|
||||
hideItem(0,interesta[i]);
|
||||
//setItemRequired(0,interesta[i],false);
|
||||
}
|
||||
}
|
||||
var isShowRate;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
isShowRate="";
|
||||
}else{
|
||||
isShowRate=calcRules['method'][method]["isShowRate"];
|
||||
}
|
||||
if(isShowRate=="Y"){
|
||||
showItem(0,"RATE");
|
||||
showItem(0,"ADDITIONAL_RATE");
|
||||
//setItemRequired(0,"RATE",true);
|
||||
//setItemRequired(0,"ADDITIONAL_RATE",true);
|
||||
}else{
|
||||
hideItem(0,"RATE");
|
||||
hideItem(0,"ADDITIONAL_RATE");
|
||||
//setItemRequired(0,"RATE",false);
|
||||
//setItemRequired(0,"ADDITIONAL_RATE",false);
|
||||
}
|
||||
}
|
||||
//改变租金计算方式
|
||||
function changeSettleMethod(){
|
||||
var method="<%=dwTemp.getData().get("SETTLE_METHOD")%>";
|
||||
//按计算方式 显示按钮 和分段测算录入页面
|
||||
document.all("A_Group_even_subsection").style.display="none";
|
||||
if(method=='even_subsection'){
|
||||
document.all("A_Group_even_subsection").style.display="block";
|
||||
}
|
||||
rentOrRateChange();
|
||||
//日期
|
||||
//计划日期
|
||||
var plan;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
plan="";
|
||||
}else{
|
||||
plan=calcRules['method'][method]["date_proc"].split(",");
|
||||
}
|
||||
var planflag={};
|
||||
for(var i=0;i<plan.length;i++){
|
||||
if(plan[i]==1){
|
||||
showItem(0,"FIRST_PLAN_DATE");
|
||||
//setItemRequired(0,"FIRST_PLAN_DATE",true);
|
||||
planflag["FIRST_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==4){
|
||||
showItem(0,"SECOND_PLAN_DATE");
|
||||
//setItemRequired(0,"SECOND_PLAN_DATE",true);
|
||||
planflag["SECOND_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==2){
|
||||
showItem(0,"LAST_PLAN_DATE")
|
||||
//setItemRequired(0,"LAST_PLAN_DATE",true);
|
||||
planflag["LAST_PLAN_DATE"]=0;
|
||||
}
|
||||
if(plan[i]==3){
|
||||
showItem(0,"PLAN_DATE_HOILDAY")
|
||||
//setItemRequired(0,"PLAN_DATE_HOILDAY",true);
|
||||
planflag["PLAN_DATE_HOILDAY"]=0;
|
||||
}
|
||||
}
|
||||
var plana=["PLAN_DATE_HOILDAY","SECOND_PLAN_DATE","LAST_PLAN_DATE","PLAN_DATE_HOILDAY"];
|
||||
for(var i=0;i<plana.length;i++){
|
||||
if(planflag[plana[i]]!=0){
|
||||
hideItem(0,plana[i]);
|
||||
//setItemRequired(0,plana[i],false);
|
||||
}
|
||||
}
|
||||
//计息日期
|
||||
var interest;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
interest="";
|
||||
}else{
|
||||
interest=calcRules['method'][method]["interest_date_proc"].split(",");
|
||||
}
|
||||
var interestflag={};
|
||||
for(var i=0;i<interest.length;i++){
|
||||
if(interest[i]==1){
|
||||
showItem(0,"FIRST_INTEREST_DATE");
|
||||
//setItemRequired(0,"FIRST_INTEREST_DATE",true);
|
||||
interestflag["FIRST_INTEREST_DATE"]=0;
|
||||
}
|
||||
if(interest[i]==2){
|
||||
showItem(0,"LAST_INTEREST_DATA")
|
||||
//setItemRequired(0,"LAST_INTEREST_DATA",true);
|
||||
interestflag["LAST_INTEREST_DATA"]=0;
|
||||
}
|
||||
if(interest[i]==3){
|
||||
showItem(0,"INTEREST_DATE_HOLIDAY")
|
||||
//setItemRequired(0,"INTEREST_DATE_HOLIDAY",true);
|
||||
interestflag["INTEREST_DATE_HOLIDAY"]=0;
|
||||
}
|
||||
}
|
||||
var interesta=["FIRST_INTEREST_DATE","LAST_INTEREST_DATA","INTEREST_DATE_HOLIDAY"];
|
||||
for(var i=0;i<interesta.length;i++){
|
||||
if(interestflag[interesta[i]]!=0){
|
||||
hideItem(0,interesta[i]);
|
||||
//setItemRequired(0,interesta[i],false);
|
||||
}
|
||||
}
|
||||
var isShowRate;
|
||||
if(method=="even_subsection"||method=="irregular_rent"||method==""){
|
||||
isShowRate="";
|
||||
}else{
|
||||
isShowRate=calcRules['method'][method]["isShowRate"];
|
||||
}
|
||||
if(isShowRate=="Y"){
|
||||
showItem(0,"RATE");
|
||||
showItem(0,"ADDITIONAL_RATE");
|
||||
//setItemRequired(0,"RATE",true);
|
||||
//setItemRequired(0,"ADDITIONAL_RATE",true);
|
||||
}else{
|
||||
hideItem(0,"RATE");
|
||||
hideItem(0,"ADDITIONAL_RATE");
|
||||
//setItemRequired(0,"RATE",false);
|
||||
//setItemRequired(0,"ADDITIONAL_RATE",false);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user