report_list.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:4k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="report_list.aspx.cs" Inherits="web_report_report_list" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>无标题页</title>
  6.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9.     <form id="form1" runat="server">
  10.     <div>
  11.     <center>
  12.         <asp:Panel ID="PnlReceive" runat="server">
  13.             <center>
  14.                 <asp:Label ID="LblReceiveTitle" runat="server" Text="已收工作報告列表" Font-Bold="True" Font-Size="Medium"></asp:Label>
  15.             </center>
  16.             <center>
  17.                 <br />
  18.             <asp:GridView ID="ReportReceiveList" runat="server" AllowPaging="True" AllowSorting="True"
  19.                 AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
  20.                 BorderWidth="1px" CellPadding="3" DataKeyNames="id" DataSourceID="SqlDataSource1"
  21.                 GridLines="Vertical" Style="position: relative" Width="650px" OnRowCommand="ReportReceiveList_RowCommand" OnRowCreated="ReportReceiveList_RowCreated" OnRowDataBound="ReportReceiveList_RowDataBound">
  22.                 <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  23.                 <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  24.                 <Columns>
  25.                     <asp:BoundField DataField="title" HeaderText="標題" SortExpression="title" />
  26.                     <asp:BoundField DataField="emp_name" HeaderText="發送人" SortExpression="emp_name" />
  27.                     <asp:BoundField DataField="send_date" HeaderText="接收時間" SortExpression="send_date" />
  28.                     <asp:TemplateField HeaderText="狀態">
  29.                         <ItemTemplate>
  30.                             <asp:Label ID="LblState" runat="server" Style="position: relative"></asp:Label>
  31.                         </ItemTemplate>
  32.                     </asp:TemplateField>
  33.                     <asp:BoundField DataField="read_date" HeaderText="閱讀時間" SortExpression="read_date" />
  34.                     <asp:TemplateField HeaderText="簽批">
  35.                         <ItemTemplate>
  36.                             <asp:Label ID="LblSign" runat="server" Style="position: relative"></asp:Label>
  37.                         </ItemTemplate>
  38.                     </asp:TemplateField>
  39.                     <asp:TemplateField>
  40.                         <ItemTemplate>
  41.                             <asp:LinkButton ID="BtnDelete" runat="server" CommandName="DeleteData" Style="position: relative">刪除</asp:LinkButton>
  42.                         </ItemTemplate>
  43.                     </asp:TemplateField>
  44.                 </Columns>
  45.                 <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  46.                 <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  47.                 <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  48.                 <AlternatingRowStyle BackColor="Gainsboro" />
  49.             </asp:GridView>
  50.                 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  51.                     SelectCommand="SELECT r.id, r.read_date, s.send_date, e.emp_name, c.title FROM dbo.OA_REPORT_RECEIVER AS r INNER JOIN dbo.OA_REPORT_SENDER AS s ON r.report_id = s.report_id INNER JOIN dbo.OA_EMPLOYEE AS e ON s.sender = e.id INNER JOIN dbo.OA_REPORT_CONTENT AS c ON r.report_id = c.id WHERE (r.is_del = 0)">
  52.                 </asp:SqlDataSource>
  53.             </center>
  54.         </asp:Panel><br />
  55.         <asp:Panel ID="PnlSend" runat="server">
  56.         </asp:Panel>
  57.     </center>
  58.     </div>
  59.     </form>
  60. </body>
  61. </html>