|
|
|
|
Ext.define('MsUserAuthority', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
idProperty: 'GID',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'GID', type: 'string' },
|
|
|
|
|
{ name: 'USERID', type: 'string' },
|
|
|
|
|
{ name: 'VISIBLERANGE', type: 'string' },
|
|
|
|
|
{ name: 'VISIBLERANGEREF', type: 'string' },
|
|
|
|
|
{ name: 'OPERATERANGE', type: 'string' },
|
|
|
|
|
{ name: 'OPERATERANGEREF', type: 'string' },
|
|
|
|
|
{ name: 'AUTHORITYID', type: 'string' },
|
|
|
|
|
{ name: 'DESCRIPTION', type: 'string' },
|
|
|
|
|
{ name: 'VSSQL', type: 'string' },
|
|
|
|
|
{ name: 'NAME', type: 'string' }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Ext.define('MsUserAuthorityCompany', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
idProperty: 'GID',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'GID', type: 'string' },
|
|
|
|
|
{ name: 'USERID', type: 'string' },
|
|
|
|
|
{ name: 'COMPANY', type: 'string' },
|
|
|
|
|
{ name: 'COMPANYID', type: 'string' },
|
|
|
|
|
{ name: 'OPERATERANGE', type: 'boolean' },
|
|
|
|
|
{ name: 'VISIBLERANGE', type: 'boolean' },
|
|
|
|
|
{ name: 'AUTHORITYID', type: 'string' }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.define('MsUserAuthorityOp', {
|
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
|
fields: [
|
|
|
|
|
{ name: 'id', type: 'string' },
|
|
|
|
|
{ name: 'GID', type: 'string' },
|
|
|
|
|
{ name: 'USERID', type: 'string' },
|
|
|
|
|
{ name: 'OPNAME', type: 'string' },
|
|
|
|
|
{ name: 'DEPTNAME', type: 'string' },
|
|
|
|
|
{ name: 'OPID', type: 'string' },
|
|
|
|
|
{ name: 'OPERATERANGE', type: 'boolean' },
|
|
|
|
|
{ name: 'VISIBLERANGE', type: 'boolean' },
|
|
|
|
|
{ name: 'AUTHORITYID', type: 'string' },
|
|
|
|
|
|
|
|
|
|
{ name: 'PARENTID', type: 'string' },
|
|
|
|
|
{ name: 'leaf', type: 'bool' },
|
|
|
|
|
{ name: 'expanded', type: 'bool' },
|
|
|
|
|
{ name: 'checked', type: 'bool' }
|
|
|
|
|
]
|
|
|
|
|
});
|