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
71a2b0bf
Commit
71a2b0bf
authored
Dec 13, 2022
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同查询调整
parent
138b4328
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
23 deletions
+34
-23
get_employee_type_code.lwm
...p/WEB-INF/classes/cont/CON301N/get_employee_type_code.lwm
+22
-0
con_contract_query_entrance.lview
...pp/modules/cont/CON301N/con_contract_query_entrance.lview
+12
-23
No files found.
src/main/webapp/WEB-INF/classes/cont/CON301N/get_employee_type_code.lwm
0 → 100644
View file @
71a2b0bf
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzk
$Date: 2022年12月8日 17:13:08
$Revision: 1.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 et.employee_type_code
from exp_employees ee, exp_employee_types et, sys_user su
where ee.employee_id = su.employee_id
and ee.employee_type_id = et.employee_type_id
and su.user_id = ${/session/@user_id}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/cont/CON301N/con_contract_query_entrance.lview
View file @
71a2b0bf
...
...
@@ -10,6 +10,7 @@
<a:init-procedure>
<a:model-query
model=
"cont.CON620.get_sys_role"
rootPath=
"role_info"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<a:model-query
fetchAll=
"true"
model=
"cont.CON301N.get_employee_type_code"
rootPath=
"user_type_code"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}zj_wfl_approve_history_check"
...
...
@@ -35,8 +36,6 @@
<a:link
id=
"${/parameter/@layout_code}_contract_seal_link_id"
url=
"${/request/@context_path}/modules/cont/CON301N/con_contract_finish_seal_info.lview"
/>
<a:link
id=
"con_contract_finish_print_link_id"
url=
"${/request/@context_path}/modules/csh/CSH501/csh_payment_req_history_pdf_print.lsc"
/>
<!-- <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>-->
<a:link
id=
"rl_notice_print_link"
url=
"${/request/@context_path}/modules/cont/CON301N/rl_notice_print.lsc"
/>
<script
type=
"text/javascript"
>
<![CDATA[
// stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_CONTRACT_RESULT', 'con_contract');
...
...
@@ -89,12 +88,6 @@
}
}
var role_code = '${/model/role_info/record/@role_code}';
if(role_code!="0008"&&role_code!="0017"&&role_code!="HAND") {
document.getElementById("CONTRACT_QUERY_ENTRANCE_user_button9").style.display = "none";
} else {
document.getElementById("CONTRACT_QUERY_ENTRANCE_user_button9").style.display = "";
}
});
function open_contract_win(ds_id, record_id) {
...
...
@@ -278,23 +271,19 @@
//window.location.href='${/request/@context_path}/con/contract/conExportExcel?contractId='+record.get('contract_id');
};
//返还金通知打印
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function () {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var cur_record = $(ds_id).getSelected()[0];
var rl_flag = cur_record.get("rl_flag");
if(rl_flag == 'Y'){
var document_id = cur_record.get("contract_id");
var to_file_name = '返还租金通知'+ cur_record.get("contract_number") + '.docx'
var url = $('rl_notice_print_link').getUrl() + '?document_id=' + document_id + '
&document_table=CON_RL_NOTICE&file_path=${/parameter/@file_path}&batch_flag=Y&source_type=COMMON&to_file_name='+to_file_name;
window.open(href = url, target = "_blank");
}else if(rl_flag == 'N'){
Leaf.showMessage('提示', '请选择是日立为优质客户付租金的合同!');
return;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
//代理店隐藏,管理员和宏菱员工展示
var employee_type_code = '${/model/user_type_code/record/@employee_type_code}';
var rood_code = "${/model/role_info/record/@role_code}";
if (employee_type_code !='STAFF'
&&
rood_code != '0017'
&&
rood_code != 'HAND') {
$('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('tj_score');
$('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('score_result');
$('${/parameter/@layout_code}_G_CONTRACT_RESULT_con_contract_layout_grid_id').hideColumn('lease_item_location');
}
};
}
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&function_code=CON501"
/>
...
...
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