| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- Ext.QuickTips.init();
- Ext.define('erp.controller.oa.officialDocument.sendODManagement.Manage', {
- extend: 'Ext.app.Controller',
- FormUtil: Ext.create('erp.util.FormUtil'),
- GridUtil: Ext.create('erp.util.GridUtil'),
- BaseUtil: Ext.create('erp.util.BaseUtil'),
- views:[
- 'oa.officialDocument.sendODManagement.manage.Viewport','oa.officialDocument.sendODManagement.manage.GridPanel','oa.officialDocument.sendODManagement.manage.Form',
- 'core.trigger.DbfindTrigger','core.form.ConDateField','core.form.WordSizeField','oa.mail.MailPaging'
- ],
- init:function(){
- this.control({
- 'erpSODManageGridPanel': {
- itemclick: this.onGridItemClick
- // },
- // 'erpSynergyManageFormPanel button[name=confirm]': {
- // click: function(btn){
- //
- // }
- }
- });
- },
- onGridItemClick: function(selModel, record){//grid行选择
- console.log(record);
- var me = this;
- if(record.data.sod_statuscode == 'OVERED'){
- var id = record.data.sod_id;
- var panel = Ext.getCmp("msod" + id);
- var main = parent.Ext.getCmp("content-panel");
- if(!panel){
- var title = "发文分发";
- panel = {
- title : title,
- tag : 'iframe',
- tabConfig:{tooltip: record.data['sod_title']},
- frame : true,
- border : false,
- layout : 'fit',
- iconCls : 'x-tree-icon-tab-tab1',
- html : '<iframe id="iframe_' + id + '" src="' + basePath + "jsps/oa/officialDocument/sendODManagement/sodDetail.jsp?flag=manage&id=" + id + '" height="100%" width="100%" frameborder="0" scrolling="yes"></iframe>',
- closable : true,
- listeners : {
- close : function(){
- main.setActiveTab(main.getActiveTab().id);
- }
- }
- };
- me.FormUtil.openTab(panel, "msod" + id);
- }else{
- main.setActiveTab(panel);
- }
- } else {
- return;
- }
- // var win = new Ext.window.Window({
- // id : 'win',
- // title: "协同查看",
- // height: "80%",
- // width: "80%",
- // maximizable : false,
- // buttonAlign : 'left',
- // layout : 'anchor',
- // items: [{
- // tag : 'iframe',
- // frame : true,
- // anchor : '100% 100%',
- // layout : 'fit',
- // html : '<iframe id="iframe_' + id + '" src="' + basePath + 'jsps/oa/myProcess/synergy/seeSynergy.jsp?id=' + id + '" height="100%" width="100%" frameborder="0" scrolling="yes"></iframe>'
- // }]
- // });
- // win.show();
- }
- });
|