2026年9月24日 星期四

V60202 - [開啟V003子功能畫面]鈕: - 開啟另一子功能的畫面

 目的: V60202 - [開啟V003子功能畫面]鈕: -  開啟另一子功能的畫面

處處理說明: 1>利用 iframe  - 類似開子視窗 - 獨立的  BOM架構 - 所以不會有 id 相同的問題
                2> var ParamStr = '?FUNID=V003';
                         <iframe id="ifrm" scrolling="auto" frameborder="0" 
                      width="100%" height="100%"  src="/Home/CenterTab' + ParamStr + '">
                   </iframe>'



1>*.js
var ParamStr = '?FUNID=V003';
                var win = new Ext.Window({
                    layout: 'fit',
                    title: 'V003',
                    closable: false,
                    closeAction: 'destroy',
                    modal: true,    //有pick視窗時,下面的不能按
                    html: '<iframe id="ifrm" scrolling="auto" frameborder="0" width="100%" height="100%"  src="/Home/CenterTab' + ParamStr + '"></iframe>',
                    buttons: [{
                        id: 'btnClose', text: '關閉',
                        handler: function () {
                            this.up('window').close();
                        }
                    }]
                });
                win.setHeight(700);
                win.setWidth(1200);
                win.show();

 

沒有留言:

張貼留言