ManageFile.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
  2. <%@ Page language="c#" Codebehind="ManageFile.aspx.cs" AutoEventWireup="false" Inherits="OA.ManageFile" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>安泰自动办公系统</title>
  7. <style type="text/css">TABLE { FONT-SIZE: 9pt }
  8. BODY { FONT-SIZE: 9pt }
  9. .Grid { BORDER-RIGHT: honeydew thin outset; BORDER-TOP: honeydew thin outset; BORDER-LEFT: honeydew thin outset; BORDER-BOTTOM: honeydew thin outset; HEIGHT: 22px }
  10. </style>
  11. <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
  12. <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
  13. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  14. <meta content="C#" name="CODE_LANGUAGE">
  15. <meta content="JavaScript" name="vs_defaultClientScript">
  16. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  17. </HEAD>
  18. <body topMargin="5" oncontextmenu='return false'>
  19. <form id="Form1" method="post" runat="server">
  20. <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
  21. <TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; TOP: 100px" cellSpacing="1" cellPadding="1"
  22. width="100%" border="1">
  23. <TR>
  24. <TD style="HEIGHT: 30px" vAlign="middle" align="right" width="100%"><asp:label id="stats" runat="server"></asp:label></TD>
  25. </TR>
  26. <TR>
  27. <TD vAlign="top"><asp:datagrid id="MyDataGrid" runat="server" OnItemDataBound="MyDataGrid_ItemDataBound" DataKeyField="FileID"
  28. AutoGenerateColumns="False" AllowSorting="true" OnSortCommand="MyDataGrid_Sort" AllowPaging="True" PageSize="4"
  29. OnPageIndexChanged="MyDataGrid_PageIndexChanged" HeaderStyle-BackColor="#d0d8df" AlternatingItemStyle-BackColor="#f0f8ff"
  30. HeaderStyle-HorizontalAlign="center" ItemStyle-CssClass="normal" PagerStyle-HorizontalAlign="Right" PagerStyle-NextPageText="下页 >>"
  31. PagerStyle-PrevPageText="<< 上页" OnDeleteCommand="MyDataGrid_Delete" OnItemCreated="MyDataGrid_ItemCreated"
  32. Width="100%">
  33. <AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
  34. <ItemStyle CssClass="normal"></ItemStyle>
  35. <HeaderStyle CssClass="Grid" HorizontalAlign="Center" BorderStyle="Outset" BackColor="#D0D8DF"></HeaderStyle>
  36. <Columns>
  37. <asp:HyperLinkColumn DataNavigateUrlField="FileID" DataNavigateUrlFormatString="javascript:var screenheight=screen.height-60;var screenwidth=screen.width-160;window.open('FileDetails.aspx?FileID={0}','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,revisable=no,left=150,top=0,width='+screenwidth+',height='+screenheight+',');window.opener=null;window.close();"
  38. DataTextField="Title" SortExpression="Title" HeaderText="文件标题">
  39. <HeaderStyle Width="25%"></HeaderStyle>
  40. </asp:HyperLinkColumn>
  41. <asp:BoundColumn DataField="Date" SortExpression="Date" HeaderText="发送时间" DataFormatString="{0:yy-MM-dd hh:mm}">
  42. <HeaderStyle Width="15%"></HeaderStyle>
  43. </asp:BoundColumn>
  44. <asp:BoundColumn DataField="Writer" SortExpression="Writer" HeaderText="起草人">
  45. <HeaderStyle Width="8%"></HeaderStyle>
  46. </asp:BoundColumn>
  47. <asp:BoundColumn DataField="PersonID" SortExpression="PersonID" HeaderText="发送人">
  48. <HeaderStyle Width="8%"></HeaderStyle>
  49. </asp:BoundColumn>
  50. <asp:BoundColumn DataField="FileKind" SortExpression="FileKind" HeaderText="文件类别">
  51. <HeaderStyle Width="8%"></HeaderStyle>
  52. </asp:BoundColumn>
  53. <asp:BoundColumn DataField="SystemID" SortExpression="SystemID" HeaderText="体系">
  54. <HeaderStyle Width="8%"></HeaderStyle>
  55. </asp:BoundColumn>
  56. <asp:BoundColumn DataField="OrganizationID" SortExpression="OrganizationID" HeaderText="归口部门">
  57. <HeaderStyle Width="10%"></HeaderStyle>
  58. </asp:BoundColumn>
  59. <asp:BoundColumn DataField="AccepterID" SortExpression="AccepterID" HeaderText="发放范围">
  60. <HeaderStyle Width="12%"></HeaderStyle>
  61. </asp:BoundColumn>
  62. <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
  63. <HeaderStyle Width="6%"></HeaderStyle>
  64. </asp:ButtonColumn>
  65. </Columns>
  66. <PagerStyle NextPageText="下页 &gt;&gt;" PrevPageText="&lt;&lt; 上页" HorizontalAlign="Right"></PagerStyle>
  67. </asp:datagrid></TD>
  68. </TR>
  69. </TABLE>
  70. </form>
  71. </body>
  72. </HTML>