InstructionDetail.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Ext.QuickTips.init();
  2. Ext.define('erp.controller.oa.officialDocument.instruction.InstructionDetail', {
  3. extend: 'Ext.app.Controller',
  4. BaseUtil: Ext.create('erp.util.BaseUtil'),
  5. FormUtil: Ext.create('erp.util.FormUtil'),
  6. views:[
  7. 'oa.officialDocument.instruction.InstructionDetail','oa.officialDocument.instruction.InstructionDetailForm'
  8. ],
  9. init:function(){
  10. var me = this;
  11. this.control({
  12. 'button[id=close]': {
  13. click: function(){
  14. me.FormUtil.onClose();
  15. }
  16. },
  17. // 'button[id=distribute]': {
  18. // afterrender: function(btn){
  19. // var flag = getUrlParam('flag');
  20. // if(flag == 'query'){
  21. // btn.setVisible(false);
  22. // }
  23. // },
  24. // click: function(){
  25. // var me = this;
  26. //// alert(Ext.getCmp('sod_id').value);
  27. // var id = Ext.getCmp('sod_id').value;
  28. // var panel = Ext.getCmp("dsod" + id);
  29. // var main = parent.Ext.getCmp("content-panel");
  30. // if(!panel){
  31. // var title = "发文转收文";
  32. //// alert(title);
  33. // panel = {
  34. // title : title,
  35. // tag : 'iframe',
  36. // tabConfig:{tooltip: Ext.getCmp('sod_title').value},
  37. // frame : true,
  38. // border : false,
  39. // layout : 'fit',
  40. // iconCls : 'x-tree-icon-tab-tab1',
  41. // html : '<iframe id="iframe_' + id + '" src="' + basePath + "jsps/oa/officialDocument/receiveODManagement/register.jsp?id=" + id + '" height="100%" width="100%" frameborder="0" scrolling="yes"></iframe>',
  42. // closable : true,
  43. // listeners : {
  44. // close : function(){
  45. // main.setActiveTab(main.getActiveTab().id);
  46. // }
  47. // }
  48. // };
  49. // me.FormUtil.openTab(panel, "dsod" + id);
  50. // }else{
  51. // main.setActiveTab(panel);
  52. // }
  53. // }
  54. // }
  55. });
  56. }
  57. });