123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- $.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) {
- }
- }
|