Archive.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Ext.define('erp.view.hr.emplmana.Archive',{
  2. extend: 'Ext.Viewport',
  3. hideBorders: true,
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. layout: 'anchor',
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. title: '<font color=#00868B>人员档案主表</font>',
  11. saveUrl: 'hr/emplmana/saveArchive.action',
  12. deleteUrl: 'hr/emplmana/deleteArchive.action',
  13. updateUrl: 'hr/emplmana/updateArchive.action',
  14. auditUrl: 'hr/employee/auditEmployee.action',
  15. submitUrl: 'hr/employee/submitEmployee.action',
  16. resSubmitUrl: 'hr/employee/resSubmitEmployee.action',
  17. resAuditUrl: 'hr/employee/resAuditEmployee.action',
  18. getIdUrl: 'common/getId.action?seq=employee_SEQ',
  19. keyField: 'em_id',
  20. statusField: 'em_statuscode',
  21. anchor: '100% 70%'
  22. },{
  23. xtype:'tabpanel',
  24. anchor: '100% 30%',
  25. items:[{
  26. xtype: 'erpGridPanel2',
  27. title:'家庭情况',
  28. detno: 'af_detno',
  29. keyField: 'af_id',
  30. mainField: 'af_arid'
  31. },{
  32. id: 'educationgrid',
  33. title:'教育经历',
  34. xtype: 'educationgrid',
  35. keyField: 'ad_id',
  36. mainField: 'ad_arid',
  37. necessaryField: 'ad_school',
  38. detno: 'ad_detno'
  39. },{
  40. id: 'workgrid',
  41. xtype: 'workgrid',
  42. title:'工作履历',
  43. mainField: 'aw_arid',
  44. detno: 'aw_detno',
  45. necessaryField: 'aw_comname',
  46. keyField: 'aw_id'
  47. },{
  48. id: 'reandpunishgrid',
  49. xtype: 'reandpunishgrid',
  50. title:'奖惩记录',
  51. necessaryField: 'ar_title',
  52. keyField: 'ar_id',
  53. detno: 'ar_detno',
  54. mainField: 'ar_arid'
  55. },{
  56. id: 'positiongrid',
  57. xtype: 'positiongrid',
  58. title:'异动情况',
  59. necessaryField: 'ap_newpos',
  60. keyField: 'ap_id',
  61. detno: 'ap_detno',
  62. mainField: 'ap_arid'
  63. },{
  64. id:'relationgrid',
  65. xtype: 'relationgrid',
  66. title:'公司亲友',
  67. necessaryField: 're_code',
  68. keyField: 're_id',
  69. detno: 're_detno',
  70. mainField: 're_emid'
  71. },{
  72. id:'traininggrid',
  73. xtype: 'traininggrid',
  74. title:'内部培训'
  75. }]
  76. }]
  77. });
  78. me.callParent(arguments);
  79. }
  80. });