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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="report_list_receive.aspx.cs" Inherits="web_report_report_list_receive" %>
  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><asp:Label ID="Label7" runat="server" Text="已收工作報告列表" Font-Bold="True" Font-Size="Medium"></asp:Label></center><br />
  12.     <table width="95%">
  13.         <tr>
  14.             <td align="center" style="width: 726px">
  15.                 <asp:GridView ID="ReportList" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id" DataSourceID="SqlDataSource1" GridLines="Vertical" Width="650px" OnRowCommand="ReportList_RowCommand" OnRowCreated="ReportList_RowCreated" OnRowDataBound="ReportList_RowDataBound">
  16.                     <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
  17.                     <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
  18.                     <Columns>
  19.                         <asp:BoundField DataField="title" HeaderText="標題" SortExpression="title" />
  20.                         <asp:BoundField DataField="emp_name" HeaderText="發送人" SortExpression="emp_name" />
  21.                         <asp:BoundField DataField="send_date" HeaderText="接收時間" SortExpression="send_date" />
  22.                         <asp:TemplateField HeaderText="狀態">
  23.                             <ItemTemplate>
  24.                                 <asp:Label ID="LblState" runat="server" Style="position: relative"></asp:Label>
  25.                             </ItemTemplate>
  26.                         </asp:TemplateField>
  27.                         <asp:BoundField DataField="read_date" HeaderText="閱讀時間" SortExpression="read_date" />
  28.                         <asp:TemplateField HeaderText="簽批">
  29.                             <ItemTemplate>
  30.                                 <asp:Label ID="LblSign" runat="server" Style="position: relative"></asp:Label>
  31.                             </ItemTemplate>
  32.                         </asp:TemplateField>
  33.                         <asp:TemplateField>
  34.                             <ItemTemplate>
  35.                                 <asp:LinkButton ID="BtnDelete" runat="server" CommandName="DeleteData" Style="position: relative">刪除</asp:LinkButton>
  36.                             </ItemTemplate>
  37.                         </asp:TemplateField>
  38.                     </Columns>
  39.                     <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
  40.                     <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
  41.                     <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
  42.                     <AlternatingRowStyle BackColor="Gainsboro" />
  43.                 </asp:GridView>
  44.                 <br />
  45.             </td>
  46.         </tr>
  47.         <tr>
  48.             <td align="center" style="width: 726px">
  49.                 <asp:Panel ID="PnlReport" runat="server" Visible="False">
  50.                     <table border="1" style="width: 550px; position: relative">
  51.                         <tr>
  52.                             <td align="center" style="width: 151px; height: 18px">
  53.                                 <asp:Label ID="Label2" runat="server" Text="接收時間"></asp:Label>
  54.                             </td>
  55.                             <td align="left" style="height: 18px">
  56.                                 <asp:Label ID="LblSendDate" runat="server"></asp:Label>
  57.                             </td>
  58.                         </tr>
  59.                         <tr>
  60.                             <td align="center" style="width: 151px; height: 18px">
  61.                                 <asp:Label ID="Label4" runat="server" Text="發送人"></asp:Label>
  62.                             </td>
  63.                             <td align="left" style="height: 18px">
  64.                                 <asp:Label ID="LblReceiver" runat="server"></asp:Label>
  65.                             </td>
  66.                         </tr>
  67.                         <tr>
  68.                             <td align="center" style="width: 151px">
  69.                                 <asp:Label ID="Label1" runat="server" Text="標題"></asp:Label>
  70.                             </td>
  71.                             <td align="left">
  72.                                 <asp:Label ID="LblTitle" runat="server"></asp:Label>
  73.                             </td>
  74.                         </tr>
  75.                         <tr>
  76.                             <td align="center" style="width: 151px; height: 18px">
  77.                                 <asp:Label ID="Label3" runat="server" Text="內容"></asp:Label>
  78.                             </td>
  79.                             <td align="left" style="height: 18px">
  80.                                 <asp:Label ID="LblContent" runat="server"></asp:Label>
  81.                             </td>
  82.                         </tr>
  83.                         <tr>
  84.                             <td align="center" style="width: 151px; height: 18px">
  85.                                 <asp:Label ID="Label6" runat="server" Text="建議"></asp:Label>
  86.                             </td>
  87.                             <td align="left" style="height: 18px">
  88.                                 <asp:Label ID="LblProposal" runat="server"></asp:Label>
  89.                             </td>
  90.                         </tr>
  91.                         <tr>
  92.                             <td align="center" style="width: 151px; height: 18px">
  93.                                 <asp:Label ID="Label8" runat="server" Text="總結"></asp:Label>
  94.                             </td>
  95.                             <td align="left" style="height: 18px">
  96.                                 <asp:Label ID="LblSummarize" runat="server"></asp:Label>
  97.                             </td>
  98.                         </tr>
  99.                         <tr>
  100.                             <td align="center">
  101.                                 <asp:Label ID="Label5" runat="server" Text="附件"></asp:Label>
  102.                             </td>
  103.                             <td align="left">
  104.                                 <asp:LinkButton ID="BtnAttachment" runat="server" Style="left: 0px; position: relative" OnClick="BtnAttachment_Click"></asp:LinkButton>
  105.                                 <asp:Label ID="LblNoAttachment" runat="server" Style="position: relative" Text="無"
  106.                                     Visible="False"></asp:Label></td>
  107.                         </tr>
  108.                     </table>
  109.                     <input id="ContentLength" runat="server" style="position: relative" type="hidden" />
  110.                     </asp:Panel>
  111.                 <asp:Panel ID="PnlSign" runat="server" Style="left: 0px; position: relative; top: 0px"
  112.                     Width="550px" Visible="False">
  113.                     <table border="1" style="width: 550px; position: relative">
  114.                         <tr>
  115.                             <td align="center" style="width: 151px">
  116.                                 <asp:Label ID="Label9" runat="server" Text="簽批"></asp:Label>
  117.                             </td>
  118.                             <td align="left" style="width: 387px">
  119.                                 <asp:TextBox ID="TxtSign" Rows="5" TextMode="MultiLine" runat="server" Width="330px"></asp:TextBox>
  120.                                 <br />
  121.                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtSign"
  122.                                     ErrorMessage="簽批內容不能為空" Style="position: relative"></asp:RequiredFieldValidator></td>
  123.                         </tr>
  124.                         <tr>
  125.                             <td align="center" colspan="2" style="height: 26px">
  126.                                 <asp:Button ID="BtnOk" runat="server" Text="發送" OnClick="BtnOk_Click" />
  127.                             </td>
  128.                         </tr>
  129.                     </table>
  130.                 </asp:Panel>
  131.                 <asp:Panel ID="Panel1" runat="server" Style="position: relative" Visible="false">
  132.                     <table border="1" style="width: 550px; position: relative">
  133.                         <tr>
  134.                             <td align="center" style="width: 151px">
  135.                                 <asp:Label ID="Label10" runat="server" Text="簽批"></asp:Label>
  136.                             </td>
  137.                             <td align="left" style="width: 387px">
  138.                                 <asp:Label ID="LblSign" runat="server"></asp:Label>
  139.                             </td>
  140.                         </tr>
  141.                         <tr>
  142.                             <td align="center" style="width: 151px">
  143.                                 <asp:Label ID="Label11" runat="server" Text="簽批時間"></asp:Label>
  144.                             </td>
  145.                             <td align="left" style="width: 387px">
  146.                                 <asp:Label ID="LblSignDate" runat="server"></asp:Label>
  147.                             </td>
  148.                         </tr>
  149.                     </table>
  150.                 </asp:Panel>
  151.             </td>
  152.         </tr>
  153.     </table>
  154.     </div>
  155.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  156.             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)">
  157.         </asp:SqlDataSource>
  158.     </form>
  159. </body>
  160. </html>