12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/RetakeOpenControl/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgOpenControlList").cmsXDataTable("load", $.getDataGridParams("dgOpenControlList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgOpenControlList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.RetakeOpenControlID);
- });
- return d;
- }
- //重修控制新增
- function RetakeOpenControl_Add() {
- var redirectTo = url + "?MNU=" + mnu;
- $.popupTopWindow('重修控制新增', redirectTo, 650, 230, null, null);
- }
- //重修控制修改
- function RetakeOpenControl_Update() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统信息", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统信息", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?RetakeOpenControlID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('重修控制修改', redirectTo, 650, 230, null, null);
- }
- //删除
- function RetakeOpenControl_Delete() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakeOpenControl/Delete', { RetakeOpenControlIDs: d.join(',') }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", data.Message);
- $("#dgOpenControlList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //Excel导出
- function RetakeOpenControl_Export() {
- $("#formQuery").submit();
- }
|