Panel2.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Ext.define('uas.view.grid.paging.Panel2', {
  2. extend: 'Ext.grid.Panel',
  3. xtype: 'paging-grid2',
  4. store: {
  5. type: 'big-data',
  6. pageSize: 10,
  7. remoteSort: true,
  8. autoLoad: true
  9. },
  10. columns:[{
  11. xtype: 'rownumberer',
  12. width: 120,
  13. sortable: false,
  14. locked: true,
  15. }, {
  16. text: 'Id',
  17. sortable: true,
  18. dataIndex: 'employeeNo',
  19. groupable: false,
  20. width: 80,
  21. locked: true,
  22. }, {
  23. text: 'Date of birth',
  24. dataIndex: 'dob',
  25. xtype: 'datecolumn',
  26. groupable: false,
  27. width: 115,
  28. }, {
  29. text: 'Join date',
  30. dataIndex: 'joinDate',
  31. xtype: 'datecolumn',
  32. groupable: false,
  33. width: 120,
  34. filter: {
  35. },
  36. editor: {
  37. xtype: 'datefield'
  38. },
  39. }, {
  40. text: 'Notice<br>period',
  41. dataIndex: 'noticePeriod',
  42. groupable: false,
  43. width: 115,
  44. filter: {
  45. type: 'list'
  46. },
  47. }, {
  48. text: 'Email address',
  49. dataIndex: 'email',
  50. width: 200,
  51. groupable: false,
  52. }, {
  53. text: 'Department',
  54. dataIndex: 'department',
  55. hidden: true,
  56. hideable: false,
  57. filter: {
  58. type: 'list'
  59. }
  60. }, {
  61. text: 'Absences',
  62. shrinkWrap: true,
  63. columns: [{
  64. text: 'Illness',
  65. dataIndex: 'sickDays',
  66. width: 100,
  67. groupable: false,
  68. }, {
  69. text: 'Holidays',
  70. dataIndex: 'holidayDays',
  71. width: null, // Size column to title text
  72. groupable: false,
  73. }, {
  74. text: 'Holiday Allowance',
  75. dataIndex: 'holidayAllowance',
  76. width: null, // Size column to title text
  77. groupable: false,
  78. }]
  79. }, {
  80. text: 'Salary',
  81. width: 155,
  82. sortable: true,
  83. dataIndex: 'salary',
  84. align: 'right',
  85. formatter: 'usMoney',
  86. groupable: false,
  87. }],
  88. bbar: {
  89. xtype: 'pagingtoolbar',
  90. displayInfo: true
  91. }
  92. });