Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
eac1c7a1
Commit
eac1c7a1
authored
Oct 19, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同取消工作流
parent
b2dde279
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
56 deletions
+91
-56
con_contract_closed.lwm
...ebapp/WEB-INF/classes/cont/CON542/con_contract_closed.lwm
+17
-4
con_contract_for_query.lwm
...pp/WEB-INF/classes/cont/CON542/con_contract_for_query.lwm
+1
-0
con_contract_closed.lview
...main/webapp/modules/cont/CON542/con_contract_closed.lview
+73
-52
No files found.
src/main/webapp/WEB-INF/classes/cont/CON542/con_contract_closed.lwm
View file @
eac1c7a1
...
@@ -12,9 +12,22 @@
...
@@ -12,9 +12,22 @@
begin
begin
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>
${@contract_id},
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>
${@contract_id},
p_user_id =>${/session/@user_id});
p_user_id =>${/session/@user_id},
p_role_id =>${/session/@role_id});
end;
end;
]]>
</bm:update-sql>
]]>
</bm:update-sql>
</bm:operation>
</bm:operation>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
begin
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>
${@contract_id},
p_user_id =>${/session/@user_id},
p_role_id =>${/session/@role_id});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:operations>
</bm:model>
</bm:model>
src/main/webapp/WEB-INF/classes/cont/CON542/con_contract_for_query.lwm
View file @
eac1c7a1
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<bm:field
name=
"bp_id_agent_level1_n"
/>
<bm:field
name=
"bp_id_agent_level1_n"
/>
<bm:field
name=
"project_status"
/>
<bm:field
name=
"project_status"
/>
<bm:field
name=
"is_constru_unit"
/>
<bm:field
name=
"is_constru_unit"
/>
<bm:field
name=
"sale_con_ele_flag"
/>
</bm:fields>
</bm:fields>
<bm:primary-key>
<bm:primary-key>
<bm:pk-field
name=
"contract_id"
/>
<bm:pk-field
name=
"contract_id"
/>
...
...
src/main/webapp/modules/cont/CON542/con_contract_closed.lview
View file @
eac1c7a1
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<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"
/>
<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: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=
"contract_colsed_submit_link"
model=
"cont.CON542.con_contract_closed"
modelaction=
"execute"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<script
type=
"text/javascript"
>
<![CDATA[
function CON542_con_contract_query() {
function CON542_con_contract_query() {
$('CON542_contract_result_ds').query();
$('CON542_contract_result_ds').query();
...
@@ -112,9 +113,10 @@
...
@@ -112,9 +113,10 @@
var cancelData = [];
var cancelData = [];
records[0].set('_status', 'update');
records[0].set('_status', 'update');
var records_reason = $('contract_cancel_ds').getAt(0);
var records_reason = $('contract_cancel_ds').getAt(0);
var ds = records[0].data;
cancelData.push(records[0].data);
cancelData.push(records[0].data);
if(ds.sale_con_ele_flag != 'Y'){
Leaf.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.request({
Leaf.request({
url: $('con_contract_closed_link').getUrl(),
url: $('con_contract_closed_link').getUrl(),
...
@@ -130,6 +132,25 @@
...
@@ -130,6 +132,25 @@
});
});
}, function() {
}, function() {
}, null, null);
}, null, null);
}else{
Leaf.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.request({
url: $('contract_colsed_submit_link').getUrl(),
para: {
contract_id: ds.contract_id
},
success: function() {
Leaf.SideBar.show({
msg: '提交成功',
duration: 2000
});
$('CON542_contract_result_ds').query();
},
scope: this
});
}, function() {
}, null, null);
}
}
}
]]>
</script>
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON542"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON542"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment