ProductUnit.js 705 B

123456789101112131415161718192021222324252627282930
  1. Ext.define('erp.view.scm.product.ProductUnit',{
  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:'productViewport',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 20%',
  14. updateUrl: 'scm/product/updateProductUnit.action',
  15. getIdUrl: 'common/getId.action?seq=PRODUCT_SEQ',
  16. keyField: 'pr_id',
  17. codeField: 'pr_code',
  18. },{
  19. xtype: 'erpGridPanel2',
  20. anchor: '100% 80%',
  21. keyField: 'pu_id',
  22. mainField: 'pu_prid',
  23. detno: 'pu_detno',
  24. necessaryField:'pu_otherunit'
  25. }]
  26. }]
  27. });
  28. me.callParent(arguments);
  29. }
  30. });