FATabPanel.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Ext.define('erp.view.sys.fa.FATabPanel',{
  2. extend: 'Ext.tab.Panel',
  3. alias: 'widget.fatabpanel',
  4. id:'fatabpanel',
  5. animCollapse: false,
  6. bodyBorder: false,
  7. border: false,
  8. autoShow: true,
  9. tabPosition:'bottom',
  10. frame:true,
  11. dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
  12. defaults:{
  13. plugins: [{
  14. ptype: 'cellediting',
  15. clicksToEdit: 2,
  16. pluginId: 'cellplugin'
  17. }]
  18. },
  19. items: [{
  20. title: '其它出入库客科目',
  21. xtype:'simpleactiongrid',
  22. caller:'ProdIOCateSet',
  23. saveUrl: 'co/cost/saveProdIOCateSet.action',
  24. deleteUrl: 'co/cost/deleteProdIOCateSet.action',
  25. updateUrl: 'co/cost/updateProdIOCateSet.action',
  26. getIdUrl: 'common/getId.action?seq=PRODIOCATESET_SEQ',
  27. keyField: 'pc_id',
  28. codeField: 'pc_code',
  29. params:{
  30. caller:'ProdIOCateSet!Grid',
  31. condition:'1=1'
  32. }
  33. },{
  34. title: '币别',
  35. xtype:'simpleactiongrid',
  36. caller:'Currencys',
  37. saveUrl: 'fa/ars/saveCurrencys.action',
  38. deleteUrl: 'fa/ars/deleteCurrencys.action',
  39. updateUrl: 'fa/ars/updateCurrencys.action',
  40. getIdUrl: 'common/getId.action?seq=CURRENCYS_SEQ',
  41. keyField:'cr_id',
  42. codeField:'cr_code',
  43. params:{
  44. caller:'Currencys!Grid',
  45. condition:'1=1'
  46. }
  47. },{
  48. title: '月度汇率',
  49. xtype:'simpleactiongrid',
  50. caller:'CurrencysMonth',
  51. keyField:'cm_id',
  52. deleteUrl: 'fa/fix/CurrencysController/deleteCurrencysMonth.action',
  53. keyField: 'cm_id',
  54. params:{
  55. caller:'CurrencysMonth!Grid',
  56. condition:'1=1'
  57. }
  58. },{
  59. title:'固定资产类型',
  60. xtype:'simpleactiongrid',
  61. caller:'AssetsKind',
  62. saveUrl: 'fa/fix/saveAssetsKind.action',
  63. deleteUrl: 'fa/fix/deleteAssetsKind.action',
  64. updateUrl: 'fa/fix/updateAssetsKind.action',
  65. getIdUrl: 'common/getId.action?seq=ASSETSKIND_SEQ',
  66. keyField : 'ak_id',
  67. params:{
  68. caller:'AssetsKind!Grid',
  69. condition:'1=1'
  70. }
  71. },{
  72. title:'初始化期间设置',
  73. xtype:'simpleactiongrid',
  74. caller:'Periods',
  75. updateUrl: 'common/updateCommon.action',
  76. getIdUrl: 'common/getId.action?seq=PERIODS_SEQ',
  77. keyField : 'pe_id',
  78. params:{
  79. caller:'Periods!Grid',
  80. condition:'1=1'
  81. }
  82. }],
  83. initComponent : function(){
  84. this.callParent(arguments);
  85. }
  86. });