$(function(){initLoanRuleParamEnum()});function initLoanRuleParamEnum(){var a=base_path+"par/common/getInitData.do";var b={};b.key="loanruleparam";b.fmt="entity";$.post(a,b,function(g){var f=g.rows;var d="";var e=0;for(var c=0;c";d+=getRetrunTd(f[c].code,f[c].otherinfo,f[c].name)}else{d+=getRetrunTd(f[c].code,f[c].otherinfo,f[c].name);d+="";if(e%2==1){d+=""}}}$(".initLoanRuleParamEnum").html(d);$.parser.parse(".initLoanRuleParamEnum");$(".wei-zhang-chu-fa").combobox({onSelect:function(h){if(h){showTextByCondtion(h.value)}else{showTextByCondtion("0")}}});repeatBindClickFun()},"json")}function getRetrunTd(c,b,a){var e="";var d="width:200px;height: 28px;";if(c=="diu_shi_reng_guo_qi"){e+=""+a+"";e+=''}else{if(c=="guo_qi_ting_jie"||c=="ting_jie_ji_suan_fang_shi"||c=="zui_da_ting_jie_tian"||c=="ting_jie_lj"){e+=''+a+"";e+=''+getTextClassByType(c,b,d)+""}else{if(c=="guo_qi_fa_kuan"||c=="guo_qi_jia_bei"||c=="zui_da_guo_qi_fa_kuan"){e+=''+a+"";e+=''+getTextClassByType(c,b,d)+""}else{e+=""+a+"";e+=""+getTextClassByType(c,b,d)+""}}}return e}function getTextClassByType(c,a,e){var d="";if(a=="easyui-combobox"){if(c=="xu_jie_suan_fa"){d+='"}if(c=="guo_qi_chu_fa_fang_shi"){d+='"}if(c=="diu_shi_fa_kuan_lei_bie"){d+='"}if(c=="ting_jie_ji_suan_fang_shi"){d+='"}}else{if(a.indexOf("|")>-1){var b=a.split("|");d=''}else{if("checkbox"==a){d=''}else{d=''}}}return d}function showTextByCondtion(a){if(a=="0"){$(".fa-kuan-text").show();$(".ting-jie-text").hide()}else{if(a=="1"){$(".fa-kuan-text").hide();$(".ting-jie-text").show()}}}function fmtLoanRuleZXJQ(b,c){var a=JSON.parse(c.paramjson);if(a.zui_xiao_jie_qi){return a.zui_xiao_jie_qi}return""}function fmtLoanRuleZDJQ(b,c){var a=JSON.parse(c.paramjson);if(a.zui_da_jie_qi){return a.zui_da_jie_qi}return""}function fmtLoanRuleKJS(b,c){var a=JSON.parse(c.paramjson);if(a.ke_jie_shu){return a.ke_jie_shu}return""}function fmtLoanRuleXJCS(b,c){var a=JSON.parse(c.paramjson);if(a.xu_jie_ci_shu){return a.xu_jie_ci_shu}return""}function fmtLoanRuleXJQ(b,c){var a=JSON.parse(c.paramjson);if(a.xu_jie_qi){return a.xu_jie_qi}return""}function fmtLoanRuleZXFB(b,c){var a=JSON.parse(c.paramjson);if(a.zui_xiao_fa_bei){return a.zui_xiao_fa_bei}return""}function fmtLoanRuleZDFB(b,c){var a=JSON.parse(c.paramjson);if(a.zui_da_fa_bei){return a.zui_da_fa_bei}return""};