产品利率,邮件发送,经销商选择产品
This commit is contained in:
parent
a8cb0dd4cb
commit
77ae3e68cd
@ -27,7 +27,7 @@
|
||||
|
||||
var Return="<%=CurUser.getUserID()%>@~<%=CurUser.getOrgID()%>@~<%=StringFunction.getTodayNow()%>@~<%=TYPENO%>@~";
|
||||
productid="<%=TYPENO%>";
|
||||
AsDialog.OpenSelector("SelectCarInfo","productid,"+productid,"dialogWidth=" + parseInt(window.screen.width * 0.5) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",
|
||||
AsDialog.OpenSelector("SelectCarInfo","productid,"+productid,"dialogWidth=" + parseInt(window.screen.width * 0.6) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",
|
||||
function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
|
||||
{
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
function showCar(TYPENO){
|
||||
var sUrl="/Tenwa/Apzl/productCar/LmProductUpAndDown.jsp";
|
||||
var sPara = "TYPENO="+TYPENO;
|
||||
AsDialog.PopView(sUrl,sPara,"dialogWidth=950px;dialogHeight=800px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();},"ÅäÖóµÁ¾");
|
||||
AsDialog.PopView(sUrl,sPara,"dialogWidth=950px;dialogHeight=500px;resizable=no;scrollbars=no;status:yes;maximize:no;help:no;",function(){reloadSelf();},"ÅäÖóµÁ¾");
|
||||
}
|
||||
/*
|
||||
function mySelectRow(){
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
String TYPENO = CurPage.getParameter("TYPENO");
|
||||
%><%@include file="/Resources/CodeParts/Frame02.jsp"%>
|
||||
<script type="text/javascript">
|
||||
mytoptd.height=300;
|
||||
mytoptd.height=100;
|
||||
OpenList();
|
||||
OpenInfo();
|
||||
function OpenList(){
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<ComponentType ID="PRD0321" NAME="分段" STATUS="2"/>
|
||||
<ComponentType ID="PRD0307" NAME="还款次序" STATUS="1"/>
|
||||
<ComponentType ID="PRD0302" NAME="利率方案" RELATIVETEMPLETCOLNAME="RAT" STATUS="2"/>
|
||||
<ComponentType ID="PRD0322" NAME="利息处理" STATUS="2"/>
|
||||
<ComponentType ID="PRD0322" NAME="利息处理" STATUS="1"/>
|
||||
<ComponentType ID="PRD0309" NAME="收益核算" STATUS="1"/>
|
||||
<ComponentType ID="PRD0103" NAME="金额期限要求" STATUS="2"/>
|
||||
<ComponentType ID="PRD0105" NAME="担保要求" STATUS="1"/>
|
||||
|
||||
@ -2770,5 +2770,28 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_CAR_DATA" label="车型库" keyAttributes="车型库">
|
||||
<attributes>
|
||||
<attribute name="id" label="标识id" type="STRING"/>
|
||||
<attribute name="brandid" label="品牌id" type="STRING"/>
|
||||
<attribute name="brandname" label="品牌名称" type="STRING"/>
|
||||
<attribute name="seriesid" label="系列id" type="STRING"/>
|
||||
<attribute name="seriesname" label="系列名称" type="STRING"/>
|
||||
<attribute name="modelid" label="车型标识" type="STRING"/>
|
||||
<attribute name="modelname" label="车型名称" type="STRING"/>
|
||||
<attribute name="price" label="指导价" type="STRING"/>
|
||||
<attribute name="liter" label="排量" type="STRING"/>
|
||||
<attribute name="geartype" label="变速箱" type="STRING"/>
|
||||
<attribute name="cartype" label="车辆类型" type="STRING"/>
|
||||
<attribute name="modelyear" label="年款" type="STRING"/>
|
||||
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_car_data" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
Binary file not shown.
@ -71,7 +71,7 @@ public class InterestCalServiceImpl {
|
||||
|
||||
} else {
|
||||
// 적口
|
||||
inte = new BigDecimal(corpus_overage).multiply(new BigDecimal(preRate)).setScale(20,BigDecimal.ROUND_HALF_UP).toString();// 剩余本金*利率
|
||||
inte = new BigDecimal(corpus_overage).multiply(new BigDecimal(preRate)).setScale(2,BigDecimal.ROUND_HALF_UP).toString();// 剩余本金*利率
|
||||
// 굶쏜, 理쏜-적口
|
||||
corpus = new BigDecimal(rent_list.get(i).toString()).subtract(new BigDecimal(inte)).toString();// 理쏜-적口
|
||||
}
|
||||
|
||||
@ -59,8 +59,8 @@ public class RentTools {
|
||||
BigDecimal numfu1_B = new BigDecimal("-1");
|
||||
int Nper_i = Integer.valueOf(Nper).intValue();
|
||||
try {
|
||||
pmt_B = numfu1_B.multiply(Rate_B).multiply(Pv_B.multiply((num1_B.add(Rate_B)).pow(Nper_i)).add(Fv_B)).divide((num1_B.add(Rate_B.multiply(Type_B))).multiply((num1_B.add(Rate_B)).pow(Nper_i).subtract(num1_B)), 20, BigDecimal.ROUND_HALF_UP);
|
||||
return pmt_B.toString().equals("") ? "0" : pmt_B.toString();
|
||||
pmt_B = numfu1_B.multiply(Rate_B).multiply(Pv_B.multiply((num1_B.add(Rate_B)).pow(Nper_i)).add(Fv_B)).divide((num1_B.add(Rate_B.multiply(Type_B))).multiply((num1_B.add(Rate_B)).pow(Nper_i).subtract(num1_B)), 10, BigDecimal.ROUND_HALF_UP);
|
||||
return pmt_B.toString().equals("") ? "0" : pmt_B.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@ -158,6 +158,7 @@ public class SendEmailUtil {
|
||||
email.setCharset("UTF-8");
|
||||
// 发送简单邮件
|
||||
email.setHostName(emailConfig.get("Host"));
|
||||
//email.setSmtpPort(Integer.parseInt(emailConfig.get("Port")));
|
||||
// 需要邮件发送服务器验证,用户名/密码
|
||||
email.setAuthentication(emailConfig.get("FromUser"), emailConfig.get("FromUserPassword"));
|
||||
String fromUserEmailAddress = emailConfig.get("FromUserEmailAddress");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user