Commit d5c2105f authored by homunculus's avatar homunculus

[feat]增加商业伙伴管理简称校验

parent 0dfa9f42
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
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
......@@ -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>
......
......@@ -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) {
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment