DataStore.js 640 B

1234567891011121314151617181920212223242526
  1. Ext.define('erp.view.ma.data.DataStore',{
  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: 'ma/saveDataStore.action',
  12. deleteUrl: 'ma/saveDataStore.action',
  13. updateUrl: 'ma/updateDataStore.action',
  14. getIdUrl: 'common/getId.action?seq=DATASTORE_SEQ',
  15. keyField: 'ds_id'
  16. },{
  17. xtype: 'erpGridPanel2',
  18. anchor: '100% 60%',
  19. necessaryField: 'dsd_field',
  20. keyField: 'dsd_id',
  21. mainField: 'dsd_mainid'
  22. }]
  23. });
  24. me.callParent(arguments);
  25. }
  26. });