WageQuery.js 1.9 KB

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