department_main.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:6k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="department_main.aspx.cs" Inherits="web_department_department_main" %>
- <!--%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
- Namespace="System.Web.UI" TagPrefix="asp" %-->
- <!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" />
- </head>
- <body>
- <center>
- <form id="form1" runat="server">
- <div>
-
- <center>
- <asp:GridView ID="Department_list" runat="server" AutoGenerateColumns="False" BackColor="White"
- BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1"
- GridLines="Vertical" Width="522px" OnRowDataBound="Department_list_RowDataBound">
- <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
- <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
- <Columns>
- <asp:BoundField DataField="name" HeaderText="部门名稱" SortExpression="name" />
- <asp:TemplateField HeaderText="排序">
- <ItemTemplate>
- <center>
- <asp:HyperLink ID="linkUp" runat="server" ImageUrl="~/images/up.jpg" Style="position: relative">HyperLink</asp:HyperLink>
- <asp:HyperLink ID="linkDown" runat="server" ImageUrl="~/images/down.jpg" Style="position: relative;">HyperLink</asp:HyperLink>
- </center>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
- </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 %>"
- SelectCommand="SELECT [name], [sequence], [id] FROM [OA_DEPARTMENT] WHERE ([last_id] = @last_id) ORDER BY [sequence]">
- <SelectParameters>
- <asp:QueryStringParameter DefaultValue="1" Name="last_id" QueryStringField="last_id"
- Type="Int32" />
- </SelectParameters>
- </asp:SqlDataSource>
-
- <asp:Panel ID="Panel1" runat="server" Style="position: relative" Width="562px">
- <br />
- <asp:Label ID="lblAdd" runat="server" Font-Bold="True" Font-Size="Medium" Style="position: relative"
- Text="添加下級部門"></asp:Label>
- <center>
- <table border="1" style="position: relative">
- <tr>
- <td align="center" style="width: 122px; height: 23px;">
- 上級部門:</td>
- <td align="left" style="width: 322px; height: 23px;">
- <asp:Label ID="lblLast_department" runat="server" Text=""></asp:Label>
- </td>
- </tr>
- <tr>
- <td align="center" style="width: 122px">
- 部門名稱:</td>
- <td align="left" style="width: 322px">
- <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
- <asp:Label ID="Label3" runat="server" ForeColor="Red" Style="position: relative"
- Text="*"></asp:Label>
- <asp:Label ID="lblName" runat="server" ForeColor="Red" Style="position: relative"></asp:Label></td>
- </tr>
- <tr>
- <td align="center" style="width: 122px">
- 部門代號:</td>
- <td align="left" style="width: 322px">
- <asp:TextBox ID="txtCode" runat="server" Width="200px"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="center" style="width: 122px">
- 電話:</td>
- <td align="left" style="width: 322px">
- <asp:TextBox ID="txtTel" runat="server" Width="200px"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="center" style="width: 122px">
- 傳真:</td>
- <td align="left" style="width: 322px">
- <asp:TextBox ID="txtFax" runat="server" Width="200px"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="center" style="width: 122px">
- 部門職能:</td>
- <td align="left" style="width: 322px">
- <asp:TextBox ID="txtFunction" runat="server" Width="200px"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td align="center" colspan="3">
- <asp:Button ID="btnOk" runat="server" OnClick="btnOk_Click" Text="儲存" />
- </td>
- </tr>
- </table>
- </center>
- </asp:Panel>
-
- </center>
- </div>
- </form>
- </center>
- </body>
- </html>