📄 edituser.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Default.Master" AutoEventWireup="true"
CodeBehind="EditUser.aspx.cs" Inherits="Agile.OA.Web.Admin.EditUser" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
$(
function()
{
$("#TogglePane").initTogglePane(
{
headerClassClosed: "TogglePaneHeaderClosed"
});
$("#Roles").agileTable(
{
target: "<%= this.RoleIds.ClientID %>"
});
$("#WorkflowRoles").agileTable(
{
target: "<%= this.WorkflowRoleIds.ClientID %>"
});
$("#Roles").tableHover(
{
rowClass: "Hover"
});
$("#WorkflowRoles").tableHover(
{
rowClass: "Hover"
});
});
</script>
<div id="TogglePane">
<div>
<div class="TogglePaneHeader">
基本信息
</div>
<div class="TogglePaneContent">
<table class="Container">
<tr>
<td colspan="2">
<asp:HiddenField ID="Id" runat="server" />
</td>
</tr>
<tr>
<td class="Name">
名 称:
</td>
<td class="Value">
<asp:TextBox ID="Name" runat="server" CssClass="{required: true}" MaxLength="20"
ToolTip="请输入名称"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
昵 称:
</td>
<td class="Value">
<asp:TextBox ID="Nickname" runat="server" CssClass="{required: true}" MaxLength="50"
ToolTip="请输入昵称"></asp:TextBox>
<asp:CustomValidator ID="NicknameValidator" runat="server" ControlToValidate="Nickname"
Display="Dynamic" ErrorMessage="此昵称已存在" SetFocusOnError="True" OnServerValidate="Nickname_ServerValidate"></asp:CustomValidator>
</td>
</tr>
<tr>
<td class="Name">
描 述:
</td>
<td class="Value">
<asp:TextBox ID="Description" runat="server" SkinID="Description" MaxLength="100"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
密 码:
</td>
<td class="Value">
<asp:TextBox ID="Password" runat="server" CssClass="{required: true}" MaxLength="64"
ToolTip="请输入密码"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
性 别:
</td>
<td class="Value">
<asp:DropDownList ID="Sex" runat="server">
<asp:ListItem></asp:ListItem>
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="Name">
电子邮件:
</td>
<td class="Value">
<asp:TextBox ID="Email" runat="server" CssClass="{email: true}" MaxLength="50" ToolTip="请输入正确的电子邮件"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
职 务:
</td>
<td class="Value">
<asp:TextBox ID="Duty" runat="server" MaxLength="20"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
部 门:
</td>
<td class="Value">
<asp:DropDownList ID="Department" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="Bottom" colspan="2">
<asp:Button ID="Save" runat="server" Text="保 存" OnClientClick="return validateSave();"
OnClick="Save_Click" />
<asp:Button ID="SaveAdd" runat="server" Text="保存增加" OnClientClick="return validateSave();"
OnClick="SaveAdd_Click" />
</td>
</tr>
</table>
</div>
</div>
<div>
<div class="TogglePaneHeader">
角色列表
</div>
<div class="TogglePaneContent">
<table class="Container">
<tr>
<td class="Top">
<asp:Button ID="AddRole" runat="server" Text="增 加" OnClientClick="return validateAdd('ChooseRole.aspx', 'RoleIds');"
OnClick="AddRole_Click" />
<asp:Button ID="DeleteRole" runat="server" Text="删 除" OnClientClick="return validateDelete('角色', 'RoleIds');"
OnClick="DeleteRole_Click" />
</td>
</tr>
<tr>
<td>
<asp:ListView ID="Roles" runat="server" ItemPlaceholderID="ItemContainer">
<LayoutTemplate>
<table id="Roles" class="List">
<thead>
<tr>
<th class="Choose">
<input id="Header" type="checkbox" />
</th>
<th>
名 称
</th>
<th>
描 述
</th>
</tr>
</thead>
<tbody id="ItemContainer" runat="server">
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td>
<input id="Item" type="checkbox" title="<%# Eval("Id") %>" />
</td>
<td>
<%# Eval("Name") %>
</td>
<td>
<%# Eval("Description") %>
</td>
</tr>
</ItemTemplate>
<EmptyDataTemplate>
<table id="Roles" class="List">
<thead>
<tr>
<th class="Choose">
</th>
<th>
名 称
</th>
<th>
描 述
</th>
</tr>
</thead>
</table>
</EmptyDataTemplate>
</asp:ListView>
<asp:HiddenField ID="RoleIds" runat="server" />
</td>
</tr>
<tr>
<td>
<agile:Pager ID="RolePager" runat="server" OnPageIndexChanged="RolePager_PageIndexChanged" />
</td>
</tr>
</table>
</div>
</div>
<div>
<div class="TogglePaneHeader">
工作流角色列表
</div>
<div class="TogglePaneContent">
<table class="Container">
<tr>
<td class="Top">
<asp:Button ID="AddWorkflowRole" runat="server" Text="增 加" OnClientClick="return validateAdd('ChooseWorkflowRole.aspx', 'WorkflowRoleIds');"
OnClick="AddWorkflowRole_Click" />
<asp:Button ID="DeleteWorkflowRole" runat="server" Text="删 除" OnClientClick="return validateDelete('工作流角色', 'WorkflowRoleIds');"
OnClick="DeleteWorkflowRole_Click" />
</td>
</tr>
<tr>
<td>
<asp:ListView ID="WorkflowRoles" runat="server" ItemPlaceholderID="ItemContainer">
<LayoutTemplate>
<table id="WorkflowRoles" class="List">
<thead>
<tr>
<th class="Choose">
<input id="Header" type="checkbox" />
</th>
<th>
名 称
</th>
<th>
描 述
</th>
</tr>
</thead>
<tbody id="ItemContainer" runat="server">
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td>
<input id="Item" type="checkbox" title="<%# Eval("Id") %>" />
</td>
<td>
<%# Eval("Name") %>
</td>
<td>
<%# Eval("Description") %>
</td>
</tr>
</ItemTemplate>
<EmptyDataTemplate>
<table id="WorkflowRoles" class="List">
<thead>
<tr>
<th class="Choose">
</th>
<th>
名 称
</th>
<th>
描 述
</th>
</tr>
</thead>
</table>
</EmptyDataTemplate>
</asp:ListView>
<asp:HiddenField ID="WorkflowRoleIds" runat="server" />
</td>
</tr>
<tr>
<td>
<agile:Pager ID="WorkflowRolePager" runat="server" OnPageIndexChanged="WorkflowRolePager_PageIndexChanged" />
</td>
</tr>
</table>
</div>
</div>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -