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
1db71361
Commit
1db71361
authored
Dec 17, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【feat】开发保单管理功能
parent
2362b796
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
13 deletions
+115
-13
contract_insurance_temp.lwm
...p/WEB-INF/classes/cont/CON350/contract_insurance_temp.lwm
+16
-0
con350_insurance_entrance.lview
...ebapp/modules/cont/CON350/con350_insurance_entrance.lview
+8
-2
con350_insurance_import.lview
.../webapp/modules/cont/CON350/con350_insurance_import.lview
+91
-11
No files found.
src/main/webapp/WEB-INF/classes/cont/CON350/contract_insurance_temp.lwm
View file @
1db71361
...
@@ -53,5 +53,21 @@
...
@@ -53,5 +53,21 @@
end;
end;
]]>
</bm:update-sql>
]]>
</bm:update-sql>
</bm:operation>
</bm:operation>
<bm:operation
name=
"insert"
>
<bm:update-sql>
<![CDATA[
begin
contract_insurance_pkg.save_insurance_data(
p_contract_id =>
${@contract_id},
p_insurance_number =>${@insurance_number},
p_insurance_fee =>${@insurance_fee},
p_insurance_rate =>${@insurance_rate},
p_real_insurance_date =>to_date(${@real_insurance_date},'yyyy-mm-dd'),
p_insurance_end_date =>to_date(${@insurance_end_date},'yyyy-mm-dd'),
p_ins_company =>${@ins_company},
p_user_id =>${/session/@user_id}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:operations>
</bm:model>
</bm:model>
src/main/webapp/modules/cont/CON350/con350_insurance_entrance.lview
View file @
1db71361
...
@@ -140,7 +140,8 @@
...
@@ -140,7 +140,8 @@
url: $('con_insurance_upload_link').getUrl(),
url: $('con_insurance_upload_link').getUrl(),
params: {
params: {
batch_id: '${/model/batch_id/record/@batch_id}',
batch_id: '${/model/batch_id/record/@batch_id}',
winId: 'con_insurance_upload_link_winId'
winId: 'con_insurance_upload_link_winId',
con_ds_id:con_ds_id
},
},
title: '投保信息',
title: '投保信息',
fullScreen: true,
fullScreen: true,
...
@@ -151,7 +152,12 @@
...
@@ -151,7 +152,12 @@
});
});
}
}
//超链接渲染
//新增
// window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () {
//
//
// }
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//
//
var link_function = '';
var link_function = '';
...
...
src/main/webapp/modules/cont/CON350/con350_insurance_import.lview
View file @
1db71361
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<a:model-delete
model=
"cont.CON350.con350_update_interface"
/>
<a:model-delete
model=
"cont.CON350.con350_update_interface"
/>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
<a:link
id=
"license_attachment_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"import_upload_link"
<a:link
id=
"import_upload_link"
url=
"${/request/@context_path}/modules/cont/CON350/con_insurance_import_upload.lview"
/>
url=
"${/request/@context_path}/modules/cont/CON350/con_insurance_import_upload.lview"
/>
<a:link
id=
"con350_import_check_link"
model=
"cont.CON350.check_data"
modelaction=
"update"
/>
<a:link
id=
"con350_import_check_link"
model=
"cont.CON350.check_data"
modelaction=
"update"
/>
...
@@ -62,10 +63,55 @@
...
@@ -62,10 +63,55 @@
});
});
}
}
}
}
function receipt_attachment_upload(val,rec,name){
/* if(!rec.get('contract_id')){
$L.showErrorMessage("提示",'请先保存数据!');
return;
}*/
if (!rec.get('contract_id')){
$L.showErrorMessage("提示","请先保存数据后再上传附件!")
return;
}
return '<a href=javascript:open_upload_window('+rec.get('contract_id')+')>
附件
</a>
';
}
function open_upload_window(record_id){
var url = $('license_attachment_uploadFile_id').getUrl() + '?table_name=CONTRACT_INSURANCE
&
header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'license_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function() {
});
}
//保存数据
function submitData(){
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
var ds=$('con_contract_insurance_ds');
if( !ds.validate() ){
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
return;
}
ds.submit();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
}
function submit_success_handle( ds, response){
$('${/parameter/@winId}').close();
$('${/parameter/@con_ds_id}').query();
}
//数据添加事件
function add_record_handle(dataSet,record,index){
record.set('attachment','附件');
}
//提交数据
//提交数据
function submitData() {
/*
function submitData() {
//
//
if (check_flag == 'N') {
if (check_flag == 'N') {
Leaf.showMessage('${l:PROMPT}', '请先核对通过再提交,谢谢!');
Leaf.showMessage('${l:PROMPT}', '请先核对通过再提交,谢谢!');
...
@@ -92,16 +138,41 @@
...
@@ -92,16 +138,41 @@
});
});
}
}
}
}
}
}
*/
function quit() {
function quit() {
window.location.href = $('con_contract_return_link').getUrl() + '?layout_code=CONTRACT_INSURANCE&function_code=CON350';
// window.location.href = $('con_contract_return_link').getUrl() + '?layout_code=CONTRACT_INSURANCE
&function_code=CON350';
$('${/parameter/@winId}').close();
$('${/parameter/@con_ds_id}').query();
}
}
]]>
</script>
]]>
</script>
<a:dataSets>
<a:dataSets>
<a:dataSet
id=
"con_contract_insurance_ds"
autoQuery=
"true"
model=
"cont.CON350.contract_insurance_temp"
<a:dataSet
id=
"con_contract_insurance_ds"
autoQuery=
"true"
model=
"cont.CON350.contract_insurance_temp"
selectable=
"true"
queryUrl=
"${/request/@context_path}/autocrud/cont.CON350.contract_insurance_temp/query?batch_id=${/model/batch_id/record/@batch_id}"
/>
queryUrl=
"${/request/@context_path}/autocrud/cont.CON350.contract_insurance_temp/query?batch_id=${/model/batch_id/record/@batch_id}"
>
<a:fields>
<a:field
name=
"contract_number"
required=
"true"
lovGridHeight=
"350"
lovHeight=
"550"
lovService=
"basic.con_contract_for_lov"
lovWidth=
"550"
title=
"合同"
>
<a:mapping>
<a:map
from=
"contract_number"
to=
"contract_number"
/>
<a:map
from=
"contract_id"
to=
"contract_id"
/>
</a:mapping>
</a:field>
<a:field
name=
"contract_id"
required=
"true"
/>
<a:field
name=
"insurance_number"
required=
"true"
/>
<a:field
name=
"real_insurance_date"
required=
"true"
/>
<a:field
name=
"insurance_end_date"
required=
"true"
/>
<a:field
name=
"ins_company"
required=
"true"
/>
<a:field
name=
"insurance_fee"
required=
"true"
/>
<a:field
name=
"insurance_rate"
required=
"true"
/>
<!-- <a:field name="attachment_file"/>-->
</a:fields>
<a:events>
<a:event
name=
"submitsuccess"
handler=
"submit_success_handle"
/>
<!-- <a:event name="add" handler="add_record_handle"/>-->
</a:events>
</a:dataSet>
</a:dataSets>
</a:dataSets>
<a:screenBody>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTopToolbar>
...
@@ -109,7 +180,7 @@
...
@@ -109,7 +180,7 @@
<a:toolbarButton
click=
"quit"
text=
"HLS.EXIT"
/>
<a:toolbarButton
click=
"quit"
text=
"HLS.EXIT"
/>
<!-- <a:toolbarButton click="loadData" text="PROMPT.LOADDATA" width="80"/>-->
<!-- <a:toolbarButton click="loadData" text="PROMPT.LOADDATA" width="80"/>-->
<!-- <a:toolbarButton click="checkData" text="PROMPT.CHECK"/>-->
<!-- <a:toolbarButton click="checkData" text="PROMPT.CHECK"/>-->
<a:toolbarButton
id=
"submitData_btn_id"
click=
"submitData"
text=
"
PROMPT.SUBMIT
"
width=
"80"
/>
<a:toolbarButton
id=
"submitData_btn_id"
click=
"submitData"
text=
"
保存
"
width=
"80"
/>
</a:screenTopToolbar>
</a:screenTopToolbar>
<a:grid
bindTarget=
"con_contract_insurance_ds"
marginHeight=
"200"
marginWidth=
"30"
navBar=
"true"
>
<a:grid
bindTarget=
"con_contract_insurance_ds"
marginHeight=
"200"
marginWidth=
"30"
navBar=
"true"
>
<a:toolBar>
<a:toolBar>
...
@@ -117,16 +188,25 @@
...
@@ -117,16 +188,25 @@
<a:button
type=
"delete"
/>
<a:button
type=
"delete"
/>
</a:toolBar>
</a:toolBar>
<a:columns>
<a:columns>
<a:column
name=
"contract_number"
prompt=
"合同编号"
width=
"120"
/>
<a:column
name=
"contract_number"
prompt=
"合同编号"
width=
"120"
editor=
"edit_lov"
/>
<a:column
name=
"insurance_number"
prompt=
"保单号"
width=
"120"
/>
<a:column
name=
"insurance_number"
prompt=
"保单号"
width=
"120"
editor=
"edit_text"
/>
<!--<a:column name="pattern" prompt="机型" width="120"/>-->
<!--<a:column name="pattern" prompt="机型" width="120"/>-->
<!-- <a:column name="model_number" prompt="机号" width="120"/>
<!-- <a:column name="model_number" prompt="机号" width="120"/>
<a:column name="engine_number" prompt="发动机号" width="120"/>-->
<a:column name="engine_number" prompt="发动机号" width="120"/>-->
<a:column
name=
"real_insurance_date"
renderer=
"Leaf.formatDate"
prompt=
"保险起始日"
width=
"120"
/>
<a:column
name=
"real_insurance_date"
renderer=
"Leaf.formatDate"
prompt=
"保险起始日"
width=
"120"
editor=
"edit_date"
/>
<a:column
name=
"insurance_end_date"
renderer=
"Leaf.formatDate"
prompt=
"保单到期日"
width=
"120"
/>
<a:column
name=
"insurance_end_date"
renderer=
"Leaf.formatDate"
prompt=
"保单到期日"
width=
"120"
editor=
"edit_date"
/>
<a:column
name=
"ins_company"
prompt=
"保险公司"
width=
"120"
/>
<a:column
name=
"insurance_fee"
prompt=
"保险费"
width=
"120"
editor=
"edit_number"
renderer=
"Leaf.formatMoney"
align=
"right"
/>
<a:column
name=
"insurance_rate"
prompt=
"保险费率(%)"
width=
"120"
editor=
"edit_number"
renderer=
"Leaf.formatMoney"
/>
<a:column
name=
"ins_company"
prompt=
"保险公司"
width=
"120"
editor=
"edit_text"
/>
<!-- <a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>-->
<!-- <a:column name="err_message" prompt="错误信息" width="230"/>-->
<!-- <a:column name="err_message" prompt="错误信息" width="230"/>-->
</a:columns>
</a:columns>
<a:editors>
<a:textField
id=
"edit_text"
/>
<a:lov
id=
"edit_lov"
/>
<a:numberField
id=
"edit_number"
/>
<a:datePicker
id=
"edit_date"
/>
</a:editors>
</a:grid>
</a:grid>
</a:screenBody>
</a:screenBody>
</a:view>
</a:view>
...
...
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