⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dutystaffmain.aspx

📁 值班管理系统源码 net2005+sqlserver2005 ,三层模式
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DutyStaffMain.aspx.cs" Inherits="DutyStaffMain" Title="值班人员管理主页面" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    --&gt;值班人员名单<br />
    <asp:Label ID="Label1" runat="server" Text="还没有任何数据,请添加" Visible="False"></asp:Label><br />
    <asp:GridView ID="GridView1" runat="server"  DataKeyNames="id" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" Width="600px" OnRowCommand="GridView1_RowCommand" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#EFF3FB" />
        <EditRowStyle BackColor="#2461BF" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
            <asp:BoundField DataField="L_user_name" HeaderText="姓名" />
            <asp:TemplateField HeaderText="性别">
                <EditItemTemplate>
                    <asp:DropDownList  ID="dl" runat="server"  ></asp:DropDownList >
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("L_user_sex") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="部门">
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList3" runat="server">
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("L_KS_KSMC") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="L_user_Number" HeaderText="编号" />
            <asp:CommandField ShowEditButton="True" HeaderText="操作" />
            <asp:CommandField ShowDeleteButton="True" DeleteText="&lt;div id=&quot;del&quot; onclick=&quot;javascript:return confirm('确认删除吗?')&quot;&gt;删除&lt;/div&gt;" HeaderText="删除" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:Panel ID="Panel1" runat="server" Height="200px" Width="300px">
        <table width="300">
            <tr>
                <td style="width: 100px">
                    姓名</td>
                <td style="width: 140px">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>*</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    性别</td>
                <td style="width: 140px">
                    <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Selected="True" Value="0">男</asp:ListItem>
                        <asp:ListItem Value="1">女</asp:ListItem>
                    </asp:DropDownList>*</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    部门</td>
                <td style="width: 140px">
                    <asp:DropDownList ID="DropDownList2" runat="server">
                    </asp:DropDownList>*</td>
            </tr>
            <tr>
                <td style="width: 100px">
                    编号</td>
                <td style="width: 140px">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>*</td>
            </tr>
            <tr>
                <td style="width: 100px; height: 26px">
                </td>
                <td style="width: 140px; height: 26px">
                    <asp:Button ID="Button1" runat="server" Text="add" OnClick="Button1_Click" />
                    <asp:Button ID="Button2" runat="server" Text="reset" /></td>
            </tr>
        </table>
        <asp:Label ID="Label2" runat="server"></asp:Label>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp;&nbsp;
    </asp:Panel>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -