chooserole.aspx

来自「一个工作流OA」· ASPX 代码 · 共 95 行

ASPX
95
字号
<%@ Page Language="C#" MasterPageFile="~/Admin/Dialog.master" AutoEventWireup="true"
	CodeBehind="ChooseRole.aspx.cs" Inherits="Agile.OA.Web.Admin.ChooseRole" StylesheetTheme="Dialog"
	Title="选择角色" %>

<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">

	<script type="text/javascript">
	$(
		function()
		{
			$("#Roles").agileTable();
			
			$("#Roles").tableHover(
				{
					rowClass: "Hover"
				});
			
			$("#Confirm").click(
				function()
				{
					window.parent.returnValue = $("#Ids").val();
					window.close();
				});
		});
	</script>

	<table class="Container">
		<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>
				<input id="Ids" type="hidden" />
			</td>
		</tr>
		<tr>
			<td>
				<agile:Pager ID="Pager" runat="server" OnPageIndexChanged="Pager_PageIndexChanged" />
			</td>
		</tr>
		<tr>
			<td class="Bottom">
				<input id="Confirm" type="button" class="Button" value="确 定" />
			</td>
		</tr>
	</table>
</asp:Content>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?