Commit 950347b2 authored by gzj34291's avatar gzj34291

合同签约前变更

parent 99e3a104
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<bm:operations> <bm:operations>
<bm:operation name="update"> <bm:operation name="update">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
begin begin
con_contract_workflow_pkg.check_change_con_lease_item( con_contract_workflow_pkg.check_change_con_lease_item(
p_contract_id =>${@contract_id}, p_contract_id =>${@contract_id},
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: shenyamin
$Date: 2018-11_03 上午11:00:06
$Revision: 3.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 cr.req_status sign_contract_status
From con_contract_change_req cr
Where cr.change_req_id= ${@change_req_id}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="sign_contract_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="sign_contract_status"/>
</bm:fields>
</bm:model>
...@@ -125,6 +125,7 @@ ...@@ -125,6 +125,7 @@
} }
param['document_type'] = record.get('ccr_document_type'); param['document_type'] = record.get('ccr_document_type');
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') { if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
//update
//签约前变更换个页面,方便后续新人代码阅读 wangwei //签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{ }else{
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
url="${/request/@context_path}/modules/cont/CON732/hls_ccr_modify_assignment_agreement_print.lsc"/> url="${/request/@context_path}/modules/cont/CON732/hls_ccr_modify_assignment_agreement_print.lsc"/>
<a:link id="hls_crr_query_print_link_id" <a:link id="hls_crr_query_print_link_id"
url="${/request/@context_path}/modules/cont/CON732/hls_crr_query_print_word_detail.lview"/> url="${/request/@context_path}/modules/cont/CON732/hls_crr_query_print_word_detail.lview"/>
<a:link id="con_contract_sign_before_change_link" url="${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
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);
...@@ -172,13 +173,21 @@ ...@@ -172,13 +173,21 @@
//param['function_code'] = 'CON733BPB'; //param['function_code'] = 'CON733BPB';
param['function_code'] = 'CON733BPBQ'; param['function_code'] = 'CON733BPBQ';
param['url_title'] = '变更申请-合同回款账户变更查询'; param['url_title'] = '变更申请-合同回款账户变更查询';
}else if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
} }
param['function_usage'] = 'QUERY'; param['function_usage'] = 'QUERY';
param['req_status'] = req_status; param['req_status'] = req_status;
param['query_flag'] = 'Y'; param['query_flag'] = 'Y';
param['maintain_type'] = 'QUERY'; param['maintain_type'] = 'QUERY';
param['document_type'] = record.get('ccr_document_type'); param['document_type'] = record.get('ccr_document_type');
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id); hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
//hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}; };
//变更申请打印单 //变更申请打印单
......
...@@ -117,10 +117,10 @@ ...@@ -117,10 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!'); Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
return; return;
} }
/*if(record.get('division') != '70' && ccr_document_type == 'CCR_BEFORE_SIGN'){ if((record.get('division') != '70' && record.get('division') != '92') && ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '仅铁甲业务可操作此项变更!'); Leaf.showErrorMessage('${l:PROMPT}', '当前合同暂不能进行此项变更!');
return; return;
}*/ }
Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () { Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () {
var contract = record.get('contract_id'); var contract = record.get('contract_id');
......
...@@ -1009,7 +1009,7 @@ ...@@ -1009,7 +1009,7 @@
} }
if ('${/parameter/@document_category}' == 'PROJECT'||'${/parameter/@document_category}' == 'CONTRACT') { if ('${/parameter/@document_category}' == 'PROJECT'|| '${/parameter/@layout_code}' == 'CCR_BEFORE_SIGN') {
Leaf.request({ Leaf.request({
url: $('prj_check_prj_record_link_id').getUrl(), url: $('prj_check_prj_record_link_id').getUrl(),
para: { para: {
......
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