Commit 68309d13 authored by 18083's avatar 18083

新增代理店北京慧珠

parent b79fe1a6
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="con_contract_get_identify_link" model="hls.HLS214N.hls_bp_master_modify_user" modelaction="query"/> <a:link id="con_contract_get_identify_link" model="hls.HLS214N.hls_bp_master_modify_user" modelaction="query"/>
<a:link id="con_contract_modify_link" url="${/request/@context_path}/modules/cont/CON311/con_re_print_modify.lview"/> <a:link id="con_contract_modify_link" url="${/request/@context_path}/modules/cont/CON311/con_re_print_modify.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_op_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_op_modify.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link" <a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/> url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
<a:link id="car_modify_special_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/> <a:link id="car_modify_special_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
...@@ -22,6 +24,8 @@ ...@@ -22,6 +24,8 @@
<a:link id="con_lease_org_print_link" <a:link id="con_lease_org_print_link"
url="${/request/@context_path}/modules/cont/CON620/create_content_for_collection.lsc"/> url="${/request/@context_path}/modules/cont/CON620/create_content_for_collection.lsc"/>
<a:link id="car_modify_link_readonly_c" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_constru.lview"/> <a:link id="car_modify_link_readonly_c" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_constru.lview"/>
<a:link id="operate_readonly_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_opreat.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
...@@ -50,6 +54,7 @@ ...@@ -50,6 +54,7 @@
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);
var param = record.data; var param = record.data;
if(record.get('division')!='95'){
if(record.get('sign_contract_status')=='NEW' || record.get('sign_contract_status')=='SIGN_RETURN'){ if(record.get('sign_contract_status')=='NEW' || record.get('sign_contract_status')=='SIGN_RETURN'){
param['function_code'] = 'CON301MM'; param['function_code'] = 'CON301MM';
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
...@@ -66,6 +71,23 @@ ...@@ -66,6 +71,23 @@
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_link', ds_id);
} }
if(record.get('division')=='95'){
if(record.get('sign_contract_status')=='NEW' || record.get('sign_contract_status')=='SIGN_RETURN'){
param['function_code'] = 'CON301MM_OP';
param['function_usage'] = 'MODIFY';
}
else{
param['function_code'] = 'CON301OP';
param['function_usage'] = 'QUERY';
param['sign_contract_status'] = record.get('sign_contract_status');
param['contract_status'] = record.get('contract_status');
}
param['winid'] = 'con_contract_modify_op_win_id';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}con_contract_query_op_link', ds_id);
}
}
function open_project_Window(record_id, ds_id) { function open_project_Window(record_id, ds_id) {
var record = $(ds_id).findById(record_id); var record = $(ds_id).findById(record_id);
var param = record.data; var param = record.data;
...@@ -79,6 +101,7 @@ ...@@ -79,6 +101,7 @@
/* param['window_open_flag'] = 'Y'; /* param['window_open_flag'] = 'Y';
param['show_history_flag'] = 'Y'; */ param['show_history_flag'] = 'Y'; */
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}'; param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
if(record.get('division')!='95'){
if(record.get('is_constru_unit') == 'N'){ if(record.get('is_constru_unit') == 'N'){
//不是虚拟店 //不是虚拟店
param['function_code'] = 'PRJ501_WFL'; param['function_code'] = 'PRJ501_WFL';
...@@ -88,6 +111,10 @@ ...@@ -88,6 +111,10 @@
param['function_code'] = 'PRJ501Q_CONSTRU'; param['function_code'] = 'PRJ501Q_CONSTRU';
url = 'car_modify_link_readonly_c'; url = 'car_modify_link_readonly_c';
} }
}else {
param['function_code'] = 'PRJ501_OPERAT_WFL';
url = 'operate_readonly_link';
}
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id, '${/parameter/@layout_code}'); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id, '${/parameter/@layout_code}');
} }
...@@ -173,10 +200,28 @@ ...@@ -173,10 +200,28 @@
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var records = $(ds_id).getSelected(); var records = $(ds_id).getSelected();
var division=records[0].data.division;
var division_detail = records[0].data.division_detail;
var bp_id_agent_code = records[0].data.bp_id_agent_code;
if(division == '95'){
Leaf.showErrorMessage('提示','经营性租赁暂不支持线上生成合同文本!');
return;
}
if (records.length != 1) { if (records.length != 1) {
Leaf.showMessage('${l:PROMPT}','${l:HLS.SELECT_RECORD}'); Leaf.showMessage('${l:PROMPT}','${l:HLS.SELECT_RECORD}');
return; return;
} }
if(division == '70'){
if(division_detail=='03'){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return;
}
//代理店北京慧珠不支持打印纸质合同文本
if(bp_id_agent_code=='D00010031'){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return;
}
}
var record=records[0]; var record=records[0];
new Leaf.Window({ new Leaf.Window({
id: 'con_contract_update_print_detail_winid', id: 'con_contract_update_print_detail_winid',
...@@ -197,6 +242,11 @@ ...@@ -197,6 +242,11 @@
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var records = $(ds_id).getSelected(); var records = $(ds_id).getSelected();
var division=records[0].data.division;
if(division == '95'){
Leaf.showErrorMessage('提示','经营性租赁暂不支持线上生成用印信息!');
return;
}
if (records.length != 1) { if (records.length != 1) {
Leaf.showMessage('${l:PROMPT}','${l:HLS.SELECT_RECORD}'); Leaf.showMessage('${l:PROMPT}','${l:HLS.SELECT_RECORD}');
return; return;
......
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