var url = CMS_SystemConfig.VirtualDirectoryPath + "/Dictionary/Edit"; var mnu = ""; //加载 $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); }) //刷新 function reload() { $("#dgDictionaryList").cmsXDataTable("load", $.getDataGridParams("dgDictionaryList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgDictionaryList").cmsXDataTable("getSelections"), function (index) { d.push(this.DictionaryCode); }); return d; } //新增 function Dictionary_Add() { } //修改 function Dictionary_Update() { var d = validChoose(); if (d.length == 0) { $.messager.alert("系统信息", "请选择您要修改的信息。"); return; } if (d.length > 1) { $.messager.alert("系统信息", "只能选择单个记录进行修改。"); return; } var redirectTo = url + "?dictionaryCode=" + d + "&MNU=" + mnu; $.popupTopWindow('字典类型修改', redirectTo, 650, 245, null, null); } //删除 function Dictionary_Delete() { } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //Excel导出 function Dictionary_Export() { $("#formQuery").submit(); }