Commit 60dd923d authored by lijingjing's avatar lijingjing

Merge branch 'refs/heads/baojia_detail' into develop

parents 202cdef6 dacba608
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
<a:link id="check_prj_lease_item_link_id" model="prj.PRJ501N.project_approval" modelaction="execute"/> <a:link id="check_prj_lease_item_link_id" model="prj.PRJ501N.project_approval" modelaction="execute"/>
<a:link id="${/parameter/@layout_code}tenant_rate_query_link" <a:link id="${/parameter/@layout_code}tenant_rate_query_link"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/> url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_display.lview"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_occu_object_display" rootPath="occu_object"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
// alert('${/parameter/@division}') // alert('${/parameter/@division}')
//add by zhuxianfei //add by zhuxianfei
...@@ -433,27 +434,17 @@ ...@@ -433,27 +434,17 @@
}; };
//更新时调用 //更新时调用
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 ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); if ( record.get('pay_method') == 'WIRE_TRANSFER') {
if (ds_id == ds.id) { record.getField('bank_branch_name').setReadOnly(true);
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); record.getField('bank_branch_name_n').setReadOnly(true);
var record = $(ds_id).getCurrentRecord(); record.getField('bank_branch_name').setRequired(true);
Leaf.request({ record.getField('bank_branch_name_n').setRequired(true)
url: $('check_prj_lease_item_link_id').getUrl(), }else{
para: { record.getField('bank_branch_name').setReadOnly(false);
'machine_number': record.get('machine_number') record.getField('bank_branch_name_n').setReadOnly(false);
}, record.getField('bank_branch_name').setRequired(false);
success: function(res) { record.getField('bank_branch_name_n').setRequired(false)
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); }
},
failure: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
}*/
}; };
...@@ -574,6 +565,7 @@ ...@@ -574,6 +565,7 @@
} }
/* Leaf.onReady(function(){ /* Leaf.onReady(function(){
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'T_HISTORY_INGO', 'hls_bp_master');
var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}'; var url='${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}';
......
...@@ -476,29 +476,18 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -476,29 +476,18 @@ 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 ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); if ( record.get('pay_method') == 'WIRE_TRANSFER') {
if (ds_id == ds.id) { record.getField('bank_branch_name').setReadOnly(true);
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); record.getField('bank_branch_name_n').setReadOnly(true);
var record = $(ds_id).getCurrentRecord(); record.getField('bank_branch_name').setRequired(false);
Leaf.request({ record.getField('bank_branch_name_n').setRequired(false)
url: $('check_prj_lease_item_link_id').getUrl(), }else{
para: { record.getField('bank_branch_name').setReadOnly(false);
'machine_number': record.get('machine_number') record.getField('bank_branch_name_n').setReadOnly(false);
}, }
success: function(res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function() {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
}*/
}; };
//加载时调用(grid,table,gridBox) //加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp'); var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'G_BP', 'prj_project_bp');
......
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