添加分段融页面调整
This commit is contained in:
parent
e3feac87a3
commit
e979996c8b
@ -18,6 +18,7 @@
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
/*获取参数*/
|
||||
String flowNo = CurPage.getParameter("FlowNo");
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String plannumber=CurPage.getParameter("plannumber");
|
||||
String productId=CurPage.getParameter("ProductId");
|
||||
@ -149,6 +150,8 @@
|
||||
doTemp.setHtmlEvent("FIRST_PLAN_DATE", "onchange", "changeFistPlanDate");//第一期计划日期
|
||||
doTemp.setHtmlEvent("CORPUS_RATIO", "onchange", "changeCorpusRatio");//期限内本金比例
|
||||
doTemp.setHtmlEvent("EQUIP_AMT", "onchange", "changgeCompare");//车价
|
||||
doTemp.setHtmlEvent("is_subsection", "onchange", "isSubsection");//是否分段
|
||||
doTemp.setHtmlEvent("subsection_num", "onchange", "subsectionNum");//是否分段
|
||||
/*设置字段事件*/
|
||||
|
||||
/*设置模板属性*/
|
||||
@ -180,6 +183,7 @@
|
||||
doTemp.setDefaultValue(planCName, plannumber);
|
||||
doTemp.setDefaultValue("flowunid", flowunid);
|
||||
doTemp.setDefaultValue("PRODUCT_NAME", productName);
|
||||
doTemp.setDefaultValue("is_subsection", "no");
|
||||
doTemp.appendJboWhere(" and "+planCName+"='"+plannumber+"'");
|
||||
/* if(null!=ishistory&&ishistory.equals("true")){ --这个是插入到历史表中的每一步数据。
|
||||
doTemp.setDataQueryClass("com.tenwa.lease.flow.flowarchive.calcarchive.CalcCondtionInfoArachiveShow");//如果是历史则新显示历史数据
|
||||
@ -224,6 +228,8 @@
|
||||
dwTemp.replaceColumn("condition_plan", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"600px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/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=\"400px\" 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());
|
||||
dwTemp.replaceColumn("subsection_info", "<iframe type='iframe' id='subsection_list' name=\"subsection_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Accounting/LoanSimulation/lbSubsectionTempList.jsp?CompClientID="+compClientID+"&flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&IsHistory="+ishistory+"&NodeNo="+nodeNo+"&RightType="+RightType+"&ProductId="+productId+"&calType="+calType+"&projectId="+projectId+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
String businessDate = DateHelper.getBusinessDate();
|
||||
|
||||
//获取对应车辆指导价
|
||||
@ -303,7 +309,11 @@ $(function(){
|
||||
}
|
||||
var nominalPrice = "<%=nominalPrice%>" ;
|
||||
var carNum = parseInt("<%=carNum%>");
|
||||
var flowNo = "<%=flowNo%>";
|
||||
if( "BusinessApplyFlow"==flowNo || "BusinessChangeFlow" == flowNo ){
|
||||
setItemValue( 0, 0, 'NOMINAL_PRICE', Number(nominalPrice)*carNum );
|
||||
}
|
||||
isSubsection();
|
||||
|
||||
});
|
||||
|
||||
@ -1557,5 +1567,36 @@ jQuery.validator.prototype.showLabel = function(element,message){
|
||||
}
|
||||
fundError[id]=message;
|
||||
};
|
||||
|
||||
function isSubsection(){
|
||||
var isSubsection = getItemValue(0,getRow(),"is_subsection");
|
||||
if("yes" == isSubsection){
|
||||
showItem(0,"subsection_num",'');
|
||||
showItem(0,"subsection_config",'');
|
||||
setItemRequired(0,"subsection_num",true);
|
||||
setItemRequired(0,"subsection_config",true);
|
||||
var subsectionNum = getItemValue(0,getRow(),"subsection_num");
|
||||
if(typeof(subsectionNum) == "undefined" || subsectionNum.length == 0 ){
|
||||
subsectionNum = "0";
|
||||
}
|
||||
$("#A_Group_0020").attr("style","display:block;");//显示
|
||||
subsection_list.window.saveData(subsectionNum);
|
||||
}else{
|
||||
showItem(0,"subsection_num",'none');
|
||||
showItem(0,"subsection_config",'none');
|
||||
setItemRequired(0,"subsection_num",false);
|
||||
setItemRequired(0,"subsection_config",false);
|
||||
$("#A_Group_0020").attr("style","display:none;");//隐藏
|
||||
}
|
||||
}
|
||||
function subsectionNum(){
|
||||
var subsectionNum = getItemValue(0,getRow(),"subsection_num");
|
||||
if(typeof(subsectionNum) == "undefined" || subsectionNum.length == 0 ){
|
||||
subsectionNum = "0";
|
||||
}
|
||||
subsection_list.window.saveData(subsectionNum);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
|
||||
@ -0,0 +1,44 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2021-07-20
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String flowunid = CurPage.getParameter("flowunid");
|
||||
String projectId = CurPage.getParameter("projectId");
|
||||
ASObjectModel doTemp = new ASObjectModel("lbSubsectionTempList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"false","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"false","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"false","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function saveData(subsectionNumber){
|
||||
var result = RunJavaMethodTrans("com.tenwa.reckon.executor.ManageSubsectionData","saveSubsection","flowunid=<%=flowunid%>,projectId=<%=projectId%>,subsectionNumber="+subsectionNumber);
|
||||
window.location.reload();
|
||||
}
|
||||
/* function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
} */
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -4628,5 +4628,34 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_SUBSECTION_INFO_TEMP" label="" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="subsection_number" label="分段数" type="STRING" length="32"/>
|
||||
<attribute name="clean_lease_ratio" label="融资额比例" type="STRING" length="32"/>
|
||||
<attribute name="clean_lease_money" label="融资额" type="STRING" length="10"/>
|
||||
<attribute name="standard_ratio" label="标准利率(贴息前利率)" type="STRING" length="18"/>
|
||||
<attribute name="product_ratio" label="产品利率(贴息后利率)" type="STRING" length="10"/>
|
||||
<attribute name="clean_lease_rate" label="融资利率(客户利率)" type="STRING" length="10"/>
|
||||
<attribute name="income_number" label="期次" type="STRING" length="10"/>
|
||||
<attribute name="discount_interest" label="贴息金额" type="STRING" length="20"/>
|
||||
<attribute name="discount_interest_number" label="贴息回款期次" type="STRING" length="32"/>
|
||||
<attribute name="projectid" label="项目id" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||
<attribute name="flowunid" label="流程编号" type="STRING" length="32"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
|
||||
<attribute name="inputorgid" label="登记机构" type="STRING" length="32"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="updateorgid" label="更新机构" type="STRING" length="32"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_subsection_info_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
66
calc/com/tenwa/reckon/executor/ManageSubsectionData.java
Normal file
66
calc/com/tenwa/reckon/executor/ManageSubsectionData.java
Normal file
@ -0,0 +1,66 @@
|
||||
package com.tenwa.reckon.executor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
|
||||
import jbo.app.tenwa.calc.LB_SUBSECTION_INFO_TEMP;
|
||||
|
||||
public class ManageSubsectionData {
|
||||
|
||||
private String subsectionNumber;
|
||||
private String projectId;
|
||||
private String flowunid;
|
||||
|
||||
public String getSubsectionNumber() {
|
||||
return subsectionNumber;
|
||||
}
|
||||
public void setSubsectionNumber(String subsectionNumber) {
|
||||
this.subsectionNumber = subsectionNumber;
|
||||
}
|
||||
public String getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
public void setProjectId(String projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
|
||||
public String saveSubsection(JBOTransaction tx) throws Exception {
|
||||
Integer sn = new Integer(subsectionNumber);
|
||||
BizObjectManager lsitManger = JBOFactory.getBizObjectManager(LB_SUBSECTION_INFO_TEMP.CLASS_NAME, tx);
|
||||
List<BizObject> lsitList = lsitManger.createQuery(" flowunid=:flowunid ").setParameter("flowunid", flowunid).getResultList(false);
|
||||
if( sn >= 0 ) {
|
||||
if(lsitList.size()==0 || sn > lsitList.size()) {
|
||||
int i = ( lsitList.size()+1 ) ;
|
||||
for( ; i<=sn ; i++ ) {
|
||||
BizObject lsit = lsitManger.newObject();
|
||||
lsit.setAttributeValue("subsection_number", i);
|
||||
lsit.setAttributeValue("projectid", projectId);
|
||||
lsit.setAttributeValue("flowunid", flowunid);
|
||||
lsitManger.saveObject(lsit);
|
||||
}
|
||||
}else if( sn < lsitList.size()){
|
||||
int i = (sn +1);
|
||||
for( ; i<= lsitList.size() ; i++ ) {
|
||||
BizObject lsit = lsitManger.createQuery("flowunid =:flowunid and subsection_number =:subsectionNumber").setParameter("flowunid", flowunid).setParameter("subsectionNumber", i).getSingleResult(true);
|
||||
if(lsit!=null ) {
|
||||
lsitManger.deleteObject(lsit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
92
src_jbo/jbo/app/tenwa/calc/LB_SUBSECTION_INFO_TEMP.java
Normal file
92
src_jbo/jbo/app/tenwa/calc/LB_SUBSECTION_INFO_TEMP.java
Normal file
@ -0,0 +1,92 @@
|
||||
package jbo.app.tenwa.calc;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_SUBSECTION_INFO_TEMP{
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.app.tenwa.calc.LB_SUBSECTION_INFO_TEMP";
|
||||
/**
|
||||
* 主键 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 分段数 STRING(32)<br>
|
||||
*/
|
||||
public static final String subsection_number = "subsection_number";
|
||||
/**
|
||||
* 融资额比例 STRING(32)<br>
|
||||
*/
|
||||
public static final String clean_lease_ratio = "clean_lease_ratio";
|
||||
/**
|
||||
* 融资额 STRING(10)<br>
|
||||
*/
|
||||
public static final String clean_lease_money = "clean_lease_money";
|
||||
/**
|
||||
* 标准利率(贴息前利率) STRING(18)<br>
|
||||
*/
|
||||
public static final String standard_ratio = "standard_ratio";
|
||||
/**
|
||||
* 产品利率(贴息后利率) STRING(10)<br>
|
||||
*/
|
||||
public static final String product_ratio = "product_ratio";
|
||||
/**
|
||||
* 融资利率(客户利率) STRING(10)<br>
|
||||
*/
|
||||
public static final String clean_lease_rate = "clean_lease_rate";
|
||||
/**
|
||||
* 期次 STRING(10)<br>
|
||||
*/
|
||||
public static final String income_number = "income_number";
|
||||
/**
|
||||
* 贴息金额 STRING(20)<br>
|
||||
*/
|
||||
public static final String discount_interest = "discount_interest";
|
||||
/**
|
||||
* 贴息回款期次 STRING(32)<br>
|
||||
*/
|
||||
public static final String discount_interest_number = "discount_interest_number";
|
||||
/**
|
||||
* 项目id STRING(32)<br>
|
||||
*/
|
||||
public static final String projectid = "projectid";
|
||||
/**
|
||||
* 合同id STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 流程编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String flowunid = "flowunid";
|
||||
/**
|
||||
* 登记人 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记机构 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
/**
|
||||
* 更新人 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateuserid = "updateuserid";
|
||||
/**
|
||||
* 更新机构 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateorgid = "updateorgid";
|
||||
/**
|
||||
* 更新时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user