Commit 31ae1224 authored by Spencer Chang's avatar Spencer Chang

[fix] 增加grid查询事件,重设用印信息查询条件

parent 71a21eea
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
<a:link id="con_et001_calc_cashflow_link" model="cont.CON_ET001.calc_cashflow" modelaction="execute"/> <a:link id="con_et001_calc_cashflow_link" model="cont.CON_ET001.calc_cashflow" modelaction="execute"/>
<a:link id="con_et001_calc_et_date_amount_link" model="cont.CON_ET001.calc_et_date_amount" modelaction="execute"/> <a:link id="con_et001_calc_et_date_amount_link" model="cont.CON_ET001.calc_et_date_amount" modelaction="execute"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(function() {
var ds_us_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_03', 'hls_document_use_seal');
if ($(ds_us_id)) {
$(ds_us_id).setQueryParameter('document_table','CON_CONTRACT');
$(ds_us_id).setQueryParameter('document_id','${/parameter/@contract_id}');
$(ds_us_id).query();
}
});
//新增和加载时调用form //新增和加载时调用form
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) {
...@@ -226,6 +218,15 @@ ...@@ -226,6 +218,15 @@
} }
} }
}; };
//查询时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
var ds_us_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_03', 'hls_document_use_seal');
if (ds == $(ds_us_id)) {debugger
$(ds).setQueryParameter('document_table','CON_CONTRACT_CHANGE_REQ');
$(ds).setQueryParameter('change_req_id','${/parameter/@change_req_id}');
$(ds).query();
}
};
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
...@@ -18,13 +18,6 @@ ...@@ -18,13 +18,6 @@
$(ds_id).setQueryParameter('contract_id','${/parameter/@contract_id}'); $(ds_id).setQueryParameter('contract_id','${/parameter/@contract_id}');
$(ds_id).query(); $(ds_id).query();
} }
// var ds_us_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_03', 'hls_document_use_seal');
// if ($(ds_us_id)) {
// $(ds_us_id).setQueryParameter('document_table','CON_CONTRACT');
// $(ds_us_id).setQueryParameter('document_id','${/parameter/@contract_id}');
// $(ds_us_id).query();
// }
}); });
function open_contract_win(ds_id, record_id) { function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
...@@ -369,6 +362,15 @@ ...@@ -369,6 +362,15 @@
} }
} }
}; };
//查询时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
var ds_us_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_BASE_03', 'hls_document_use_seal');
if (ds == $(ds_us_id)) {debugger
$(ds).setQueryParameter('document_table','CON_CONTRACT_CHANGE_REQ');
$(ds).setQueryParameter('change_req_id','${/parameter/@change_req_id}');
$(ds).query();
}
};
]]></script> ]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view> </a:view>
......
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