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
65c31198
Commit
65c31198
authored
Dec 26, 2022
by
21471731
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租赁物导入调整22
parent
cd76f771
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
145 additions
and
35 deletions
+145
-35
config.properties
src/main/resources/profiles/dev/config.properties
+1
-1
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+107
-24
prj_project_lease_import_details.lview
...odules/prj/PRJ501N/prj_project_lease_import_details.lview
+10
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+27
-10
No files found.
src/main/resources/profiles/dev/config.properties
View file @
65c31198
...
@@ -19,7 +19,7 @@ redis.db=10
...
@@ -19,7 +19,7 @@ redis.db=10
db.type
=
oracle
db.type
=
oracle
db.driverClassName
=
oracle.jdbc.driver.OracleDriver
db.driverClassName
=
oracle.jdbc.driver.OracleDriver
db.url
=
jdbc:oracle:thin:@10.200.17.
70:1521/HLS.orcl
db.url
=
jdbc:oracle:thin:@10.200.17.
180:1521/HLCMTEST
db.username
=
hl_cm_dev
db.username
=
hl_cm_dev
db.password
=
hl_cm_dev
db.password
=
hl_cm_dev
db.maxPoolSize
=
100
db.maxPoolSize
=
100
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
65c31198
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/prj/PRJ501N/prj_project_lease_import_details.lview
View file @
65c31198
...
@@ -49,11 +49,21 @@
...
@@ -49,11 +49,21 @@
record.getField('seq').setReadOnly(true);
record.getField('seq').setReadOnly(true);
record.getField('asset_num').setReadOnly(true);
record.getField('asset_num').setReadOnly(true);
record.getField('asset_type').setReadOnly(true);
record.getField('asset_type').setReadOnly(true);
record.getField('asset_type_n').setReadOnly(true);
record.getField('asset_name').setReadOnly(true);
record.getField('asset_name_n').setReadOnly(true);
record.getField('asset_name_n').setReadOnly(true);
record.getField('specification').setReadOnly(true);
record.getField('specification').setReadOnly(true);
record.getField('posted_date').setReadOnly(true);
record.getField('posted_date').setReadOnly(true);
record.getField('price').setReadOnly(true);
record.getField('price').setReadOnly(true);
record.getField('manufacturer').setReadOnly(true);
record.getField('manufacturer').setReadOnly(true);
}else if('${/parameter/@project_status}'=='NEW' && record!=''){
record.getField('asset_num').setRequired(true);
record.getField('asset_type').setRequired(true);
record.getField('asset_name').setRequired(true);
record.getField('specification').setRequired(true);
record.getField('posted_date').setRequired(true);
record.getField('price').setRequired(true);
record.getField('manufacturer').setRequired(true);
}
}
}
}
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
65c31198
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
model=
"zjwfl.sys_role_flag"
rootPath=
"role_flag_path"
/>
model=
"zjwfl.sys_role_flag"
rootPath=
"role_flag_path"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_description"
rootPath=
"description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_description"
rootPath=
"description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value"
rootPath=
"residual_value"
/>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]>
]]>
</s:server-script>
</s:server-script>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
...
@@ -166,6 +166,19 @@
...
@@ -166,6 +166,19 @@
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//首次插入
//首次插入
if (!record.get('calc_session_id')) {
if (!record.get('calc_session_id')) {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
calc_recreate_L_formula = 'Y';
...
@@ -233,9 +246,10 @@
...
@@ -233,9 +246,10 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
if(division=='30' || division=='50'){
var set_number=current_red.get('set_number');
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
return;
}
}
...
@@ -569,6 +583,9 @@
...
@@ -569,6 +583,9 @@
$(prj_quotation_ds_id).query();
$(prj_quotation_ds_id).query();
$(score_ds_id).query();
$(score_ds_id).query();
}
}
if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
};
...
@@ -1598,8 +1615,8 @@
...
@@ -1598,8 +1615,8 @@
var
total_price=
records.get('total_price');
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
residual_value=
record.get('residual_value');
debugger;
var
q_value=
'${/model/residual_value/record/@residual_value}'
;
var
q_value=
records.get('q_value')
;
if(total_price!=lease_item_amount
&&total_price!=null){
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
return;
...
@@ -1658,8 +1675,8 @@
...
@@ -1658,8 +1675,8 @@
var
total_price=
records.get('total_price');
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
residual_value=
record.get('residual_value');
var
q_value=
'${/model/residual_value/record/@residual_value}'
;
var
q_value=
records.get('q_value')
;
debugger;
if(total_price!=lease_item_amount
&&total_price!=null){
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
return;
...
...
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