/*var spot = Ext.create('Ext.ux.Spotlight', { easing: 'easeOut', duration: 300 }); var updateSpot = function(id) { if (typeof id == 'string') { spot.show(id); } else if (!id && spot.active) { spot.hide(); } /* p1.toggle(id == p1.id); p2.toggle(id == p2.id); p3.toggle(id == p3.id); };*/ Ext.define('erp.view.sys.hr.HrPortal',{ extend: 'Ext.panel.Panel', alias: 'widget.hrportal', id:'hrportal', labelSeparator : ':', buttonAlign : 'center', bodyStyle : 'background:#f9f9f9;', fieldDefaults : { msgTarget: 'none', blankText : $I18N.common.form.blankText }, requires:['erp.view.sys.hr.GroupTabPanel','erp.view.sys.hr.DepartPanel','erp.view.sys.hr.JobGrid'], defaults:{ xtype:'textfield', columnWidth:0.33, margin:'5 5 5 5' }, layout:'fit', items: [{ xtype: 'grouptabpanel', id:'hrgrouptabpanel', activeGroup: 0, items: [{ mainItem: 1, activeItem:2, items: [{ title: '财务核算部门', iconCls: 'x-icon-tickets', tabTip: '财务核算部门', //border: false, xtype: 'departpanel', margin: '10', height: null }, { title: '人事信息', border: false }, { title: '组织资料', iconCls: 'x-icon-subscriptions', tabTip: 'Subscriptions tabtip', //style: 'padding: 10px;', border: false, layout: 'border', items: [{ xtype: 'toolbar', region:'north', ui: 'footer', items: [{ text:'添加', tooltip:'添加新组织', iconCls:'btn-add', menu: { items: [{ text: '顶层组织', iconCls:'btn-add', itemId:'topOrg' },{ text: '添加组织', iconCls: 'btn-add', itemId: 'addOrg' }] } },'-', { text:'帮助', iconCls:'btn-help', tooltip:'帮助简介' },'->',{ xtype:'tbtext', text:'
岗位名称: {name}
', '
权限描述: {description}
'] }] }] }, { title: '审批流程', iconCls: 'x-icon-templates', tabTip: 'Templates tabtip', style: 'padding: 10px;', border: false, layout:'border', items: [{ xtype:'jprocessgrid', region:'center', width:400 },{ region: 'east', flex:1, dockedItems: [{ xtype: 'toolbar', ui: 'footer', padding: '0 0 5 0', items: [{ xtype:'tbtext', text:'审批流程设置' }] }], margins:'5 0 0 0', minSize: 175, maxSize: 400, xtype:'propertygrid', id:'jprocesssetgrid', customEditors: { evtStart: Ext.create('Ext.form.TimeField', {selectOnFocus: true}) }, propertyNames: { js_caller: '页面CALLER', js_formKeyName:'主表关键字', js_formStatusName:'状态字段', js_table:'流程对应表名', js_formDetailKey:'关联主表字段', js_decisionCondition:'分支条件字段', js_decisionVariables:'分支条件变量', js_formUrl:'表单路径', js_notefields:'备注字段', js_groupby:'分组字段', js_id:'ID', js_auditmethod:'审核方法' }, source: { js_caller: 'CALLER', js_formKeyName:'', js_formStatusName:'', js_table:'', js_formDetailKey:'', js_decisionCondition:'', js_decisionVariables:'', js_formurl:'', js_notefields:'', js_groupby:'' } }] }] }, { expanded: false, items: { title: '帮助资料', bodyPadding: 10, tpl:[ '{name}
' ], border: false } }] }], initComponent : function(){ this.callParent(arguments); } });