添加分段融部分校验

This commit is contained in:
tangfutang 2021-08-02 09:59:32 +08:00
parent bc53e4d033
commit f148079ddd
2 changed files with 15 additions and 2 deletions

View File

@ -12,6 +12,15 @@
doTemp.setHtmlEvent( "DISCOUNT_RATE", "onblur", "changeDiscountRate" );
doTemp.setHtmlEvent( "CLEAN_LEASE_RATIO", "onblur", "changeCleanLeaseRatio" );
doTemp.setHtmlEvent( "CLEAN_LEASE_MONEY", "onblur", "changeCleanLeaseMoney" );
String discountCalcMethod = Sqlca.getString("select DISCOUNT_CALC_METHOD from LC_CALC_SUBSECTION_INFO_TEMP where FLOWUNID='"+flowunid+"'");
if(discountCalcMethod != null && discountCalcMethod.equals("1")){
doTemp.setReadOnly("DISCOUNT",true);
doTemp.setReadOnly("DISCOUNT_RATE",false);
}else{
doTemp.setReadOnly("DISCOUNT",false);
doTemp.setReadOnly("DISCOUNT_RATE",true);
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式

View File

@ -767,12 +767,16 @@ public class ProductCondition {
"Rate", "Discount", "DiscountRate", "DiscountCalcMethod", "IsBalanceLending", "DiscountCollectionPeriod", "MaximumDiscount" );
List<Map<String, String>> sf = configs.get( "segmented_financing" );
int i = 1;
String discountCalcMethod = null ;
for ( Map<String, String> f : sf ) {
String discountCalcMethod = f.get( "DiscountCalcMethod" );
if(discountCalcMethod == null || discountCalcMethod.isEmpty()){
discountCalcMethod = f.get("DiscountCalcMethod");
}
//String discountCalcMethod = f.get( "DiscountCalcMethod" );
BizObject bo = bom.newObject();
bo.setAttributeValue( "SUBSECTION_NUMBER", i );
bo.setAttributeValue( "RATE", f.get( "Rate" ) );
bo.setAttributeValue( "DISCOUNT_CALC_METHOD", f.get( "DiscountCalcMethod" ) );
bo.setAttributeValue( "DISCOUNT_CALC_METHOD", discountCalcMethod );
if ( "1".equals( discountCalcMethod ) ) {
bo.setAttributeValue( "DISCOUNT_RATE", f.get( "DiscountRate" ) );
bo.setAttributeValue( "FINANCING_RATE", f.get( "DiscountRate" ) );