123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- var mnu;
- var examinationScoreID;
- var nonSelect;
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- examinationScoreID = $.SystemGeneral.getUrlParam("ExaminationScoreID");
- nonSelect = "-1";
- });
- function ExaminationScore_Save() {
- $(document.forms[0]).submit();
- }
- function schoolyearChange() {
- try {
- var examinationBatchUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationBatch/DropDownList?bindType=0';
- var schoolyearID = $("#SchoolyearID").combobox('getValue');
- if (schoolyearID != nonSelect) {
- examinationBatchUrl += "&schoolyearID=" + schoolyearID;
- }
- $("#ExaminationBatchID").combobox('reload', examinationBatchUrl);
- //reload();
- } catch (e) {
- }
- }
- function examinationBatchChange() {
- try {
- var examinationTypeUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/TypeDropDownList?bindType=0';
- var examinationBatchID = $("#ExaminationBatchID").combobox('getValue');
- if (examinationBatchID != nonSelect) {
- examinationTypeUrl += "&examinationBatchID=" + examinationBatchID;
- }
- $("#ExaminationTypeID").combobox('reload', examinationTypeUrl);
- //reload();
- } catch (e) {
- }
- }
- function examinationTypeChange() {
- try {
- var examinationProjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/DropDownList?bindType=0';
- var examinationBatchID = $("#ExaminationBatchID").combobox('getValue');
- var examinationTypeID = $("#ExaminationTypeID").combobox('getValue');
- if (examinationBatchID != nonSelect) {
- examinationProjectUrl += "&examinationBatchID=" + examinationBatchID;
- }
- if (examinationTypeID != nonSelect) {
- examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
- }
- $("#ExaminationProjectID").combobox('reload', examinationProjectUrl);
- //reload();
- } catch (e) {
- }
- }
- function examinationProjectChange() {
- try {
- var examinationSubjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationScore/SubjectDropDownList?bindType=0';
-
- var examinationProjectID = $("#ExaminationProjectID").combobox("getValue");
- if (examinationProjectID != nonSelect && examinationProjectID != ""){
- examinationSubjectUrl += "&examinationProjectID=" + examinationProjectID;
- }
- //var examinationTypeID = $("#ExaminationTypeID").combobox('getValue');
- //if (examinationTypeID != nonSelect) {
- // examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
- //}
- $("#ExaminationSubjectID").combobox('reload', examinationSubjectUrl);
- //reload();
- } catch (e) {
- }
- }
- function setUserName() {
- var jsonString = "";
- var parameterString = "";
- var userID = $("#UserIDForIDNumber").combogridX("getValue");
- if (userID != nonSelect) {
- $("#UserID").combogridX("setValue", userID);
- }
- else {
- $("#UserID").combogridX("setValue", "-1");
- }
-
- }
- function querySchoolYear() {
- var jsonString = "";
- var parameterString = "";
- var schoolyearID = $("#SchoolYearDropdown").combobox("getValue");
- if (schoolyearID != nonSelect && schoolyearID != "") parameterString += "SchoolYearDropdown|*|" + schoolyearID + "|@|";
- //if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ExaminationBatchID").combogridX("reload", eval(jsonString));
- //}
- //else {
- // $("#ExaminationBatchID").combogridX("reload");
- //}
- }
- function queryProject() {
- var jsonString = "";
- var parameterString = "";
- var examinationBatchID = $("#ExaminationBatchID").combogridX("getValue");
- var examinationTypeID = $("#ExaminationTypeID").combogridX("getValue");
- if (examinationBatchID != nonSelect && examinationBatchID != "") parameterString += "cgExaminationBatch|*|" + examinationBatchID + "|@|";
- if (examinationTypeID != nonSelect && examinationTypeID != "") parameterString += "cgExaminationType|*|" + examinationTypeID + "|@|";
- //if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ExaminationProjectID").combogridX("reload", eval(jsonString));
- //}
- //else {
- // $("#ExaminationProjectID").combogridX("reload");
- //}
- }
- function querySubject() {
- var jsonString = "";
- var parameterString = "";
- var examinationProjectID = $("#ExaminationProjectID").combobox("getValue");
- if (examinationProjectID != nonSelect && examinationProjectID != "") parameterString += "cgExaminationProject|*|" + examinationProjectID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ExaminationSubjectID").combogridX("reload", eval(jsonString));
- //$("#ExaminationSubjectID").combogridX("setValue", subjectID);
- }
- //else {
- // $("#ExaminationSubjectID").combogridX("reload");
- // //$("#ExaminationSubjectID").combogridX("setValue", subjectID);
- //}
- }
- function setSubjectSelect() {
- $("#ExaminationSubjectID").combogridX("setValue", subjectID);
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- var collegeID = $("#cgCollege").combogridX("getValue");
- var schoolYearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#ddlStandard").combogridX("getValue");
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (schoolYearID != nonSelect && schoolYearID != "") parameterString += "DictionarySchoolyear|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect && standardID != "") parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- //if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ddlStandard").combogridX("reload", eval(jsonString));
- $("#cgClassmajor").combogridX("reload", eval(jsonString));
- //} else {
- // $("#ddlStandard").combogridX("reload");
- // $("#cgClassmajor").combogridX("reload");
- //}
- }
|