var win = Ext.create('Ext.window.Window', { title: '添加信息', resizable: false, constrain: true, modal: true, items: userOper, callBack: function (newDis) { var rec = { CURE_NAME_CLIENT: newDis.CURE_NAME_CLIENT, DATA_PROBLEMS: newDis.DATA_PROBLEMS, IS_VALID: newDis.IS_VALID, REMARK: newDis.REMARK }; //NUMROW: eid.store.getCount() + 1 eid.getStore().add(rec); }, listeners: { beforeclose: function (t, w) { } } }); save: function () {
var me = this, view = me.getView(), window = view.up('window'), newDis = me.getViewModel().get('formCureAlternativeCodeListModel'); if (window.callBack) { window.callBack(newDis); } else { alert('需要callBack'); } me.close(); }, |
|