📄 sellershopinfo.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Seller.master" AutoEventWireup="true" CodeFile="SellerShopInfo.aspx.cs" Inherits="SellerShopInfo" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84"
BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" DataSourceID="SqlDataSource1" Style="position: relative" AllowPaging="True" DataKeyNames="ShopID">
<FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
<RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
<PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
<HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="ShopID" HeaderText="ShopID" InsertVisible="False" ReadOnly="True"
SortExpression="ShopID" />
<asp:BoundField DataField="CoalID" HeaderText="CoalID" SortExpression="CoalID" />
<asp:BoundField DataField="SellerID" HeaderText="SellerID" SortExpression="SellerID" />
<asp:BoundField DataField="BuyName" HeaderText="BuyName" SortExpression="BuyName" />
<asp:BoundField DataField="BuyTotal" HeaderText="BuyTotal(t)" SortExpression="BuyTotal" />
<asp:BoundField DataField="BuyMoney" HeaderText="BuyMoney($)" SortExpression="BuyMoney" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [Shop] WHERE ([SellerID] = @SellerID)">
<SelectParameters>
<asp:SessionParameter Name="SellerID" SessionField="SellerID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<table style="position: relative">
<tr>
<td colspan="2" align="center">添加购买记录
</td>
</tr>
<tr>
<td style="width: 100px">煤炭种类ID
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox1" runat="server" Style="position: relative"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">购买单位
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox2" runat="server" Style="position: relative"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">购买数量
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox3" runat="server" Style="position: relative"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px">购买金额
</td>
<td style="width: 100px">
<asp:TextBox ID="TextBox4" runat="server" Style="position: relative"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="Button1" runat="server" Style="position: relative" Text="确定" OnClick="Button1_Click" /></td>
</tr>
</table>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -