修改获取核销金额的方式,并去掉多余的代码
This commit is contained in:
parent
0f1be0046d
commit
3b0f06728f
@ -47,36 +47,6 @@
|
||||
}
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var oldFactMoney = 0;
|
||||
var newFactMoney = 0;
|
||||
$(function(){
|
||||
for(var i=0;i<DZ[0][2].length;i++){
|
||||
oldFactMoney = eval(oldFactMoney + "+" + removeFomatedNumber(getItemValue(0,i,"CORPUS")));
|
||||
oldFactMoney = eval(oldFactMoney + "+" + removeFomatedNumber(getItemValue(0,i,"INTEREST")));
|
||||
oldFactMoney = eval(oldFactMoney + "+" + removeFomatedNumber(getItemValue(0,i,"PENALTY")));
|
||||
var CerificationMoney = eval(removeFomatedNumber(getItemValue(0,i,"CORPUS"))+ "+" + removeFomatedNumber(getItemValue(0,i,"INTEREST"))+ "+" + removeFomatedNumber(getItemValue(0,i,"PENALTY"))+ "-" + removeFomatedNumber(getItemValue(0,i,"INTEREST_ADJUST")));
|
||||
CerificationMoney = CerificationMoney.toFixed(2);
|
||||
setItemValue(0,i,"CerificationMoney",CerificationMoney);
|
||||
}
|
||||
oldFactMoney = oldFactMoney.toFixed(2);
|
||||
newFactMoney = oldFactMoney;
|
||||
total();
|
||||
})
|
||||
function get(){
|
||||
for(var i=0;i<DZ[0][2].length;i++){
|
||||
var CerificationMoney = eval(removeFomatedNumber(getItemValue(0,i,"CORPUS"))+ "+" + removeFomatedNumber(getItemValue(0,i,"INTEREST"))+ "+" + removeFomatedNumber(getItemValue(0,i,"PENALTY"))+ "-" + removeFomatedNumber(getItemValue(0,i,"INTEREST_ADJUST")));
|
||||
CerificationMoney = CerificationMoney.toFixed(2);
|
||||
setItemValue(0,i,"CerificationMoney",CerificationMoney);
|
||||
}
|
||||
}
|
||||
function total(){
|
||||
var total=0;
|
||||
for(var i=0;i<DZ[0][2].length;i++){
|
||||
total= eval(total + "+" + removeFomatedNumber(getItemValue(0,i,"CerificationMoney")));
|
||||
}
|
||||
total = total.toFixed(2);
|
||||
$('#myiframe0_order_GridBody_Cells').children('.list_smallcount_color').find('td').eq(4).children('div').text(total);
|
||||
}
|
||||
function updateEbankAndEbankProcessOfDel(){
|
||||
var rows = getItemValueArray(0,"ID")+"";
|
||||
if(rows == ""){
|
||||
@ -245,8 +215,6 @@
|
||||
setItemValue(0,position,"rent",oldRent);
|
||||
newFactMoney = newFactMoney - beyondBalance;
|
||||
}
|
||||
get();
|
||||
total();
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -423,4 +423,13 @@ public class FundIncomeMethod {
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
public static String setCerificationMoney(String corpus,String interest,String penalty){
|
||||
BigDecimal c = new BigDecimal(corpus);
|
||||
BigDecimal i = new BigDecimal(interest);
|
||||
BigDecimal p = new BigDecimal(penalty);
|
||||
c=c.add(i).add(p);
|
||||
// double CerificationMoney= Double.valueOf(corpus)+Double.valueOf(interest)+Double.valueOf(penalty);
|
||||
return c.doubleValue()+"";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user