announce_mgr_list.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:10k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="announce_mgr_list.aspx.cs" Inherits="web_announcement_announce_mgr_list" %>
- <!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>
- </center>
- <center>
- <asp:Label ID="LblTitle" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
- Visible="False"></asp:Label> </center>
- <center>
- </center>
- <center>
- <asp:GridView ID="AnnounceList" runat="server" AllowPaging="True" AllowSorting="True"
- AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
- BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" GridLines="Vertical"
- OnRowDataBound="AnnounceList_RowDataBound" Style="position: relative" Width="600px" OnRowCommand="AnnounceList_RowCommand" OnRowCreated="AnnounceList_RowCreated" OnRowDeleted="AnnounceList_RowDeleted">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="subject" HeaderText="主旨" SortExpression="subject" />
- <asp:BoundField DataField="cre_user" HeaderText="發佈人" SortExpression="cre_user" />
- <asp:BoundField DataField="cre_date" HeaderText="發佈日期" SortExpression="cre_date" />
- <asp:TemplateField>
- <ItemTemplate>
- <asp:LinkButton ID="LbEdit" CommandName="EditData" runat="server" Style="position: relative">編輯</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField Visible="False">
- <ItemTemplate>
- <asp:LinkButton ID="LbRestore" runat="server" CommandName="Restore" Style="position: relative">還原</asp:LinkButton>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField ShowDeleteButton="True" />
- </Columns>
- <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
- <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
- <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
- <AlternatingRowStyle BackColor="Gainsboro" />
- </asp:GridView>
- <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- DeleteCommand="update OA_ANNOUNCEMENT set is_del='Y' where id=@id" SelectCommand="select id, subject, cre_user, cre_date from OA_ANNOUNCEMENT ">
- <DeleteParameters>
- <asp:Parameter Name="id" />
- </DeleteParameters>
- </asp:SqlDataSource><br />
- <asp:Panel ID="PnlAnnounce" Visible="false" runat="server">
- <asp:Table ID="TblAnnounce" runat="server" Width="600px">
- <asp:TableHeaderRow ID="TableHeaderRow1" BackColor="Menu" runat="server">
- <asp:TableHeaderCell ID="TableHeaderCell1" BackColor='#000099' ForeColor='#ffffff' BorderWidth="1px" HorizontalAlign="Left" ColumnSpan="2" runat="server">
- 編輯公告通知信息
- </asp:TableHeaderCell>
- </asp:TableHeaderRow>
- <asp:TableRow ID="TableRow1" runat="server">
- <asp:TableCell ID="TableCell1" BorderWidth="1px" runat="server" Width="100px">主旨</asp:TableCell>
- <asp:TableCell ID="TableCell2" 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 ID="TableCell3" BorderWidth="1px" HorizontalAlign="Left" runat="server">
- <asp:DropDownList ID="DdlType" runat="server" DataSourceID="SqlDatasource2" DataTextField="name" DataValueField="id">
- </asp:DropDownList>
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow2" runat="server">
- <asp:TableCell ID="TableCell4" BorderWidth="1px" runat="server">內容</asp:TableCell>
- <asp:TableCell ID="TableCell5" 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 ID="TableRow3" runat="server">
- <asp:TableCell ID="TableCell6" BorderWidth="1px" runat="server">權限</asp:TableCell>
- <asp:TableCell ID="TableCell7" 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 ID="TableRow4" runat="server">
- <asp:TableCell ID="TableCell8" BorderWidth="1px" runat="server">附件</asp:TableCell>
- <asp:TableCell ID="TableCell9" runat="server" BorderWidth="1px" HorizontalAlign="Left">
- <asp:LinkButton ID="LbAttachment" runat="server" OnClick="LbAttachment_Click"></asp:LinkButton>
- <asp:Button ID="BtnDelete" runat="server" Text="刪除" OnClick="BtnDelete_Click" />
- <asp:FileUpload ID="FileUpload1" runat="server" Width="480px" Visible="false" />
- </asp:TableCell>
- </asp:TableRow>
- <asp:TableRow ID="TableRow5" runat="server">
- <asp:TableCell ID="TableCell10" 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:HiddenField ID="AttachmentSaveName" runat="server" />
- <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnection %>"
- SelectCommand="SELECT [id], [name] FROM [OA_ANNOUNCEMENT_TYPE] ORDER BY [sequence]">
- </asp:SqlDataSource>
- </asp:Panel>
- </center>
- </div>
- </form>
- </body>
- </html>