MoreTask.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Ext.define('erp.view.common.DeskTop.MoreTask', {
  2. extend : 'Ext.Viewport',
  3. layout : 'anchor',
  4. hideBorders : true,
  5. initComponent : function() {
  6. var me = this;
  7. Ext.apply(me, {
  8. items : [{xtype: 'toolbar',
  9. region: 'north',
  10. anchor: '100% 5%',
  11. items : ['->',{
  12. xtype : 'button',
  13. text:'发起任务',
  14. id:'addTask',
  15. iconCls: 'main-task',
  16. cls: 'x-btn-gray',
  17. style: {
  18. marginRight: '10px'
  19. },
  20. width: 100
  21. }]},{
  22. xtype : 'erpDeskTabPanel',
  23. anchor: '100% 95%',
  24. bodyStyle : {
  25. border : 'none'
  26. },
  27. bodyBorder : false,
  28. items : [{
  29. title : '待办任务',
  30. anchor : '100% 100%',
  31. xtype : 'erpDatalistGridPanel',
  32. id : 'TasktoDo',
  33. url:'jsps/plm/record/billrecord.jsp?_noc=1',
  34. keyField:'ra_id',
  35. pfField:null,
  36. firstPage:true,
  37. caller : 'ResourceAssignment!Bill',
  38. defaultCondition : 'ra_emid='+ em_id+' AND ra_taskpercentdone<100 ',
  39. //dockedItems : [{}],
  40. showRowNum : false,
  41. selModel : Ext.create(
  42. 'Ext.selection.CheckboxModel', {
  43. checkOnly : true,
  44. headerWidth : 0
  45. })
  46. }, {
  47. title : '已发起任务',
  48. anchor : '100% 100%',
  49. xtype : 'erpDatalistGridPanel',
  50. id : 'TaskDoing',
  51. url:'jsps/plm/task/task.jsp?_noc=1',
  52. keyField:'id',
  53. pfField:'ra_taskid',
  54. caller : 'ProjectTask!Bill',
  55. firstPage:true,
  56. defaultCondition :'recorder=\'' + em_name + '\'',
  57. dockedItems : [{
  58. id : 'pagingtoolbar6',
  59. xtype: 'erpDatalistToolbar',
  60. dock: 'bottom',
  61. displayInfo: true
  62. }],
  63. showRowNum : false,
  64. selModel : Ext.create(
  65. 'Ext.selection.CheckboxModel', {
  66. checkOnly : true,
  67. headerWidth : 0
  68. }),
  69. plugins : [Ext.create(
  70. 'erp.view.core.grid.HeaderFilter'
  71. ), Ext.create('erp.view.core.plugin.CopyPasteMenu')]
  72. }, {
  73. title : '已处理任务',
  74. anchor : '100% 100%',
  75. xtype : 'erpDatalistGridPanel',
  76. id : 'TaskDone',
  77. url:'jsps/plm/record/billrecord.jsp?_noc=1',
  78. keyField:'ra_id',
  79. pfField:null,
  80. caller : 'ResourceAssignment!Bill',
  81. firstPage:true,
  82. defaultCondition : 'ra_emid=' + em_id + ' AND ra_taskpercentdone=100 ',
  83. dockedItems : [{
  84. id : 'pagingtoolbar7',
  85. xtype: 'erpDatalistToolbar',
  86. dock: 'bottom',
  87. displayInfo: true
  88. }],
  89. showRowNum : false,
  90. selModel : Ext.create(
  91. 'Ext.selection.CheckboxModel', {
  92. checkOnly : true,
  93. headerWidth : 0
  94. }),
  95. plugins : [Ext.create(
  96. 'erp.view.core.grid.HeaderFilter'), Ext.create('erp.view.core.plugin.CopyPasteMenu')]
  97. }]
  98. }]
  99. });
  100. me.callParent(arguments);
  101. }
  102. });