ShortForecast.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Ext.define('erp.view.scm.sale.ShortForecast',{
  2. extend: 'Ext.Viewport',
  3. layout: 'border',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor: '100% 30%',
  11. region:'north',
  12. saveUrl: 'scm/sale/saveSaleForecast.action',
  13. deleteUrl: 'scm/sale/deleteShortForecast.action',
  14. updateUrl: 'scm/sale/updateShortForecast.action',
  15. submitUrl: 'scm/sale/submitShortForecast.action',
  16. auditUrl: 'scm/sale/auditShortForecast.action',
  17. resAuditUrl: 'scm/sale/resAuditShortForecast.action',
  18. resSubmitUrl: 'pm/make/resSubmitShortForecast.action',
  19. getIdUrl: 'common/getId.action?seq=SaleForeCast_SEQ',
  20. keyField: 'sf_id',
  21. statusField: 'sf_status',
  22. codeField: 'sf_statuscode'
  23. },{
  24. anchor: '100% 80%',
  25. //xtype:'erpWCPlanGrid',
  26. xtype:'erpShortForecastGrid',
  27. headerCt: Ext.create("Ext.grid.header.Container"),
  28. /* invalidateScrollerOnRefresh: false,
  29. viewConfig: {
  30. trackOver: false
  31. },
  32. buffered: true,
  33. sync: true,
  34. //sync:true,
  35. */ region:'center'
  36. }]
  37. });
  38. me.callParent(arguments);
  39. }
  40. });