BarStockLoss.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. Ext.define('erp.view.scm.reserve.BarStockLoss',{
  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% 40%',
  11. saveUrl: 'scm/barStockLoss/saveLoss.action?caller=' +caller,
  12. deleteUrl: 'scm/barStockLoss/deleteLoss.action?caller=' +caller,
  13. updateUrl: 'scm/barStockLoss/updateLoss.action?caller=' +caller,
  14. auditUrl: 'scm/barStockLoss/auditLoss.action?caller=' +caller,
  15. resAuditUrl: 'scm/barStockLoss/resAduitLoss.action?caller=' +caller,
  16. submitUrl: 'scm/barStockLoss/submitLoss.action?caller=' +caller,
  17. resSubmitUrl: 'scm/barStockLoss/resSubmitLoss.action?caller=' +caller,
  18. getIdUrl: 'common/getId.action?seq=BARSTOCKTAKING_SEQ',
  19. keyField: 'bs_id',
  20. codeField: 'bs_code',
  21. statusField: 'bs_status',
  22. statuscodeField: 'bs_statuscode'
  23. },{
  24. xtype: 'erpGridPanel2',
  25. anchor: '100% 60%',
  26. allowExtraButtons: true,
  27. detno: 'bsd_detno',
  28. keyField: 'bsd_id',
  29. mainField: 'bsd_bsid'
  30. }]
  31. });
  32. me.callParent(arguments);
  33. }
  34. });