Archive.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. //necessaryField: 'af_name',
  31. mainField: 'af_arid'
  32. },{
  33. id: 'educationgrid',
  34. title:'教育经历',
  35. xtype: 'educationgrid',
  36. keyField: 'ad_id',
  37. mainField: 'ad_arid',
  38. necessaryField: 'ad_school',
  39. detno: 'ad_detno'
  40. },{
  41. id: 'workgrid',
  42. xtype: 'workgrid',
  43. title:'工作履历',
  44. mainField: 'aw_arid',
  45. detno: 'aw_detno',
  46. necessaryField: 'aw_comname',
  47. keyField: 'aw_id'
  48. },{
  49. id: 'reandpunishgrid',
  50. xtype: 'reandpunishgrid',
  51. title:'奖惩记录',
  52. necessaryField: 'ar_title',
  53. keyField: 'ar_id',
  54. detno: 'ar_detno',
  55. mainField: 'ar_arid'
  56. },{
  57. id: 'positiongrid',
  58. xtype: 'positiongrid',
  59. title:'异动情况',
  60. necessaryField: 'ap_newpos',
  61. keyField: 'ap_id',
  62. detno: 'ap_detno',
  63. mainField: 'ap_arid'
  64. },{
  65. id:'relationgrid',
  66. xtype: 'relationgrid',
  67. title:'公司亲友',
  68. necessaryField: 're_code',
  69. keyField: 're_id',
  70. detno: 're_detno',
  71. mainField: 're_emid'
  72. },{
  73. id:'contractgrid',
  74. xtype: 'contractgrid',
  75. title:'所签合同'
  76. }]
  77. }]
  78. });
  79. me.callParent(arguments);
  80. }
  81. });