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

📄 add.aspx

📁 学校的人事管理系统 适合初学者参考
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="phone.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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table id="TABLE1" runat="server" style="width: 559px; height: 165px">
            <tr>
                <td colspan="4" style="height: 21px">
                    &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; 办公电话管理</td>
            </tr>
            <tr>
                <td style="width: 75px">
                    <asp:Label ID="Label1" runat="server" Text="校机构" Width="73px"></asp:Label>
                </td>
                <td style="width: 150px">
                    <asp:DropDownList ID="ddlSchool" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSchool_SelectedIndexChanged">
                    </asp:DropDownList></td>
                <td style="width: 76px">
                    <asp:Label ID="Label2" runat="server" Text="本部门" Width="59px"></asp:Label>
                </td>
                <td style="width: 134px">
                    <asp:DropDownList ID="ddlDeperment" runat="server" AutoPostBack="True">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 75px; height: 9px">
                    <asp:Label ID="Label3" runat="server" Text="联系人" Width="71px"></asp:Label>
                </td>
                <td style="width: 150px; height: 9px">
                    <asp:DropDownList ID="ddlPerson" runat="server" OnSelectedIndexChanged="ddlPerson_SelectedIndexChanged">
                    </asp:DropDownList></td>
                <td style="width: 76px; height: 9px">
                    <asp:Label ID="Label4" runat="server" Text="电 话" Width="59px"></asp:Label>
                </td>
                <td style="width: 134px; height: 9px">
                    <asp:TextBox ID="txtPhone" runat="server" MaxLength="20" Width="120px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 10px">
                    &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:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" ForeColor="Blue" />&nbsp;&nbsp;&nbsp;
                    </td>
                <td style="width: 134px; height: 10px">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPhone"
                        ErrorMessage="请正确输入电话号码" SetFocusOnError="True" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"
                        Width="149px"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td colspan="4" style="height: 1px">
                    <hr />
                    <asp:Label ID="Label5" runat="server" ForeColor="Red" Width="535px"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="4" style="height: 57px">
                    &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CellPadding="4" DataKeyNames="Id" DataSourceID="SqlDataSource2" ForeColor="#333333"
                        GridLines="None" OnDataBound="GridView1_DataBound" Width="548px" OnRowDataBound="GridView1_RowDataBound">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                                SortExpression="Id" />
                            <asp:BoundField DataField="UserCName" HeaderText="UserCName" SortExpression="UserCName" />
                            <asp:BoundField DataField="Office" HeaderText="Office" SortExpression="Office" />
                            <asp:BoundField DataField="CompanyId" HeaderText="CompanyId" SortExpression="CompanyId" />
                            <asp:BoundField DataField="TelePhone" HeaderText="TelePhone" SortExpression="TelePhone" />
                            <asp:BoundField DataField="Company" HeaderText="Company" ReadOnly="True" SortExpression="Company" />
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
                                        OnClick="Button1_Click1" Text="删除" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <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" />
                    </asp:GridView>
                    <hr />
                    &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;
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:oaConnectionString %>"
            SelectCommand="SELECT Id, UserEName, UserCName, Office, OrderNum, UserKinds, DocAdmin, SysAdmin, CompanyId, SignName, MobilePhone, OnlyKey, ChangeDateTime, ChangeTimes, Duty, Post, PassWord, Disabled, TelePhone, (SELECT Company FROM Company WHERE (CompanyId = v_account.CompanyId)) AS Company FROM v_account WHERE (TelePhone IS NULL)">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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