FundPlanning.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Ext.define('erp.view.fa.fp.FundPlanning',{
  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: 'form',
  10. anchor: '100% 14%',
  11. layout: 'column',
  12. bodyStyle: 'background: #f1f1f1;',
  13. fieldDefaults: {
  14. cls: 'form-field-allowBlank',
  15. columnWidth:0.2
  16. },
  17. items: [{
  18. xtype: 'combo',
  19. fieldLabel: '报表编号',
  20. editable: false,
  21. name: 'fs_name',
  22. displayField: 'display',
  23. valueField: 'value',
  24. queryMode: 'local',
  25. store: new Ext.data.Store({
  26. fields: ['display', 'value', 'data']
  27. })
  28. }, {
  29. xtype: 'textfield',
  30. readonly: true,
  31. fieldStyle: 'background: #f1f1f1;',
  32. id: 'fs_code',
  33. name: 'fs_code',
  34. fieldLabel:'编号'
  35. }, {
  36. xtype: 'condatefpfield',
  37. fieldLabel: '资金计划周期',
  38. id: 'frd_fpcircle',
  39. columnWidth:0.4,
  40. name: 'frd_fpcircle',
  41. value:1
  42. }],
  43. tbar: [{
  44. xtype: 'erpQueryButton'
  45. }, '->', {
  46. xtype: 'erpPrintButton'
  47. }, {
  48. name: 'export',
  49. text: $I18N.common.button.erpExportButton,
  50. iconCls: 'x-button-icon-excel',
  51. cls: 'x-btn-gray',
  52. margin: '0 0 0 5'
  53. },{
  54. xtype: 'erpCloseButton',
  55. margin: '0 0 0 5'
  56. }]
  57. }, {
  58. xtype: 'gridpanel',
  59. anchor: '100% 86%',
  60. columnLines: true,
  61. columns: [{
  62. text: '列1',
  63. cls: 'x-grid-header-1',
  64. flex: 1
  65. },{
  66. text: '列2',
  67. cls: 'x-grid-header-1',
  68. flex: 1
  69. },{
  70. text: '列3',
  71. cls: 'x-grid-header-1',
  72. flex: 1
  73. },{
  74. text: '列4',
  75. cls: 'x-grid-header-1',
  76. flex: 1
  77. },{
  78. text: '列5',
  79. cls: 'x-grid-header-1',
  80. flex: 1
  81. }],
  82. store: new Ext.data.Store({
  83. fields: [],
  84. data: [{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]
  85. })
  86. }]
  87. });
  88. me.callParent(arguments);
  89. }
  90. });