⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listinitialdocument.aspx

📁 一个工作流OA
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ListInitialDocument.aspx.cs"
	Inherits="Agile.OA.Web.ListInitialDocument" %>

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

	<script type="text/javascript">
	$(
		function()
		{
			$("#Tasks").tableHover(
				{
					rowClass: "Hover"
				});
			
			var items = $(":radio", $("#Tasks"));
			if (items.length > 0)
			{
				var item = items[0];
				$(item).attr("checked", true);
				$("#<%= this.Id.ClientID %>").val(item.title);
				$("#<%= this.Draft.ClientID %>").attr("disabled", false);
			}
			else
			{
				$("#<%= this.Draft.ClientID %>").attr("disabled", true);
			}
			
			$(":radio", $("#Tasks")).click(
				function()
				{
					$("#<%= this.Id.ClientID %>").val(this.title);
				});
		});
	</script>

	<table class="Container">
		<tr>
			<td class="Top">
				<asp:Button ID="Draft" runat="server" Text="起 草" OnClick="Draft_Click" />&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				<asp:ListView ID="Tasks" runat="server" ItemPlaceholderID="ItemContainer">
					<LayoutTemplate>
						<table id="Tasks" class="List">
							<thead>
								<tr>
									<th class="Choose">
									</th>
									<th>
										任务名称
									</th>
									<th>
										任务描述
									</th>
									<th>
										流程名称
									</th>
									<th>
										流程描述
									</th>
									<th>
										流程模板
									</th>
								</tr>
							</thead>
							<tbody id="ItemContainer" runat="server">
							</tbody>
						</table>
					</LayoutTemplate>
					<ItemTemplate>
						<tr>
							<td>
								<input id="Item" type="radio" title="<%# Eval("Instance.Id") %>" />
							</td>
							<td>
								<%# Eval("Name") %>
							</td>
							<td>
								<%# Eval("Description") %>
							</td>
							<td>
								<%# Eval("Instance.Name") %>
							</td>
							<td>
								<%# Eval("Instance.Description") %>
							</td>
							<td>
								<%# Eval("Instance.Template") %>
							</td>
						</tr>
					</ItemTemplate>
					<EmptyDataTemplate>
						<table id="Tasks" class="List">
							<thead>
								<tr>
									<th class="Choose">
									</th>
									<th>
										任务名称
									</th>
									<th>
										任务描述
									</th>
									<th>
										流程名称
									</th>
									<th>
										流程描述
									</th>
									<th>
										流程模板
									</th>
								</tr>
							</thead>
						</table>
					</EmptyDataTemplate>
				</asp:ListView>
				<asp:HiddenField ID="Id" runat="server" />
			</td>
		</tr>
	</table>
</asp:Content>

⌨️ 快捷键说明

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