$.parser.onComplete = function (context) { queryStandard(); }; function WorktimeAdjustment_Save() { $(document.forms[0]).submit(); } function queryStandard() { try { var collegeID = $("#CollegeID").combobox("getValue"); var gradeyearID = $("#GradeYearID").combobox("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (gradeyearID != null) { if (gradeyearID != nonSelect) { jsonString += "DictionaryGrade|*|" + gradeyearID + "|@|"; } } if (collegeID != null) { if (collegeID != nonSelect) { jsonString += "CollegeDropdown|*|" + collegeID + "|@|"; } } jsonString += "'})"; $("#StandardID").combogridX("reload", eval(jsonString)); } catch (e) { } } function queryCourse() { $("#CoursematerialID").combogridX("reload"); } function adjustDateChanged() { try { var schoolyearID = $("#SchoolyearID").combobox("getValue"); var userID = $("#UserID").combogridX("getValue"); var adjustDate = $dp.cal.getNewDateStr(); var collegeID = $("#CollegeID").combobox("getValue"); var gradeyearID = $("#GradeYearID").combobox("getValue"); var standardID = $("#StandardID").combogridX("getValue"); var coursematerialID = $("#CoursematerialID").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (schoolyearID != nonSelect) { jsonString += "SchoolyearID|*|" + schoolyearID + "|@|"; } if (userID != nonSelect) { jsonString += "UserID|*|" + userID + "|@|"; } if (adjustDate != nonSelect) { jsonString += "AdjustDate|*|" + adjustDate + "|@|"; } if (collegeID != nonSelect) { jsonString += "CollegeID|*|" + collegeID + "|@|"; } if (gradeyearID != nonSelect) { jsonString += "GradeYearID|*|" + gradeyearID + "|@|"; } if (standardID != nonSelect) { jsonString += "StandardID|*|" + standardID + "|@|"; } if (coursematerialID != nonSelect) { jsonString += "CoursematerialID|*|" + coursematerialID + "|@|"; } jsonString += "'})"; $("#EducationMissionClassID").combogridX("reload", eval(jsonString)); } catch (e) { } } function queryMissionClass() { try { var schoolyearID = $("#SchoolyearID").combobox("getValue"); var userID = $("#UserID").combogridX("getValue"); var adjustDate = $("#AdjustDate").val(); var collegeID = $("#CollegeID").combobox("getValue"); var gradeyearID = $("#GradeYearID").combobox("getValue"); var standardID = $("#StandardID").combogridX("getValue"); var coursematerialID = $("#CoursematerialID").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (schoolyearID != nonSelect) { jsonString += "SchoolyearID|*|" + schoolyearID + "|@|"; } if (userID != nonSelect) { jsonString += "UserID|*|" + userID + "|@|"; } if (adjustDate != nonSelect) { jsonString += "AdjustDate|*|" + adjustDate + "|@|"; } if (collegeID != nonSelect) { jsonString += "CollegeID|*|" + collegeID + "|@|"; } if (gradeyearID != nonSelect) { jsonString += "GradeYearID|*|" + gradeyearID + "|@|"; } if (standardID != nonSelect) { jsonString += "StandardID|*|" + standardID + "|@|"; } if (coursematerialID != nonSelect) { jsonString += "CoursematerialID|*|" + coursematerialID + "|@|"; } jsonString += "'})"; $("#EducationMissionClassID").combogridX("reload", eval(jsonString)); } catch (e) { } }