JprocessSysViewport.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Ext.define('erp.view.common.JProcessDeploy.JprocessSysViewport',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. BaseUtil: Ext.create('erp.util.BaseUtil'),// 获得 参数 。
  6. initComponent : function(){
  7. var me = this;
  8. var formPanel = Ext.create("erp.view.core.form.Panel",{
  9. anchor: '100% 10%' ,
  10. id:'form' ,
  11. _noc:1
  12. /*hidden:'true'*/
  13. });
  14. Ext.apply(me, {
  15. items: [{
  16. id:'JProcessViewport',
  17. layout: 'anchor',
  18. items: [formPanel]
  19. }]
  20. });
  21. me.callParent(arguments);
  22. },
  23. listeners:{
  24. afterrender:function(){
  25. formCondition = this.BaseUtil.getUrlParam('formCondition');//从url解析参数
  26. panel = {
  27. /*title : '单据信息',*/
  28. tag : 'iframe',
  29. style:{
  30. background:'transparent',
  31. border:'none'
  32. },
  33. /*tabConfig:{tooltip:main.getActiveTab().tabConfig.tooltip+'('+keyField + "=" + value+')'},*/
  34. frame : true,
  35. border : false,
  36. /*bodyBorder:false,*/
  37. layout : 'fit',
  38. height:window.innerHeight*0.9,
  39. iconCls : 'x-tree-icon-tab-tab',
  40. html : '<iframe id="iframe_maindetail_" src="../../workfloweditor/flownavigation.jsp?formCondition='+formCondition+'" height="100%" width="100%" frameborder="0" scrolling="no"></iframe>',
  41. };
  42. Ext.getCmp("JProcessViewport").add(panel);
  43. }
  44. }
  45. });