123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/MinorRegistApprove/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgMinorApplyList").cmsXDataTable("load", $.getDataGridParams("dgMinorApplyList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgMinorApplyList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.StudentMinorRegistID);
- });
- return d;
- }
- //审核
- function MinorRegist_Approve() {
- var minorApplyIDs = validChoose();
- if (minorApplyIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要审核的信息。");
- return;
- }
- if (minorApplyIDs.length > 1) {
- //批量审核
- var approveID = minorApplyIDs[0];
- $.popupTopWindow('审核信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/ApproveHandler?TableName=EM_StudentMinorRegist&FormID=' + approveID,
- 400, 300, MinorRegistApprove_ApproveConfirm);
- }
- else {
- var minorApplyID = minorApplyIDs;
- //单个审核
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/MinorRegistApprove/Approve?MNU=" + mnu + "&minorApplyID=" + minorApplyID;
- $.popupTopWindow('辅修报名审核', redirectTo, 500, 300, null, null);
- }
- }
- //确定(审核)
- function MinorRegistApprove_ApproveConfirm(action) {
- if (!action) {
- return;
- }
- if (action.ActionID == "") {
- return;
- }
- var approveIDs = validChoose().join(',');
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + "/MinorRegistApprove/ApproveConfirm", { minorRegistRegistIDs: approveIDs, actionID: action.Action, comment: action.Comment },
- function (data) {
- if (data.IsSuccess) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }, 'json');
- }
- //Excel导出
- function MinorRegistApprove_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 collegeID = $("#CollegeDropdown").combogridX("getValue");
- var yearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
- var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (yearID != nonSelect) parameterString += "DictionaryGrade|*|" + yearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
- } else {
- $("#StandardDictionaryDropDown").combogridX("reload");
- }
- reload();
- }
|