listinitialdocument.aspx

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

ASPX
125
字号
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?