Commit a604da98 authored by 邓乾隆's avatar 邓乾隆

铁甲业务产品线描述校验提示修改为二手机业务

parent 0533a64a
...@@ -294,8 +294,14 @@ ...@@ -294,8 +294,14 @@
<a:record code_value="30" code_value_name="高空作业车"/> <a:record code_value="30" code_value_name="高空作业车"/>
<a:record code_value="40" code_value_name="其它"/> <a:record code_value="40" code_value_name="其它"/>
<a:record code_value="50" code_value_name="星邦高空作业车"/> <a:record code_value="50" code_value_name="星邦高空作业车"/>
<a:record code_value="90" code_value_name="租赁二手机"/> <!--<a:record code_value="90" code_value_name="租赁二手机"/>-->
<a:record code_value="90" code_value_name="租赁二手机(日立)"/>
<a:record code_value="91" code_value_name="神钢建机"/> <a:record code_value="91" code_value_name="神钢建机"/>
<a:record code_value="92" code_value_name="北京心诚"/>
<a:record code_value="99" code_value_name="工程机械"/>
<a:record code_value="80" code_value_name="叉车"/>
<!--<a:record code_value="70" code_value_name="铁甲业务"/>-->
<a:record code_value="70" code_value_name="二手机业务"/>
<a:record code_value="92" code_value_name="北京卡家"/> <a:record code_value="92" code_value_name="北京卡家"/>
</a:datas> </a:datas>
</a:dataSet> </a:dataSet>
...@@ -522,7 +528,7 @@ ...@@ -522,7 +528,7 @@
<a:comboBox bindTarget="allConditionDs" name="invoice_method_n" prompt="开票方式"/> <a:comboBox bindTarget="allConditionDs" name="invoice_method_n" prompt="开票方式"/>
<a:comboBox bindTarget="allConditionDs" name="division_n" prompt="租赁物"/> <a:comboBox bindTarget="allConditionDs" name="division_n" prompt="租赁物"/>
<a:comboBox bindTarget="allConditionDs" name="invoice_type_n" prompt="开票类型"/> <a:comboBox bindTarget="allConditionDs" name="invoice_type_n" prompt="开票类型"/>
<a:comboBox bindTarget="allConditionDs" name="rl_flag_n" prompt="是否日立返还金"/> <a:comboBox bindTarget="allConditionDs" name="rl_flag_n" prompt="是否日立为优质客户付租金"/>
</a:hBox> </a:hBox>
<a:hBox> <a:hBox>
<a:comboBox bindTarget="allConditionDs" name="billing_status_n" prompt="开票状态"/> <a:comboBox bindTarget="allConditionDs" name="billing_status_n" prompt="开票状态"/>
......
...@@ -611,7 +611,8 @@ ...@@ -611,7 +611,8 @@
if ($(ds_id).validate()) { if ($(ds_id).validate()) {
if('${/model/wfl_status/record/@mar_status}' != 'Y'){ if('${/model/wfl_status/record/@mar_status}' != 'Y'){
if(record.get('division')=='70'&&record.get('write_off_amount')<record.get('customer_margin')){ if(record.get('division')=='70'&&record.get('write_off_amount')<record.get('customer_margin')){
Leaf.showMessage('${l:PROMPT}', '铁甲业务需要保证金入账后才能起租'); // Leaf.showMessage('${l:PROMPT}', '铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}', '二手机业务需要保证金入账后才能起租');
return; return;
} }
} }
......
...@@ -202,9 +202,11 @@ ...@@ -202,9 +202,11 @@
<a:checkBox name="lease_name30" bindTarget="contract_sales_report_ds" prompt="高空作业车"/> <a:checkBox name="lease_name30" bindTarget="contract_sales_report_ds" prompt="高空作业车"/>
<a:checkBox name="lease_name50" bindTarget="contract_sales_report_ds" prompt="星邦高空作业车"/> <a:checkBox name="lease_name50" bindTarget="contract_sales_report_ds" prompt="星邦高空作业车"/>
<a:checkBox name="lease_name60" bindTarget="contract_sales_report_ds" prompt="新业务"/> <a:checkBox name="lease_name60" bindTarget="contract_sales_report_ds" prompt="新业务"/>
<a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="铁甲业务"/> <!-- <a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="铁甲业务"/>-->
<a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="二手机业务"/>
<a:checkBox name="lease_name80" bindTarget="contract_sales_report_ds" prompt="叉车"/> <a:checkBox name="lease_name80" bindTarget="contract_sales_report_ds" prompt="叉车"/>
<a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机"/> <!-- <a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机"/>-->
<a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机(日立)"/>
<a:checkBox name="lease_name40" bindTarget="contract_sales_report_ds" prompt="其它"/> <a:checkBox name="lease_name40" bindTarget="contract_sales_report_ds" prompt="其它"/>
<a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线 <a:checkBox name="lease_name91" bindTarget="contract_sales_report_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京卡家"/> <a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京卡家"/>
......
...@@ -117,7 +117,8 @@ ...@@ -117,7 +117,8 @@
} }
if(record.get('division') == '70' && ccr_document_type == 'LEASE_CHAG'){ if(record.get('division') == '70' && ccr_document_type == 'LEASE_CHAG'){
//if(record.get('division') == '70' &&(ccr_document_type == 'LEASE_CHAG' ||ccr_document_type == 'CUT_CHAG')){ //if(record.get('division') == '70' &&(ccr_document_type == 'LEASE_CHAG' ||ccr_document_type == 'CUT_CHAG')){
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!'); // Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
Leaf.showErrorMessage('${l:PROMPT}', '二手机业务无法操作此项变更!');
return; return;
} }
if((record.get('division') != '70' && record.get('division') != '92') && ccr_document_type == 'CCR_BEFORE_SIGN'){ if((record.get('division') != '70' && record.get('division') != '92') && ccr_document_type == 'CCR_BEFORE_SIGN'){
......
...@@ -200,9 +200,11 @@ ...@@ -200,9 +200,11 @@
<a:checkBox name="lease_name50" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="星邦高空作业车"/> <a:checkBox name="lease_name50" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="星邦高空作业车"/>
<a:checkBox name="lease_name60" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务"/> <a:checkBox name="lease_name60" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="新业务"/>
<a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="铁甲业务"/> <!-- <a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="铁甲业务"/>-->
<a:checkBox name="lease_name70" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="二手机业务"/>
<a:checkBox name="lease_name80" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="叉车"/> <a:checkBox name="lease_name80" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="叉车"/>
<a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机"/> <!-- <a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机"/>-->
<a:checkBox name="lease_name90" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="租赁二手机(日立)"/>
<a:checkBox name="lease_name40" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="其它"/> <a:checkBox name="lease_name40" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="其它"/>
<a:checkBox name="lease_name91" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线 <a:checkBox name="lease_name91" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="神钢建机"/>//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox name="lease_name92" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="北京卡家"/> <a:checkBox name="lease_name92" bindTarget="con_contract_cashflow_monthly_query_ds" prompt="北京卡家"/>
......
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
} }
//对铁甲和非铁甲的校验 add 18943 //对铁甲和非铁甲的校验 add 18943
if (a[i].get('division') != division) { if (a[i].get('division') != division) {
$L.showErrorMessage("提示", '铁甲业务合同和非铁甲业务合同不可同一批次申请,请确认!'); // $L.showErrorMessage("提示", '铁甲业务合同和非铁甲业务合同不可同一批次申请,请确认!');
$L.showErrorMessage("提示", '二手机业务合同和非二手机业务合同不可同一批次申请,请确认!');
return; return;
} }
//暂时去掉 //暂时去掉
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
$Author: sf $Author: sf
$Date: 2019-09-06 上午11:10:33 $Date: 2019-09-06 上午11:10:33
$Revision: 1.0 $Revision: 1.0
$Purpose: design the function of written_off money $Purpose: design the function of written_off money
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="t1.enabled_flag=&apos;Y&apos;" fetchAll="true" model="basic.csh_payment_method_for_lov" rootPath="payment_method_path"/> <a:model-query defaultWhereClause="t1.enabled_flag=&apos;Y&apos;" fetchAll="true" model="basic.csh_payment_method_for_lov" rootPath="payment_method_path"/>
<a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="currency"/> <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="currency"/>
<a:model-query defaultWhereClause="t.code = &apos;CSH511_TRANSACTION_TYPE&apos; and t.code_value in (&apos;RECEIPT&apos;,&apos;ADVANCE_RECEIPT&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="transaction_type"/> <a:model-query defaultWhereClause="t.code = &apos;CSH511_TRANSACTION_TYPE&apos; and t.code_value in (&apos;RECEIPT&apos;,&apos;ADVANCE_RECEIPT&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="transaction_type"/>
<a:model-query defaultWhereClause="t.code = &apos;CSH510_RETURN_SELECT&apos; and t.code_value not in (&apos;RETURN&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="returned_flag_rp"/> <a:model-query defaultWhereClause="t.code = &apos;CSH510_RETURN_SELECT&apos; and t.code_value not in (&apos;RETURN&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="returned_flag_rp"/>
<a:model-query defaultWhereClause="t.code = &apos;CSH510_REVERSE_SELECT&apos; and t.code_value not in (&apos;R&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="reversed_flag_rp"/> <a:model-query defaultWhereClause="t.code = &apos;CSH510_REVERSE_SELECT&apos; and t.code_value not in (&apos;R&apos;)" fetchAll="true" model="sys.sys_code_values_v" rootPath="reversed_flag_rp"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="csh_transaction_receipt_link" url="${/request/@context_path}/modules/csh/CSH511/csh_transaction_receipt.lview"/> <a:link id="csh_transaction_receipt_link" url="${/request/@context_path}/modules/csh/CSH511/csh_transaction_receipt.lview"/>
<a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/> <a:link id="sys_service_welcome_link" url="${/request/@context_path}/welcome.lview"/>
<a:link id="csh_transaction_receipt_update_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_receipt_update.lview"/> <a:link id="csh_transaction_receipt_update_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_receipt_update.lview"/>
<!-- <a:link id="csh_transaction_receipt_maintain_post_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_receipt_update.lview"/>--> <!-- <a:link id="csh_transaction_receipt_maintain_post_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_receipt_update.lview"/>-->
<a:link id="csh_transaction_receipt_maintain_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_hand_receipt_update.lview"/> <a:link id="csh_transaction_receipt_maintain_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_hand_receipt_update.lview"/>
<a:link id="csh_transaction_receipt_maintain_readonly_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_hand_receipt_update_readonly.lview"/> <a:link id="csh_transaction_receipt_maintain_readonly_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_hand_receipt_update_readonly.lview"/>
<a:link id="csh510_csh_transaction_batch_update" model="csh.CSH510.csh_transaction_delete" modelaction="batch_update"/> <a:link id="csh510_csh_transaction_batch_update" model="csh.CSH510.csh_transaction_delete" modelaction="batch_update"/>
<a:link id="csh511_csh_transaction_batch_post_link" model="csh.CSH511.csh_transaction_post" modelaction="batch_update"/> <a:link id="csh511_csh_transaction_batch_post_link" model="csh.CSH511.csh_transaction_post" modelaction="batch_update"/>
<!--更新收款单据的状态--> <!--更新收款单据的状态-->
<a:link id="csh509N_batch_update_confirmed_flag" model="csh.CSH509.query_roles_info" modelaction="batch_update"/> <a:link id="csh509N_batch_update_confirmed_flag" model="csh.CSH509.query_roles_info" modelaction="batch_update"/>
<a:link id="csh510N_csh_transaction_batch_update_confirmed_flag" model="csh.CSH510.csh_transaction_update" modelaction="batch_update"/> <a:link id="csh510N_csh_transaction_batch_update_confirmed_flag" model="csh.CSH510.csh_transaction_update" modelaction="batch_update"/>
<!-- <a:link id="csh510_csh_transaction_import_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_import.lview"/>--> <!-- <a:link id="csh510_csh_transaction_import_link" url="${/request/@context_path}/modules/csh/CSH510/csh_transaction_import.lview"/>-->
<a:link id="csh510_csh_transaction_import_link" url="${/request/@context_path}/modules/csh/CSH510N/csh_transaction_import.lview"/> <a:link id="csh510_csh_transaction_import_link" url="${/request/@context_path}/modules/csh/CSH510N/csh_transaction_import.lview"/>
<a:link id="csh_margin_check_id" url="${/request/@context_path}/modules/csh/CSH531F/csh_bank_recoi_margin_check.lview"/> <a:link id="csh_margin_check_id" url="${/request/@context_path}/modules/csh/CSH531F/csh_bank_recoi_margin_check.lview"/>
<a:link id="hls_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="hls_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(function(){ Leaf.onReady(function(){
//console.log($('csh_transaction_receipt_maintain_result_ds')); //console.log($('csh_transaction_receipt_maintain_result_ds'));
}) })
//新增单据的作废 //新增单据的作废
function csh510_csh_trx_bank_drop(){ function csh510_csh_trx_bank_drop(){
$('csh510_csh_trx_bank_drop').disable(); $('csh510_csh_trx_bank_drop').disable();
var datas = $('csh_transaction_receipt_maintain_result_ds').selected; var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
if (datas.length == 0) { if (datas.length == 0) {
$L.showMessage("提示", '请选择要作废的单据'); $L.showMessage("提示", '请选择要作废的单据');
$('csh510_csh_trx_bank_drop').enable(); $('csh510_csh_trx_bank_drop').enable();
return; return;
} }
var post_data=[]; var post_data=[];
for(var i=0;i<datas.length;i=i+1) { for(var i=0;i<datas.length;i=i+1) {
var confirmed_flag= datas[i].get('confirmed_flag'); var confirmed_flag= datas[i].get('confirmed_flag');
//不是新增就报错 //不是新增就报错
if(confirmed_flag!='NEW'&&confirmed_flag!='CT_REJECTED'){ if(confirmed_flag!='NEW'&&confirmed_flag!='CT_REJECTED'){
$L.showInfoMessage("提示", '请选择单据为新建或收款退回的数据', null, null); $L.showInfoMessage("提示", '请选择单据为新建或收款退回的数据', null, null);
return; return;
} }
//将对象封装到json对象数组 //将对象封装到json对象数组
post_data.push({ post_data.push({
'transaction_id': datas[i].get('transaction_id'), 'transaction_id': datas[i].get('transaction_id'),
//提交想改变之后的状态 //提交想改变之后的状态
'wanted_confirmed_flag': 'CANCELLED', 'wanted_confirmed_flag': 'CANCELLED',
'_status': 'update' '_status': 'update'
}); });
}; };
//弹出确认修改的提示框 //弹出确认修改的提示框
$L.showConfirm("提示",'确认执行该操作?',function(){ $L.showConfirm("提示",'确认执行该操作?',function(){
//锁屏 //锁屏
lock_current_window(); lock_current_window();
//作废单据 //作废单据
Leaf.request({ Leaf.request({
url: $('csh509N_batch_update_confirmed_flag').getUrl(), url: $('csh509N_batch_update_confirmed_flag').getUrl(),
para: post_data, para: post_data,
success: function () { success: function () {
unlock_current_window(); unlock_current_window();
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
Leaf.showMessage('${l:PROMPT}', '该单据已作废!'); Leaf.showMessage('${l:PROMPT}', '该单据已作废!');
$('csh510_csh_trx_bank_drop').enable(); $('csh510_csh_trx_bank_drop').enable();
}, failure: function () { }, failure: function () {
unlock_current_window(); unlock_current_window();
$('csh510_csh_trx_bank_drop').enable(); $('csh510_csh_trx_bank_drop').enable();
}, },
error: function () { error: function () {
unlock_current_window(); unlock_current_window();
$('csh510_csh_trx_bank_drop').enable(); $('csh510_csh_trx_bank_drop').enable();
}, },
scope: this scope: this
}); });
}) })
} }
//新增申请按钮 //新增申请按钮
function csh510_csh_trx_bank_apply_new() { function csh510_csh_trx_bank_apply_new() {
$('csh510_csh_trx_bank_apply_new').disable(); $('csh510_csh_trx_bank_apply_new').disable();
var datas = $('csh_transaction_receipt_maintain_result_ds').selected; var datas = $('csh_transaction_receipt_maintain_result_ds').selected;
//获得所选择的的未提交的单据,如果有不是未提交的数据,提示重新进行选择 //获得所选择的的未提交的单据,如果有不是未提交的数据,提示重新进行选择
if (datas.length == 0) { if (datas.length == 0) {
$L.showMessage("提示", '请至少选择一条数据'); $L.showMessage("提示", '请至少选择一条数据');
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
return; return;
} }
var post_data=[]; var post_data=[];
for(var i=0;i<datas.length;i=i+1) { for(var i=0;i<datas.length;i=i+1) {
var confirmed_flag = datas[i].get('confirmed_flag'); var confirmed_flag = datas[i].get('confirmed_flag');
var bp_name=datas[i].get('bp_name'); var bp_name=datas[i].get('bp_name');
if(bp_name==''||bp_name==undefined){ if(bp_name==''||bp_name==undefined){
$L.showInfoMessage("提示", '商业伙伴为空,不能提交', null, null); $L.showInfoMessage("提示", '商业伙伴为空,不能提交', null, null);
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
return; return;
} }
//不是新增就报错 //不是新增就报错
if (confirmed_flag != 'NEW' && confirmed_flag != 'CT_REJECTED' && confirmed_flag != 'ACCAUDITED_RECOI') { if (confirmed_flag != 'NEW' && confirmed_flag != 'CT_REJECTED' && confirmed_flag != 'ACCAUDITED_RECOI') {
$L.showInfoMessage("提示", '请选择单据为新建、收款确认反冲、收款退回的数据', null, null); $L.showInfoMessage("提示", '请选择单据为新建、收款确认反冲、收款退回的数据', null, null);
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
return; return;
} }
//将对象封装到json对象数组 //将对象封装到json对象数组
post_data.push({ post_data.push({
'transaction_id': datas[i].get('transaction_id'), 'transaction_id': datas[i].get('transaction_id'),
'_status': 'update' '_status': 'update'
}); });
} }
//弹出确认修改的提示框 //弹出确认修改的提示框
$L.showConfirm("提示", '确认执行该操作?', function () { $L.showConfirm("提示", '确认执行该操作?', function () {
//锁屏 //锁屏
lock_current_window(); lock_current_window();
//改变未提交单据数据的状态 //改变未提交单据数据的状态
Leaf.request({ Leaf.request({
url: $('csh510N_csh_transaction_batch_update_confirmed_flag').getUrl(), url: $('csh510N_csh_transaction_batch_update_confirmed_flag').getUrl(),
para: post_data, para: post_data,
success: function () { success: function () {
unlock_current_window(); unlock_current_window();
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
Leaf.showMessage('${l:PROMPT}', '提交成功!'); Leaf.showMessage('${l:PROMPT}', '提交成功!');
//启用按钮 //启用按钮
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
}, failure: function () { }, failure: function () {
//启用按钮 //启用按钮
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
unlock_current_window(); unlock_current_window();
}, },
error: function () { error: function () {
//启用按钮 //启用按钮
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
unlock_current_window(); unlock_current_window();
}, },
scope: this scope: this
}); });
},function(){ },function(){
$('csh510_csh_trx_bank_apply_new').enable(); $('csh510_csh_trx_bank_apply_new').enable();
}); });
} }
//跳转到收款新增页面 //跳转到收款新增页面
function csh510_csh_trx_bank_hand_add(){ function csh510_csh_trx_bank_hand_add(){
//按钮失效 //按钮失效
$('csh510_csh_trx_bank_hand_add').disable(); $('csh510_csh_trx_bank_hand_add').disable();
var url = $('csh_transaction_receipt_link').getUrl(); var url = $('csh_transaction_receipt_link').getUrl();
var win = new Leaf.Window({ var win = new Leaf.Window({
title:'${l:CSH510.NEW_MANUAL_RECEIPT}', title:'${l:CSH510.NEW_MANUAL_RECEIPT}',
url: url, url: url,
id: 'csh_trx_receipt_id', id: 'csh_trx_receipt_id',
fullScreen: true, fullScreen: true,
draggable: true draggable: true
}).on('close', function() { }).on('close', function() {
//按钮启用 //按钮启用
$('csh510_csh_trx_bank_hand_add').enable(); $('csh510_csh_trx_bank_hand_add').enable();
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
}); });
} }
//锁表 //锁表
function lock_current_window() { function lock_current_window() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
} }
//解锁 //解锁
function unlock_current_window() { function unlock_current_window() {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
} }
function dateValidator(record, name, value) { //日期校验方法 function dateValidator(record, name, value) { //日期校验方法
if (name == 'transaction_date_from' || name == 'transaction_date_to') { if (name == 'transaction_date_from' || name == 'transaction_date_to') {
var start_date = Leaf.formatDate(record.get('transaction_date_from')); var start_date = Leaf.formatDate(record.get('transaction_date_from'));
var end_date = Leaf.formatDate(record.get('transaction_date_to')); var end_date = Leaf.formatDate(record.get('transaction_date_to'));
if (!!end_date) { //由于结束日期非必填,只有在结束日期填了才进行比较 if (!!end_date) { //由于结束日期非必填,只有在结束日期填了才进行比较
if (!compareDate(start_date, end_date)) { if (!compareDate(start_date, end_date)) {
return '${l:CSH510.CSH_RECEIPT_DATE_CHECK}'; //校验不通过返回字符串 return '${l:CSH510.CSH_RECEIPT_DATE_CHECK}'; //校验不通过返回字符串
} }
} }
return true; //校验通过返回true return true; //校验通过返回true
} }
} }
function compareDate(start, end) { function compareDate(start, end) {
if (start > end) { if (start > end) {
return false; return false;
} }
return true; return true;
} }
function csh510_receipt_query() { function csh510_receipt_query() {
var record = $('csh_transaction_receipt_maintain_query_ds').getAt(0); var record = $('csh_transaction_receipt_maintain_query_ds').getAt(0);
var dirty_flag = 'N'; var dirty_flag = 'N';
for (var name in record.data) { for (var name in record.data) {
var value = record.get(name); var value = record.get(name);
if (value != 'undefined' && value != null && value != '') { if (value != 'undefined' && value != null && value != '') {
dirty_flag = 'Y'; dirty_flag = 'Y';
} }
} }
if (dirty_flag == 'N') { if (dirty_flag == 'N') {
Leaf.showConfirm('${l:PROMPT}', '${l:CSH510.CSH_RECEIPT_QUERY_INFORMATION}', function () { Leaf.showConfirm('${l:PROMPT}', '${l:CSH510.CSH_RECEIPT_QUERY_INFORMATION}', function () {
return; return;
}, function () { }, function () {
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
}, null, null); }, null, null);
} else { } else {
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
} }
} }
function csh510_receipt_reset() { function csh510_receipt_reset() {
$('csh_transaction_receipt_maintain_query_ds').reset(); $('csh_transaction_receipt_maintain_query_ds').reset();
} }
function csh510_receipt_back() { function csh510_receipt_back() {
history.go(-1); history.go(-1);
} }
function csh510_receipt_forward() { function csh510_receipt_forward() {
history.go(1); history.go(1);
} }
function csh510_receipt_quit() { function csh510_receipt_quit() {
location.href = $('sys_service_welcome_link').getUrl(); location.href = $('sys_service_welcome_link').getUrl();
parent.shMenu('show'); parent.shMenu('show');
} }
function seedetail_transaction_num(value, record, name) { function seedetail_transaction_num(value, record, name) {
/* console.log(record.get('receipt_type')); /* console.log(record.get('receipt_type'));
console.log( record.get('bp_name')); console.log( record.get('bp_name'));
console.log( record.get('confirmed_flag'));*/ console.log( record.get('confirmed_flag'));*/
if (record.get('transaction_id')) { if (record.get('transaction_id')) {
var url; var url;
/*if (record.get('posted_flag') == 'N') { /*if (record.get('posted_flag') == 'N') {
url = $('csh_transaction_receipt_maintain_post_link').getUrl() + '?transaction_id=' + record.get('transaction_id'); url = $('csh_transaction_receipt_maintain_post_link').getUrl() + '?transaction_id=' + record.get('transaction_id');
} /!*else*!/ else if (record.get('posted_flag') == 'Y') { } /!*else*!/ else if (record.get('posted_flag') == 'Y') {
url = $('csh_transaction_receipt_update_link').getUrl() + '?transaction_id=' + record.get('transaction_id'); url = $('csh_transaction_receipt_update_link').getUrl() + '?transaction_id=' + record.get('transaction_id');
} else { } else {
return value; return value;
}*/ }*/
if(record.get('confirmed_flag')=='NEW' || record.get('confirmed_flag') == 'CT_REJECTED' || record.get('confirmed_flag')=='ACCAUDITED_RECOI'){ if(record.get('confirmed_flag')=='NEW' || record.get('confirmed_flag') == 'CT_REJECTED' || record.get('confirmed_flag')=='ACCAUDITED_RECOI'){
url = $('csh_transaction_receipt_maintain_link').getUrl() + '?transaction_id=' + record.get('transaction_id')+'&update_flag=true'+'&import_source='+ record.get('import_source'); url = $('csh_transaction_receipt_maintain_link').getUrl() + '?transaction_id=' + record.get('transaction_id')+'&update_flag=true'+'&import_source='+ record.get('import_source');
}else{ }else{
url = $('csh_transaction_receipt_maintain_readonly_link').getUrl() + '?transaction_id=' + record.get('transaction_id')+'&update_flag=false'; url = $('csh_transaction_receipt_maintain_readonly_link').getUrl() + '?transaction_id=' + record.get('transaction_id')+'&update_flag=false';
} }
return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>'; return '<a href="javascript:openWindow(\'' + url + '\');">' + value + '</a>';
} }
} }
function openWindow(url) { function openWindow(url) {
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'csh_transaction_receipt_link_winid', id: 'csh_transaction_receipt_link_winid',
params: { params: {
winId: 'csh_transaction_receipt_link_winid' winId: 'csh_transaction_receipt_link_winid'
}, },
url: url, url: url,
title: '${l:CSH510.CSH_RECEIPT_UPDATE}', title: '${l:CSH510.CSH_RECEIPT_UPDATE}',
fullScreen: true fullScreen: true
}); });
win.on('close',function(){ win.on('close',function(){
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
}); });
} }
function construct_from_to() { function construct_from_to() {
var config = ['transaction_num', 'bank_slip_num', 'transaction_amount', 'currency_code', 'bank_account_code']; var config = ['transaction_num', 'bank_slip_num', 'transaction_amount', 'currency_code', 'bank_account_code'];
var pattern = ['_from', '_to']; var pattern = ['_from', '_to'];
var obj = {}; var obj = {};
for (var i = 0, for (var i = 0,
j = config.length; i < j; i++) { j = config.length; i < j; i++) {
for (var m = 0, for (var m = 0,
n = pattern.length; m < n; m++) { n = pattern.length; m < n; m++) {
obj[config[i] + pattern[m]] = config[i] + pattern[n - 1 - m]; obj[config[i] + pattern[m]] = config[i] + pattern[n - 1 - m];
} }
} }
return obj; return obj;
} }
function csh510_receipt_maintain_update(ds, record, name, value, oldvalue) { function csh510_receipt_maintain_update(ds, record, name, value, oldvalue) {
var from_to = construct_from_to(); var from_to = construct_from_to();
var opposite_name = from_to[name]; var opposite_name = from_to[name];
if (!Ext.isEmpty(opposite_name)) { if (!Ext.isEmpty(opposite_name)) {
var opposite_value = record.get(opposite_name); var opposite_value = record.get(opposite_name);
if (!Ext.isEmpty(value) && Ext.isEmpty(opposite_value)) { if (!Ext.isEmpty(value) && Ext.isEmpty(opposite_value)) {
record.set(opposite_name, value); record.set(opposite_name, value);
} }
} }
} }
function csh510_receipt_remove() { function csh510_receipt_remove() {
var records = $('csh_transaction_receipt_maintain_result_ds').getSelected(); var records = $('csh_transaction_receipt_maintain_result_ds').getSelected();
if (!records.length) { if (!records.length) {
Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.SELECT_RECORD}'); Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.SELECT_RECORD}');
return; return;
} }
var saveData = []; var saveData = [];
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
if(records[i].get('confirmed_flag') != 'NEW' && records[i].get('confirmed_flag') != 'CT_REJECTED'){ if(records[i].get('confirmed_flag') != 'NEW' && records[i].get('confirmed_flag') != 'CT_REJECTED'){
Leaf.showInfoMessage("提示","请选择新建或者收款退回的单据进行收款取消操作!"); Leaf.showInfoMessage("提示","请选择新建或者收款退回的单据进行收款取消操作!");
return; return;
} }
records[i].set('_status', 'delete'); records[i].set('_status', 'delete');
saveData.push(records[i].data); saveData.push(records[i].data);
} }
Leaf.showConfirm('${l:PROMPT}', '${l:HLS.DELETE_CONFIRM}', function () { Leaf.showConfirm('${l:PROMPT}', '${l:HLS.DELETE_CONFIRM}', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.DELETING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.DELETING}');
Leaf.request({ Leaf.request({
url: '${/request/@context_path}/autocrud/csh.CSH510.csh_transaction_delete/batch_update', url: '${/request/@context_path}/autocrud/csh.CSH510.csh_transaction_delete/batch_update',
para: saveData, para: saveData,
success: function () { success: function () {
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}', msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000 duration: 2000
}); });
csh510_delete_remove(records); csh510_delete_remove(records);
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
failure: function () { failure: function () {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
error: function () { error: function () {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
scope: this scope: this
}); });
}, function () { }, function () {
return; return;
}, null, null); }, null, null);
} }
function csh510_delete_remove(records) { function csh510_delete_remove(records) {
while (records[0]) { while (records[0]) {
$('csh_transaction_receipt_maintain_result_ds').removeLocal(records[0]); $('csh_transaction_receipt_maintain_result_ds').removeLocal(records[0]);
} }
} }
function csh510_receipt() { function csh510_receipt() {
Leaf.showConfirm('${l:PROMPT}', '非财务人员请勿操作!', function () { Leaf.showConfirm('${l:PROMPT}', '非财务人员请勿操作!', function () {
var records = $('csh_transaction_receipt_maintain_result_ds').getSelected(); var records = $('csh_transaction_receipt_maintain_result_ds').getSelected();
if (records.length != 1) { if (records.length != 1) {
Leaf.showMessage('${l:PROMPT}', '请选择1条数据!'); Leaf.showMessage('${l:PROMPT}', '请选择1条数据!');
return; return;
} }
if (records[0].get('transaction_id')) { if (records[0].get('transaction_id')) {
var url; var url;
if (records[0].get('posted_flag') == 'N') { if (records[0].get('posted_flag') == 'N') {
url = $('csh_transaction_receipt_maintain_post_link').getUrl() + '?transaction_id=' + records[0].get('transaction_id') + '&claim=F'; url = $('csh_transaction_receipt_maintain_post_link').getUrl() + '?transaction_id=' + records[0].get('transaction_id') + '&claim=F';
} else { } else {
Leaf.showMessage('${l:PROMPT}', '该单据已经被认领,无需再次认领!'); Leaf.showMessage('${l:PROMPT}', '该单据已经被认领,无需再次认领!');
return; return;
} }
openWindow(url); openWindow(url);
} }
}); });
} }
function csh510_batch_update() { function csh510_batch_update() {
var ds_id = 'csh_transaction_receipt_maintain_result_ds'; var ds_id = 'csh_transaction_receipt_maintain_result_ds';
var ds = $(ds_id) var ds = $(ds_id)
var records = ds.getSelected(); var records = ds.getSelected();
if (records.length < 1) { if (records.length < 1) {
Leaf.showMessage('${l:PROMPT}', '请至少选择一条要处理的单据'); Leaf.showMessage('${l:PROMPT}', '请至少选择一条要处理的单据');
return; return;
} }
var auto_write_record = $('csh510_collection_classes_batch_update_ds').getAt(0); var auto_write_record = $('csh510_collection_classes_batch_update_ds').getAt(0);
var collection_classes = auto_write_record.get('collection_classes'); var collection_classes = auto_write_record.get('collection_classes');
if (collection_classes) { if (collection_classes) {
lock_current_window(); lock_current_window();
var post_data = []; var post_data = [];
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
if (records[i].get('write_off_flag') == 'FULL') { if (records[i].get('write_off_flag') == 'FULL') {
Leaf.showMessage('${l:PROMPT}', '选择数据中包含已完全核销的数据'); Leaf.showMessage('${l:PROMPT}', '选择数据中包含已完全核销的数据');
return; return;
} }
post_data.push({ post_data.push({
'transaction_id': records[i].get('transaction_id'), 'transaction_id': records[i].get('transaction_id'),
'collection_classes': auto_write_record.get('collection_classes'), 'collection_classes': auto_write_record.get('collection_classes'),
'_status': 'update' '_status': 'update'
}); });
} }
Leaf.request({ Leaf.request({
url: $('csh510_csh_transaction_batch_update').getUrl(), url: $('csh510_csh_transaction_batch_update').getUrl(),
para: post_data, para: post_data,
success: function () { success: function () {
unlock_current_window(); unlock_current_window();
ds.query(ds.currentpage); ds.query(ds.currentpage);
Leaf.showMessage('${l:PROMPT}', '修改成功!'); Leaf.showMessage('${l:PROMPT}', '修改成功!');
}, failure: function () { }, failure: function () {
unlock_current_window(); unlock_current_window();
}, },
error: function () { error: function () {
unlock_current_window(); unlock_current_window();
}, },
scope: this scope: this
}); });
} }
} }
function csh510_csh_transaction_batch_update(){ function csh510_csh_transaction_batch_update(){
// //
var records = $('csh_transaction_receipt_maintain_result_ds').getSelected(); var records = $('csh_transaction_receipt_maintain_result_ds').getSelected();
if (records.length == 0) { if (records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '请选择一条记录!'); Leaf.showMessage('${l:PROMPT}', '请选择一条记录!');
return; return;
} }
var post_data = []; var post_data = [];
for (var i = 0; i < records.length; i++) { for (var i = 0; i < records.length; i++) {
post_data.push({ post_data.push({
'transaction_id': records[i].get('transaction_id'), 'transaction_id': records[i].get('transaction_id'),
'_status': 'update' '_status': 'update'
}); });
} }
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({ Leaf.request({
url: $('csh511_csh_transaction_batch_post_link').getUrl(), url: $('csh511_csh_transaction_batch_post_link').getUrl(),
para: post_data, para: post_data,
success: function (res) { success: function (res) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.SUBMIT_SUCCESS}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.SUBMIT_SUCCESS}');
csh510_receipt_query(); csh510_receipt_query();
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
failure: function() { failure: function() {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
error: function() { error: function() {
Leaf.Masker.unmask(Ext.getBody()); Leaf.Masker.unmask(Ext.getBody());
}, },
scope: this scope: this
}); });
} }
function csh510_csh_trx_bank_import(){ function csh510_csh_trx_bank_import(){
//按钮失效 //按钮失效
$('csh510_csh_trx_bank_import').disable(); $('csh510_csh_trx_bank_import').disable();
//只有债权内勤才能 //只有债权内勤才能
var url_l = $('csh510_csh_transaction_import_link').getUrl(); var url_l = $('csh510_csh_transaction_import_link').getUrl();
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'csh510_csh_transaction_import_win', id: 'csh510_csh_transaction_import_win',
url: url_l, url: url_l,
params: { params: {
'winid': 'csh510_csh_transaction_import_win', 'winid': 'csh510_csh_transaction_import_win',
'session_id': '${/session/@session_id}', 'session_id': '${/session/@session_id}',
'parent_ds_id': 'csh_transaction_receipt_maintain_result_ds' 'parent_ds_id': 'csh_transaction_receipt_maintain_result_ds'
}, },
title: '信息导入', title: '信息导入',
width: 430, width: 430,
height: 390 height: 390
}); });
win.on('close', function () { win.on('close', function () {
$('csh_transaction_receipt_maintain_result_ds').query(); $('csh_transaction_receipt_maintain_result_ds').query();
//按钮启用 //按钮启用
$('csh510_csh_trx_bank_import').enable(); $('csh510_csh_trx_bank_import').enable();
}); });
} }
function csh510_export() { function csh510_export() {
$('csh_transaction_receipt_maintain_grid_ds')._export(null,'收款维护'); $('csh_transaction_receipt_maintain_grid_ds')._export(null,'收款维护');
} }
function csh531_margin_check() { function csh531_margin_check() {
var param={}; var param={};
param['function_code']= 'CSH531F3'; param['function_code']= 'CSH531F3';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
param['url_title']='控制茂甲保证金校验'; // param['url_title']='控制茂甲保证金校验';
hls_doc_get_layout_code('hls_get_layout_code_link_id',param,'csh_margin_check_id'); param['url_title']='控制二手机业务保证金校验';
} hls_doc_get_layout_code('hls_get_layout_code_link_id',param,'csh_margin_check_id');
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> ]]></script>
<a:dataSets> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:dataSet id="confirmed_flag_ds"> <a:dataSets>
<a:datas> <a:dataSet id="confirmed_flag_ds">
<a:record code_value="NEW" code_value_name="新建"/> <a:datas>
<a:record code_value="ACCAUDITING" code_value_name="收款确认中"/> <a:record code_value="NEW" code_value_name="新建"/>
<a:record code_value="CT_REJECTED" code_value_name="收款退回"/> <a:record code_value="ACCAUDITING" code_value_name="收款确认中"/>
<a:record code_value="ACCAUDITED" code_value_name="收款已确认"/> <a:record code_value="CT_REJECTED" code_value_name="收款退回"/>
<a:record code_value="ACCAUDITED_RECOI" code_value_name="收款确认反冲"/> <a:record code_value="ACCAUDITED" code_value_name="收款已确认"/>
<a:record code_value="ACCAUDITED_RECOI" code_value_name="收款确认反冲"/>
</a:datas>
</a:dataSet> </a:datas>
<a:dataSet id="bp_category_ds" lookupCode="BP_CATEGORY"> </a:dataSet>
</a:dataSet> <a:dataSet id="bp_category_ds" lookupCode="BP_CATEGORY">
<a:dataSet id="import_source_ds" lookupCode="CSH510_IMPORT_SOURCE"/> </a:dataSet>
<!-- <a:dataSet id="confirmed_flag_ds" lookupCode="CONFIRMED_FLAG">--> <a:dataSet id="import_source_ds" lookupCode="CSH510_IMPORT_SOURCE"/>
<!-- </a:dataSet>--> <!-- <a:dataSet id="confirmed_flag_ds" lookupCode="CONFIRMED_FLAG">-->
<a:dataSet id="payment_method_ds"> <!-- </a:dataSet>-->
<a:datas dataSource="/model/payment_method_path"/> <a:dataSet id="payment_method_ds">
</a:dataSet> <a:datas dataSource="/model/payment_method_path"/>
<a:dataSet id="receipt_type_ds" lookupCode="RECEIPT_TYPE"/> </a:dataSet>
<a:dataSet id="currency_ds"> <a:dataSet id="receipt_type_ds" lookupCode="RECEIPT_TYPE"/>
<a:datas dataSource="/model/currency"/> <a:dataSet id="currency_ds">
</a:dataSet> <a:datas dataSource="/model/currency"/>
<a:dataSet id="transaction_type_ds"> </a:dataSet>
<a:datas dataSource="/model/transaction_type"/> <a:dataSet id="transaction_type_ds">
</a:dataSet> <a:datas dataSource="/model/transaction_type"/>
<!-- <a:dataSet id="transaction_type_ds" lookupCode="CSH511_TRANSACTION_TYPE"/> --> </a:dataSet>
<a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/> <!-- <a:dataSet id="transaction_type_ds" lookupCode="CSH511_TRANSACTION_TYPE"/> -->
<!-- 去掉退款事务 --> <a:dataSet id="posted_flag_ds" lookupCode="CSH510_POST_SELECT"/>
<a:dataSet id="returned_flag_ds"> <!-- 去掉退款事务 -->
<a:datas dataSource="/model/returned_flag_rp"/> <a:dataSet id="returned_flag_ds">
</a:dataSet> <a:datas dataSource="/model/returned_flag_rp"/>
<!-- 去掉反冲事务 --> </a:dataSet>
<a:dataSet id="reversed_flag_ds"> <!-- 去掉反冲事务 -->
<a:datas dataSource="/model/reversed_flag_rp"/> <a:dataSet id="reversed_flag_ds">
</a:dataSet> <a:datas dataSource="/model/reversed_flag_rp"/>
<a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/> </a:dataSet>
<a:dataSet id="csh510_collection_classes_batch_update_ds"> <a:dataSet id="ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/>
<a:fields> <a:dataSet id="csh510_collection_classes_batch_update_ds">
<a:field name="collection_classes_desc" options="ds_collection_classes_ds" displayField="code_value_name" returnField="collection_classes" valueField="code_value"/> <a:fields>
<a:field name="collection_classes_desc" options="ds_collection_classes_ds" displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
</a:fields>
</a:dataSet> </a:fields>
<a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true"> </a:dataSet>
<a:fields> <a:dataSet id="csh_transaction_receipt_maintain_query_ds" autoCreate="true">
<a:fields>
<a:field name="bank_account_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE">
<a:mapping> <a:field name="bank_account_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="precision" to="precision"/> <a:mapping>
<a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/> <a:map from="precision" to="precision"/>
<a:map from="bank_account_id" to="bank_account_id"/> <a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/>
<a:map from="bank_account_num" to="bank_account_num"/> <a:map from="bank_account_id" to="bank_account_id"/>
<a:map from="bank_account_name" to="bank_account_name"/> <a:map from="bank_account_num" to="bank_account_num"/>
<a:map from="bank_account_code" to="bank_account_code"/> <a:map from="bank_account_name" to="bank_account_name"/>
<a:map from="currency_code" to="currency_code"/> <a:map from="bank_account_code" to="bank_account_code"/>
<a:map from="currency_name" to="currency_name"/> <a:map from="currency_code" to="currency_code"/>
<a:map from="bank_account_type" to="bank_account_type"/> <a:map from="currency_name" to="currency_name"/>
<a:map from="bank_account_type_name" to="bank_account_type_name"/> <a:map from="bank_account_type" to="bank_account_type"/>
<a:map from="bank_branch_name" to="bank_branch_name"/> <a:map from="bank_account_type_name" to="bank_account_type_name"/>
</a:mapping> <a:map from="bank_branch_name" to="bank_branch_name"/>
</a:field> </a:mapping>
<a:field name="bank_branch_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE"> </a:field>
<a:mapping> <a:field name="bank_branch_name" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="precision" to="precision"/> <a:mapping>
<a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/> <a:map from="precision" to="precision"/>
<a:map from="bank_account_id" to="bank_account_id"/> <a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/>
<a:map from="bank_account_num" to="bank_account_num"/> <a:map from="bank_account_id" to="bank_account_id"/>
<a:map from="bank_account_name" to="bank_account_name"/> <a:map from="bank_account_num" to="bank_account_num"/>
<a:map from="bank_account_code" to="bank_account_code"/> <a:map from="bank_account_name" to="bank_account_name"/>
<a:map from="currency_code" to="currency_code"/> <a:map from="bank_account_code" to="bank_account_code"/>
<a:map from="currency_name" to="currency_name"/> <a:map from="currency_code" to="currency_code"/>
<a:map from="bank_account_type" to="bank_account_type"/> <a:map from="currency_name" to="currency_name"/>
<a:map from="bank_account_type_name" to="bank_account_type_name"/> <a:map from="bank_account_type" to="bank_account_type"/>
<a:map from="bank_branch_name" to="bank_branch_name"/> <a:map from="bank_account_type_name" to="bank_account_type_name"/>
</a:mapping> <a:map from="bank_branch_name" to="bank_branch_name"/>
</a:field> </a:mapping>
<a:field name="bank_account_num" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE"> </a:field>
<a:mapping> <a:field name="bank_account_num" autoComplete="true" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="850" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="precision" to="precision"/> <a:mapping>
<a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/> <a:map from="precision" to="precision"/>
<a:map from="bank_account_id" to="bank_account_id"/> <a:map from="zero_amounts_allowed" to="zero_amounts_allowed"/>
<a:map from="bank_account_num" to="bank_account_num"/> <a:map from="bank_account_id" to="bank_account_id"/>
<a:map from="bank_account_name" to="bank_account_name"/> <a:map from="bank_account_num" to="bank_account_num"/>
<a:map from="bank_account_code" to="bank_account_code"/> <a:map from="bank_account_name" to="bank_account_name"/>
<a:map from="currency_code" to="currency_code"/> <a:map from="bank_account_code" to="bank_account_code"/>
<a:map from="currency_name" to="currency_name"/> <a:map from="currency_code" to="currency_code"/>
<a:map from="bank_account_type" to="bank_account_type"/> <a:map from="currency_name" to="currency_name"/>
<a:map from="bank_account_type_name" to="bank_account_type_name"/> <a:map from="bank_account_type" to="bank_account_type"/>
<a:map from="bank_branch_name" to="bank_branch_name"/> <a:map from="bank_account_type_name" to="bank_account_type_name"/>
</a:mapping> <a:map from="bank_branch_name" to="bank_branch_name"/>
</a:field> </a:mapping>
<a:field name="confirmed_flag_desc" options="confirmed_flag_ds" valueField="code_value" displayField="code_value_name" returnField="confirmed_flag"/> </a:field>
<a:field name="payment_method_display" displayField="description" options="payment_method_ds" returnField="payment_method_id" valueField="payment_method_id"/> <a:field name="confirmed_flag_desc" options="confirmed_flag_ds" valueField="code_value" displayField="code_value_name" returnField="confirmed_flag"/>
<a:field name="bp_name_from" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE"> <a:field name="payment_method_display" displayField="description" options="payment_method_ds" returnField="payment_method_id" valueField="payment_method_id"/>
<a:mapping> <a:field name="bp_name_from" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE">
<a:map from="bp_id" to="bp_id_from"/> <a:mapping>
<a:map from="bp_name" to="bp_name_from"/> <a:map from="bp_id" to="bp_id_from"/>
</a:mapping> <a:map from="bp_name" to="bp_name_from"/>
</a:field> </a:mapping>
<a:field name="bp_id_from"/> </a:field>
<a:field name="bp_name_to" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE"> <a:field name="bp_id_from"/>
<a:mapping> <a:field name="bp_name_to" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE">
<a:map from="bp_id" to="bp_id_to"/> <a:mapping>
<a:map from="bp_name" to="bp_name_to"/> <a:map from="bp_id" to="bp_id_to"/>
</a:mapping> <a:map from="bp_name" to="bp_name_to"/>
</a:field> </a:mapping>
<a:field name="bp_id_to"/> </a:field>
<a:field name="transaction_num_from"/> <a:field name="bp_id_to"/>
<a:field name="transaction_num_to"/> <a:field name="transaction_num_from"/>
<a:field name="transaction_num"/> <a:field name="transaction_num_to"/>
<a:field name="bank_slip_num_from"/> <a:field name="transaction_num"/>
<a:field name="bank_slip_num_to"/> <a:field name="bank_slip_num_from"/>
<a:field name="transaction_date_from" validator="dateValidator"/> <a:field name="bank_slip_num_to"/>
<a:field name="transaction_date_to" validator="dateValidator"/> <a:field name="transaction_date_from" validator="dateValidator"/>
<a:field name="bank_account_code" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE"> <a:field name="transaction_date_to" validator="dateValidator"/>
<a:mapping> <a:field name="bank_account_code" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="bank_account_code" to="bank_account_code"/> <a:mapping>
</a:mapping> <a:map from="bank_account_code" to="bank_account_code"/>
</a:field> </a:mapping>
<a:field name="bank_account_code_from" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE"> </a:field>
<a:mapping> <a:field name="bank_account_code_from" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="bank_account_code" to="bank_account_code_from"/> <a:mapping>
</a:mapping> <a:map from="bank_account_code" to="bank_account_code_from"/>
</a:field> </a:mapping>
<a:field name="bank_account_from_id"/> </a:field>
<a:field name="bank_account_code_to" autoComplete="true" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE"> <a:field name="bank_account_from_id"/>
<a:mapping> <a:field name="bank_account_code_to" autoComplete="true" autoCompleteField="bank_account_num" lovGridHeight="350" lovHeight="550" lovLabelWidth="90" lovService="csh.CSH101.csh_bank_account_lov" lovWidth="580" title="CSH511.BANK_ACCOUNT_CODE">
<a:map from="bank_account_code" to="bank_account_code_to"/> <a:mapping>
</a:mapping> <a:map from="bank_account_code" to="bank_account_code_to"/>
</a:field> </a:mapping>
<a:field name="transaction_amount_from"/> </a:field>
<a:field name="transaction_amount_to"/> <a:field name="transaction_amount_from"/>
<a:field name="posted_flag_display" displayField="code_value_name" options="posted_flag_ds" returnField="posted_flag" valueField="code_value"/> <a:field name="transaction_amount_to"/>
<!-- <a:field name="posted_flag" defaultValue="N"/>--> <a:field name="posted_flag_display" displayField="code_value_name" options="posted_flag_ds" returnField="posted_flag" valueField="code_value"/>
<a:field name="returned_flag_display" displayField="code_value_name" options="returned_flag_ds" returnField="returned_flag" valueField="code_value"/> <!-- <a:field name="posted_flag" defaultValue="N"/>-->
<a:field name="reversed_flag_display" displayField="code_value_name" options="reversed_flag_ds" returnField="reversed_flag" valueField="code_value"/> <a:field name="returned_flag_display" displayField="code_value_name" options="returned_flag_ds" returnField="returned_flag" valueField="code_value"/>
<a:field name="period_name" lovGridHeight="300" lovHeight="500" lovService="gld.gld_period_lov" lovWidth="500" title="GLD_PERIODS.PERIOD_NAME"> <a:field name="reversed_flag_display" displayField="code_value_name" options="reversed_flag_ds" returnField="reversed_flag" valueField="code_value"/>
<a:mapping> <a:field name="period_name" lovGridHeight="300" lovHeight="500" lovService="gld.gld_period_lov" lovWidth="500" title="GLD_PERIODS.PERIOD_NAME">
<a:map from="period_name" to="period_name"/> <a:mapping>
</a:mapping> <a:map from="period_name" to="period_name"/>
</a:field> </a:mapping>
<a:field name="user_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_for_lov" lovWidth="500" prompt="AUT_TRX_USER_AUTHORIZE.USER_ID" title="员工选择"> </a:field>
<a:mapping> <a:field name="user_desc" autoComplete="true" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_for_lov" lovWidth="500" prompt="AUT_TRX_USER_AUTHORIZE.USER_ID" title="员工选择">
<a:map from="description" to="user_desc"/> <a:mapping>
<a:map from="user_id" to="user_id"/> <a:map from="description" to="user_desc"/>
</a:mapping> <a:map from="user_id" to="user_id"/>
</a:field> </a:mapping>
<a:field name="transaction_type_display" displayField="code_value_name" options="transaction_type_ds" returnField="transaction_type" valueField="code_value"/> </a:field>
<a:field name="currency_name_from_display" displayField="currency_name" options="currency_ds" returnField="currency_code_from" valueField="currency_code"/> <a:field name="transaction_type_display" displayField="code_value_name" options="transaction_type_ds" returnField="transaction_type" valueField="code_value"/>
<a:field name="currency_code_from"/> <a:field name="currency_name_from_display" displayField="currency_name" options="currency_ds" returnField="currency_code_from" valueField="currency_code"/>
<a:field name="currency_name_to_display" displayField="currency_name" options="currency_ds" returnField="currency_code_to" valueField="currency_code"/> <a:field name="currency_code_from"/>
<a:field name="currency_code_to"/> <a:field name="currency_name_to_display" displayField="currency_name" options="currency_ds" returnField="currency_code_to" valueField="currency_code"/>
<a:field name="confirmed" defaultValue="N"/> <a:field name="currency_code_to"/>
<!-- <a:field name="transaction_type" defaultValue="RECEIPT"/>--> <a:field name="confirmed" defaultValue="N"/>
<a:field name="transaction_category" defaultValue="BUSINESS"/> <!-- <a:field name="transaction_type" defaultValue="RECEIPT"/>-->
<!-- <a:field name="write_off_flag_desc" displayField="code_value_name" options="write_off_flag_ds" returnField="write_off_flag" valueField="code_value"/>--> <a:field name="transaction_category" defaultValue="BUSINESS"/>
<a:field name="not_reversed_flag_r" defaultValue="NOT"/> <!-- <a:field name="write_off_flag_desc" displayField="code_value_name" options="write_off_flag_ds" returnField="write_off_flag" valueField="code_value"/>-->
<a:field name="receipt_type"/> <a:field name="not_reversed_flag_r" defaultValue="NOT"/>
<a:field name="receipt_type_des" displayField="code_value_name" options="receipt_type_ds" returnField="receipt_type" valueField="code_value"/> <a:field name="receipt_type"/>
<a:field name="description"/> <a:field name="receipt_type_des" displayField="code_value_name" options="receipt_type_ds" returnField="receipt_type" valueField="code_value"/>
<a:field name="bp_name" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE"> <a:field name="description"/>
<a:mapping> <a:field name="bp_name" lovGridHeight="350" lovHeight="500" lovService="basic.hls_bp_master_v_for_lov" lovWidth="500" title="HLS.BP_TITLE">
<a:map from="bp_id" to="bp_id"/> <a:mapping>
<a:map from="bp_name" to="bp_name"/> <a:map from="bp_id" to="bp_id"/>
</a:mapping> <a:map from="bp_name" to="bp_name"/>
</a:field> </a:mapping>
</a:field>
<a:field name="collection_classes_n" options="ds_collection_classes_ds" displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
<!--对方账户的--> <a:field name="collection_classes_n" options="ds_collection_classes_ds" displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
<a:field name="bp_bank_account_name" lovGridHeight="350" lovHeight="550" lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息"> <!--对方账户的-->
<a:mapping> <a:field name="bp_bank_account_name" lovGridHeight="350" lovHeight="550" lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息">
<a:map from="bp_bank_account_name" to="bp_bank_account_name"/> <a:mapping>
<a:map from="opposite_band_na" to="opposite_band_na"/> <a:map from="bp_bank_account_name" to="bp_bank_account_name"/>
<a:map from="bp_bank_account_num" to="bp_bank_account_num"/> <a:map from="opposite_band_na" to="opposite_band_na"/>
</a:mapping> <a:map from="bp_bank_account_num" to="bp_bank_account_num"/>
</a:field> </a:mapping>
<a:field name="opposite_band_na" lovGridHeight="350" lovHeight="550" lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息"> </a:field>
<a:mapping> <a:field name="opposite_band_na" lovGridHeight="350" lovHeight="550" lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息">
<a:map from="bp_bank_account_name" to="bp_bank_account_name"/> <a:mapping>
<a:map from="opposite_band_na" to="opposite_band_na"/> <a:map from="bp_bank_account_name" to="bp_bank_account_name"/>
<a:map from="bp_bank_account_num" to="bp_bank_account_num"/> <a:map from="opposite_band_na" to="opposite_band_na"/>
</a:mapping> <a:map from="bp_bank_account_num" to="bp_bank_account_num"/>
</a:field> </a:mapping>
<a:field name="bp_bank_account_num" lovGridHeight="350" lovHeight="550" </a:field>
lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息"> <a:field name="bp_bank_account_num" lovGridHeight="350" lovHeight="550"
<a:mapping> lovService="csh.CSH510.csh_transaction_for_lov" lovLabelWidth="90" lovWidth="580" title="对方账户信息">
<a:map from="bp_bank_account_name" to="bp_bank_account_name"/> <a:mapping>
<a:map from="opposite_band_na" to="opposite_band_na"/> <a:map from="bp_bank_account_name" to="bp_bank_account_name"/>
<a:map from="bp_bank_account_num" to="bp_bank_account_num"/> <a:map from="opposite_band_na" to="opposite_band_na"/>
</a:mapping> <a:map from="bp_bank_account_num" to="bp_bank_account_num"/>
</a:field> </a:mapping>
</a:field>
<a:field name="extra_nam" lovGridHeight="350" lovHeight="550"
lovService="csh.CSH510.csh_extra_nam_for_lov" <a:field name="extra_nam" lovGridHeight="350" lovHeight="550"
lovLabelWidth="90" lovWidth="580" title="代理店简称"> lovService="csh.CSH510.csh_extra_nam_for_lov"
<a:mapping> lovLabelWidth="90" lovWidth="580" title="代理店简称">
<a:map from="extra_nam" to="extra_nam"/> <a:mapping>
</a:mapping> <a:map from="extra_nam" to="extra_nam"/>
</a:field> </a:mapping>
<a:field name="import_source_desc" options="import_source_ds" valueField="code_value" displayField="code_value_name" returnField="import_source"/> </a:field>
</a:fields> <a:field name="import_source_desc" options="import_source_ds" valueField="code_value" displayField="code_value_name" returnField="import_source"/>
<a:events> </a:fields>
<a:event name="update" handler="csh510_receipt_maintain_update"/> <a:events>
</a:events> <a:event name="update" handler="csh510_receipt_maintain_update"/>
</a:dataSet> </a:events>
<a:dataSet id="csh_transaction_receipt_maintain_result_ds" autoPageSize="true" autoQuery="true" model="csh.CSH510.csh_transaction_miantain_query" queryDataSet="csh_transaction_receipt_maintain_query_ds" selectable="true"> </a:dataSet>
<a:fields> <a:dataSet id="csh_transaction_receipt_maintain_result_ds" autoPageSize="true" autoQuery="true" model="csh.CSH510.csh_transaction_miantain_query" queryDataSet="csh_transaction_receipt_maintain_query_ds" selectable="true">
<a:field name="import_source_desc" options="import_source_ds" valueField="code_value" displayField="code_value_name" returnField="import_source"/> <a:fields>
</a:fields> <a:field name="import_source_desc" options="import_source_ds" valueField="code_value" displayField="code_value_name" returnField="import_source"/>
</a:dataSet> </a:fields>
</a:dataSets> </a:dataSet>
<a:screenBody> </a:dataSets>
<a:screenTopToolbar> <a:screenBody>
<a:screenTitle/> <a:screenTopToolbar>
<!-- <a:gridButton click="csh510_receipt_back" text="HLS.BACK"/> <a:screenTitle/>
<a:gridButton click="csh510_receipt_forward" text="HLS.FORWARD"/> --> <!-- <a:gridButton click="csh510_receipt_back" text="HLS.BACK"/>
<!-- <a:gridButton click="csh510_receipt_quit" text="HLS.EXIT"/> --> <a:gridButton click="csh510_receipt_forward" text="HLS.FORWARD"/> -->
<a:gridButton click="csh510_receipt_query" text="HLS.QUERY" id="csh510_receipt_query"/> <!-- <a:gridButton click="csh510_receipt_quit" text="HLS.EXIT"/> -->
<a:gridButton click="csh510_csh_trx_bank_import" text="CSH510.CSH_TRANSACTION.RECEIVE_MONEY_IMPORT_BTN" id="csh510_csh_trx_bank_import"/> <a:gridButton click="csh510_receipt_query" text="HLS.QUERY" id="csh510_receipt_query"/>
<a:gridButton click="csh510_csh_trx_bank_hand_add" text="CSH510.CSH_TRANSACTION.MONEY_HAND_ADD_BTN" id="csh510_csh_trx_bank_hand_add"/> <a:gridButton click="csh510_csh_trx_bank_import" text="CSH510.CSH_TRANSACTION.RECEIVE_MONEY_IMPORT_BTN" id="csh510_csh_trx_bank_import"/>
<a:gridButton click="csh510_receipt_remove" text="收款取消"/> <a:gridButton click="csh510_csh_trx_bank_hand_add" text="CSH510.CSH_TRANSACTION.MONEY_HAND_ADD_BTN" id="csh510_csh_trx_bank_hand_add"/>
<a:gridButton click="csh510_csh_trx_bank_apply_new" text="提交复核" id="csh510_csh_trx_bank_apply_new"/> <a:gridButton click="csh510_receipt_remove" text="收款取消"/>
<!-- <a:gridButton click="csh510_csh_trx_bank_drop" text="CSH510.CSH_TRANSACTION.DROP_BTN" id="csh510_csh_trx_bank_drop"/>--> <a:gridButton click="csh510_csh_trx_bank_apply_new" text="提交复核" id="csh510_csh_trx_bank_apply_new"/>
<a:gridButton click="csh510_receipt_reset" text="HLS.RESET"/> <!-- <a:gridButton click="csh510_csh_trx_bank_drop" text="CSH510.CSH_TRANSACTION.DROP_BTN" id="csh510_csh_trx_bank_drop"/>-->
<a:gridButton id="csh531_margin_check_id" click="csh531_margin_check" text="茂甲保证金校验"/> <a:gridButton click="csh510_receipt_reset" text="HLS.RESET"/>
<!-- <a:gridButton click="csh510_csh_transaction_batch_update" text="批量过账"/>--> <!-- <a:gridButton id="csh531_margin_check_id" click="csh531_margin_check" text="茂甲保证金校验"/>-->
<!-- <a:gridButton click="csh510_receipt" text="财务认领"/> --> <a:gridButton id="csh531_margin_check_id" click="csh531_margin_check" text="二手机业务保证金校验"/>
</a:screenTopToolbar> <a:gridButton id="Ocr_Bank_id" click="agricultural_bank" text="农行回单"/>
<a:form bindTarget="csh_transaction_receipt_write_off_query_ds" labelWidth="120" marginWidth="80" <!-- <a:gridButton click="csh510_csh_transaction_batch_update" text="批量过账"/>-->
title="收款核销" style="margin-left:20px"> <!-- <a:gridButton click="csh510_receipt" text="财务认领"/> -->
<a:hBox> </a:screenTopToolbar>
<a:fieldSet column="4" labelWidth="150" title="HLS.QUERY_TITLE"> <a:form bindTarget="csh_transaction_receipt_write_off_query_ds" labelWidth="120" marginWidth="80"
<a:datePicker name="transaction_date_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_DATE_FROM"/> title="收款核销" style="margin-left:20px">
<a:datePicker name="transaction_date_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_DATE_TO"/> <a:hBox>
<a:numberField name="transaction_amount_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_FROM" align="right"/> <a:fieldSet column="4" labelWidth="150" title="HLS.QUERY_TITLE">
<a:numberField name="transaction_amount_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/> <a:datePicker name="transaction_date_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_DATE_FROM"/>
<!--我方账户户名--> <a:datePicker name="transaction_date_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_DATE_TO"/>
<!-- <a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/>--> <a:numberField name="transaction_amount_from" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_FROM" align="right"/>
<!-- <a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/>--> <a:numberField name="transaction_amount_to" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.TRANSACTION_AMOUNT_TO" align="right"/>
<!-- <a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/>--> <!--我方账户户名-->
<!--银行流水号--> <!-- <a:lov name="bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_NAME"/>-->
<!-- <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/>--> <!-- <a:lov name="bank_branch_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_BANK_NAME"/>-->
<!--对方账户户名--> <!-- <a:lov name="bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT_USERNAME"/>-->
<a:textField name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/> <!--银行流水号-->
<!--对方银行名称--> <!-- <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE"/>-->
<!-- <a:textField name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>--> <!--对方账户户名-->
<!--对方账户账号--> <a:textField name="bp_bank_account_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_NAME"/>
<!-- <a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>--> <!--对方银行名称-->
<a:textField name="transaction_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="现金事务编号"/> <!-- <a:textField name="opposite_band_na" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_BANK_NAME"/>-->
<!-- <a:textField style="display:none"/>--> <!--对方账户账号-->
<a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/> <!-- <a:textField name="bp_bank_account_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT_USERNAME"/>-->
<a:comboBox name="confirmed_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="单据审批状态"/> <a:textField name="transaction_num" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="现金事务编号"/>
<!-- <a:comboBox name="write_off_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.WRITTEN_OFF_STATUS"/>--> <!-- <a:textField style="display:none"/>-->
<a:comboBox name="collection_classes_n" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.PURPOSE_OF_FUNDS"/> <a:lov name="bp_name" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER"/>
<a:lov name="extra_nam" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="代理店简称"/> <a:comboBox name="confirmed_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="单据审批状态"/>
<a:comboBox name="import_source_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="新增路径"/> <!-- <a:comboBox name="write_off_flag_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.WRITTEN_OFF_STATUS"/>-->
</a:fieldSet> <a:comboBox name="collection_classes_n" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="CSH510.CSH_TRANSACTION.PURPOSE_OF_FUNDS"/>
<a:lov name="extra_nam" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="代理店简称"/>
<a:comboBox name="import_source_desc" bindTarget="csh_transaction_receipt_maintain_query_ds" prompt="新增路径"/>
</a:hBox> </a:fieldSet>
</a:form>
<a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px">
<a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="190" marginWidth="80" navBar="true" > </a:hBox>
<!--<a:toolBar> </a:form>
<a:button click="csh510_export" text="导出"/> <a:fieldSet labelWidth="150" title="收款单" style="margin-left:20px">
</a:toolBar>--> <a:grid id="csh_transaction_receipt_maintain_grid_ds" bindTarget="csh_transaction_receipt_maintain_result_ds" marginHeight="190" marginWidth="80" navBar="true" >
<!--<a:toolBar>
<a:columns> <a:button click="csh510_export" text="导出"/>
<a:column name="transaction_num" prompt="CSH510.CSH_TRANSACTION.CSH_TRANSACTION_NUM" renderer="seedetail_transaction_num" width="110" align="center"/> </a:toolBar>-->
<!-- <a:column name="receipt_type_n" align="center" prompt="CSH510.CSH_TRANSACTION.RECEIPT_TYPE" width="100"/>-->
<a:column name="transaction_type_desc" align="center" prompt="现金事务类型" width="100"/> <a:columns>
<a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" width="100" renderer="Leaf.formatMoney"/> <a:column name="transaction_num" prompt="CSH510.CSH_TRANSACTION.CSH_TRANSACTION_NUM" renderer="seedetail_transaction_num" width="110" align="center"/>
<a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/> <!-- <a:column name="receipt_type_n" align="center" prompt="CSH510.CSH_TRANSACTION.RECEIPT_TYPE" width="100"/>-->
<a:column name="returned_amount" prompt="CSH510.CSH_TRANSACTION.RETURN_AMOUNT" align="right" renderer="Leaf.formatMoney"/> <a:column name="transaction_type_desc" align="center" prompt="现金事务类型" width="100"/>
<a:column name="use_money_amount" prompt="CSH510.CSH_TRANSACTION.USEFUL_AMOUNT" align="right" renderer="Leaf.formatMoney"/> <a:column name="transaction_amount" align="right" prompt="CSH510.CSH_TRANSACTION.RECEIPT_AMOUNT" width="100" renderer="Leaf.formatMoney"/>
<a:column name="collection_classes_desc" prompt="CSH510.CSH_TRANSACTION.PURPOSE_OF_FUNDS" align="center"/> <a:column name="transaction_date" renderer="Leaf.formatDate" align="center"/>
<a:column name="bp_name" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER" align="center"/> <a:column name="returned_amount" prompt="CSH510.CSH_TRANSACTION.RETURN_AMOUNT" align="right" renderer="Leaf.formatMoney"/>
<a:column name="extra_nam" prompt="代理店简称" align="center"/> <a:column name="use_money_amount" prompt="CSH510.CSH_TRANSACTION.USEFUL_AMOUNT" align="right" renderer="Leaf.formatMoney"/>
<a:column name="guarantor_name_duty_desc" prompt="担保人履行担保义务" align="center"/> <a:column name="collection_classes_desc" prompt="CSH510.CSH_TRANSACTION.PURPOSE_OF_FUNDS" align="center"/>
<a:column name="bank_slip_num" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE" align="center"/> <a:column name="bp_name" prompt="CSH510.CSH_TRANSACTION.BUSINESS_PARTNER" align="center"/>
<a:column name="description" prompt="CSH510.CSH_TRANSACTION.DESCRIPTION" align="center"/> <a:column name="extra_nam" prompt="代理店简称" align="center"/>
<a:column name="import_source_desc" prompt="新增路径" align="center"/> <a:column name="guarantor_name_duty_desc" prompt="担保人履行担保义务" align="center"/>
<a:column name="confirmed_flag_desc" prompt="单据审批状态" align="center"/> <a:column name="bank_slip_num" prompt="CSH510.CSH_TRANSACTION.BANK_CASH_CODE" align="center"/>
<!-- <a:column name="written_off_flag_desc" prompt="CSH510.CSH_TRANSACTION.WRITTEN_OFF_STATUS" align="center"/>--> <a:column name="description" prompt="CSH510.CSH_TRANSACTION.DESCRIPTION" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT"> <a:column name="import_source_desc" prompt="新增路径" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bank_account_name" align="center"/> <a:column name="confirmed_flag_desc" prompt="单据审批状态" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="bank_branch_name" align="center"/> <!-- <a:column name="written_off_flag_desc" prompt="CSH510.CSH_TRANSACTION.WRITTEN_OFF_STATUS" align="center"/>-->
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bank_account_num" align="center"/> <a:column prompt="CSH510.CSH_TRANSACTION.MY_ACCOUNT">
</a:column> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bank_account_name" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT"> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="bank_branch_name" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bp_bank_account_name" align="center"/> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bank_account_num" align="center"/>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="opposite_band_na" align="center"/> </a:column>
<a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bp_bank_account_num" align="center"/> <a:column prompt="CSH510.CSH_TRANSACTION.YOUR_ACCOUNT">
</a:column> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NAME" name="bp_bank_account_name" align="center"/>
<a:column name="user_desc" prompt="HLS.DOCUMENT_CREATED_BY" align="center"/> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_BANK" name="opposite_band_na" align="center"/>
<!-- <a:column name="debt_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.DEPT_CONFIRMER" align="center"/>--> <a:column prompt="CSH510.CSH_TRANSACTION.ACCOUNT_NUM" name="bp_bank_account_num" align="center"/>
<a:column name="acc_confirmed_by_desc" prompt="确认人" align="center"/> </a:column>
</a:columns> <a:column name="user_desc" prompt="HLS.DOCUMENT_CREATED_BY" align="center"/>
<a:editors> <!-- <a:column name="debt_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.DEPT_CONFIRMER" align="center"/>-->
<a:numberField id="number_editor" allowDecimals="true" decimalPrecision="2" editable="false"/> <a:column name="acc_confirmed_by_desc" prompt="确认人" align="center"/>
</a:editors> </a:columns>
</a:grid> <a:editors>
</a:fieldSet> <a:numberField id="number_editor" allowDecimals="true" decimalPrecision="2" editable="false"/>
</a:screenBody> </a:editors>
</a:view> </a:grid>
</a:screen> </a:fieldSet>
</a:screenBody>
</a:view>
</a:screen>
...@@ -54,12 +54,14 @@ ...@@ -54,12 +54,14 @@
var params = record.data; var params = record.data;
var marAfterStatus= params.mar_after_status; var marAfterStatus= params.mar_after_status;
if(Ext.isEmpty(marAfterStatus)){ if(Ext.isEmpty(marAfterStatus)){
Leaf.showErrorMessage('提示', '修改后茂甲保证金校验状态不能为空!'); // Leaf.showErrorMessage('提示', '修改后茂甲保证金校验状态不能为空!');
Leaf.showErrorMessage('提示', '修改后二手机业务保证金校验状态不能为空!');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
if (marAfterStatus == '${/model/wfl_status/record/@mar_status}') { if (marAfterStatus == '${/model/wfl_status/record/@mar_status}' || marAfterStatus == beforStatus) {
Leaf.showErrorMessage('提示', '请选择与修改前茂甲保证金校验不同的状态'); // Leaf.showErrorMessage('提示', '请选择与修改前茂甲保证金校验不同的状态');
Leaf.showErrorMessage('提示', '请选择与修改前二手机业务保证金校验不同的状态');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false; return false;
} }
......
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
record.getField('agent_bs_area_level').setPropertity('validator', 'hls303_record_field_validator'); record.getField('agent_bs_area_level').setPropertity('validator', 'hls303_record_field_validator');
record.getField('validity_period_from').setPropertity('validator', 'hls303_record_field_validator'); record.getField('validity_period_from').setPropertity('validator', 'hls303_record_field_validator');
record.getField('validity_period_to').setPropertity('validator', 'hls303_record_field_validator'); record.getField('validity_period_to').setPropertity('validator', 'hls303_record_field_validator');
if(record.get('extra_nam')=='茂甲'||record.get('extra_nam')=='铁甲'){ if(record.get('extra_nam')=='茂甲'||record.get('extra_nam')=='铁甲' ||record.get('extra_nam')=='河南融投'){
record.getField('agent_phone').setRequired(true); record.getField('agent_phone').setRequired(true);
} }
} }
......
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
var req_ln_records = req_ln_ds.getSelected(); var req_ln_records = req_ln_ds.getSelected();
var con_records = con_ds.getSelected(); var con_records = con_ds.getSelected();
if (req_ln_records.length == 0 || con_records.length > 0) { if (req_ln_records.length == 0 || con_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!'); // Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!');
Leaf.showMessage('${l:PROMPT}', '只能勾选二手机业务付款单数据!');
return; return;
} }
new Leaf.Window({ new Leaf.Window({
...@@ -90,7 +91,8 @@ ...@@ -90,7 +91,8 @@
var req_ln_records = req_ln_ds.getSelected(); var req_ln_records = req_ln_ds.getSelected();
var con_records = con_ds.getSelected(); var con_records = con_ds.getSelected();
if (req_ln_records.length == 0 || con_records.length > 0) { if (req_ln_records.length == 0 || con_records.length > 0) {
Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!'); //Leaf.showMessage('${l:PROMPT}', '只能勾选铁甲付款单数据!');
Leaf.showMessage('${l:PROMPT}', '只能勾选二手机业务付款单数据!');
return; return;
} }
new Leaf.Window({ new Leaf.Window({
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
var r_records = r_batch_ds.getSelected(); var r_records = r_batch_ds.getSelected();
if (records.length != 0 && r_records.length != 0) { if (records.length != 0 && r_records.length != 0) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!'); // Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
return; return;
} }
...@@ -118,7 +119,8 @@ ...@@ -118,7 +119,8 @@
var bank_item; var bank_item;
if (records.length != 0 && r_records.length != 0) { if (records.length != 0 && r_records.length != 0) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!'); // Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
return; return;
} }
...@@ -177,7 +179,8 @@ ...@@ -177,7 +179,8 @@
var r_records = r_batch_ds.getSelected(); var r_records = r_batch_ds.getSelected();
if (records.length != 0 && r_records.length != 0) { if (records.length != 0 && r_records.length != 0) {
Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!'); //Leaf.showMessage('${l:PROMPT}', '不能同时选择铁甲付款单和退款付款单!');
Leaf.showMessage('${l:PROMPT}', '不能同时选择二手机业务付款单和退款付款单!');
return; return;
} }
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
var record = $(ds_id).getCurrentRecord(); var record = $(ds_id).getCurrentRecord();
if(record.data.division=='70'&&record.data.business_type!='LEASEBACK'){ if(record.data.division=='70'&&record.data.business_type!='LEASEBACK'){
debugger; debugger;
$L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!'); // $L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!');
$L.showErrorMessage("提示", '租赁物为二手机业务的业务类型只能是售后回租!');
return false; return false;
} }
if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){ if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){
......
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