Commit 610aba0b authored by xiaochao's avatar xiaochao

【收款维护修改中文判断】

parent f0efcedf
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
) )
extra_nam, extra_nam,
(case when t.paid_byother_flag = 'T' and (case when t.paid_byother_flag = 'T' and
(select v.extra_nam from hls_bp_master v where v.enabled_flag = 'Y' and v.bp_category = 'AGENT' and v.bp_id = t.bp_id) = '深圳美鹏' (select v.unit_id from hls_bp_master v where v.enabled_flag = 'Y' and v.bp_category = 'AGENT' and v.bp_id = t.bp_id) = 1565
then then
'是' '是'
else else
......
...@@ -119,8 +119,10 @@ ...@@ -119,8 +119,10 @@
function update_import_data(ds, record, name, value, oldvalue) { function update_import_data(ds, record, name, value, oldvalue) {
if (name =='paid_byother_flag_desc'){ if (name =='paid_byother_flag_desc'){
var paid_byother_flag_desc = record.get('paid_byother_flag_desc'); var paid_byother_flag_desc = record.get('paid_byother_flag_desc');
var extra_nam = record.get('extra_nam'); //深圳美鹏
if (paid_byother_flag_desc == '是' && extra_nam == '深圳美鹏'){ // var extra_nam = record.get('extra_nam');
var bp_code = record.get('bp_code');
if (paid_byother_flag_desc == '是' && bp_code == 'C00010168'){
record.set('guarantor_name_duty','是'); record.set('guarantor_name_duty','是');
}else{ }else{
record.set('guarantor_name_duty','否'); record.set('guarantor_name_duty','否');
...@@ -243,8 +245,10 @@ ...@@ -243,8 +245,10 @@
lovService="csh.CSH510.csh_extra_nam_add_lov" lovWidth="550" title="代理店简称"> lovService="csh.CSH510.csh_extra_nam_add_lov" lovWidth="550" title="代理店简称">
<a:mapping> <a:mapping>
<a:map from="extra_nam" to="extra_nam"/> <a:map from="extra_nam" to="extra_nam"/>
<a:map from="bp_code" to="bp_code"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="bp_code"/>
<a:field name="bp_id"/> <a:field name="bp_id"/>
<a:field name="bp_category"/> <a:field name="bp_category"/>
...@@ -289,6 +293,7 @@ ...@@ -289,6 +293,7 @@
<a:column name="attribute_24" prompt="附言" width="80"/> <a:column name="attribute_24" prompt="附言" width="80"/>
<a:column name="extra_nam" prompt="代理店简称" width="80" editor="grid_lov"/> <a:column name="extra_nam" prompt="代理店简称" width="80" editor="grid_lov"/>
<a:column name="bp_code" prompt="代理店简称code" hidden="true"/>
<a:column name="guarantor_name_duty" prompt="担保人履行担保义务" width="80"/> <a:column name="guarantor_name_duty" prompt="担保人履行担保义务" width="80"/>
......
...@@ -240,12 +240,14 @@ ...@@ -240,12 +240,14 @@
record.set('transaction_type', 'RECEIPT'); record.set('transaction_type', 'RECEIPT');
} }
}else if(name == 'extra_nam'){ }else if(name == 'extra_nam'){
var extra_nam = record.get('extra_nam'); //深圳美鹏
if (extra_nam != null && extra_nam == '深圳美鹏'){ // var extra_nam = record.get('extra_nam');
var bp_code = record.get('bp_code');
if (bp_code == 'C00010168'){
record.getField('guarantor_name_duty').setReadOnly(false); record.getField('guarantor_name_duty').setReadOnly(false);
record.set('guarantor_name_duty','是'); record.set('guarantor_name_duty','是');
record.getField('guarantor_name_duty').setRequired(true); record.getField('guarantor_name_duty').setRequired(true);
}else if (extra_nam != null && extra_nam != '深圳美鹏'){ }else if (bp_code != 'C00010168'){
record.getField('guarantor_name_duty').setReadOnly(true); record.getField('guarantor_name_duty').setReadOnly(true);
record.set('guarantor_name_duty','否'); record.set('guarantor_name_duty','否');
record.getField('guarantor_name_duty').setRequired(false); record.getField('guarantor_name_duty').setRequired(false);
...@@ -425,12 +427,15 @@ ...@@ -425,12 +427,15 @@
</a:mapping> </a:mapping>
</a:field> </a:field>
<!--代理店简称--> <!--代理店简称-->
<a:field name="bp_code"/>
<a:field name="extra_nam" required="true" lovGridHeight="350" lovHeight="500" lovLabelWidth="90" <a:field name="extra_nam" required="true" lovGridHeight="350" lovHeight="500" lovLabelWidth="90"
lovService="csh.CSH510.csh_extra_nam_add_lov" lovWidth="550" title="代理店简称"> lovService="csh.CSH510.csh_extra_nam_add_lov" lovWidth="550" title="代理店简称">
<a:mapping> <a:mapping>
<a:map from="bp_code" to="bp_code"/>
<a:map from="extra_nam" to="extra_nam"/> <a:map from="extra_nam" to="extra_nam"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<!--担保人履行担保义务--> <!--担保人履行担保义务-->
<a:field name="guarantor_name_duty" displayField="code_value_name" options="yes_no_ds" prompt="担保人履行担保义务" returnField="exist_flag" valueField="code_value"/> <a:field name="guarantor_name_duty" displayField="code_value_name" options="yes_no_ds" prompt="担保人履行担保义务" returnField="exist_flag" valueField="code_value"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment