12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- function changeDataRange() {
- var dataRangeValue = $("#DataRange").combobox("getValue");
- if (dataRangeValue == campusTypeValue) {
- $("#CampusList").css("display", "");
- $("#CollegeList").css("display", "none");
- $("#DepartmentList").css("display", "none");
- } else if (dataRangeValue == collegeTypeValue) {
- $("#CampusList").css("display", "none");
- $("#CollegeList").css("display", "");
- $("#DepartmentList").css("display", "none");
- } else if (dataRangeValue == departmentTypeValue) {
- $("#CampusList").css("display", "none");
- $("#CollegeList").css("display", "none");
- $("#DepartmentList").css("display", "");
- } else {
- $("#CampusList").css("display", "none");
- $("#CollegeList").css("display", "none");
- $("#DepartmentList").css("display", "none");
- }
- }
- function User_DataRange_Save() {
- var dataRangeValue = $("#DataRange").combobox("getValue");
- if (dataRangeValue == campusTypeValue) {
- var selectedCampus = $("input[name='CampusList']:checked").map(function (index, elem) { return $(elem).val(); }).get().join(',');
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/User/SaveUserCampus', {
- userID: $.SystemGeneral.getUrlParam("UserID"),
- campusIDList: selectedCampus
- }, EMISFunction.FormSuccess, 'json');
- } else if (dataRangeValue == collegeTypeValue) {
- var selectedCollege = $("input[name='CollegeList']:checked").map(function (index, elem) { return $(elem).val(); }).get().join(',');
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/User/SaveUserCollege', {
- userID: $.SystemGeneral.getUrlParam("UserID"),
- collegeIDList: selectedCollege
- }, EMISFunction.FormSuccess, 'json');
- } else if (dataRangeValue == departmentTypeValue) {
- var selectedDepartment = $("input[name='DepartmentList']:checked").map(function (index, elem) { return $(elem).val(); }).get().join(',');
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/User/SaveUserDepartment', {
- userID: $.SystemGeneral.getUrlParam("UserID"),
- departmentIDList: selectedDepartment
- }, EMISFunction.FormSuccess, 'json');
- }
- }
|