Ext.define('MTTECERP.view.stomer.addwoCtrl', {
extend: 'Ext.app.ViewController',
alias: 'controller.woCtrl',
showWindow: function (obj) {
var win = this.lookupReference('popupWindow');
if (!win) {
win = Ext.create('MTTECERP.view.stomer.woWindow')
this.getView().add(win);
}
win.show();
},
});
var TreeStore = Ext.create('MTTECERP.view.stomer.wotreestore')
Ext.define('MTTECERP.view.stomer.woWindow', {
extend: 'Ext.window.Window',
xtype: 'form-contact-window',
title: '处理状态',
reference: 'popupWindow',
width: 400,
height: 500,
minWidth: 300,
minHeight: 380,
layout: 'fit',
resizable: true,
modal: true,
defaultFocus: 'firstName',
closeAction: 'hide',
defaults: {
xtype: 'treepanel',
width: 300,
height: 200,
rootVisible: false,
store: TreeStore
},
等等等等