Commit 3e1afd04 authored by liyuan.chen's avatar liyuan.chen

[fix]法人信息更新,用印信息tab页添加

parent ad90b6e8
Pipeline #6043 canceled with stages
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2013-7-15 下午7:59:08
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT t1.document_use_seal_id,
t1.document_table,
t1.CONTRACT_ID,
t1.instruments_types,
t1.instruments_types_n,
t1.common_seal,
t1.common_seal_n,
t1.corporate_visa_seal,
t1.corporate_visa_seal_n,
t1.legal_seal,
t1.legal_seal_n,
t1.con_special_seal,
t1.con_special_seal_n,
t1.financial_seal,
t1.financial_seal_n,
t1.supervisio_seal,
t1.supervisio_seal_n,
t1.SEAL_QUANTITY,
t1.seal_number,
t1.seal_number_n
FROM con_contract_use_seal_lv t1
WHERE
t1.contract_id = ${@contract_id}
]]></bm:query-sql>
<bm:parameters>
<bm:parameter name="contract_id"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -189,6 +189,9 @@ ...@@ -189,6 +189,9 @@
$('receivedAmountDs').query(); $('receivedAmountDs').query();
$('unreceivedAmountDs').query(); $('unreceivedAmountDs').query();
$('seal_info_ds').setQueryParameter('contract_id', record.get('contract_id'));
$('seal_info_ds').query();
} }
]]></script> ]]></script>
...@@ -250,6 +253,18 @@ ...@@ -250,6 +253,18 @@
<a:event name="query" handler="aut_authority_list_validate_query"/> <a:event name="query" handler="aut_authority_list_validate_query"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="seal_info_ds" autoQuery="true" model="cont.CON560.con_contract_seal_info">
<a:fields>
<a:field name="instruments_types" readOnly="true"/>
<a:field name="common_seal" readOnly="true" defaultValue="Y" uncheckedValue="N" checkedValue="Y"/>
<a:field name="corporate_visa_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="legal_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="con_special_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="financial_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="supervisio_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="seal_number_n" readOnly="true"/>
</a:fields>
</a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:screenTopToolbar> <a:screenTopToolbar>
...@@ -338,6 +353,24 @@ ...@@ -338,6 +353,24 @@
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>
<a:tab prompt="用印信息" width="110">
<a:grid bindTarget="seal_info_ds" height="250" marginWidth="55" navBar="true">
<a:columns>
<a:column name="instruments_types" prompt="文书种类"/>
<a:column name="common_seal" prompt="公章" editor="seal_info_check_id"/>
<a:column name="corporate_visa_seal" prompt="法人签证章" editor="seal_info_check_id"/>
<a:column name="legal_seal" prompt="法人章" editor="seal_info_check_id"/>
<a:column name="con_special_seal" prompt="合同专用章" editor="seal_info_check_id"/>
<a:column name="financial_seal" prompt="财务章" editor="seal_info_check_id"/>
<a:column name="supervisio_seal" prompt="监管专用章" editor="seal_info_check_id"/>
<a:column name="seal_number_n" prompt="文书部数" editor="seal_info_combo_id"/>
</a:columns>
<a:editors>
<a:checkBox id="seal_info_check_id"/>
<a:comboBox id="seal_info_combo_id"/>
</a:editors>
</a:grid>
</a:tab>
</a:tabs> </a:tabs>
</a:tabPanel> </a:tabPanel>
</a:screenBody> </a:screenBody>
......
...@@ -130,6 +130,8 @@ ...@@ -130,6 +130,8 @@
$('receivedAmountDs').query(); $('receivedAmountDs').query();
$('unreceivedAmountDs').query(); $('unreceivedAmountDs').query();
$('seal_info_ds').setQueryParameter('contract_id', record.get('contract_id'));
$('seal_info_ds').query();
} }
]]></script> ]]></script>
...@@ -186,6 +188,18 @@ ...@@ -186,6 +188,18 @@
<a:event name="query" handler="aut_authority_list_validate_query"/> <a:event name="query" handler="aut_authority_list_validate_query"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="seal_info_ds" autoQuery="true" model="cont.CON560.con_contract_seal_info">
<a:fields>
<a:field name="instruments_types" readOnly="true"/>
<a:field name="common_seal" readOnly="true" defaultValue="Y" uncheckedValue="N" checkedValue="Y"/>
<a:field name="corporate_visa_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="legal_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="con_special_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="financial_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="supervisio_seal" readOnly="true" uncheckedValue="N" checkedValue="Y"/>
<a:field name="seal_number_n" readOnly="true"/>
</a:fields>
</a:dataSet>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<!-- <a:screenTopToolbar>--> <!-- <a:screenTopToolbar>-->
...@@ -266,6 +280,24 @@ ...@@ -266,6 +280,24 @@
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:tab> </a:tab>
<a:tab prompt="用印信息" width="110">
<a:grid bindTarget="seal_info_ds" height="250" marginWidth="55" navBar="true">
<a:columns>
<a:column name="instruments_types" prompt="文书种类"/>
<a:column name="common_seal" prompt="公章" editor="seal_info_check_id"/>
<a:column name="corporate_visa_seal" prompt="法人签证章" editor="seal_info_check_id"/>
<a:column name="legal_seal" prompt="法人章" editor="seal_info_check_id"/>
<a:column name="con_special_seal" prompt="合同专用章" editor="seal_info_check_id"/>
<a:column name="financial_seal" prompt="财务章" editor="seal_info_check_id"/>
<a:column name="supervisio_seal" prompt="监管专用章" editor="seal_info_check_id"/>
<a:column name="seal_number_n" prompt="文书部数" editor="seal_info_combo_id"/>
</a:columns>
<a:editors>
<a:checkBox id="seal_info_check_id"/>
<a:comboBox id="seal_info_combo_id"/>
</a:editors>
</a:grid>
</a:tab>
</a:tabs> </a:tabs>
</a:tabPanel> </a:tabPanel>
</a:screenBody> </a:screenBody>
......
...@@ -124,7 +124,6 @@ ...@@ -124,7 +124,6 @@
}; };
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
if ((ds.id).indexOf('hls_bp_master') != -1) { if ((ds.id).indexOf('hls_bp_master') != -1) {
// record.getField('cell_phone').setRequired(true); // record.getField('cell_phone').setRequired(true);
//record.getField('cell_phone').setRequired(true); //record.getField('cell_phone').setRequired(true);
...@@ -137,6 +136,24 @@ ...@@ -137,6 +136,24 @@
if (ds.fields.parent_id) { if (ds.fields.parent_id) {
record.getField('parent_id_n').setReadOnly(true); record.getField('parent_id_n').setReadOnly(true);
} }
if(record.get('taxpayer_type')){
var value = record.get('taxpayer_type');
if(value == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false);
}
if(value == 'GENERAL_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
}
}
} }
}; };
...@@ -506,6 +523,8 @@ ...@@ -506,6 +523,8 @@
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master'); var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master'); var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master'); var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
// var org_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BILLING_1', 'hls_bp_master');
if (ds.id==test_ds_id1||ds.id==test_ds_id2) { if (ds.id==test_ds_id1||ds.id==test_ds_id2) {
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master'); var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
...@@ -526,7 +545,6 @@ ...@@ -526,7 +545,6 @@
bp2_record.set('marital_status', '40'); bp2_record.set('marital_status', '40');
} }
}else if(record.get('marital_status')=='30'){ }else if(record.get('marital_status')=='30'){
debugger;
var bp2_record = $(test_ds_id2).getCurrentRecord(); var bp2_record = $(test_ds_id2).getCurrentRecord();
if(bp2_record){ if(bp2_record){
record.set('bp_name_sp',bp2_record.get('bp_name_sp')); record.set('bp_name_sp',bp2_record.get('bp_name_sp'));
...@@ -544,6 +562,24 @@ ...@@ -544,6 +562,24 @@
} }
if(ds.id == test_ds_id){
if(name == 'taxpayer_type' && value){
if(value == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false);
}
if(value == 'GENERAL_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
}
}
}
}; };
......
...@@ -8,7 +8,46 @@ ...@@ -8,7 +8,46 @@
//退出按钮 //退出按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
$('hls_bp_master_billing').close(); $('hls_bp_master_billing').close();
};
// 加载事件(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
if(record.get('taxpayer_type')){
var value = record.get('taxpayer_type');
if(value == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false);
} }
if(value == 'GENERAL_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
}
}
};
// 更新事件
window['${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value) {
if(name == 'taxpayer_type' && value){
if(value == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('tax_registry_num').setRequired(false);
}
if(value == 'GENERAL_TAXPAYER'){
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
}
}
};
Leaf.onReady(function () { Leaf.onReady(function () {
......
...@@ -74,7 +74,6 @@ ...@@ -74,7 +74,6 @@
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master'); // stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_BP_RESULT', 'hls_bp_master');
function open_bp_modify_win(ds_id, record_id) { function open_bp_modify_win(ds_id, record_id) {
var user_category ='${/model/default_value/record/@user_category}'; var user_category ='${/model/default_value/record/@user_category}';
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var param = record.data; var param = record.data;
......
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