announce_add.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="announce_add.aspx.cs" Inherits="web_announcement_announce_add" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>无标题页</title>
- <link href="../../css/style.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" language="javascript">
- function selectDepartment()
- {
- var url = "../personnel/department/department_select_chk.aspx";
- var features = "width=1030,height=720,top=0,left=0,location=no,toolbar=no,status=no,resizable=yes,scrollbars=yes";
- var selectDepartment = open(url, 'selectDepartment', features);
- selectDepartment.focus();
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center><br />
- <asp:Table ID="TblAnnounce" runat="server" Width="600px">
- <asp:TableHeaderRow BackColor="Menu" runat="server">
- <asp:TableHeaderCell BorderWidth="1px" BackColor='#000099' ForeColor='#ffffff' HorizontalAlign="Left" ColumnSpan="2" runat="server">
- 編輯公告通知信息
- </asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server" Width="100px">主旨</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtSubject" runat="server" Width="480px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">類別</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlType" runat="server" DataSourceID="SqlDatasource1" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">內容</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:TextBox ID="TxtContent" TextMode="MultiLine" Rows="20" runat="server" Width="480px"></asp:TextBox>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow>
- <asp:TableCell BorderWidth="1px">有效期</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left">
- <asp:TextBox ID="TxtValidateDate" runat="server" Enabled="false"></asp:TextBox><asp:ImageButton
- ID="ImageButton1" runat="server" ImageUrl="~/images/calbtn.gif" OnClick="ImageButton1_Click"
- Style="position: relative" /><asp:Calendar ID="Calendar1" runat="server" BackColor="White"
- BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana"
- Font-Size="8pt" ForeColor="Black" Height="180px" OnSelectionChanged="Calendar1_SelectionChanged"
- Style="position: relative" Visible="False" Width="200px">
- <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
- <SelectorStyle BackColor="#CCCCCC" />
- <WeekendDayStyle BackColor="#FFFFCC" />
- <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
- <OtherMonthDayStyle ForeColor="Gray" />
- <NextPrevStyle VerticalAlign="Bottom" />
- <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
- <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
- </asp:Calendar>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">權限</asp:TableCell>
- <asp:TableCell BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:RadioButtonList ID="RbAuthority" runat="server" RepeatDirection="Horizontal"
- AutoPostBack="True" OnSelectedIndexChanged="RbAuthority_Change">
- <asp:ListItem Text="所有部門" Value="1" Selected="True"></asp:ListItem>
- <asp:ListItem Text="選擇" Value="2"></asp:ListItem>
- </asp:RadioButtonList>
- <asp:Button runat="server" ID="BtnSelect" Text="選擇" Visible="false" OnClientClick="selectDepartment()"/>
- <asp:Label runat="server" ID="LblDepartments" Visible="false"></asp:Label>
- <asp:HiddenField runat="server" ID="DepartmentIds">
- </asp:HiddenField>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" runat="server">附件</asp:TableCell>
- <asp:TableCell runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:FileUpload ID="FileUpload1" runat="server" Width="480px" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow runat="server">
- <asp:TableCell BorderWidth="1px" ColumnSpan="2" runat="server">
- <asp:Button ID="BtnOk" runat="server" Text="儲存" OnClick="BtnOk_Click" /></asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- <asp:HiddenField ID="ContentLength" runat="server" />
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_ANNOUNCEMENT_TYPE] ORDER BY [sequence]">
- </asp:SqlDataSource>
- <br />
- </center>
- </div>
- </form>
- </body>
- </html>