HrOrgStr.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Ext.define('erp.view.hr.emplmana.HrOrgStr',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'border',
  10. items: [{
  11. region: 'center',
  12. width: '70%',
  13. layout: 'anchor',
  14. items:[{
  15. xtype: 'erpFormPanel',
  16. anchor: '100% 45%',
  17. title: '<font color=#00868B>人员档案主表</font>',
  18. getIdUrl: 'common/getId.action?seq=employee_SEQ',
  19. keyField: 'em_id'
  20. },{
  21. xtype:'tabpanel',
  22. anchor: '100% 55%',
  23. items:[{
  24. xtype: 'erpGridPanel2',
  25. title:'家庭情况',
  26. detno: 'af_detno',
  27. keyField: 'af_id',
  28. necessaryField: 'af_name',
  29. mainField: 'af_arid'
  30. },{
  31. id: 'educationgrid',
  32. title:'教育经历',
  33. xtype: 'educationgrid',
  34. keyField: 'ad_id',
  35. mainField: 'ad_arid',
  36. necessaryField: 'ad_school',
  37. detno: 'ad_detno'
  38. },{
  39. id: 'workgrid',
  40. xtype: 'workgrid',
  41. title:'工作履历',
  42. mainField: 'aw_arid',
  43. detno: 'aw_detno',
  44. necessaryField: 'aw_comname',
  45. keyField: 'aw_id'
  46. },{
  47. id: 'reandpunishgrid',
  48. xtype: 'reandpunishgrid',
  49. title:'奖惩记录',
  50. necessaryField: 'ar_title',
  51. keyField: 'ar_id',
  52. detno: 'ar_detno',
  53. mainField: 'ar_arid'
  54. },{
  55. id: 'positiongrid',
  56. xtype: 'positiongrid',
  57. title:'职位调动',
  58. necessaryField: 'ap_newpos',
  59. keyField: 'ap_id',
  60. detno: 'ap_detno',
  61. mainField: 'ap_arid'
  62. }]
  63. }]
  64. },{
  65. region: 'east',
  66. width: '30%',
  67. xtype: 'hrOrgStrTree'
  68. }]
  69. }]
  70. });
  71. me.callParent(arguments);
  72. }
  73. });