123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgRetakePlanStudentList").cmsXDataTable("load", $.getDataGridParams("dgRetakePlanStudentList"));
- }
- function RetakePlan_Prescan() {
- $.messager.confirm("系统提示", "是否要生成待重修的学生名单?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanPrescan/Generate', null, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "生成成功。");
- $("#dgRetakePlanStudentList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //重修明细
- function StudentDetail(rowindex, rowdata) {
- var s = rowdata.SchoolyearID;
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/RetakePlanPrescan/StudentDetail?userID=" + rowdata.UserID + "&schoolyearID=" + rowdata.SchoolyearID + "&MNU=" + mnu;
- $.popupTopWindow('重修明细', redirectTo, 800, 600, null, null);
- }
- function RetakePlan_Charge() {
- var planStudentIDs = validChoose();
- $.messager.confirm("系统提示", "是否要推送应收名单?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanPrescan/Charge', { planStudentIDs: planStudentIDs.join(',') }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "推送成功。");
- $("#dgRetakePlanStudentList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //导出Excel
- function RetakePlan_Excel() {
- $("#formQuery").submit();
- }
- function RetakePlan_Add() {
- $.popupTopWindow('添加学生', CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanPrescan/Add?MNU=' + mnu, 600, 210);
- }
- function RetakePlan_Delete() {
- var planStudentIDs = validChoose();
- if (planStudentIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要删除的重修学生信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除该重修学生信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/RetakePlanPrescan/Delete', { planStudentIDs: planStudentIDs.join(',') }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "删除成功。");
- $("#dgRetakePlanStudentList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgRetakePlanStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- function queryStandard() {
- if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox")) {
- var parameterString = "";
- var collegeID = $("#cbgCollege").combogridX("getValue");
- var year = $("#ddlYear").combobox("getValue");
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cbgStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#cbgStandard").combogridX("reload");
- }
- }
- }
- function queryClassmajor() {
- //if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox") && $.data($("#cbgStandard")[0], "combogridX")) {
- var parameterString = "";
- var collegeID = $("#cbgCollege").combogridX("getValue");
- var year = $("#ddlYear").combobox("getValue");
- var standard = $("#cbgStandard").combogridX("getValue");
- var educationID = $("#DictionaryEducation").combobox("getValue");
- var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
- var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|";
- if (standard != nonSelect && standard != "") parameterString += "DictionaryStandard|*|" + standard + "|@|";
- if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cbgClassmajor").combogridX("reload", eval(jsonString));
- } else {
- $("#cbgClassmajor").combogridX("reload");
- }
- reload();
- //}
- }
|