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
de1e437e
Commit
de1e437e
authored
Oct 19, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同取消工作流
parent
81b749d9
Changes
3
Hide 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 @
de1e437e
...
...
@@ -9,12 +9,25 @@
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
begin
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>
${@contract_id},
p_user_id =>${/session/@user_id});
end;
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: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:model>
src/main/webapp/WEB-INF/classes/cont/CON542/con_contract_for_query.lwm
View file @
de1e437e
...
...
@@ -55,6 +55,7 @@
<bm:field
name=
"bp_id_agent_level1_n"
/>
<bm:field
name=
"project_status"
/>
<bm:field
name=
"is_constru_unit"
/>
<bm:field
name=
"sale_con_ele_flag"
/>
</bm:fields>
<bm:primary-key>
<bm:pk-field
name=
"contract_id"
/>
...
...
src/main/webapp/modules/cont/CON542/con_contract_closed.lview
View file @
de1e437e
...
...
@@ -20,28 +20,29 @@
<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: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[
function CON542_con_contract_query() {
$('CON542_contract_result_ds').query();
}
function CON542_con_contract_reset() {
$('CON542_contract_query_ds').reset();
}
function CON542_con_contract_query() {
$('CON542_contract_result_ds').query();
}
function CON542_con_contract_reset() {
$('CON542_contract_query_ds').reset();
}
function seeDetail_num(value, record, name) {
if(value){
if (name=='contract_number') {
return '<a href="javascript:open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\');">
' + value + '
</a>
';
}else if(name=='project_number'){
return '
<a
href=
"javascript:open_project_Window(\'' + record.id + '\',\'' + record.ds.id + '\');"
>
' + value + '
</a>
';
}}else{
return '';
}
if(value){
if (name=='contract_number') {
return '<a href="javascript:open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\');">
' + value + '
</a>
';
}else if(name=='project_number'){
return '
<a
href=
"javascript:open_project_Window(\'' + record.id + '\',\'' + record.ds.id + '\');"
>
' + value + '
</a>
';
}}else{
return '';
}
}
function open_contract_win(record_id,ds_id) {
debugger;
debugger;
var record = $(ds_id).findById(record_id);
var param = record.data;
param['function_code'] = 'CON301';
...
...
@@ -75,46 +76,47 @@
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, url, ds_id, '${/parameter/@layout_code}');
}
function summaryRenderer(datas, name) {
var sum = 0;
var sum2 = 0;
for (var i = 0;i
< datas.length
;i++)
{
record =
datas[i];
if
(
name =
=
"lease_item_amount")
{
var
t_1 =
record.get("lease_item_amount");
var
t_2 =
parseFloat(t_1);
if
(!isNaN(t_2))
{
sum
+=
t_2;
}
}
if
(
name =
=
"down_payment")
{
var
d_1 =
record.get("down_payment");
var
d_2 =
parseFloat(d_1);
if
(!isNaN(d_2))
{
sum2
+=
d_2;
}
}
}
if
(
name =
=
"bp_vender")
{
return
'<div
align=
"right"
>
合计:
</div>
';
}
function summaryRenderer(datas, name) {
var sum = 0;
var sum2 = 0;
for (var i = 0;i
< datas.length
;i++)
{
record =
datas[i];
if
(
name =
=
"lease_item_amount")
{
return '
<font
color=
"red"
>
' + Leaf.formatNumber(sum, 2) + '
</font>
';
var
t_1 =
record.get("lease_item_amount");
var
t_2 =
parseFloat(t_1);
if
(!isNaN(t_2))
{
sum
+=
t_2;
}
}
if
(
name =
=
"down_payment")
{
return '
<font
color=
"red"
>
' + Leaf.formatNumber(sum2, 2) + '
</font>
';
var
d_1 =
record.get("down_payment");
var
d_2 =
parseFloat(d_1);
if
(!isNaN(d_2))
{
sum2
+=
d_2;
}
}
}
function CON542_con_contract_closed() {
var records = $('CON542_contract_result_ds').getSelected();
var cancelData = [];
records[0].set('_status', 'update');
var records_reason = $('contract_cancel_ds').getAt(0);
if
(
name =
=
"bp_vender")
{
return
'<div
align=
"right"
>
合计:
</div>
';
}
if (name == "lease_item_amount") {
return '
<font
color=
"red"
>
' + Leaf.formatNumber(sum, 2) + '
</font>
';
}
if (name == "down_payment") {
return '
<font
color=
"red"
>
' + Leaf.formatNumber(sum2, 2) + '
</font>
';
}
}
function CON542_con_contract_closed() {
var records = $('CON542_contract_result_ds').getSelected();
var cancelData = [];
records[0].set('_status', 'update');
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.request({
url: $('con_contract_closed_link').getUrl(),
...
...
@@ -130,7 +132,26 @@
});
}, function() {
}, 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>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON542"
/>
<a:dataSets>
...
...
@@ -222,9 +243,9 @@
<a:comboBox
name=
"contract_status_n"
bindTarget=
"CON542_contract_query_ds"
prompt=
"合同状态"
/>
<a:comboBox
name=
"sign_contract_status_n"
bindTarget=
"CON542_contract_query_ds"
prompt=
"签约状态"
/>
</a:form>
<!-- <a:form labelWidth="100" marginWidth="30" title="取消原因">
<a:textArea name="cancel_reason" bindTarget="contract_cancel_ds" height="60" prompt="取消原因" width="800"/>
</a:form>-->
<!-- <a:form labelWidth="100" marginWidth="30" title="取消原因">
<a:textArea name="cancel_reason" bindTarget="contract_cancel_ds" height="60" prompt="取消原因" width="800"/>
</a:form>-->
<a:grid
id=
"CON542_con_contract_grid_ds"
bindTarget=
"CON542_contract_result_ds"
marginHeight=
"150"
marginWidth=
"30"
navBar=
"true"
>
<a:columns>
<a:column
name=
"contract_number"
prompt=
"HLS.CONTRACT_NUMBER"
width=
"150"
renderer=
"seeDetail_num"
/>
...
...
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