Kpidesign.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Ext.define('erp.view.hr.kpi.Kpidesign',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor: '100% 60%',
  11. saveUrl: 'hr/Kpi/saveKpidesign.action',
  12. deleteUrl: 'hr/Kpi/deleteKpidesign.action',
  13. updateUrl: 'hr/Kpi/updateKpidesign.action',
  14. submitUrl: 'hr/kpi/submitKpidesign.action',
  15. resSubmitUrl: 'hr/kpi/resSubmitKpidesign.action',
  16. auditUrl: 'hr/kpi/auditKpidesign.action',
  17. resAuditUrl: 'hr/kpi/resAuditKpidesign.action',
  18. getIdUrl: 'common/getId.action?seq=Kpidesign_SEQ',
  19. keyField: 'kd_id',
  20. codeField: 'kd_code',
  21. statusField: 'kd_status',
  22. statuscodeField: 'kd_statuscode'
  23. },{
  24. xtype:'tabpanel',
  25. id:'kpitab',
  26. anchor: '100% 40%',
  27. tabPosition: 'bottom',
  28. items:[{
  29. xtype: 'erpGridPanel2',
  30. keyField: 'ki_id',
  31. mainField: 'ki_kdid',
  32. detno: 'ki_detno',
  33. _noc:1,
  34. tbar: {xtype: 'Kpitoolbar',id:'Kpitoolbar1'},
  35. bbar:[],
  36. allowExtraButtons: true,
  37. title:'考核项目'
  38. },{
  39. id: 'Kpidesignpoint_F',
  40. title:'评分设计',
  41. _noc:1,
  42. xtype: 'GradeDesignGrid',
  43. caller:'Kpidesignpoint',
  44. keyField: 'kp_id',
  45. mainField: 'kp_kdid',
  46. detno: 'kp_detno'
  47. },{
  48. id: 'KpidesigngradeLevel_F',
  49. title:'评分等级',
  50. _noc:1,
  51. xtype: 'KpidesigngradeLevelGrid',
  52. caller:'KpidesigngradeLevel',
  53. keyField: 'kl_id',
  54. mainField: 'kl_kdid',
  55. detno: 'kl_detno'
  56. }]
  57. }]
  58. });
  59. me.callParent(arguments);
  60. }
  61. });