News.js 562 B

123456789101112131415161718192021222324
  1. Ext.define('erp.view.oa.news.News',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'anchor',
  10. items: [{
  11. xtype: 'erpFormPanel',
  12. anchor: '100% 100%',
  13. saveUrl: 'oa/news/saveNews.action',
  14. deleteUrl: 'oa/news/deleteNews.action',
  15. updateUrl: 'oa/news/updateNews.action',
  16. getIdUrl: 'common/getId.action?seq=NEWS_SEQ',
  17. keyField: 'ne_id',
  18. codeField:'ne_code'
  19. }]
  20. }]
  21. });
  22. me.callParent(arguments);
  23. }
  24. });