RepQuery.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Ext.define('erp.view.fa.RepQuery',{
  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: 'hbox',
  12. bodyStyle: 'background: #f1f1f1;',
  13. fieldDefaults: {
  14. margin: '3 2 3 8',
  15. cls: 'form-field-allowBlank'
  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. margin: '3 0 3 8',
  26. store: new Ext.data.Store({
  27. fields: ['display', 'value', 'data']
  28. })
  29. }, {
  30. xtype: 'textfield',
  31. readonly: true,
  32. fieldStyle: 'background: #f1f1f1;',
  33. id: 'fs_code',
  34. name: 'fs_code',
  35. margin: '3 2 3 0'
  36. }, {
  37. xtype: 'monthdatefield',
  38. fieldLabel: '期间',
  39. id: 'frd_yearmonth',
  40. name: 'frd_yearmonth'
  41. }],
  42. tbar: [{
  43. xtype: 'erpQueryButton'
  44. }, '->', {
  45. xtype: 'erpPrintButton'
  46. }, {
  47. name: 'export',
  48. text: $I18N.common.button.erpExportButton,
  49. iconCls: 'x-button-icon-excel',
  50. cls: 'x-btn-gray',
  51. margin: '0 0 0 5'
  52. },{
  53. xtype: 'erpCloseButton',
  54. margin: '0 0 0 5'
  55. }]
  56. }, {
  57. xtype: 'gridpanel',
  58. anchor: '100% 86%',
  59. columnLines: true,
  60. columns: [{
  61. text: '列1',
  62. cls: 'x-grid-header-1',
  63. flex: 1
  64. },{
  65. text: '列2',
  66. cls: 'x-grid-header-1',
  67. flex: 1
  68. },{
  69. text: '列3',
  70. cls: 'x-grid-header-1',
  71. flex: 1
  72. },{
  73. text: '列4',
  74. cls: 'x-grid-header-1',
  75. flex: 1
  76. },{
  77. text: '列5',
  78. cls: 'x-grid-header-1',
  79. flex: 1
  80. }],
  81. store: new Ext.data.Store({
  82. fields: [],
  83. data: [{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]
  84. })
  85. }]
  86. });
  87. me.callParent(arguments);
  88. }
  89. });