日期:2014-05-16 浏览次数:20638 次
EripsDesktop.SDMSWindow = Ext.extend(Ext.app.Module, {
            id : 'sdms-win',
            init : function() {
                this.launcher = {
                    text : '學生訓導系統',
                    iconCls : 'icon-grid',
                    handler : this.createWindow,
                    scope : this
                }
            },
            createWindow : function() {
                var desktop = this.app.getDesktop();
                var win = desktop.getWindow('sdms-win');
                if (!win) {
                    win = desktop.createWindow({
                                id : 'sdms-win',
                                title : '學生訓導系統',
                                width : 740,
                                height : 480,
                                iconCls : 'icon-grid',
                                shim : false,
                                animCollapse : false,
                                constrainHeader : true,
                                layout : 'fit',
                                tbar : [{
                                            text : '獎懲事項',
                                            tooltip : '獎懲事項',
                                            iconCls : 'add',
                                            handler : function() {
                                                //gpanel.applyTo(win);
                                                store.load();
                                            }
                                        }, '-', {
                                            text : '尋到項目',
                                            tooltip : 'ddd',
                                            iconCls : 'option'
                                        }, '-', {
                                            text : '統計',
                                            tooltip : '統計',
                                            iconCls : 'option'
                                        }]
                            });
                }
                win.show();
            }
        });