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
fd49f28f
Commit
fd49f28f
authored
Mar 26, 2020
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【fix】修复商业伙伴bug
parent
bac65db7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
148 additions
and
72 deletions
+148
-72
acr_invoice_interface_ln.lwm
...p/WEB-INF/classes/acr/ACR515/acr_invoice_interface_ln.lwm
+1
-0
csh_payment_approve_print.lwm
.../WEB-INF/classes/csh/CSH501/csh_payment_approve_print.lwm
+23
-0
acr_invoice_vat.lview
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.lview
+2
-1
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+44
-33
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+78
-38
No files found.
src/main/webapp/WEB-INF/classes/acr/ACR515/acr_invoice_interface_ln.lwm
View file @
fd49f28f
...
...
@@ -19,6 +19,7 @@
<bm:field
name=
"ref_invoice_number"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"ref_invoice_number"
/>
<bm:field
name=
"created_by_name"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"created_by_name"
/>
<bm:field
name=
"confirmed_by_name"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"confirmed_by_name"
/>
<bm:field
name=
"received_by_name"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"received_by_name"
/>
<bm:field
name=
"invoice_kind_n"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"INVOICE_KIND_N"
/>
<bm:field
name=
"invoice_title"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"invoice_title"
/>
<bm:field
name=
"invoice_bp_address_phone_num"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"invoice_bp_address_phone_num"
/>
...
...
src/main/webapp/WEB-INF/classes/csh/CSH501/csh_payment_approve_print.lwm
0 → 100644
View file @
fd49f28f
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: sf
$Date: 2019-12-06 上午09:52:30
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
csh_transaction_return_pkg.csh_return_print(
p_document_id =>
${@document_id},
p_user_id =>${/session/@user_id},
p_document_table=>${@document_table}
);
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/acr/ACR515/acr_invoice_vat.lview
View file @
fd49f28f
...
...
@@ -12,7 +12,8 @@
</a:init-procedure>
<a:view>
<a:link
id=
"acr513_invoice_readonly_page"
url=
"${/request/@context_path}/modules/cont/CON500/con_contract_update.lview"
/>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
url=
"${/request/@context_path}/modules/cont/CON500/con_contract_update.lview"
/>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"bmLink_vat_pause_or_submit"
model=
"acr.ACR515.acr_invoice_vat"
modelaction=
"batch_update"
/>
<a:link
id=
"bmLink_vat_receive"
model=
"acr.ACR515.acr_invoice_vat"
modelaction=
"execute"
/>
...
...
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
fd49f28f
...
...
@@ -124,6 +124,7 @@
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
if ((ds.id).indexOf('hls_bp_master') != -1) {
// record.getField('cell_phone').setRequired(true);
//record.getField('cell_phone').setRequired(true);
...
...
@@ -137,6 +138,7 @@
record.getField('parent_id_n').setReadOnly(true);
}
}
};
var card_identity_flag;
var sp_identity_flag;
...
...
@@ -461,9 +463,11 @@
// record.set('resident_addres', get_native_place(value))
}
if (name == 'id_no_sp') {
if (!value) {
record.set('ccx_resmsg1', '');
}
if (record.get('card_type_sp') == 'ID_CARD') {
if (!checkCard(value)) {
Leaf.showMessage('${l:HLS.PROMPT}', '配偶身份证号错误!');
...
...
@@ -479,7 +483,7 @@
}
}
var hls_bp_master_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master')
;
var hls_bp_master_ds_id =
f_bp_create_ds_id
;
if (ds.id == hls_bp_master_ds_id && hls_bp_master_ds_id) {
if (name == 'id_card_no_leg') {
if (!value) {
...
...
@@ -499,39 +503,46 @@
}
}
}
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id==test_ds_id1||ds.id==test_ds_id2) {
var hd_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
record = $(hd_ds).getCurrentRecord();
if(record.get('marital_status')=='40'){
var bp2_record = $(test_ds_id1).getCurrentRecord();
if(bp2_record){
record.set('bp_name_sp',bp2_record.get('bp_name_sp'));
record.set('card_type_sp',bp2_record.get('card_type_sp'));
record.set('id_no_sp',bp2_record.get('id_no_sp'));
record.set('date_of_birth_sp',bp2_record.get('date_of_birth_sp'));
record.set('cell_phone_sp',bp2_record.get('cell_phone_sp'));
record.set('work_unit_phone_sp',bp2_record.get('work_unit_phone_sp'));
record.set('work_unit_name_sp',bp2_record.get('work_unit_name_sp'));
record.set('work_unit_address_sp',bp2_record.get('work_unit_address_sp'));
record.set('zipcode',bp2_record.get('zipcode'));
bp2_record.set('marital_status', '40');
}
}else if(record.get('marital_status')=='30'){
debugger;
var bp2_record = $(test_ds_id2).getCurrentRecord();
if(bp2_record){
record.set('bp_name_sp',bp2_record.get('bp_name_sp'));
record.set('card_type_sp',bp2_record.get('card_type_sp'));
record.set('id_no_sp',bp2_record.get('id_no_sp'));
record.set('date_of_birth_sp',bp2_record.get('date_of_birth_sp'));
record.set('cell_phone_sp',bp2_record.get('cell_phone_sp'));
record.set('work_unit_phone_sp',bp2_record.get('work_unit_phone_sp'));
record.set('work_unit_name_sp',bp2_record.get('work_unit_name_sp'));
record.set('work_unit_address_sp',bp2_record.get('work_unit_address_sp'));
record.set('zipcode',bp2_record.get('zipcode'));
bp2_record.set('marital_status', '30');
}
}
// if (ds.id == gird_ds_id4 || ds.id == gird_ds_id5) {
// if (name == 'id_no_sp') {
// if (!value) {
// record.set('ccx_resmsg1', '');
// }
// if(record.get('card_type_sp') == 'ID_CARD'){
// if (!checkCard(value)) {
// Leaf.showMessage('${l:HLS.PROMPT}','配偶身份证号错误!');
// return false;
// }
// }
// // ds.fields.id_no_sp.pro.validator = id_card_no_validate;
// record.set('resident_addres_sp', get_native_place(value))
// }
// }
// var bp_spouse_ds = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
// if(ds.id==bp_spouse_ds&&bp_spouse_ds){
// if (name == 'marital_status') {
// console.log(value);
// debugger
// if (value == '30') {
// record.getField('bp_name_sp').setRequired(true);
// record.getField('card_type_sp_n').setRequired(true);
// record.getField('id_no_sp').setRequired(true);
//
// } else {
// record.getField('bp_name_sp').setRequired(false);
// record.getField('card_type_sp_n').setRequired(false);
// record.getField('id_no_sp').setRequired(false);
// }
// }
// }
}
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
fd49f28f
...
...
@@ -26,20 +26,21 @@
<script
type=
"text/javascript"
>
<![CDATA[
//保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function(ds, record) {
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
// debugger
// var Pattern = /^[A-Za-z]+$/;
// var record=$(bp_ds_id).getCurrentRecord();
// var record_name=record.get('extra_nam');
// if(record_name=='extra_nam'){
//
// if((!Pattern.test(record_name)||(record_name.length!=3))){
// Leaf.showMessage('${l:HLS.PROMPT}', '简称不合规!');
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// return;
// }
// }
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
// debugger
// var Pattern = /^[A-Za-z]+$/;
// var record=$(bp_ds_id).getCurrentRecord();
// var record_name=record.get('extra_nam');
// if(record_name=='extra_nam'){
//
// if((!Pattern.test(record_name)||(record_name.length!=3))){
// Leaf.showMessage('${l:HLS.PROMPT}', '简称不合规!');
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
// return;
// }
// }
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord();
if(old_id_card != new_id_card){
...
...
@@ -54,6 +55,15 @@
}else{
record.set('bp_name_change_flag','N');
}
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
//var records = $(test_ds_id1);
//var record=$(records).getCurrentRecord();
//var records = $(test_ds_id2);
//var record=$(records).getAll();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
...
...
@@ -236,13 +246,13 @@
//新增和加载时调用form
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
// if ((ds.id).indexOf('hls_bp_master_credit') != -1 && (ds.id).indexOf('F_ORG_CREDIT') != -1) {
// if (ds.fields.fin_institution_code) {
// ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate;
// }
// if (ds.fields.trade_type_code) {
// ds.fields.trade_type_code.pro.validator = trade_type_code_validate;
// }
// }
// if (ds.fields.fin_institution_code) {
// ds.fields.fin_institution_code.pro.validator = fin_institution_code_validate;
// }
// if (ds.fields.trade_type_code) {
// ds.fields.trade_type_code.pro.validator = trade_type_code_validate;
// }
// }
// }
if ((ds.id).indexOf('hls_bp_master') != -1 && (ds.id).indexOf('F_BASIC') != -1) {
...
...
@@ -459,25 +469,55 @@
if (name == 'id_no_sp') {
//
if (!checkCard(value)) {
Leaf.showMessage('提示', '配偶信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
new_id_card = record.get('id_card_no_leg');
record.set('resident_addres_sp',get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
if (record.get('card_type_sp') == 'ID_CARD') {
if (!checkCard(value)) {
Leaf.showMessage('提示', '配偶信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
new_id_card = record.get('id_card_no_leg');
record.set('resident_addres_sp',get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
}
}
}
}
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var test_ds_id1 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var test_ds_id2 = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
if (ds.id==test_ds_id1||ds.id==test_ds_id2) {
record = $(test_ds_id).getCurrentRecord();
if(record.get('marital_status')=='40'){
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE_1', 'hls_bp_master');
var bp2_record = $(test_ds_id).getCurrentRecord();
bp2_record.set('marital_status', '40');
}else if(record.get('marital_status')=='30'){
var test_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_SPOUSE', 'hls_bp_master');
var bp2_record = $(test_ds_id).getCurrentRecord();
bp2_record.set('marital_status', '30');
}
}
if(name=='marital_status'
&&
ds.id==test_ds_id){
if ($L.CmpManager.get(test_ds_id1)||$L.CmpManager.get(test_ds_id2)) {
var bp2_record = $L.CmpManager.get(test_ds_id1).getCurrentRecord();
var bp3_record = $L.CmpManager.get(test_ds_id2).getCurrentRecord();
bp2_record.set('marital_status', value);
bp3_record.set('marital_status', value);
}
}
...
...
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