UU跑腿标准版

userAllocationRole.aspx 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="userAllocationRole.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.sysmanage.userAllocationRole" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <title>分配角色</title>
  6. <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <link href="../images/style.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript" src="../../scripts/jquery/jquery-1.8.3.min.js"></script>
  9. <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
  10. <script type="text/javascript" src="../../scripts/jquery/jquery.validate.min.js"></script>
  11. <script type="text/javascript" src="../../scripts/jquery/messages_cn.js"></script>
  12. <script type="text/javascript" src="../../scripts/ui/js/ligerBuild.min.js"></script>
  13. <script type="text/javascript" src="../../scripts/function.js"></script>
  14. <script src="../scripts/calendar.js" type="text/javascript"></script>
  15. <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
  16. <script src="../scripts/ui/js/plugins/ligerDialog.js" type="text/javascript"></script>
  17. <script src="../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
  18. <script type="text/javascript" >
  19. function validateone_Role() {
  20. if ($("#DropDownListRole").val() == "" || $("#DropDownListRole").val() == undefined) {
  21. //jsprint("密码不允许为空!", "", "Error", "");
  22. //$("#txtone_password").focus();
  23. document.getElementById("lbone_Role").innerHTML = "* 不为空!";
  24. document.getElementById("lbone_Role").style.color = "red";
  25. return false;
  26. }
  27. else {
  28. document.getElementById("lbone_Role").innerHTML = "*";
  29. document.getElementById("lbone_Role").style.color = "#414141";
  30. return true;
  31. }
  32. }
  33. function validate() {
  34. var i = 0;
  35. if (!validateone_Role()) {
  36. i++;
  37. }
  38. if (i > 0) {
  39. return false;
  40. }
  41. return true;
  42. }
  43. function CloseThis() {
  44. var dialog = frameElement.dialog;
  45. parent.LoadList();
  46. dialog.close();
  47. //parent.window.LoadList();
  48. }
  49. function getRoleName() {
  50. alert(document.getElementById("DropDownListRole").value);
  51. if (document.getElementById("DropDownListRole").value != "") {
  52. document.getElementById("hfRoleName").value = document.getElementById("DropDownListRole").value;
  53. }
  54. }
  55. </script>
  56. </head>
  57. <body class="mainbody" scroll="no" style="margin-top: 0px;">
  58. <form id="form1" runat="server">
  59. <asp:HiddenField ID="hfRoleName" runat="server" />
  60. <div id="contentTab">
  61. <ul class="tab_nav">
  62. <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">重设密码</a></li>
  63. </ul>
  64. <div class="tab_con" style="display: block; height: 120px;">
  65. <table class="form_table">
  66. <col width="100px" />
  67. <col />
  68. <col width="100px" />
  69. <col />
  70. <tbody>
  71. <tr>
  72. <th>
  73. 员工工号:
  74. </th>
  75. <td>
  76. <asp:TextBox ID="txtWorkingCode" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  77. </td>
  78. </tr>
  79. <tr>
  80. <th>
  81. 员工姓名:
  82. </th>
  83. <td>
  84. <asp:TextBox ID="txtRealName" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  85. </td>
  86. </tr>
  87. <tr>
  88. <th>
  89. 操作角色:
  90. </th>
  91. <td>
  92. <asp:DropDownList ID="DropDownListRole" runat="server" CssClass="txtInput normal"
  93. Style="width: 130px;" onchange="getRoleName()">
  94. </asp:DropDownList><label id="lbone_Role" for="DropDownListRole">*</label>
  95. </td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. </div>
  100. <div class="foot_btn_box">
  101. <asp:Button ID="btnSubmit" runat="server" Text="保&nbsp;&nbsp;存" CssClass="btnSubmit"
  102. OnClientClick="return validate();" OnClick="btnSubmit_Click" />
  103. </div>
  104. </div>
  105. </form>
  106. </body>
  107. </html>