AddWorkDaily.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Ext.define('erp.view.oa.persontask.workDaily.AddWorkDaily',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'desk',
  10. layout: 'anchor',
  11. items: [{
  12. xtype: 'erpFormPanel',
  13. anchor: '100% 100%',
  14. saveUrl: 'oa/persontask/workDaily/saveWorkDaily.action',
  15. deleteUrl: 'oa/persontask/workDaily/deleteWorkDaily.action',
  16. updateUrl: 'oa/persontask/workDaily/updateWorkDaily.action',
  17. getIdUrl: 'common/getId.action?seq=WORKDAILY_SEQ',
  18. keyField: 'wd_id',
  19. items:[{
  20. xtype: 'fieldset',
  21. columnWidth: 1,
  22. id:'fieldset',
  23. minHeight: 220,
  24. title: '<img src="' + basePath + 'resource/images/renderer/remind2.png" width=20 height=20/>&nbsp;&nbsp;待办任务',
  25. collapsible: true,
  26. collapsed: true,
  27. items:[{
  28. xtype: 'erpDatalistGridPanel',
  29. minHeight: 220,
  30. anchor: '100% 100%',
  31. listeners:{
  32. afterrender: function(){
  33. Ext.getCmp('fieldset').setTitle('<img src="' + basePath + 'resource/images/renderer/remind2.png" width=20 height=20/>&nbsp;&nbsp;待办任务&nbsp;('+dataCount+')');
  34. }
  35. }
  36. }]
  37. }],
  38. tbar:[ {
  39. iconCls: 'x-button-icon-save',
  40. id: 'save',
  41. text: $I18N.common.button.erpSaveButton
  42. },'-',{
  43. id: 'addwd',
  44. text: '日报补录'
  45. },'-',{
  46. id: 'see',
  47. text: '查看月计划'
  48. },'-',{
  49. id: 'daily',
  50. text: '生成日报'
  51. }]
  52. }]
  53. }]
  54. });
  55. me.callParent(arguments);
  56. }
  57. });