ckguanli.aspx

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" MasterPageFile="~/1.master" AutoEventWireup="true" CodeFile="ckguanli.aspx.cs" Inherits="ckguanli" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
    <div><img src="img/14.jpg" ></div>
    <div>
        <br />
    </div>
    <div align="center">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="WID" DataSourceID="SqlDataSource1" 
            onrowdatabound="GridView1_RowDataBound" CellPadding="4" 
            ForeColor="#333333" Font-Size="Small" Height="145px" Width="646px">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="WID" HeaderText="编号" ReadOnly="True" 
                    SortExpression="WID" />
                <asp:BoundField DataField="WName" HeaderText="名称" SortExpression="WName" />
                <asp:BoundField DataField="WArea" HeaderText="容积" SortExpression="WArea" />
                <asp:BoundField DataField="WAddress" HeaderText="仓库地址" 
                    SortExpression="WAddress" />
                <asp:BoundField DataField="WDescribe" HeaderText="简单描述" 
                    SortExpression="WDescribe" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="Data Source=.\SQL2008;database=WMS;uid=sa;pwd=sa" 
            DeleteCommand="DELETE FROM [Warehouses] WHERE [WID] = @WID" 
            InsertCommand="INSERT INTO [Warehouses] ([WID], [WName], [WArea], [WAddress], [WDescribe]) VALUES (@WID, @WName, @WArea, @WAddress, @WDescribe)" 
            SelectCommand="SELECT * FROM [Warehouses]" 
            
            UpdateCommand="UPDATE [Warehouses] SET [WName] = @WName, [WArea] = @WArea, [WAddress] = @WAddress, [WDescribe] = @WDescribe WHERE [WID] = @WID" 
            ProviderName="System.Data.SqlClient">
            <DeleteParameters>
                <asp:Parameter Name="WID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="WName" Type="String" />
                <asp:Parameter Name="WArea" Type="Double" />
                <asp:Parameter Name="WAddress" Type="String" />
                <asp:Parameter Name="WDescribe" Type="String" />
                <asp:Parameter Name="WID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="WID" Type="Int32" />
                <asp:Parameter Name="WName" Type="String" />
                <asp:Parameter Name="WArea" Type="Double" />
                <asp:Parameter Name="WAddress" Type="String" />
                <asp:Parameter Name="WDescribe" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
后面还有 5 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。