Commit 6359c59b authored by 25484's avatar 25484

Merge branch 'refs/heads/feature/ap_invoice_import' into develop

parents 9cd71ea8 fec024c1
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
trace="true"> trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="hls.HLS213N.hls_bp_master_unit" rootPath="user_agent_description"/> <a:model-query fetchAll="true" model="hls.HLS213N.hls_bp_master_unit" rootPath="user_agent_description"/>
<a:model-query fetchAll="true" model="hls.HLS214N.hls_bp_master_modify_user" rootPath="modify_user"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="get_special_fields_link_id" model="hls.HLS213N.social_code_exist" <a:link id="get_special_fields_link_id" model="hls.HLS213N.social_code_exist"
...@@ -28,9 +29,10 @@ ...@@ -28,9 +29,10 @@
<!-- <script src="${/request/@context_path}/javascripts/identity_card_info_query.js" type="text/javascript"/>--> <!-- <script src="${/request/@context_path}/javascripts/identity_card_info_query.js" type="text/javascript"/>-->
<!-- <a:link id="identity_query_link" model="interface.CCX_INTERFACE.identity_query" modelaction="update"/>--> <!-- <a:link id="identity_query_link" model="interface.CCX_INTERFACE.identity_query" modelaction="update"/>-->
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
Leaf.onReady(function () { Leaf.onReady(function () {debugger;
var unit_id = '${/model/user_agent_description/record/@unit_id}'; var unit_id = '${/model/user_agent_description/record/@unit_id}';
var unit_id_n = '${/model/user_agent_description/record/@bp_name}'; var unit_id_n = '${/model/user_agent_description/record/@bp_name}';
var employee_type_id = '${/model/modify_user/record/@employee_type_id}';
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
...@@ -42,12 +44,12 @@ ...@@ -42,12 +44,12 @@
bp_record.set('owner_user_id', '${/session/@user_id}'); bp_record.set('owner_user_id', '${/session/@user_id}');
bp_record.set('unit_id', unit_id); bp_record.set('unit_id', unit_id);
bp_record.set('unit_id_n', unit_id_n); bp_record.set('unit_id_n', unit_id_n);
if (unit_id && unit_id_n) { if(employee_type_id == '64'){
bp_record.getField('unit_id_n').setReadOnly(true); bp_record.getField('unit_id_n').setReadOnly(true);
} else { bp_record.getField('unit_id_n').setRequired(false);
}else{
bp_record.getField('unit_id_n').setReadOnly(false); bp_record.getField('unit_id_n').setReadOnly(false);
bp_record.getField('unit_id_n').setRequired(true); bp_record.getField('unit_id_n').setRequired(true);
// bp_record.getField('agent_type_n').setRequired(true);
} }
if ('${/parameter/@bp_type}' == 'AGENT') { if ('${/parameter/@bp_type}' == 'AGENT') {
bp_record.getField('agent_type_n').setReadOnly(false); bp_record.getField('agent_type_n').setReadOnly(false);
......
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