产品利率,邮件发送,经销商选择产品

This commit is contained in:
zhouyahui 2018-07-23 21:14:00 +08:00
parent a8cb0dd4cb
commit 77ae3e68cd
9 changed files with 31 additions and 7 deletions

View File

@ -27,7 +27,7 @@
var Return="<%=CurUser.getUserID()%>@~<%=CurUser.getOrgID()%>@~<%=StringFunction.getTodayNow()%>@~<%=TYPENO%>@~"; var Return="<%=CurUser.getUserID()%>@~<%=CurUser.getOrgID()%>@~<%=StringFunction.getTodayNow()%>@~<%=TYPENO%>@~";
productid="<%=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){ function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="") if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{ {

View File

@ -45,7 +45,7 @@
function showCar(TYPENO){ function showCar(TYPENO){
var sUrl="/Tenwa/Apzl/productCar/LmProductUpAndDown.jsp"; var sUrl="/Tenwa/Apzl/productCar/LmProductUpAndDown.jsp";
var sPara = "TYPENO="+TYPENO; 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(){ function mySelectRow(){

View File

@ -6,7 +6,7 @@
String TYPENO = CurPage.getParameter("TYPENO"); String TYPENO = CurPage.getParameter("TYPENO");
%><%@include file="/Resources/CodeParts/Frame02.jsp"%> %><%@include file="/Resources/CodeParts/Frame02.jsp"%>
<script type="text/javascript"> <script type="text/javascript">
mytoptd.height=300; mytoptd.height=100;
OpenList(); OpenList();
OpenInfo(); OpenInfo();
function OpenList(){ function OpenList(){

View File

@ -21,7 +21,7 @@
<ComponentType ID="PRD0321" NAME="分段" STATUS="2"/> <ComponentType ID="PRD0321" NAME="分段" STATUS="2"/>
<ComponentType ID="PRD0307" NAME="还款次序" STATUS="1"/> <ComponentType ID="PRD0307" NAME="还款次序" STATUS="1"/>
<ComponentType ID="PRD0302" NAME="利率方案" RELATIVETEMPLETCOLNAME="RAT" STATUS="2"/> <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="PRD0309" NAME="收益核算" STATUS="1"/>
<ComponentType ID="PRD0103" NAME="金额期限要求" STATUS="2"/> <ComponentType ID="PRD0103" NAME="金额期限要求" STATUS="2"/>
<ComponentType ID="PRD0105" NAME="担保要求" STATUS="1"/> <ComponentType ID="PRD0105" NAME="担保要求" STATUS="1"/>

View File

@ -2770,5 +2770,28 @@
</managerProperties> </managerProperties>
</manager> </manager>
</class> </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> </package>
</jbo> </jbo>

View File

@ -71,7 +71,7 @@ public class InterestCalServiceImpl {
} else { } 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();// 理쏜-적口 corpus = new BigDecimal(rent_list.get(i).toString()).subtract(new BigDecimal(inte)).toString();// 理쏜-적口
} }

View File

@ -59,8 +59,8 @@ public class RentTools {
BigDecimal numfu1_B = new BigDecimal("-1"); BigDecimal numfu1_B = new BigDecimal("-1");
int Nper_i = Integer.valueOf(Nper).intValue(); int Nper_i = Integer.valueOf(Nper).intValue();
try { 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); 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.toString(); return pmt_B.toString().equals("") ? "0" : pmt_B.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -158,6 +158,7 @@ public class SendEmailUtil {
email.setCharset("UTF-8"); email.setCharset("UTF-8");
// 发送简单邮件 // 发送简单邮件
email.setHostName(emailConfig.get("Host")); email.setHostName(emailConfig.get("Host"));
//email.setSmtpPort(Integer.parseInt(emailConfig.get("Port")));
// 需要邮件发送服务器验证,用户名/密码 // 需要邮件发送服务器验证,用户名/密码
email.setAuthentication(emailConfig.get("FromUser"), emailConfig.get("FromUserPassword")); email.setAuthentication(emailConfig.get("FromUser"), emailConfig.get("FromUserPassword"));
String fromUserEmailAddress = emailConfig.get("FromUserEmailAddress"); String fromUserEmailAddress = emailConfig.get("FromUserEmailAddress");