Commit a4e0aa93 authored by lizhe's avatar lizhe

工作流转交限制由用户改为角色

parent 4735db21
......@@ -13,6 +13,7 @@
<ns1:field name="employee_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" prompt="用户姓名"/>
<ns1:field name="email" forDisplay="true" prompt="邮箱"/>
<ns1:field name="mobil" forDisplay="true" prompt="号码"/>
<ns1:field name="role_admin_amount" expression="(select count(1) from SYS_USER_ROLE_GROUPS_VL t where t.enabled_flag = &apos;Y&apos; and t.role_code in (&apos;0017&apos;,&apos;HAND&apos;) and t.user_id = t1.user_id and t.role_id = ${/session/@role_id})"/>
</ns1:fields>
<ns1:query-fields>
<ns1:query-field field="user_name" queryOperator="like"/>
......
......@@ -14,7 +14,8 @@
<script type="text/javascript"><![CDATA[
Leaf.onReady(function () {
var record = $('wfl_workflow_deliver_batch_create_ds').getAt(0);
if ('${/model/sys_user_employee_rp/record/@user_name}' != 'HAND' && '${/model/sys_user_employee_rp/record/@user_name}' != 'HL_ADMIN') {
//if ('${/model/sys_user_employee_rp/record/@user_name}' != 'HAND' && '${/model/sys_user_employee_rp/record/@user_name}' != 'HL_ADMIN') {
if ('${/model/sys_user_employee_rp/record/@role_admin_amount}' == '0' ) {
record.set('recipient_name', '${/model/sys_user_employee_rp/record/@employee_name}');
record.set('recipient_id', '${/model/sys_user_employee_rp/record/@user_id}');
record.getField('recipient_name').setReadOnly(true);
......
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