123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/CustomStandardSetting/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgCustomStandardSettingList").cmsXDataTable("load", $.getDataGridParams("dgCustomStandardSettingList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgCustomStandardSettingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.CustomStandardSettingID);
- });
- return d;
- }
- //新增
- function CustomStandardSetting_Add() {
- var d = validChoose();
- var redirectTo = url + "?MNU=" + mnu;
- if (d.length > 0) {
- $.popupTopWindow('省招专业复制新增', CMS_SystemConfig.VirtualDirectoryPath + '/CustomStandardSetting/CopyAdd?customStandardSettingID=' + d[0] + '&MNU=' + mnu, 650, 320, null, null);
- } else {
- $.popupTopWindow('省招专业新增', redirectTo, 650, 320, null, null);
- }
- }
- //修改
- function CustomStandardSetting_Edit() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?CustomStandardSettingID=" + d + "&MNU=" + mnu + "&type=edit";
- $.popupTopWindow('省招专业修改', redirectTo, 650, 320, null, null);
- }
- //查看
- function edit(rowindex, rowdata) {
- var redirectTo = url + "?customStandardSettingID=" + rowdata.CustomStandardSettingID + "&MNU=" + mnu + "&type=detail";
- $.popupTopWindow('省招专业信息', redirectTo, 650, 320, null, null);
- }
- //删除
- function CustomStandardSetting_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/CustomStandardSetting/Delete', { CustomStandardSettingIDs: d }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", data.Message);
- $("#dgCustomStandardSettingList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //Excel导出
- function CustomStandardSetting_Export() {
- $("#formQuery").submit();
- }
- //Excel导入
- function CustomStandardSetting_Import() {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/CustomStandardSetting/Import?MNU=' + mnu;
- $.popupTopWindow('省招专业导入', redirectTo, 420, 300, reload);
- }
- //联动查询
- function queryCampus(data) {
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
- $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- reload();
- }
- function queryCollege(data) {
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- reload();
- }
- function queryYear(data) {
- reload();
- }
- function queryStandard(data) {
- reload();
- }
|