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
d5c2105f
Commit
d5c2105f
authored
Sep 30, 2019
by
homunculus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat]增加商业伙伴管理简称校验
parent
0dfa9f42
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
0 deletions
+85
-0
INITIALIZE_CREATED_BY_ERROR_MESSAGE.sql
.../Init/Sys_message/INITIALIZE_CREATED_BY_ERROR_MESSAGE.sql
+24
-0
INITIALIZE_EXTRA_NAME_ERROR_MESSAGE.sql
.../Init/Sys_message/INITIALIZE_EXTRA_NAME_ERROR_MESSAGE.sql
+24
-0
bp_create_user_authority.lwm
...p/WEB-INF/classes/hls/HLS213/bp_create_user_authority.lwm
+2
-0
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+35
-0
No files found.
src/main/database/Init/Sys_message/INITIALIZE_CREATED_BY_ERROR_MESSAGE.sql
0 → 100644
View file @
d5c2105f
WHENEVER
SQLERROR
EXIT
FAILURE
ROLLBACK
;
WHENEVER
OSERROR
EXIT
FAILURE
ROLLBACK
;
spool
INITIALIZE_CREATED_BY_ERROR_MESSAGE
.
log
set
feedback
off
set
define
off
<!
--系统代码取值-->
BEGIN
sys_message_pkg
.
delete_message
(
'CREATED_BY_ERROR'
);
sys_message_pkg
.
insert_message
(
'CREATED_BY_ERROR'
,
'错误'
,
'确认人不能和开票人一样,请勿确认!'
,
'ZHS'
);
END
;
commit
;
set
feedback
on
set
define
on
spool
off
exit
\ No newline at end of file
src/main/database/Init/Sys_message/INITIALIZE_EXTRA_NAME_ERROR_MESSAGE.sql
0 → 100644
View file @
d5c2105f
WHENEVER
SQLERROR
EXIT
FAILURE
ROLLBACK
;
WHENEVER
OSERROR
EXIT
FAILURE
ROLLBACK
;
spool
INITIALIZE_EXTRA_NAME_ERROR
.
log
set
feedback
off
set
define
off
<!
--系统代码取值-->
BEGIN
sys_message_pkg
.
delete_message
(
'EXTRA_NAME_ERROR'
);
sys_message_pkg
.
insert_message
(
'EXTRA_NAME_ERROR'
,
'错误'
,
'简称不合规范!'
,
'ZHS'
);
END
;
commit
;
set
feedback
on
set
define
on
spool
off
exit
\ No newline at end of file
src/main/webapp/WEB-INF/classes/hls/HLS213/bp_create_user_authority.lwm
View file @
d5c2105f
...
...
@@ -19,6 +19,8 @@
-- Call the procedure
hls_bp_master_pkg.create_cdd(p_document_type =>${@document_type}, p_document_id =>${@bp_id}, p_company_id =>${/session/@company_id}, p_function_code =>${@function_code}, p_function_usage =>${@function_usage}, p_user_id =>${/session/@user_id}, p_cdd_list_id =>${@cdd_list_id});
hls_bp_master_pkg.bp_create_user_authority(p_bp_id => ${@bp_id}, p_user_id => ${/session/@user_id}, p_company_id => ${/session/@company_id});
--校验简称
hls_bp_master_pkg.check_extra_name(p_extra_nam => ${@extra_nam},p_bp_id => ${@bp_id}, p_user_id => ${/session/@user_id});
END;
]]>
</bm:update-sql>
</bm:operation>
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
d5c2105f
...
...
@@ -20,8 +20,27 @@
<!-- <script src="${/request/@context_path}/javascripts/identity_card_info_query.js"-->
<!-- type="text/javascript"></script>-->
<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;
// }
// }
// };
//保存submitsuccess调用
window['${/parameter/@layout_code}_on_layout_dynamic_submitsuccess'] = function(ds, record, res, bp_seq) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_cdd_item_doc_ref');
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
...
...
@@ -30,9 +49,22 @@
$(ds_id).query();
}
// 简称校验
// debugger;
// var Pattern = /^[A-Za-z]+$/;
//
// if(record.getField('extra_nam')=='extra_nam'){
// if((!Pattern.text(extra_nam)||(extra_nam.length!=3))){
// Leaf.showMessage('${l:HLS.PROMPT}', '简称不合规!');
// return true;
// }
// }
var bp_record = $(bp_ds_id).getCurrentRecord();
var bp_id = bp_record.get('bp_id');
// Leaf.request({
// url: $('hls214_sap_eai_create_customer_link').getUrl(),
// para: {
...
...
@@ -70,6 +102,8 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
function prj_check_bp_id(record) {
var bp_id;
if (record) {
...
...
@@ -382,6 +416,7 @@
}
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
//
...
...
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