Commit a2d1fce7 authored by stone's avatar stone

【feat】报价增加历史合同信息的字段

parent 37ac32ec
...@@ -5,26 +5,14 @@ ...@@ -5,26 +5,14 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select tt.* from ( SELECT t1.project_number, select * from(
t1.contract_number, select *
t1.bp_code, FROM con_contract_history_lv t1
t1.bp_name, WHERE t1.bp_id = ${@bp_id} )tt
t1.overdue_max_days,
t1.overdue_max_amount,
t1.bp_type,
t1.bp_class,
t1.bp_id,
t1.description,
t1.project_id,
t1.contract_id,
t1.bp_category
FROM prj_project_history_lv t1
WHERE t1.bp_id = ${@bp_id}
and t1.project_id <> ${@project_id}) tt
#WHERE_CLAUSE# #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
......
...@@ -476,6 +476,7 @@ ...@@ -476,6 +476,7 @@
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');;
//选择承租人带出开票信息 //选择承租人带出开票信息
if(prj_project_ds_id==ds.id &&prj_project_ds_id){ if(prj_project_ds_id==ds.id &&prj_project_ds_id){
if(name=="bp_id_tenant" && value){ if(name=="bp_id_tenant" && value){
...@@ -510,7 +511,14 @@ ...@@ -510,7 +511,14 @@
}, },
scope: this scope: this
}); });
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
} }
} }
if(name=='pay_method'){ if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') { if ( record.get('pay_method') == 'WIRE_TRANSFER') {
......
...@@ -489,6 +489,8 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -489,6 +489,8 @@ function prj501n_contract_number_renderer(id, name, query_only){
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
//选择承租人带出开票信息 //选择承租人带出开票信息
if(prj_project_ds_id==ds.id &&prj_project_ds_id){ if(prj_project_ds_id==ds.id &&prj_project_ds_id){
if(name=="bp_id_tenant" && value){ if(name=="bp_id_tenant" && value){
...@@ -523,6 +525,10 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -523,6 +525,10 @@ function prj501n_contract_number_renderer(id, name, query_only){
}, },
scope: this scope: this
}); });
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
} }
} }
if(name=='pay_method'){ if(name=='pay_method'){
......
...@@ -599,6 +599,19 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -599,6 +599,19 @@ function prj501n_contract_number_renderer(id, name, query_only){
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
//选择承租人带出开票信息
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');;
if(prj_project_ds_id==ds.id &&prj_project_ds_id){
if(name=="bp_id_tenant" && value){
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",value);
$(prj_project_history_ds_id).query();
}
}
if(name=='pay_method'){ if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') { if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_account_id',null); record.set('bank_account_id',null);
......
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