| | |
| | | if (i == 0) |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '" selected>' + data[i].Name + '</option>'; |
| | | else |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | |
| | | } |
| | | $("#Organization").append(Organization); |
| | |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | |
| | | //form.render(); |
| | | |
| | |
| | | if (e.keyCode == 13) { |
| | | loging(); |
| | | } |
| | | }); |
| | | }); |
| | | //用户名框回车光标移到密码框 |
| | | $('#LAY-user-login-username').on('keydown', function (e) { |
| | | if (e.keyCode == 13) { |
| | |
| | | var PassWord = $("#LAY-user-login-password").val(); |
| | | layer.load(3); |
| | | $.ajax({ |
| | | type: "get", |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetUser", |
| | | data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() }, |
| | | success: function (result) { |
| | |
| | | sessionStorage["Czmm"] = result.data[0].Czmm; |
| | | sessionStorage["Czybm"] = result.data[0].Czybm; |
| | | sessionStorage["HEmpID"] = result.data[0].HEmpID; |
| | | sessionStorage["HEmpNumber"] = result.data[0].HEmpNumber; |
| | | sessionStorage["HEmpName"] = result.data[0].HEmpName; |
| | | sessionStorage["HGroup"] = result.data[0].HGroup; |
| | | sessionStorage["HGroupID"] = result.data[0].HGroupID; |
| | | sessionStorage["HProc"] = result.data[0].HProc; |
| | |
| | | //if (!judgeMorPCflag) {//移动端 |
| | | // window.location.href = '../../views/index_Mobile.html' |
| | | //} else {//PC端 |
| | | window.location.href = '../../views/indexMenu.html' |
| | | window.location.href = '../../views/indexMenu.html' |
| | | //} |
| | | get_WriteConfigFile(); |
| | | } |
| | |
| | | $("body").append('<audio id="cs" hidden controls> <source src = "../video/jingbao.wav" type = "audio/ogg"> </audio >'); |
| | | var audio = document.getElementById("cs"); |
| | | audio.play(); |
| | | } |
| | | } |
| | | |
| | | }); |
| | | </script> |