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

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="announce_add.aspx.cs" Inherits="web_announcement_announce_add" %>
  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.     <script type="text/javascript" language="javascript">
  8.         function selectDepartment()
  9.         {
  10.             var url = "../personnel/department/department_select_chk.aspx";
  11.             var features = "width=1030,height=720,top=0,left=0,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
  12.             var selectDepartment = open(url, 'selectDepartment', features);
  13.             selectDepartment.focus();
  14.         }
  15.     </script>
  16. </head>
  17. <body>
  18.     <form id="form1" runat="server">
  19.     <div>
  20.     <center><br />
  21.         <asp:Table ID="TblAnnounce" runat="server" Width="600px">
  22.             <asp:TableHeaderRow BackColor="Menu" runat="server">
  23.                 <asp:TableHeaderCell BorderWidth="1px" BackColor='#000099' ForeColor='#ffffff' HorizontalAlign="Left" ColumnSpan="2" runat="server">
  24.                 編輯公告通知信息
  25.                 </asp:TableHeaderCell>
  26.             </asp:TableHeaderRow>
  27.             <asp:TableRow runat="server">
  28.                 <asp:TableCell BorderWidth="1px" runat="server" Width="100px">主旨</asp:TableCell>
  29.                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  30.                     <asp:TextBox ID="TxtSubject" runat="server" Width="480px"></asp:TextBox>
  31.                 </asp:TableCell>
  32.             </asp:TableRow>
  33.             <asp:TableRow>
  34.                 <asp:TableCell BorderWidth="1px">類別</asp:TableCell>
  35.                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  36.                     <asp:DropDownList ID="DdlType" runat="server" DataSourceID="SqlDatasource1" DataTextField="name" DataValueField="id">
  37.                     </asp:DropDownList>
  38.                 </asp:TableCell>
  39.             </asp:TableRow>
  40.             <asp:TableRow runat="server">
  41.                 <asp:TableCell BorderWidth="1px" runat="server">內容</asp:TableCell>
  42.                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  43.                     <asp:TextBox ID="TxtContent" TextMode="MultiLine" Rows="20" runat="server" Width="480px"></asp:TextBox>
  44.                 </asp:TableCell>
  45.             </asp:TableRow>
  46.             <asp:TableRow>
  47.                 <asp:TableCell BorderWidth="1px">有效期</asp:TableCell>
  48.                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
  49.                     <asp:TextBox ID="TxtValidateDate" runat="server" Enabled="false"></asp:TextBox><asp:ImageButton
  50.                         ID="ImageButton1" runat="server" ImageUrl="~/images/calbtn.gif" OnClick="ImageButton1_Click"
  51.                         Style="position: relative" /><asp:Calendar ID="Calendar1" runat="server" BackColor="White"
  52.                             BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
  53.                             Font-Size="8pt" ForeColor="Black" Height="180px" OnSelectionChanged="Calendar1_SelectionChanged"
  54.                             Style="position: relative" Visible="False" Width="200px">
  55.                             <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
  56.                             <SelectorStyle BackColor="#CCCCCC" />
  57.                             <WeekendDayStyle BackColor="#FFFFCC" />
  58.                             <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
  59.                             <OtherMonthDayStyle ForeColor="Gray" />
  60.                             <NextPrevStyle VerticalAlign="Bottom" />
  61.                             <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
  62.                             <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
  63.                         </asp:Calendar>
  64.                 </asp:TableCell>
  65.             </asp:TableRow>
  66.             <asp:TableRow runat="server">
  67.                 <asp:TableCell BorderWidth="1px" runat="server">權限</asp:TableCell>
  68.                 <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
  69.                     <asp:RadioButtonList ID="RbAuthority" runat="server" RepeatDirection="Horizontal" 
  70.                         AutoPostBack="True" OnSelectedIndexChanged="RbAuthority_Change">
  71.                         <asp:ListItem Text="所有部門" Value="1" Selected="True"></asp:ListItem>
  72.                         <asp:ListItem Text="選擇" Value="2"></asp:ListItem>
  73.                     </asp:RadioButtonList>
  74.                     <asp:Button runat="server" ID="BtnSelect" Text="選擇" Visible="false" OnClientClick="selectDepartment()"/>
  75.                     <asp:Label runat="server" ID="LblDepartments" Visible="false"></asp:Label>
  76.                     <asp:HiddenField runat="server" ID="DepartmentIds">
  77.                     </asp:HiddenField>
  78.                 </asp:TableCell>
  79.             </asp:TableRow>
  80.             <asp:TableRow runat="server">
  81.                 <asp:TableCell BorderWidth="1px" runat="server">附件</asp:TableCell>
  82.                 <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
  83.                     <asp:FileUpload ID="FileUpload1" runat="server" Width="480px" />
  84.                 </asp:TableCell>
  85.             </asp:TableRow>
  86.             <asp:TableRow runat="server">
  87.                 <asp:TableCell BorderWidth="1px" ColumnSpan="2" runat="server">
  88.                     <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" /></asp:TableCell>
  89.             </asp:TableRow>
  90.         </asp:Table>
  91.         <asp:HiddenField ID="ContentLength" runat="server" />
  92.         <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
  93.             SelectCommand="SELECT [id], [name] FROM [OA_ANNOUNCEMENT_TYPE] ORDER BY [sequence]">
  94.         </asp:SqlDataSource>
  95.         <br />
  96.     </center>
  97.     </div>
  98.     </form>
  99. </body>
  100. </html>