Workovertime.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Ext.define('erp.view.hr.attendance.Workovertime',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'erpFormPanel',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 40%',
  14. saveUrl: 'hr/attendance/saveWorkovertime.action',
  15. deleteUrl: 'hr/attendance/deleteWorkovertime.action',
  16. updateUrl: 'hr/attendance/updateWorkovertime.action',
  17. auditUrl: 'hr/attendance/auditWorkovertime.action',
  18. resAuditUrl: 'hr/attendance/resAuditWorkovertime.action',
  19. submitUrl: 'hr/attendance/submitWorkovertime.action',
  20. confirmUrl:'hr/attendance/confirmWorkovertime.action',
  21. resSubmitUrl: 'hr/attendance/resSubmitWorkovertime.action',
  22. getIdUrl: 'common/getId.action?seq=Workovertime_SEQ',
  23. keyField: 'wo_id'
  24. },{
  25. xtype: 'erpGridPanel2',
  26. anchor: '100% 60%',
  27. //necessaryField: 'ppd_costname',
  28. keyField: 'wod_id',
  29. detno: 'wod_detno',
  30. mainField: 'wod_woid',
  31. allowExtraButtons:true
  32. }]
  33. }]
  34. });
  35. me.callParent(arguments);
  36. }
  37. });
  38. /*Ext.define('erp.view.hr.attendance.Workovertime',{
  39. extend: 'Ext.Viewport',
  40. layout: 'fit',
  41. hideBorders: true,
  42. initComponent : function(){
  43. var me = this;
  44. Ext.apply(me, {
  45. items: [{
  46. layout: 'anchor',
  47. items: [{
  48. xtype: 'erpFormPanel',
  49. anchor: '100% 100%',
  50. saveUrl: 'hr/attendance/saveWorkovertime.action',
  51. deleteUrl: 'hr/attendance/deleteWorkovertime.action',
  52. updateUrl: 'hr/attendance/updateWorkovertime.action',
  53. getIdUrl: 'common/getId.action?seq=WORKOVERTIME_SEQ',
  54. keyField: 'wo_id'
  55. }]
  56. }]
  57. });
  58. me.callParent(arguments);
  59. }
  60. });*/