ProductKind.js 836 B

12345678910111213141516171819202122232425262728293031
  1. Ext.define('erp.view.scm.sale.ProductKind',{
  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. region: 'center',
  11. width: '100%',
  12. saveUrl: 'scm/sale/saveProductKind.action',
  13. deleteUrl: 'scm/sale/deleteProductKind.action',
  14. updateUrl: 'scm/sale/updateProductKind.action',
  15. getIdUrl: 'common/getId.action?seq=PRODUCTKIND_SEQ',
  16. keyField: 'pk_id',
  17. codeField: 'pk_code',
  18. refresh: function(form) {
  19. var id = form.down('#pk_id').getValue();
  20. if(id) {
  21. form.FormUtil.loadNewStore(form, {
  22. caller: caller,
  23. condition: "pk_id=" + form.down('#pk_id').getValue()
  24. });
  25. }
  26. }
  27. }]
  28. });
  29. me.callParent(arguments);
  30. }
  31. });