?? companyform.aspx
字號:
?<%--文件名:CompanyForm.aspx--%>
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CompanyForm.aspx.cs" Inherits="System_CompanyForm" Title="當(dāng)前位置:系統(tǒng)管理->公司信息設(shè)置" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr>
<td colspan="1" rowspan="3" style="font-size: 0.8em; width: 76px; font-family: 宋體">
</td>
<td colspan="3" style="font-size: 0.8em; width: 412px; font-family: 宋體; height: 21px">
<asp:Label ID="Label1" runat="server" Text="請輸入公司名稱:"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Width="161px">公司</asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="查詢公司信息" Width="122px" /></td>
<td colspan="1" rowspan="2" style="font-size: 0.8em; width: 50px; font-family: 宋體">
</td>
</tr>
<tr>
<td colspan="3" style="width: 412px; height: 202px">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MySaleDBConnectionString %>"
DeleteCommand="DELETE FROM [公司信息] WHERE [公司名稱] = @公司名稱" InsertCommand="INSERT INTO [公司信息] ([公司名稱], [法人代表], [公司地址], [郵政編碼], [服務(wù)電話], [電子信箱], [公司網(wǎng)站], [首頁圖像], [標(biāo)志圖標(biāo)], [系統(tǒng)名稱], [優(yōu)先級]) VALUES (@公司名稱, @法人代表, @公司地址, @郵政編碼, @服務(wù)電話, @電子信箱, @公司網(wǎng)站, @首頁圖像, @標(biāo)志圖標(biāo), @系統(tǒng)名稱, @優(yōu)先級)"
SelectCommand="SELECT * FROM [公司信息] WHERE ([公司名稱] LIKE '%' + @公司名稱 + '%')" UpdateCommand="UPDATE [公司信息] SET [法人代表] = @法人代表, [公司地址] = @公司地址, [郵政編碼] = @郵政編碼, [服務(wù)電話] = @服務(wù)電話, [電子信箱] = @電子信箱, [公司網(wǎng)站] = @公司網(wǎng)站, [首頁圖像] = @首頁圖像, [標(biāo)志圖標(biāo)] = @標(biāo)志圖標(biāo), [系統(tǒng)名稱] = @系統(tǒng)名稱, [優(yōu)先級] = @優(yōu)先級 WHERE [公司名稱] = @公司名稱">
<DeleteParameters>
<asp:Parameter Name="公司名稱" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="法人代表" Type="String" />
<asp:Parameter Name="公司地址" Type="String" />
<asp:Parameter Name="郵政編碼" Type="String" />
<asp:Parameter Name="服務(wù)電話" Type="String" />
<asp:Parameter Name="電子信箱" Type="String" />
<asp:Parameter Name="公司網(wǎng)站" Type="String" />
<asp:Parameter Name="首頁圖像" Type="String" />
<asp:Parameter Name="標(biāo)志圖標(biāo)" Type="String" />
<asp:Parameter Name="系統(tǒng)名稱" Type="String" />
<asp:Parameter Name="優(yōu)先級" Type="Int32" />
<asp:Parameter Name="公司名稱" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="公司名稱" PropertyName="Text" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="公司名稱" Type="String" />
<asp:Parameter Name="法人代表" Type="String" />
<asp:Parameter Name="公司地址" Type="String" />
<asp:Parameter Name="郵政編碼" Type="String" />
<asp:Parameter Name="服務(wù)電話" Type="String" />
<asp:Parameter Name="電子信箱" Type="String" />
<asp:Parameter Name="公司網(wǎng)站" Type="String" />
<asp:Parameter Name="首頁圖像" Type="String" />
<asp:Parameter Name="標(biāo)志圖標(biāo)" Type="String" />
<asp:Parameter Name="系統(tǒng)名稱" Type="String" />
<asp:Parameter Name="優(yōu)先級" Type="Int32" />
</InsertParameters>
</asp:SqlDataSource>
<asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
CellPadding="3" DataKeyNames="公司名稱" DataSourceID="SqlDataSource1" Font-Names="宋體"
Font-Size="Small" GridLines="Vertical" Height="50px" Width="408px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<EditRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EEEEEE" ForeColor="Black" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="公司名稱" HeaderText="公司名稱" ReadOnly="True" SortExpression="公司名稱" />
<asp:BoundField DataField="法人代表" HeaderText="法人代表" SortExpression="法人代表" />
<asp:BoundField DataField="公司地址" HeaderText="公司地址" SortExpression="公司地址" />
<asp:BoundField DataField="郵政編碼" HeaderText="郵政編碼" SortExpression="郵政編碼" />
<asp:BoundField DataField="服務(wù)電話" HeaderText="服務(wù)電話" SortExpression="服務(wù)電話" />
<asp:BoundField DataField="電子信箱" HeaderText="電子信箱" SortExpression="電子信箱" />
<asp:BoundField DataField="公司網(wǎng)站" HeaderText="公司網(wǎng)站" SortExpression="公司網(wǎng)站" />
<asp:BoundField DataField="首頁圖像" HeaderText="首頁圖像" SortExpression="首頁圖像" />
<asp:BoundField DataField="標(biāo)志圖標(biāo)" HeaderText="標(biāo)志圖標(biāo)" SortExpression="標(biāo)志圖標(biāo)" />
<asp:BoundField DataField="系統(tǒng)名稱" HeaderText="系統(tǒng)名稱" SortExpression="系統(tǒng)名稱" />
<asp:BoundField DataField="優(yōu)先級" HeaderText="優(yōu)先級" SortExpression="優(yōu)先級" />
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" />
</Fields>
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="Gainsboro" />
</asp:DetailsView>
</td>
</tr>
<tr>
<td colspan="3" style="width: 412px; height: 17px">
<asp:FileUpload ID="FileUpload1" runat="server" Width="275px" /> <asp:Button
ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="上傳圖像文件" Width="127px" />
</td>
</tr>
</table>
</asp:Content>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -