12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- 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 queryStandard() {
- try {
- var jsonString = "({'QueryParamsDatas':'";
- var yearID = $("#ddlYear").combobox("getValue");
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- jsonString += "'})";
- $("#cgbStandard").combogridX("reload", eval(jsonString));
- queryClass();
- } catch (e) {
- }
- }
- function queryClass() {
- try {
- var jsonString = "({'QueryParamsDatas':'";
- var yearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#cgbStandard").combogridX("getValue");
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- if (standardID != nonSelect) {
- jsonString += "DictionaryStandard|*|" + standardID + "|@|";
- }
- jsonString += "'})";
- $("#cgbClassmajor").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function reload() {
- var schoolYearID = $("#ddlSchoolyear").combobox("getValue");
- var collegeID = $("#ddlCollege").combobox("getValue");
- var userID = $("#cgbTeacher").combogridX("getValue");
- var yearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#cgbStandard").combogridX("getValue");
- var classmajorID = $("#cgbClassmajor").combogridX("getValue");
- var coursematerialID = $("#cgbCourse").combogridX("getValue");
- var Month = document.getElementById("txtDate").value;
- var MonthStr ="";
- if (Month != null && Month != "") {
- if (isNaN(Month)) {
- $.messager.alert("系统提示", "请输入正确的月份");
- } else {
- if (Month < 1 || Month > 12) {
- $.messager.alert("系统提示", "请输入正确的月份");
- return;
- }
- if (Month < 10) {
- MonthStr = "0" + Month;
- } else {
- MonthStr = Month;
- }
- }
- } else {
- MonthStr = null;
- }
- if (collegeID == nonSelect) collegeID = null;
- if (userID == nonSelect) userID = null;
- if (yearID == nonSelect) yearID = null;
- if (standardID == nonSelect) standardID = null;
- if (classmajorID == nonSelect) classmajorID = null;
- if (coursematerialID == nonSelect) coursematerialID = null;
- top.ReportParameter = {
- SchoolyearID: schoolYearID,
- CollegeID: collegeID,
- TeacherUserID: userID,
- GradeyearID: yearID,
- StandardID: standardID,
- ClassmajorID: classmajorID,
- CoursematerialID: coursematerialID,
- Month: MonthStr
- };
- if (schoolYearID == nonSelect || !schoolYearID)
- $.messager.alert("系统信息", "请选择学年学期。");
- else
- $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fPaymentManage%2fCollegeTeacherMonthReport");
- }
|