12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- var inputData;
- var classroomTypeID;
- var educationSchedulingIDs;
- $.parser.onComplete = function (context) {
- inputData = top.$("#" + windowID).data("inputData");
- classroomTypeID = inputData.classroomTypeID;
- educationSchedulingIDs = inputData.educationSchedulingWeekNumIDs;
- }
- function refreshWeekList() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + '/SchoolYear/GetFutureWeekListDropdown?bindType=0'
- var weekNum = $("[comboname='ddlWeekNum']").combobox('getValue');
- if (weekNum && weekNum != nonSelect) {
- url += "&weekNum=" + weekNum;
- $("[comboname='ddlWeekday']").combobox('clear');
- $("[comboname='ddlWeekday']").combobox('reload', url);
- }
- }
- function refreshCourseTimeList() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + '/CoursesTime/DropDownForAdjustmentBatch?bindType=0';
- if (educationSchedulingIDs != null) {
- url = url + '&educationSchedulingIDs=' + educationSchedulingIDs;
- }
- var weekNum = $("[comboname='ddlWeekNum']").combobox('getValue');
- if (weekNum && weekNum != nonSelect) {
- url += "&weekNum=" + weekNum;
- }
- var weekday = $("[comboname='ddlWeekday']").combobox('getValue');
- if (weekday && weekday != nonSelect) {
- url += "&weekday=" + weekday;
- }
- var teacherID = $("#cbgUser").combogridX('getValue');
- if (teacherID && teacherID != nonSelect) {
- url += "&teacherID=" + teacherID;
- }
- $("[comboname='ddlCoursesTime']").combobox('clear');
- $("[comboname='ddlCoursesTime']").combobox('reload', url);
- }
- function getClassroom(toCoursesTimeID) {
- var classroomTypeID = $("[comboname='ddlClassroomType']").combobox('getValue');
- if (classroomTypeID == nonSelect) {
- classroomTypeID = "";
- }
- try {
- var jsonString = "({'QueryParamsDatas':'";
- if (classroomTypeID != nonSelect) {
- jsonString += "ClassroomTypeDictionary|*|" + classroomTypeID + "|@|";
- }
- jsonString += "'})";
- $("[comboname='cbgClassroom']").combogridX("reload", eval(jsonString));
- } catch (e) { }
- }
- function AdjustmentBatchEdit_Confirm() {
- top.$("#" + windowID).data("resultData", {
- WeekNum: $("[comboname='ddlWeekNum']").combobox("getValue"),
- Weekday: $("[comboname='ddlWeekday']").combobox("getValue"),
- User: $("[comboname='cbgUser']").combogridX("getValue"),
- CoursesTime: $("[comboname='ddlCoursesTime']").combobox("getValue"),
- ClassroomType: $("[comboname='ddlClassroomType']").combobox("getValue"),
- Classroom: $("[comboname='cbgClassroom']").combogridX("getValue")
- });
- top.$("#" + windowID).dialog("close");
- }
|