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

📄 viewdocument.aspx

📁 办公自动化系统
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="ViewDocument.aspx.cs" AutoEventWireup="false" Inherits="OfficeAuto.DesktopModules.Document.ViewDocument" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>查看文档:</title>
		<meta content="True" name="vs_showGrid">
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Css/DateCss.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top"><asp:datagrid id="DocList" runat="server" DataKeyField="DocumentID" OnSortCommand="DataGrid_Sort"
							CellPadding="3" BorderWidth="1px" BorderColor="#93BEE2" PageSize="15" PagerStyle-HorizontalAlign="Right"
							PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" Width="100%">
							<FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
							<AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
							<HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
								BackColor="#337FB2"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn SortExpression="Title" HeaderText="文档主题">
									<HeaderStyle Font-Underline="True"></HeaderStyle>
									<ItemStyle Font-Size="X-Small"></ItemStyle>
									<ItemTemplate>
										<a href="#" onclick='window.showModalDialog("BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocumentID") %>",window,"dialogWidth:500px;DialogHeight=290px;status:no")'>
											<%# (DataBinder.Eval(Container.DataItem,"Title").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"Title").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"Title").ToString() %>
										</a>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="Author" SortExpression="Author" HeaderText="文档作者">
									<ItemStyle Font-Size="X-Small"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="RealName" SortExpression="RealName" HeaderText="上传人">
									<ItemStyle Font-Size="X-Small"></ItemStyle>
									<FooterStyle Font-Size="X-Small"></FooterStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="UploadDate" SortExpression="UploadDate" HeaderText="上传日期">
									<ItemStyle Font-Size="X-Small"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="ViewCount" SortExpression="ViewCount" HeaderText="浏览次数">
									<HeaderStyle Font-Size="X-Small"></HeaderStyle>
									<ItemStyle Font-Size="X-Small"></ItemStyle>
									<FooterStyle Font-Size="XX-Small"></FooterStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="LastViewer" SortExpression="LastViewer" HeaderText="最后浏览者">
									<ItemStyle Font-Size="X-Small"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn Visible="True" DataField="LastViewDate" SortExpression="LastViewDate" HeaderText="浏览日期">
									<HeaderStyle Font-Underline="True"></HeaderStyle>
									<ItemStyle Font-Size="X-Small"></ItemStyle>
									<FooterStyle Font-Size="XX-Small"></FooterStyle>
								</asp:BoundColumn>
								<asp:TemplateColumn HeaderText="下载文档">
									<ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
									<ItemTemplate>
										<a href='<%=Request.ApplicationPath%><%# DataBinder.Eval(Container.DataItem,"DocUrl") %>'>
											<%# DataBinder.Eval(Container.DataItem,"Title") %>
										</a>
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
							<PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
								BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
						</asp:datagrid></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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