123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- var mnu;
- var examinationPlanID;
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- examinationPlanID = null;
- });
- function ExaminationPlan_Save() {
- $(document.forms[0]).submit();
- }
- function queryCollege(data) {
- queryClass();
- }
- function ExaminationPlan_ClassroomAdd() {
- if (!$(document.forms[0]).valid()) return;
- isFromAddButton = true;
- //ExaminationPlanAdd_Save();
- // if (checkModify()) {
- // isFromAddButton = true;
- // ExaminationPlan_Save();
- // } else {
- $.popupTopWindow('新增考场', CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationPlan/AddClassroomLayout?MNU=' + mnu, 800, 600, ExaminationPlan_ClassroomAdd_Confirm);
- // }
- }
- function ExaminationPlan_Save_Complete(data) {
- $('a').removeAttr('disabled', 'disabled');
- $('#loading').hide();
- // if (!isFromAddButton && !isFromEditButton) {
- // $.messager.alert('系统信息', data.Message, null, function () {
- // if (data.IsSuccess) {
- // var dialogId = $.SystemGeneral.getUrlParam('WindowID');
- // dialogId = (dialogId == null || dialogId == '') ? 'sysWindow' : dialogId;
- // top.$('#' + dialogId).window('close');
- // var tab = top.$('#index_center_tabs').tabs('getSelected');
- // var $iframe = tab.panel('body').find("iframe");
- // if ($iframe[0].contentWindow.reload)
- // $iframe[0].contentWindow.reload();
- // }
- // });
- // } else {
- // if (!data.IsSuccess) {
- // $.messager.alert('系统信息', data.Message);
- // } else {
- // if (isFromAddButton) {
- $.popupTopWindow('新增考场', CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationPlan/AddClassroomLayout?MNU=' + mnu + '&ExaminationPlanID=' + examinationPlanID, 800, 600, ExaminationPlan_ClassroomAdd_Confirm);
- //isFromAddButton = false;
- // } else if (isFromEditButton) {
- // $.popupTopWindow('编辑考场', CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationPlan/ClassroomLayout?MNU=' + mnu + '&ExaminationPlanID=' + examinationPlanID + '&ExaminationRoomLayoutID=' + rowData.ExaminationRoomLayoutID,
- // 800, 600, ExaminationPlan_ClassroomAdd_Confirm);
- // }
- // }
- // }
- }
- function QueryCollegeComboGridList(data) {
- // var collegeID = $("#CollegeID").combogridX("getValue");
- // //var yearID = document.getElementsByName("GradeYearID")[0].value;
- // var parameterString = "";
- // //$("#StandardID").combogridX("setValue", "-1");
- // if (collegeID != nonSelect) {
- // parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- // }
- // var schoolyearID = $("#SchoolyearID").combobox("getValue");
- // if (schoolyearID != nonSelect) {
- // parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|";
- // }
- // if (parameterString != "") {
- // jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- // $("#StandardID").combogridX("reload", eval(jsonString));
- // } else {
- // $("#StandardID").combogridX("reload");
- // }
- }
- function setFormChanged() {
- isChanged = true;
- }
- //成教页面,处理考试时间的快速选择
- function setDateTime() {
- var timeSegmentValue = eval("(" + $("#ddlTimeSegment").combobox('getValue') + ")");
- if (timeSegmentValue != "-1") {
- $("#ExaminationDate").val(timeSegmentValue.ExaminationDateString);
- $("#StartTime").val(timeSegmentValue.StartTimeString + ":00");
- $("#EndTime").val(timeSegmentValue.EndTimeString + ":00");
- }
- }
- function ExaminationPlan_ClassroomAdd_Confirm(roomList) {
- window.location.reload();
- }
- function queryClass() {
- // var jsonString = "";
- // var parameterString = "";
- // var campusID = $("#CampusDropdown").combogridX("getValue");
- // //var collegeID = $("#CollegeDropdown").combogridX("getValue");
- // //var educationID = $("#Education").combobox("getValue");
- // var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
- // //var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
- // //var learningFormID = $("#LearningformDictionaryDropDown").combobox("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 + "'})";
- // //$("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
- // $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- // } else {
- // $("#ClassmajorDropdown").combogridX("reload");
- // $("#StandardDictionaryDropDown").combogridX("reload");
- // }
- }
|