Commit 9a0cacd5 authored by 18083's avatar 18083

保证金划转取消未入账合同只读默认系统当前日期设置

parent feff59ad
......@@ -7,7 +7,7 @@
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query model="basic.hls_sys_time_default_value" rootPath="sys_time_default_value_path"/>
<!--<a:model-query model="basic.hls_sys_time_default_value" rootPath="sys_time_default_value_path"/>-->
</a:init-procedure>
<a:view>
<a:link id="csh_review_transfer_link_id"
......@@ -223,14 +223,14 @@
}
}
//已入账的合同保证金需要划转回未入账的保证金申请时,经济业务发生日为操作当天,不可修改
if(!Ext.isEmpty(head_record.get('contract_number'))){
if(name=='ref_contract_id'){
if(Ext.isEmpty(record.get('ref_contract_id'))){
record.set('je_date', '${/model/sys_time_default_value_path/record/@now_time}');
record.getField('je_date').setReadOnly(true);
}
}
}
//if(!Ext.isEmpty(head_record.get('contract_number'))){
//if(name=='ref_contract_id'){
// if(Ext.isEmpty(record.get('ref_contract_id'))){
//record.set('je_date', '${/model/sys_time_default_value_path/record/@now_time}');
//record.getField('je_date').setReadOnly(true);
//}
//}
//}
}
......@@ -264,14 +264,14 @@
// head_record.set('current_apply_amount', total_deposit_amount);
// }
function on_csh_trx_deposit_write_off_add(ds, record, index) {
// function on_csh_trx_deposit_write_off_add(ds, record, index) {
//未入账合同进行划转时,经济业务发生日为操作当天,不可修改
var head_record = $('deposit_transfer_maintain_result_ds').getSelected()[0];
if(Ext.isEmpty(head_record.get('contract_number'))){
record.set('je_date', '${/model/sys_time_default_value_path/record/@now_time}');
record.getField('je_date').setReadOnly(true);
}
}
//var head_record = $('deposit_transfer_maintain_result_ds').getSelected()[0];
//if(Ext.isEmpty(head_record.get('contract_number'))){
// record.set('je_date', '${/model/sys_time_default_value_path/record/@now_time}');
//record.getField('je_date').setReadOnly(true);
//}
//}
function attach_win(contemp_id){
var url = $('contemp_upload_link').getUrl();
var win = new Leaf.Window({
......@@ -396,7 +396,7 @@
<a:event name="remove" handler="on_csh_trx_deposit_write_off_remove"/>
<a:event name="load" handler="on_csh_trx_deposit_write_off_load"/>
<a:event name="submitsuccess" handler="on_csh_trx_deposit_write_off_remove_success"/>
<a:event name="add" handler="on_csh_trx_deposit_write_off_add"/>
<!--<a:event name="add" handler="on_csh_trx_deposit_write_off_add"/>-->
<!-- <a:event name="afterremove" handler="csh_trx_deposit_write_off_afterremove"/>-->
</a:events>
</a:dataSet>
......
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