热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

MyBatis+MVC获取UI参数的几种方法(一)

导入onImport:function(button,e,eOpts){varmMainGridExt.getCmp(storeMainGrid);varmSelectionsmM

// 导入
onImport: function (button, e, eOpts) {var mMainGrid = Ext.getCmp('storeMainGrid');var mSelections = mMainGrid.getSelectionModel().getSelection();if (mSelections.length > 0) {var mWin = Ext.getCmp('winImport');mWin.show();}elseExt.Msg.alert('温馨提示', '请选择一条记录!');},// 导入
onImportConfirm: function (button, e, eOpts) {var mWin = Ext.getCmp('winImport');var mFile = Ext.getCmp('fileUpload');var mFileName = mFile.getValue();if (mFile && mFileName != '') {//Ext.Msg.alert('温馨提示', '您选择了导入文件!');var mImportForm = Ext.getCmp('importForm').getForm();mWin.hide(); //关闭弹出窗口// var mNewRecord = new IniStore.model.Store();
// mNewRecord.set('id', this.activeRecord.data.id);
// mImportForm.loadRecord(mNewRecord);
mImportForm.submit({url: '/IniStoreDetail/StoreDetailImport',params: {storeId: this.activeRecord.data.id},waitTitle: '温馨提示',waitMsg: '正在导入信息,请稍后...',success: function (form, action) {Ext.Msg.alert('温馨提示', action.result.message);this.getGoodsStore().load();},failure: function (form, action) {Ext.Msg.alert('温馨提示', action.result.message);},scope: this});}elseExt.Msg.alert('温馨提示', '您没有选择任何导入文件!');},// 导入
onImportCancel: function (button, e, eOpts) {var mWin = Ext.getCmp('winImport');mWin.hide();},// 导出
onExport: function (button, e, eOpts) {var mImportForm = Ext.getCmp('importForm').getForm();mImportForm.submit({url: '/IniStoreDetail/StoreDetailExport',//waitTitle: '温馨提示',//waitMsg: '正在导出信息,请稍后...',
success: function (form, action) {Ext.Msg.alert('温馨提示', action.result.message);},failure: function (form, action) {Ext.Msg.alert('温馨提示', action.result.message);},scope: this});},//模板下载
onTemplateDownload: function (button, e, eOpts) {var mImportForm = Ext.getCmp('importForm').getForm();mImportForm.submit({url: '/Download/StoreDetailDownloadTemplate',success: function (form, action) {},failure: function (form, action) {},scope: this});},

 

转:https://www.cnblogs.com/xust/articles/2876814.html



推荐阅读
author-avatar
手机用户2602923721
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有