12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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 " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function Dictionary_Export() {
- $("#formQuery").submit();
- }
|