TaskPlan.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Ext.define('erp.view.plm.task.TaskPlan',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. autoScroll : true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor : '100% 20%',
  11. saveUrl: '/plm/task/saveTaskPlan.action',
  12. deleteUrl: '/plm/task/deleteTaskPlan.action',
  13. updateUrl: '/plm/task/updateTaskPlan.action',
  14. auditUrl: '/plm/task/auditTaskPlan.action',
  15. resAuditUrl: '/plm/task/resAuditTaskPlan.action',
  16. submitUrl: '/plm/task/submitTaskPlan.action',
  17. resSubmitUrl: '/plm/task/resSubmitTaskPlan.action',
  18. getIdUrl: 'common/getId.action?seq=TaskPlan_SEQ',
  19. keyField: 'wp_id',
  20. codeField: 'wp_code',
  21. statusField: 'wp_statuscode'
  22. },{
  23. title:'上周工作总结',
  24. id:'summary',
  25. caller:'TaskSummary',
  26. anchor : '100% 30%',
  27. xtype:'erpGridPanel4',
  28. condition:'wpd_week=' +(week-1) +" and wpd_emcode='"+wpcode+"' and to_char(wpd_plandate,'yyyy')='"+year+"'",
  29. tbar:null,
  30. _noc:1,
  31. },{
  32. xtype:'tabpanel',
  33. anchor : '100% 48%',
  34. items:[{
  35. title:'本周工作计划',
  36. id:'plan',
  37. caller:'TaskPlan',
  38. margin: '10 0 0 0',
  39. region:'south',
  40. anchor : '100% 48%',
  41. xtype:'erpGridPanel2',
  42. condition:'wpd_week=' +week +" and wpd_emcode='"+wpcode+"' and to_char(wpd_plandate,'yyyy')='"+year+"'",
  43. keyField:'wpd_id',
  44. _noc:1
  45. },{
  46. xtype:'textareafield',
  47. title:'需上级解决问题',
  48. fieldStyle:'background:#FFFAFA;color:#515151;',
  49. id:'request',
  50. height:'48%'
  51. }]
  52. }]
  53. });
  54. me.callParent(arguments);
  55. }
  56. });