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

📄 ckstore.aspx

📁 课程设计了
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CkStore.aspx.cs" Inherits="CkMag_CkStore" %>

<!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>无标题页</title>
    <link href="../style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
            <span><strong>仓库信息列表</strong></span> &nbsp;&nbsp;
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None"
            BorderWidth="1px" CellPadding="3" DataKeyNames="CkId" DataSourceID="SqlDataSource1"
            GridLines="Vertical" Height="197px" Width="216px">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="CkId" HeaderText="CkId" ReadOnly="True" SortExpression="CkId" />
                <asp:BoundField DataField="CkName" HeaderText="CkName" SortExpression="CkName" />
            
            </Columns>
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
            SelectCommand="SELECT [CkId], [CkName] FROM [Cklist]"></asp:SqlDataSource>
        &nbsp;<asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False"
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
            CellPadding="3" DataKeyNames="ProducesId,ProducesKindId1" DataSourceID="SqlDataSource2"
            GridLines="Vertical" Height="50px" Width="410px">
            <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="ProducesId" HeaderText="ProducesId" ReadOnly="True" SortExpression="ProducesId" />
                
                <asp:BoundField DataField="ProducesName" HeaderText="ProducesName" SortExpression="ProducesName" />
                <asp:BoundField DataField="ProducesGG" HeaderText="ProducesGG" SortExpression="ProducesGG" />
                <asp:BoundField DataField="ProducesJinJia" HeaderText="ProducesJinJia" SortExpression="ProducesJinJia" />
                <asp:BoundField DataField="Discount" HeaderText="Discount" SortExpression="Discount" />
                <asp:BoundField DataField="ProducesPrices" HeaderText="ProducesPrices" SortExpression="ProducesPrices" />
                <asp:BoundField DataField="ProducesCompany" HeaderText="ProducesCompany" SortExpression="ProducesCompany" />
                <asp:BoundField DataField="ProducesMoreInfo" HeaderText="ProducesMoreInfo" SortExpression="ProducesMoreInfo" />
              
                <asp:BoundField DataField="ProducesKinds" HeaderText="ProducesKinds" SortExpression="ProducesKinds" />
            </Fields>
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
        </asp:DetailsView>
        <br />
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:csmagConnectionString %>"
                        SelectCommand="select   * from  produces,produceskind&#13;&#10;where&#13;&#10;produces.producesKindId in&#13;&#10;(&#13;&#10;select ProducesKindId from ProducesKind&#13;&#10;)&#13;&#10;and&#13;&#10;produces.producesId in&#13;&#10;(&#13;&#10;select producesid from supplylist where ckid=@ckid&#13;&#10;)&#13;&#10;and&#13;&#10;produceskind.producesKindId=produces.produceskindid&#13;&#10;">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="GridView1" Name="CkId" PropertyName="SelectedValue" />
                        </SelectParameters>
                    </asp:SqlDataSource>
 
         
  
    </form>
</body>
</html>

⌨️ 快捷键说明

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