12345678910111213141516171819202122232425262728293031323334353637383940 |
- function Staff_Save() {
- var userID = $("#UserID").val();
- var code = $("#StaffCode").val();
- var CollegeID = $("#CollegeID").combogridX("getValue");
- var DepartmentID = $("#DepartmentID").combogridX("getValue");
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/Verification', { userID: userID, code: code, CollegeID: CollegeID, DepartmentID: DepartmentID }, function (data) {
- if (data == "成功。") {
- if ($("#CollegeDropdown").val() != CollegeID) {
- $.messager.confirm("系统提示", "修改教师的所属院系所会重置教师个人的数据范围,是否继续?", function (r) {
- if (r) {
- $(document.forms[0]).submit();
- }
- })
- } else {
- $(document.forms[0]).submit();
- }
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- function QueryCollegeComboGridList() {
- var collegeID = $("#CollegeID").combogridX("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#DepartmentID").combogridX("reload", eval(jsonString));
- }
- }
- function delPhoto() {
- var userID = $("#UserID").val();
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/DeletePhoto', { userID: userID }, function (data) {
- if (data.IsSuccess) {
- $("#imgPhoto").attr('src', '');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
|