123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/PersonalInfo/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- //非负浮点数(/^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/)
- var reg = /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$/;
- var learnSystem = $("#LearnSystem").val();
- if (learnSystem == "" || learnSystem == null) {
- $("#LearnSystem").val("");
- }
- else {
- if (!reg.test(learnSystem)) {
- $("#LearnSystem").val("");
- }
- else {
- $("#LearnSystem").val(parseFloat(learnSystem).toFixed(1));
- }
- }
- var score = $("#Score").val();
- if (score == "" || score == null) {
- $("#Score").val("");
- }
- else {
- if (!reg.test(score)) {
- $("#Score").val("");
- }
- else {
- $("#Score").val(parseFloat(score).toFixed(1));
- }
- }
- $("#specialtyExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#specialtyExpander").attr("expanded", "1");
- $("#profileExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#profileExpander").attr("expanded", "1");
- $("#contactExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#contactExpander").attr("expanded", "1");
- $("#accountExpander").closest("tr")
- .next().css("display", "");
- $("#accountExpander").attr("expanded", "1");
- $("#recruitExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#recruitExpander").attr("expanded", "1");
- $("#otherExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "");
- $("#otherExpander").attr("expanded", "1");
- });
- //刷新
- function reload() {
- $("#dgPersonalInfoList").cmsXDataTable("load", $.getDataGridParams("dgPersonalInfoList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgPersonalInfoList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- //点击收缩(专业班级信息)
- function swapSpecialty() {
- if ($("#specialtyExpander").attr("expanded") == "1") {
- $("#specialtyExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#specialtyExpander").closest("tr")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none");
- $("#specialtyExpander").attr("expanded", "0");
- } else {
- $("#specialtyExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#specialtyExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#specialtyExpander").attr("expanded", "1");
- }
- }
- //点击收缩(学生扩展信息)
- function swapProfile() {
- if ($("#profileExpander").attr("expanded") == "1") {
- $("#profileExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#profileExpander").closest("tr")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none");
- $("#profileExpander").attr("expanded", "0");
- } else {
- $("#profileExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#profileExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "none");
- $("#profileExpander").attr("expanded", "1");
- }
- }
- //点击收缩(学生联系信息)
- function swapContact() {
- if ($("#contactExpander").attr("expanded") == "1") {
- $("#contactExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#contactExpander").closest("tr")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none");
- $("#contactExpander").attr("expanded", "0");
- } else {
- $("#contactExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#contactExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#contactExpander").attr("expanded", "1");
- }
- }
- //点击收缩(学生缴费信息)
- function swapAccount() {
- if ($("#accountExpander").attr("expanded") == "1") {
- $("#accountExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#accountExpander").closest("tr")
- .next().css("display", "none");
- $("#accountExpander").attr("expanded", "0");
- } else {
- $("#accountExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#accountExpander").closest("tr")
- .next().css("display", "");
- $("#accountExpander").attr("expanded", "1");
- }
- }
- //点击收缩(高考招生信息)
- function swapRecruit() {
- if ($("#recruitExpander").attr("expanded") == "1") {
- $("#recruitExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#recruitExpander").closest("tr")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none")
- .next().css("display", "none");
- $("#recruitExpander").attr("expanded", "0");
- } else {
- $("#recruitExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#recruitExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "")
- .next().css("display", "");
- $("#recruitExpander").attr("expanded", "1");
- }
- }
- //点击收缩(其它信息)
- function swapOther() {
- if ($("#otherExpander").attr("expanded") == "1") {
- $("#otherExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -50px 0");
- $("#otherExpander").closest("tr")
- .next().css("display", "none")
- .next().css("display", "none");
- $("#otherExpander").attr("expanded", "0");
- } else {
- $("#otherExpander").css("background", "url('../../Content/Bowin.Control.Core/themes/metro-blue/images/tree_icons.png') no-repeat -32px 0");
- $("#otherExpander").closest("tr")
- .next().css("display", "")
- .next().css("display", "");
- $("#otherExpander").attr("expanded", "1");
- }
- }
- //校对
- function PersonalInfo_Check() {
- var userID = $("#UserID").val();
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/PersonalInfo/CheckOpenObject', { userID: userID }, function (data) {
- if (data.IsSuccess) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/PersonalInfo/CheckEdit?MNU=' + mnu;
- $.popupTopWindow('个人信息校对', redirectTo, 750, 550, null, null);
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- //核对
- function PersonalInfo_Proofread() {
- var userID = $("#UserID").val();
- if (userID != null && userID != "") {
- $.messager.confirm("系统提示", "是否对当前个人信息进行确认核对?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/PersonalInfo/Proofread', { userID: userID }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", data.Message);
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- } else {
- $.messager.alert("系统提示", "数据有误,请刷新页面重新加载。");
- }
- }
- //学籍报表
- function PersonalInfo_CradReport() {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/PersonalInfo/CradReport?MNU=' + mnu;
- var personalCradReportName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='PersonalCradReport']").attr("customName");
- if (personalCradReportName == "HBGDPersonalCard") {
- $.popupTopWindow('学籍报表', redirectTo, 680, 550, null, {
- PersonalCradReportName: personalCradReportName
- });
- } else {
- $.popupTopWindow('学籍报表', redirectTo, 1124, 550, null, {
- PersonalCradReportName: personalCradReportName
- });
- }
- }
- //Excel导出
- function PersonalInfo_Export() {
- }
|