123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgRetakePlanStudentList").cmsXDataTable("load", $.getDataGridParams("dgRetakePlanStudentList"));
- }
- function RetakePlan_Approve() {
- var d = validChooseAll();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要审核的信息。");
- return;
- }
- var firstStatus = d[0].RecordStatus;
- if ($.grep(d, function (x) { return x.RecordStatus != firstStatus }).length > 0) {
- $.messager.alert("系统提示", "请选择相同状态的记录进行审核。");
- return;
- }
- var firstID = d[0].RetakePlanStudentID;
- $.popupTopWindow('审核信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/ApproveHandler?TableName=ER_RetakePlanStudent&FormID=' + firstID,
- 400, 300, RetakePlan_Approve_Confirm);
- }
- function RetakePlan_Approve_Confirm(action) {
- if (!action) return;
- if (action.ActionID == "") return;
- var d = validChoose().join(',');
- $.post(CMS_SystemConfig.VirtualDirectoryPath + "/RetakePlan/ApproveStudent", { retakePlanStudentIDs: d, actionID: action.Action, comment: action.Comment },
- function (data) {
- $.messager.alert("系统提示", data.Message);
- if (data.IsSuccess) {
- reload();
- }
- }, 'json');
- }
- function RetakePlan_Excel() {
- var d = validChoose().join(',');
- $("[name='SelectedID']").val(d);
- $(document.forms[0]).submit();
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgRetakePlanStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.RetakePlanStudentID);
- });
- return d;
- }
- function validChooseAll() {
- var d = [];
- $.each($("#dgRetakePlanStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- 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");
- }
- }
- }
|