提前结清部分结清字段显示及提前结清页签显示
This commit is contained in:
parent
3b93240bf9
commit
296330ef4f
@ -20,6 +20,9 @@
|
||||
String cautionmoney = Sqlca.getString("select ifnull(round( sum(case lfi.FEE_TYPE when 'feetype2' then FACT_MONEY else 0 end)- sum(case lfi.FEE_TYPE when 'feetype2' then 0 else FACT_MONEY end ),2),0) as over_caution_monry from lc_fund_income lfi where lfi.CONTRACT_ID = '"+contractId+"' and lfi.FEE_TYPE in ('feetype2', 'feetype16', 'feetype17')");
|
||||
String mayopemoney = Sqlca.getString("select sum(MAYOPE_MONEY) from LC_EBANK_TEMP where flowunid='"+flowunid+"'");
|
||||
|
||||
String num = Sqlca.getString("select count(id) from lb_equipment_car_temp where flowunid='"+flowunid+"' and car_typea = 'SYC'");
|
||||
String subsection = Sqlca.getString("select ifnull(SETTLE_METHOD,'null') from lc_calc_condition_temp lcc where FLOWUNID = '"+flowunid+"'");
|
||||
|
||||
BizObject flow=GetFlowAction.getFlowBussinessObject(flowunid);
|
||||
String productId=flow.getAttribute("productId").getString();
|
||||
String ratio = Sqlca.getString("select EarlySettleBreachRatio from PRD_SPECIFIC_LIBRARY where productid='"+productId+"'");
|
||||
@ -28,7 +31,9 @@
|
||||
String sTempletNo = "LCContractTerminate";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
doTemp.setDefaultValue("PAYMENT_NUMBER", paymentnumber);
|
||||
// doTemp.setHtmlEvent("PAYDAY_ADJUST","onchange","getTerminateInfo");
|
||||
if(Integer.parseInt(num)<2){
|
||||
doTemp.setHtmlEvent("PAYDAY_ADJUST","onchange","getTerminateInfo");
|
||||
}
|
||||
doTemp.setHtmlEvent("ADJUST_TYPE","onchange","changeInfo");
|
||||
doTemp.setHtmlEvent("OTHER_IN","onchange","changeContract");
|
||||
doTemp.setHtmlEvent("REPURCHASE_RATIO","onchange","getRepurchaseMoney");
|
||||
@ -69,6 +74,17 @@
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
debugger
|
||||
if(Number("<%=num%>")<2 || "segmented_financing".equals("<%=subsection%>")){
|
||||
$("#A_div_1007").attr("style","display:none;");
|
||||
$("#A_div_1008").attr("style","display:none;");
|
||||
$("#A_div_1009").attr("style","display:none;");
|
||||
$("#A_div_2096").attr("style","display:none;");
|
||||
$("#A_div_2098").attr("style","display:none;");
|
||||
}
|
||||
});
|
||||
|
||||
function getRepurchaseMoney(){
|
||||
var ratio=getItemValue(0,0,"REPURCHASE_RATIO");
|
||||
var corpus=getItemValue(0,0,"CORPUS_OVERAGE");
|
||||
@ -244,7 +260,6 @@
|
||||
//保存数据
|
||||
function saveRecord(sPostEvents)
|
||||
{
|
||||
debugger;
|
||||
//校验是否有保证金代偿
|
||||
var isCompensation = AsControl.RunJavaMethod("com.tenwa.reckon.executor.RentCalHelper","isCompensation","contractId=<%=contractId%>");
|
||||
if("false" == isCompensation){
|
||||
@ -380,6 +395,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function setEquipmentRatioCharge(){
|
||||
var settlemethod = getItemValue(0,0,"SETTLE_METHOD");
|
||||
var ADJUST_TYPE = getItemValue(0,0,"ADJUST_TYPE");
|
||||
|
||||
@ -0,0 +1,42 @@
|
||||
<%@ page contentType="text/html; charset=GBK" %>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf" %>
|
||||
<%
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String ProductId = CurPage.getParameter("ProductId");
|
||||
String ProjectId = CurPage.getParameter("ProjectId");
|
||||
String RightType = CurPage.getParameter("RightType");
|
||||
String FlowNo = CurPage.getParameter("FlowNo");
|
||||
String TERMINATE_TYPE = CurPage.getParameter("TERMINATE_TYPE");
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
|
||||
String templateNo = "LBEquipmentCarTempListJQ";
|
||||
ASObjectModel doTemp = new ASObjectModel(templateNo);
|
||||
if("2".equals(TERMINATE_TYPE)){
|
||||
doTemp.appendJboWhere(" and (TERMINATE_TYPE='1' or TERMINATE_TYPE is null )");
|
||||
}else if("1".equals(TERMINATE_TYPE)){
|
||||
doTemp.appendJboWhere(" and TERMINATE_TYPE='2' ");
|
||||
}else if("3".equals(TERMINATE_TYPE)){
|
||||
doTemp.appendJboWhere(" and TERMINATE_TYPE='3' ");
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp, request);
|
||||
/* if(null!=ishistory&&ishistory.equals("true")){
|
||||
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
|
||||
} */
|
||||
|
||||
dwTemp.Style = "1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.ShowSummary = "1";
|
||||
|
||||
// 合同制作去除租赁物信息,新增、删除、复制按钮
|
||||
dwTemp.setPageSize(100);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
};
|
||||
%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf" %>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf" %>
|
||||
@ -0,0 +1,23 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
|
||||
import jbo.app.LB_EQUIPMENT_CAR_TEMP;
|
||||
import jbo.loan.LOAN_INTEREST_PLAN;
|
||||
|
||||
|
||||
public class CarRatio extends CommonHandler {
|
||||
protected void initDisplayForEdit(BizObject bo) throws Exception {
|
||||
String sql="select concat(round(round(lect.EQUIP_PRICE / ifnull(t.num, 1), 4)* 100, 2),'%') as PROPROTION_NUMBER from lb_equipment_car_temp lect left join (select CONTRACT_ID,sum(ifnull(EQUIP_PRICE, 0)) as num from apzl.lb_equipment_car group by CONTRACT_ID ) t on t.CONTRACT_ID = lect.CONTRACT_ID where lect.FRAME_NUMBER = '"+bo.getAttribute("FRAME_NUMBER")+"' and lect.FLOWUNID = '"+bo.getAttribute("FlowUnid")+"'";
|
||||
JBOTransaction tx=JBOFactory.createJBOTransaction();
|
||||
List<Map<String,String>> list=DataOperatorUtil.getDataBySql(tx, sql, null);
|
||||
String PROPROTION_NUMBER = list.get(0).get("PROPROTION_NUMBER");
|
||||
bo.setAttributeValue("PROPROTION_NUMBER", PROPROTION_NUMBER);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user