<%@Page Language="C#" Inherits="IWMS.Admin.SignInMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<script type="text/javascript">
	<!--
	function checkFormAll(chk){
		form = document.getElementById("<%=myForm.ClientID%>");
		for(var i=0; i<form.elements.length; i++)
		{
			if (form.elements[i].type=="checkbox")
			{
				form.elements[i].checked = chk;
			}
		}
	}
	-->
	</script>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">管理签收</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnItemDataBound="MyDataGrid_ItemDataBound"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				PageSize="10"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:TemplateColumn
					HeaderText="签收新闻"
					>
					<ItemTemplate>
					<%#GetNewsLink((System.Data.DataRowView)Container.DataItem)%>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="发起人"
					DataField="sendername">
					<ItemStyle Width="80" HorizontalAlign="center" />
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="签收人"
					DataField="receivername"
					>
					<ItemStyle Width="80" HorizontalAlign="center" />
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="签收意见"
					DataField="appraisal"
					>
					<ItemStyle Width="200" HorizontalAlign="center" />
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="已签收"
					>
					<ItemTemplate>
						<%#(bool)Eval("seen") ? "&radic;<br/>(<span title='"+Eval("signDate")+"'>"+((DateTime)Eval("signDate")).ToString("yyyy-MM-dd")+"</span>)" : ""%>
					</ItemTemplate>
					<ItemStyle Width="80" HorizontalAlign="center" />
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this.checked)&quot;/>"
					>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle Width="20" HorizontalAlign="center" />
				</asp:TemplateColumn>
			</Columns>
		</ASP:DataGrid>
		
		<table><tr>
		<td>
			<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/>
		</td></tr>
		</table>
		
		</form>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>