?? add.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">
辦公電話管理</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">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="新增" ForeColor="Blue" />
</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">
<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 />
</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 + -