123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function schoolyearChange() {
- try {
- var examinationBatchUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationBatch/DropDownList?bindType=0';
- var schoolyearID = $("#ddlSchoolyear").combobox('getValue');
- if (schoolyearID != nonSelect) {
- examinationBatchUrl += "&schoolyearID=" + schoolyearID;
- }
- $("#ddlExaminationBatch").combobox('reload', examinationBatchUrl);
- } catch (e) {
- }
- }
- function examinationBatchChange() {
- try {
- var examinationTypeUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/TypeDropDownList?bindType=0';
- var examinationBatchID = $("#ddlExaminationBatch").combobox('getValue');
- if (examinationBatchID != nonSelect) {
- examinationTypeUrl += "&examinationBatchID=" + examinationBatchID;
- }
- $("#ddlExaminationType").combobox('reload', examinationTypeUrl);
- } catch (e) {
- }
- }
- function examinationTypeChange() {
- try {
- var examinationProjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/DropDownList?bindType=0';
- var examinationBatchID = $("#ddlExaminationBatch").combobox('getValue');
- var examinationTypeID = $("#ddlExaminationType").combobox('getValue');
- if (examinationBatchID != nonSelect) {
- examinationProjectUrl += "&examinationBatchID=" + examinationBatchID;
- }
- if (examinationTypeID != nonSelect) {
- examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
- }
- $("#ddlExaminationProject").combobox('reload', examinationProjectUrl);
- } catch (e) {
- }
- }
- function examinationProjectLoaded() {
- try {
- var examinationSubjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ChargeProject/ExaminationSubjectDropdownList?bindType=0';
- var examinationProjectID = $("#ddlExaminationProject").combobox('getValue');
- if (examinationProjectID != nonSelect) {
- examinationSubjectUrl += "&examinationProjectID=" + examinationProjectID;
- }
- $("#ddlExaminationSubject").combobox('reload', examinationSubjectUrl);
- } catch (e) {
- }
- }
- function examinationSubjectLoaded() {
- try {
- var collegeUrl = CMS_SystemConfig.VirtualDirectoryPath + '/College/CollegeDropdownListOnlyCollege?bindType=1';
- $("#ddlCollege").combobox('reload', collegeUrl);
- } catch (e) {
- }
- reload();
- }
- function collegeChange() {
- try {
- var jsonString = "";
- var parameterString = "";
- var collegeID = $("#ddlCollege").combobox('getValue');
- var schoolAreaID = $("#ddlSchoolArea").combobox("getValue");
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (schoolAreaID != nonSelect) parameterString += "ddlSchoolArea|*|" + schoolAreaID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cgbStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#cgbStandard").combogridX("reload");
- }
- } catch (e) {
- }
- }
- function standardChange() {
- try {
- var jsonString = "";
- var parameterString = "";
- var collegeID = $("#ddlCollege").combobox('getValue');
- var yearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#cgbStandard").combogridX("getValue");
- var schoolAreaID = $("#ddlSchoolArea").combobox("getValue");
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (yearID != nonSelect) parameterString += "DictionarySchoolyear|*|" + yearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (schoolAreaID != nonSelect) parameterString += "ddlSchoolArea|*|" + schoolAreaID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cgbClassmajor").combogridX("reload", eval(jsonString));
- } else {
- $("#cgbClassmajor").combogridX("reload");
- }
- } catch (e) {
- }
- }
- function collegeSelect() {
- collegeChange();
- reload();
- }
- function standardSelect() {
- standardChange();
- reload();
- }
- function reload() {
- $("#dgResitList").cmsXDataTable("load", $.getDataGridParams("dgResitList"));
- }
- function Resit_Export() {
- $("#formQuery").submit();
- }
|