123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/EducationMissionClassCheck/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgEducationMissionClassCheckList").cmsXDataTable("load", $.getDataGridParams("dgEducationMissionClassCheckList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgEducationMissionClassCheckList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.EducationMissionClassCheckID);
- });
- return d;
- }
- function EducationMissionClassCheck_Update() {
- var d = validChoose();
- var id = validChoose().join(',');
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- else if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?educationMissionClassCheckID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('教学检查修改', redirectTo, 700, 500, null, null);
- }
- function EducationMissionClassCheck_Add() {
- var d = validChoose();
- if (d.length > 0) {
- $.popupTopWindow('教学检查复制新增', CMS_SystemConfig.VirtualDirectoryPath + '/EducationMissionClassCheck/CopyAdd?educationMissionClassCheckID=' + d[0] + '&MNU=' + mnu, 700, 500, null, null);
- } else {
- var redirectTo = url + "?MNU=" + mnu;
- $.popupTopWindow('教学检查新增', redirectTo, 700, 500, null, null);
- }
- }
- //删除
- function EducationMissionClassCheck_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/EducationMissionClassCheck/Delete', { educationMissionClassCheckIDs: d }, function (data) {
- if (data == "删除成功。") {
- $.messager.alert("系统提示", data);
- $("#dgEducationMissionClassCheckList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- function EducationMissionClassCheck_Export() {
- var d = validChoose().join(',')
- if (d != "") {
- document.getElementById("EducationMissionClassCheckID").value = d;
- }
- else {
- document.getElementById("EducationMissionClassCheckID").value = "";
- }
- $("#formQuery").submit();
- }
- function queryClass() {
- // var jsonString = "";
- // var parameterString = "";
- // var schoolYearID = $("#SchoolyearDropdown").combobox("getValue");
- // var campusID = $("#CampusDropdown").combogridX("getValue");
- // var collegeID = $("#CollegeDropdown").combogridX("getValue");
- // var educationID = $("#DictionaryEducation").combogridX("getValue");
- //
- // var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
- // var learningFormID = $("#DictionaryLearningform").combogridX("getValue");
- // if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
- // if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- // if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- // if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
- // if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- // if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- // if (parameterString != "") {
- // jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- // $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- // } else {
- // $("#StandardDictionaryDropDown").combogridX("reload");
- // }
- reload();
- }
|