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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="report_list_send.aspx.cs" Inherits="web_report_report_list_send" %>
  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.     <center>
  11.         <asp:Label ID="Label8" runat="server" Text="已發工作報告列表" Font-Bold="True" Font-Size="Medium"></asp:Label></center><br />
  12.     <div>
  13.     <table width="95%" runat="server" id="TblReport">
  14.         <tr>
  15.             <td align="center">
  16.                 <asp:GridView ID="ReportList" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="675px" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True" OnRowCommand="ReportList_RowCommand" OnRowCreated="ReportList_RowCreated" OnRowDataBound="ReportList_RowDataBound">
  17.                     <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  18.                     <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  19.                     <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  20.                     <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  21.                     <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  22.                     <AlternatingRowStyle BackColor="Gainsboro" />
  23.                     <Columns>
  24.                         <asp:BoundField DataField="title" HeaderText="標題" SortExpression="title" />
  25.                         <asp:BoundField DataField="send_date" HeaderText="發送時間" SortExpression="send_date" />
  26.                         <asp:TemplateField HeaderText="閱讀統計">
  27.                             <ItemTemplate>
  28.                                 <asp:Label ID="LblStatistics" runat="server" Style="position: relative"></asp:Label>
  29.                             </ItemTemplate>
  30.                         </asp:TemplateField>
  31.                         <asp:TemplateField>
  32.                             <ItemTemplate>
  33.                                 <asp:LinkButton ID="BtnDelete" CommandName="DeleteData" runat="server" OnClientClick='return confirm("確定要刪除嗎?");'
  34.                                     Style="position: relative">刪除</asp:LinkButton>
  35.                             </ItemTemplate>
  36.                         </asp:TemplateField>
  37.                     </Columns>
  38.                 </asp:GridView>
  39.                 &nbsp;
  40.                 <br />
  41.             </td>
  42.         </tr>
  43.         <tr>
  44.             <td align="center">
  45.                 <asp:Panel ID="PnlReport" runat="server" Style="position: relative" Visible="False">
  46.                     <table border="1" style="width: 550px; position: relative">
  47.                         <tr>
  48.                             <td align="center" style="width: 151px">
  49.                                 <asp:Label ID="Label1" runat="server" Text="標題"></asp:Label>
  50.                             </td>
  51.                             <td align="left">
  52.                                 <asp:Label ID="LblTitle" runat="server"></asp:Label>
  53.                             </td>
  54.                         </tr>
  55.                         <tr>
  56.                             <td align="center" style="width: 151px; height: 18px">
  57.                                 <asp:Label ID="Label2" runat="server" Text="發送時間"></asp:Label>
  58.                             </td>
  59.                             <td align="left" style="height: 18px">
  60.                                 <asp:Label ID="LblSendDate" runat="server"></asp:Label>
  61.                             </td>
  62.                         </tr>
  63.                         <tr>
  64.                             <td align="center" style="width: 151px; height: 18px">
  65.                                 <asp:Label ID="Label3" runat="server" Text="內容"></asp:Label>
  66.                             </td>
  67.                             <td align="left" style="height: 18px">
  68.                                 <asp:Label ID="LblContent" runat="server"></asp:Label>
  69.                             </td>
  70.                         </tr>
  71.                         <tr>
  72.                             <td align="center" style="width: 151px; height: 18px">
  73.                                 <asp:Label ID="Label10" runat="server" Text="建議"></asp:Label>
  74.                             </td>
  75.                             <td align="left" style="height: 18px">
  76.                                 <asp:Label ID="LblProposal" runat="server"></asp:Label>
  77.                             </td>
  78.                         </tr>
  79.                         <tr>
  80.                             <td align="center" style="width: 151px; height: 18px">
  81.                                 <asp:Label ID="Label6" runat="server" Text="總結"></asp:Label>
  82.                             </td>
  83.                             <td align="left" style="height: 18px">
  84.                                 <asp:Label ID="LblSummarize" runat="server"></asp:Label>
  85.                             </td>
  86.                         </tr>
  87.                         <tr>
  88.                             <td align="center" style="width: 151px">
  89.                                 <asp:Label ID="Label5" runat="server" Text="附件"></asp:Label>
  90.                             </td>
  91.                             <td align="left">
  92.                                 <asp:LinkButton ID="BtnAttachment" runat="server" Style="left: 0px;
  93.                                     position: relative" OnClick="BtnAttachment_Click"></asp:LinkButton>
  94.                                 <asp:Label ID="LblNoAttachment" runat="server" Style="position: relative" Text="無"
  95.                                     Visible="False"></asp:Label></td>
  96.                         </tr>
  97.                         <tr>
  98.                             <td align="center" style="width: 151px; height: 20px">
  99.                                 <asp:Label ID="Label9" runat="server" Text="閱讀統計"></asp:Label>
  100.                             </td>
  101.                             <td align="left" style="height: 20px">
  102.                                 <asp:Label ID="LblStatistics" runat="server" ForeColor="Red"></asp:Label>
  103.                             </td>
  104.                         </tr>
  105.                         <tr>
  106.                             <td align="center" style="width: 151px">
  107.                                 <asp:Label ID="Label4" runat="server" Text="已讀人員"></asp:Label>
  108.                             </td>
  109.                             <td align="left">
  110.                                 <asp:Table ID="TblRead" runat="server" BorderColor="Silver" BorderWidth="1px" Width="384px">
  111.                                 </asp:Table>
  112.                             </td>
  113.                         </tr>
  114.                         <tr>
  115.                             <td align="center" style="width: 151px; height: 35px">
  116.                                 <asp:Label ID="Label7" runat="server" Text="未讀人員"></asp:Label>
  117.                             </td>
  118.                             <td align="left" style="height: 35px">
  119.                                 <asp:Table ID="TblUnRead" runat="server" BorderColor="Silver" BorderWidth="1px" Width="384px">
  120.                                 </asp:Table>
  121.                             </td>
  122.                         </tr>
  123.                     </table>
  124.                     <input id="ContentLength" runat="server" style="position: relative" type="hidden" />
  125.                 </asp:Panel><br />
  126.                 <asp:Panel ID="PnlSign" runat="server" Style="position: relative">
  127.                     <asp:Table ID="TblSign" runat="server" BorderColor="Silver" BorderWidth="1px" Style="position: relative" Width="550px">
  128.                     </asp:Table>
  129.                 </asp:Panel>
  130.             </td>
  131.         </tr>
  132.     </table>
  133.     </div>
  134.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  135.             SelectCommand="select s.id, s.send_date, r.title from OA_REPORT_SENDER s inner join OA_REPORT_CONTENT r on s.report_id=r.id where is_del=0">
  136.         </asp:SqlDataSource>
  137.     </form>
  138. </body>
  139. </html>