12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function validChoose() {
- var d = [];
- $.each($("#dgEducationSchedulingStopList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function reload() {
- $("#dgEducationSchedulingStopList").cmsXDataTable("load", $.getDataGridParams("dgEducationSchedulingStopList"));
- }
- function queryTeacher(data) {
- if (((data.length && data.length > 0) || data)
- && $("#cgbTeacher").length > 0 && $.data($("#cgbTeacher")[0], "combogridX")) {
- var jsonString = "({'QueryParamsDatas':'";
- var collegeID = $("#ddlCollege").combobox("getValue");
- if (collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- jsonString += "'})";
- $("#cgbTeacher").combogridX("reload", eval(jsonString));
- }
- }
- function EducationSchedulingStop_Approve() {
- var d = validChoose();
- 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].EducationSchedulingStopID;
- $.popupTopWindow('审核信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/ApproveHandler?TableName=ES_EducationSchedulingStop&FormID=' + firstID,
- 400, 300, EducationSchedulingStop_Approve_Confirm);
- }
- function EducationSchedulingStop_Approve_Confirm(action) {
- if (!action) return;
- if (action.ActionID == "") return;
- var d = $.map(validChoose(), function (x) { return x.EducationSchedulingStopID; }).join(',');
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + "/EducationSchedule/StopApprove", { educationSchedulingStopIDs: d, actionID: action.Action, comment: action.Comment },
- function (data) {
- $.messager.alert("系统提示", data.Message);
- if (data.IsSuccess) {
- reload();
- }
- }, 'json');
- }
- function EducationSchedulingStop_Excel() {
- var d = validChoose();
- if (d.length == 0) {
- $("[name='hidEducationSchedulingStopID']").val("");
- } else {
- $("[name='hidEducationSchedulingStopID']").val($.map(d, function (x) { return x.EducationSchedulingStopID; }).join(','))
- }
- $("#formQuery").submit();
- }
|