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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_report.aspx.cs" Inherits="web_report_add_report" %>
  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 id="Head1" runat="server">
  5.     <title>无标题页</title>
  6.     <script type="text/javascript" language="javascript">
  7.         function selectEmployee()
  8.         {           
  9.             var url = "../personnel/curricula_vitae/employee_select_index.aspx";
  10.             var features = "width=1010,height=710,top=0,left=0,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  11.             var employee = open(url, 'selectDepartment', features);
  12.             employee.focus();
  13.         }
  14.         
  15.     </script>
  16.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  17. </head>
  18. <body>
  19.     <form id="form1" runat="server">
  20.     <div>
  21.     <center>
  22.         <asp:Panel ID="Panel1" runat="server">
  23.             <table id="Table1" runat="server" border="0" style="width: 700px; position: relative">
  24.                 <tr>
  25.                     <td align="center" colspan="3" style="height: 22px">
  26.                         <br />
  27.                         <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Medium" Style="left: 0px;
  28.                             position: relative" Text="寫報告"></asp:Label><br />
  29.                     </td>
  30.                 </tr>
  31.                 <tr>
  32.                     <td align="center" style="width: 150px; height: 26px">
  33.                         <asp:Label ID="Label1" runat="server" Style="position: relative" Text="標題"></asp:Label></td>
  34.                     <td align="left" style="height: 26px">
  35.                         <asp:TextBox ID="TxtTitle" runat="server" Style="position: relative" Width="300px"></asp:TextBox></td>
  36.                     <td>
  37.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTitle"
  38.                             ErrorMessage="標題不能為空"></asp:RequiredFieldValidator></td>
  39.                 </tr>
  40.                 <tr>
  41.                     <td align="center" style="width: 150px">
  42.                         <asp:Label ID="Label2" runat="server" Style="position: relative" Text="內容"></asp:Label></td>
  43.                     <td align="left">
  44.                         <asp:TextBox ID="TxtContent" runat="server" Rows="10" Style="position: relative"
  45.                             TextMode="MultiLine" Width="350px"></asp:TextBox></td>
  46.                     <td>
  47.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtContent"
  48.                             ErrorMessage="內容不能為空"></asp:RequiredFieldValidator></td>
  49.                 </tr>
  50.                 <tr>
  51.                     <td>
  52.                         <asp:Label ID="Label6" runat="server" Style="position: relative" Text="建議"></asp:Label></td>
  53.                     <td align="left">
  54.                         <asp:TextBox ID="TxtProposal" Rows="5" TextMode="MultiLine" Width="350px" runat="server" Style="position: relative"></asp:TextBox></td>
  55.                     <td></td>
  56.                 </tr>
  57.                 <tr>
  58.                     <td>
  59.                         <asp:Label ID="Label7" runat="server" Style="position: relative" Text="總結"></asp:Label></td>
  60.                     <td align="left">
  61.                         <asp:TextBox ID="TxtSummarize" Rows="5" TextMode="MultiLine" Width="350px" runat="server" Style="position: relative"></asp:TextBox></td>
  62.                     <td></td>
  63.                 </tr>
  64.                 <tr>
  65.                     <td align="center" style="width: 150px;">
  66.                         <asp:Label ID="Label3" runat="server" Style="position: relative" Text="收件人"></asp:Label></td>
  67.                     <td align="left">
  68.                         <asp:Button ID="BtnSelectEmployee" runat="server" OnClientClick="selectEmployee()" 
  69.                             Style="position: relative" Text="選擇收件人" />                           
  70.                         <span id="TxtEmployees" style="position: relative"></span>
  71.                         <input id="Employee_ids" runat="server" type="hidden" />
  72.                     </td>
  73.                     <td>
  74.                         <asp:Label ID="LblReceivers" runat="server" ForeColor="Red" Style="position: relative"></asp:Label></td>
  75.                 </tr>
  76.                 <tr>
  77.                     <td align="center" style="width: 150px; height: 21px">
  78.                         <asp:Label ID="Label4" runat="server" Style="position: relative" Text="附件"></asp:Label>
  79.                     </td>
  80.                     <td align="left" style="height: 21px">
  81.                         <asp:FileUpload ID="FileUpload1" runat="server" Style="position: relative" Width="350px" />
  82.                         <input id="ContentLength" runat="server" style="position: relative" type="hidden" /></td>
  83.                     <td>
  84.                         <asp:Label ID="LblFileError" runat="server" ForeColor="Red"></asp:Label></td>
  85.                 </tr>
  86.                 <tr>
  87.                     <td align="center" colspan="3" style="height: 26px">
  88.                         <asp:Button ID="btnOK" runat="server" Style="position: relative" Text="發送" OnClick="btnOK_Click" />
  89.                     </td>
  90.                 </tr>
  91.             </table>
  92.         </asp:Panel>
  93.     </center>
  94.     </div>
  95.     </form>
  96. </body>
  97. </html>