123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- Ext.define('erp.view.common.JProcessDeploy.Viewport',{
- extend: 'Ext.Viewport',
- layout: 'anchor',
- hideBorders: true,
- BaseUtil: Ext.create('erp.util.BaseUtil'),
- initComponent : function(){
- var me = this;
- var formPanel = Ext.create("erp.view.core.form.Panel",{
- anchor: '100% 10%' ,
- id:'form' ,
- _noc:1
-
- });
- Ext.apply(me, {
- items: [{
- id:'JProcessViewport',
- layout: 'anchor',
- items: [formPanel]
- }]
- });
- me.callParent(arguments);
- },
- listeners:{
- afterrender:function(){
- formCondition = this.BaseUtil.getUrlParam('formCondition');
- formCondition = (formCondition == null) ? "" : formCondition.replace(/IS/g,"=");
- var strArr = formCondition.split("=");
-
-
- panel = {
-
- tag : 'iframe',
- style:{
- background:'transparent',
- border:'none'
- },
-
- frame : true,
- border : false,
-
- layout : 'fit',
- height:window.innerHeight*0.9,
- iconCls : 'x-tree-icon-tab-tab',
- html : '<iframe id="iframe_maindetail_" src="../../workfloweditor/workfloweditor2.jsp?jdId='+strArr[1]+'" height="100%" width="100%" frameborder="0" scrolling="no"></iframe>',
- };
- Ext.getCmp("JProcessViewport").add(panel);
- }
- }
- });
|