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

📄 adminkucun.aspx

📁 用c# asp.net 编写b/s模式的管理系统
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ page language="C#" autoeventwireup="true" inherits="adminkucun, App_Web_xtvwqxfv" %>

<!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>
</head>
<body bgcolor="silver">
    <form id="form1" runat="server">
    <div>
        <div style="border-right: black thin solid; border-top: black thin solid; z-index: 102;
            left: 68px; border-left: black thin solid; width: 495px; border-bottom: black thin solid;
            position: absolute; top: 71px; height: 453px">
            <div style="z-index: 102; left: 10px; width: 470px; position: absolute; top: 50px;
                height: 383px">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="Solid"
                    BorderWidth="1px" CellPadding="3" DataKeyNames="名称" DataSourceID="SqlDataSource1"
                    ForeColor="Black" GridLines="Vertical" Height="315px" Style="left: 0px; position: absolute;
                    top: 12px; border-collapse: separate;" Width="449px">
                    <FooterStyle BackColor="#CCCCCC" />
                    <Columns>
                        <asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True">
                            <ControlStyle Width="40px" />
                            <ItemStyle Width="90px" />
                        </asp:CommandField>
                        <asp:BoundField DataField="名称" HeaderText="名称" ReadOnly="True" SortExpression="名称">
                            <ControlStyle Width="60px" />
                            <ItemStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="类别" HeaderText="类别" SortExpression="类别">
                            <ControlStyle Width="50px" />
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量">
                            <ControlStyle Width="40px" />
                            <ItemStyle Width="40px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="入库时间" HeaderText="入库时间" SortExpression="入库时间" />
                    </Columns>
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConflictDetection="CompareAllValues"
                    ConnectionString="<%$ ConnectionStrings:mmConnectionString %>" DeleteCommand="DELETE FROM [库存办公用品] WHERE [名称] = @original_名称 AND [类别] = @original_类别 AND [数量] = @original_数量 AND [入库时间] = @original_入库时间"
                    InsertCommand="INSERT INTO [库存办公用品] ([名称], [类别], [数量], [入库时间]) VALUES (@名称, @类别, @数量, @入库时间)"
                    OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT [名称], [类别], [数量], [入库时间] FROM [库存办公用品]"
                    UpdateCommand="UPDATE [库存办公用品] SET [类别] = @类别, [数量] = @数量, [入库时间] = @入库时间 WHERE [名称] = @original_名称 AND [类别] = @original_类别 AND [数量] = @original_数量 AND [入库时间] = @original_入库时间">
                    <DeleteParameters>
                        <asp:Parameter Name="original_名称" Type="String" />
                        <asp:Parameter Name="original_类别" Type="String" />
                        <asp:Parameter Name="original_数量" Type="String" />
                        <asp:Parameter Name="original_入库时间" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="类别" Type="String" />
                        <asp:Parameter Name="数量" Type="String" />
                        <asp:Parameter Name="入库时间" Type="String" />
                        <asp:Parameter Name="original_名称" Type="String" />
                        <asp:Parameter Name="original_类别" Type="String" />
                        <asp:Parameter Name="original_数量" Type="String" />
                        <asp:Parameter Name="original_入库时间" Type="String" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="名称" Type="String" />
                        <asp:Parameter Name="类别" Type="String" />
                        <asp:Parameter Name="数量" Type="String" />
                        <asp:Parameter Name="入库时间" Type="String" />
                    </InsertParameters>
                </asp:SqlDataSource>
            </div>
            <asp:Label ID="Label1" runat="server" Font-Names="方正行楷简体" Font-Size="Large" Style="z-index: 100;
                left: 147px; position: absolute; top: 18px" Text="【库存办公用品管理】"></asp:Label>
        </div>
        <div style="border-right: black thin solid; border-top: black thin solid; z-index: 103;
            left: 76px; border-left: black thin solid; width: 584px; border-bottom: black thin solid;
            position: absolute; top: 607px; height: 587px">
            <div style="z-index: 101; left: 19px; width: 525px; position: absolute; top: 77px;
                height: 324px">
                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
                    CellPadding="3" DataKeyNames="领用时间" DataSourceID="SqlDataSource2" ForeColor="Black"
                    GridLines="Vertical" PageSize="15" Style="position: absolute; border-collapse: separate;" Width="521px" OnDataBound="GridView2_DataBound" OnRowDeleting="GridView2_RowDeleting">
                    <FooterStyle BackColor="#CCCCCC" />
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除" OnClientClick='return confirm("确认要删除吗?");'/>
                            </ItemTemplate>
                            <ControlStyle Width="45px" />
                            <ItemStyle Width="45px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称" />
                        <asp:BoundField DataField="类别" HeaderText="类别" SortExpression="类别" />
                        <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量" />
                        <asp:BoundField DataField="领用人" HeaderText="领用人" SortExpression="领用人" />
                        <asp:BoundField DataField="领用时间" HeaderText="领用时间" ReadOnly="True" SortExpression="领用时间" />
                    </Columns>
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>

⌨️ 快捷键说明

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