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

📄 order.aspx

📁 一个简单的网上书店
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HT.master" CodeFile="order.aspx.cs" Inherits="orders" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
                    <script language="javascript" type="text/javascript">
                        function quanxuan(cboTitle){
                        var cbh=document.getElementsByTagName("input");
                        for(i=0;i<cbh.length;i++){
                            if(cbh[i].type=='checkbox'){
                                 cbh[i].checked=cboTitle.checked;
                             }
                          } 
                       }
                       function del()
                       {
                            return confirm('确定删除所选出版社吗?');
                       }
                       function up()
                       {
                            return confirm("确定要修改吗?");
                       }
                    </script>


    <div style="z-index: 101; left: 40px; width: 720px; position: absolute; top: 0px;
        height: 560px">
        <table width="720">
            <tr class="category">
                     <td   align="left"><span style="color:Gray;">定单一览表</span>
                     </td>
            </tr>
            <tr>
                <td  valign="top"> 
                <center>
                   <table style="width: 700px;">
                      <tr class="category">
                          <td  colspan="7"></td></tr>
                                    <tr class="row">
                                        <td   style="width: 80px; height: 16px;">
                                            <input type="checkbox" id="cboTitle" onclick="quanxuan(this)"/>全选
                                        </td>
                                        <td style="width: 80px; height: 16px;">
                                            定单编号
                                        </td>
                                        <td style="width: 120px; height: 16px;">
                                            定单时间
                                        </td>
                                        <td style="width: 120px; height: 16px;">
                                            购买人
                                        </td>
                                        <td style="width: 100px; height: 16px;">
                                            总价
                                        </td>
                                        <td style="width: 100px; height: 16px;">
                                            状态
                                        </td>
                                        <td style="width: 100px; height: 16px;">
                                           查看
                                        </td>
                                    </tr>
                              <tr class="category">
                                <td colspan="7">
                                <asp:GridView ID="gdvorder" runat="server" AutoGenerateColumns="False" ShowHeader="False" DataKeyNames="id">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemStyle Width="80px" />
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField  DataField="id">
                                            <ItemStyle Width="80px" />
                                        </asp:BoundField>
                                           <asp:TemplateField>
                                            <ItemStyle Width="120px" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblDate" runat="server" Width="100px" Text='<%#Eval("OrderDate","{0:yyyy/MM/dd}") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemStyle Width="120px" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblUsername" runat="server" Width="100px" Text='<%#Eval("User.Name") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField  DataField="Totalprice">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <ItemStyle Width="100px" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblState" runat="server" Width="100px"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemStyle Width="100px" />
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("Id")%>' CommandName="chakan" OnCommand="LinkButton1_Command">详细</asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                </td>
                              </tr>
                        <tr>
                            <td style="width: 150px; height: 16px" align="center" valign="top" class="t_number" colspan="2">
                                <asp:Button ID="Button1" runat="server" Text="作 废" />
                                <asp:Button ID="btnDel" runat="server" Text="删 除" OnClick="btnDel_Click" /></td>
                            <td style="width: 550px; height: 16px" align="right" valign="top" class="t_number" colspan="5">
                                <asp:ImageButton ID="btnFisrt" runat="server" ImageUrl="~/image/_firstpg.gif"  Height="18px" Width="57px" OnClick="btnFisrt_Click"/>
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/_prevpg.gif"  Height="18px" Width="57px" OnClick="ImageButton2_Click"/>
                                <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/_nextpg.gif"  Height="18px" Width="57px" OnClick="ImageButton3_Click"/>
                                <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/image/_lastpg.gif"  Height="18px" Width="57px" OnClick="ImageButton4_Click"/>
                                &nbsp; &nbsp; 当前页:<asp:Label ID="lblcruutenPager" runat="server" Text="1"></asp:Label>&nbsp;
                                共<asp:Label ID="lblcPagers" runat="server" Text="0"></asp:Label>
                                页 &nbsp;&nbsp; 跳转到第<asp:TextBox ID="lblPage" runat="server" Height="16px" Width="34px"></asp:TextBox>页
                                &nbsp;
                                <asp:Button ID="btnpage" runat="server" Height="20px"  Text="确定" />
                            </td>
                        </tr>
                    </table>
                    </center>
                </td>
            </tr>
            <tr><td valign="top"> <hr style="width: 100%; color: #cfcfcf; height: 1px" /></td></tr>
            <tr class="category">
                <td align="left"><span style="color:Gray;">定单详细内容表</span><span style=" margin:0px 20px 0px 50px">编号:<asp:Label
                        ID="lblorderId" runat="server" Text="Label" Width="62px"></asp:Label></span></td>
            </tr>     
            <tr >
                <td style="width: 720px">
                 <center>
                   <table style="width: 700px;">
                          <tr class="row">
                                        
                                        <td style="width: 200px; height: 7px;">
                                            购买书籍
                                        </td>
                                        <td style="width: 160px; height: 7px;">
                                            数量:
                                        </td>
                                        <td style="width: 160px; height: 7px;">
                                           单价:
                                        </td>
                                        <td style="width: 180px; height: 7px;">
                                            单项总价
                                        </td>
                                    </tr>
                              <tr class="category">
                                <td colspan="4">
                                <asp:GridView ID="gdvOrderBook" runat="server" Width="700px" AutoGenerateColumns="False" ShowHeader="False">
                                    <Columns>
                                        <asp:TemplateField>
                                             <ItemTemplate>
                                                <asp:Label ID="bookTitle" runat="server" Width="100px" Text='<%#Eval("Book.Title") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle Width="200px" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Quantity" >
                                            <ItemStyle Width="160px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="UnitPrice" >
                                            <ItemStyle Width="160px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Price" >
                                            <ItemStyle Width="180px" />
                                        </asp:BoundField>
                                    </Columns>
                                </asp:GridView>
                                </td>
                              </tr>
                    </table>
                    </center>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

⌨️ 快捷键说明

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