123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationApprove/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgMinorGraduationApproveList").cmsXDataTable("load", $.getDataGridParams("dgMinorGraduationApproveList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgMinorGraduationApproveList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.MinorGraduationApplyID);
- });
- return d;
- }
- //审核
- function MinorGraduationApprove_Approve() {
- var minorGraduationApplyIDs = validChoose();
- if (minorGraduationApplyIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要审核的信息。");
- return;
- }
- if (minorGraduationApplyIDs.length > 1) {
- //批量审核
- var approveID = minorGraduationApplyIDs[0];
- $.popupTopWindow('审核信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/ApproveHandler?TableName=ER_MinorGraduationApply&FormID=' + approveID,
- 400, 300, MinorGraduationApprove_ApproveConfirm);
- }
- else {
- var minorGraduationApplyID = minorGraduationApplyIDs;
- //单个审核
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationApprove/Approve?MNU=" + mnu + "&minorGraduationApplyID=" + minorGraduationApplyID;
- $.popupTopWindow('毕业审核', redirectTo, 450, 300, null, null);
- }
- }
- //确定(审核)
- function MinorGraduationApprove_ApproveConfirm(action) {
- if (!action) {
- return;
- }
- if (action.ActionID == "") {
- return;
- }
- var approveIDs = validChoose().join(',');
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationApprove/ApproveConfirm", { minorGraduationApplyIDs: approveIDs, actionID: action.Action, comment: action.Comment },
- function (data) {
- if (data.IsSuccess) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }, 'json');
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function MinorGraduationApprove_Export() {
- var d = validChoose().join(',');
- $("[name='SelectedID']").val(d);
- $("#formQuery").submit();
- }
- //联动查询
- function queryStandard(data) {
- queryClass();
- 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));
- $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- queryClass();
- reload();
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var educationID = $("#DictionaryEducation").combogridX("getValue");
- var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("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();
- }
|