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
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 @
eac1c7a1
...
@@ -9,12 +9,25 @@
...
@@ -9,12 +9,25 @@
<bm:operations>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
<bm:update-sql>
<![CDATA[
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},
end;
p_role_id =>${/session/@role_id});
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,28 +20,29 @@
...
@@ -20,28 +20,29 @@
<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();
}
}
function CON542_con_contract_reset() {
function CON542_con_contract_reset() {
$('CON542_contract_query_ds').reset();
$('CON542_contract_query_ds').reset();
}
}
function seeDetail_num(value, record, name) {
function seeDetail_num(value, record, name) {
if(value){
if(value){
if (name=='contract_number') {
if (name=='contract_number') {
return '<a href="javascript:open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\');">
' + value + '
</a>
';
return '<a href="javascript:open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\');">
' + value + '
</a>
';
}else if(name=='project_number'){
}else if(name=='project_number'){
return '
<a
href=
"javascript:open_project_Window(\'' + record.id + '\',\'' + record.ds.id + '\');"
>
' + value + '
</a>
';
return '
<a
href=
"javascript:open_project_Window(\'' + record.id + '\',\'' + record.ds.id + '\');"
>
' + value + '
</a>
';
}}else{
}}else{
return '';
return '';
}
}
}
}
function open_contract_win(record_id,ds_id) {
function open_contract_win(record_id,ds_id) {
debugger;
debugger;
var record = $(ds_id).findById(record_id);
var record = $(ds_id).findById(record_id);
var param = record.data;
var param = record.data;
param['function_code'] = 'CON301';
param['function_code'] = 'CON301';
...
@@ -75,46 +76,47 @@
...
@@ -75,46 +76,47 @@
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}');
}
}
function summaryRenderer(datas, name) {
function summaryRenderer(datas, name) {
var sum = 0;
var sum = 0;
var sum2 = 0;
var sum2 = 0;
for (var i = 0;i
< datas.length
;i++)
{
for (var i = 0;i
< datas.length
;i++)
{
record =
datas[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>
';
}
if
(
name =
=
"lease_item_amount")
{
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")
{
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;
}
}
}
}
}
if
(
name =
=
"bp_vender")
{
return
'<div
align=
"right"
>
合计:
</div>
';
function CON542_con_contract_closed() {
}
var records = $('CON542_contract_result_ds').getSelected();
if (name == "lease_item_amount") {
var cancelData = [];
return '
<font
color=
"red"
>
' + Leaf.formatNumber(sum, 2) + '
</font>
';
records[0].set('_status', 'update');
}
var records_reason = $('contract_cancel_ds').getAt(0);
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.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.request({
Leaf.request({
url: $('con_contract_closed_link').getUrl(),
url: $('con_contract_closed_link').getUrl(),
...
@@ -130,7 +132,26 @@
...
@@ -130,7 +132,26 @@
});
});
}, 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"
/>
<a:dataSets>
<a:dataSets>
...
@@ -222,9 +243,9 @@
...
@@ -222,9 +243,9 @@
<a:comboBox
name=
"contract_status_n"
bindTarget=
"CON542_contract_query_ds"
prompt=
"合同状态"
/>
<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:comboBox
name=
"sign_contract_status_n"
bindTarget=
"CON542_contract_query_ds"
prompt=
"签约状态"
/>
</a:form>
</a:form>
<!-- <a:form labelWidth="100" marginWidth="30" title="取消原因">
<!-- <a:form labelWidth="100" marginWidth="30" title="取消原因">
<a:textArea name="cancel_reason" bindTarget="contract_cancel_ds" height="60" prompt="取消原因" width="800"/>
<a:textArea name="cancel_reason" bindTarget="contract_cancel_ds" height="60" prompt="取消原因" width="800"/>
</a:form>-->
</a:form>-->
<a:grid
id=
"CON542_con_contract_grid_ds"
bindTarget=
"CON542_contract_result_ds"
marginHeight=
"150"
marginWidth=
"30"
navBar=
"true"
>
<a:grid
id=
"CON542_con_contract_grid_ds"
bindTarget=
"CON542_contract_result_ds"
marginHeight=
"150"
marginWidth=
"30"
navBar=
"true"
>
<a:columns>
<a:columns>
<a:column
name=
"contract_number"
prompt=
"HLS.CONTRACT_NUMBER"
width=
"150"
renderer=
"seeDetail_num"
/>
<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