<%@ page language="C#" autoeventwireup="true" inherits="Admin_Order_Operate_3, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
      <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
<script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
      <style type="text/css">
 .hidden  {
 	 display:none;
  }   
  </style>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
     <div class="navigator">【 整理购物车 】</div>
           <table  style="width:100%">
                    <tr>
                        <td align="left">
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" AddSequenceColumn="False" 
                                AllowMultiColumnSorting="False" BorderColor="#CCDDEF" BorderStyle="Solid" 
                                BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
                                Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
                                PagingStyle="None" style="margin-left: 2px;" TableName="" 
                                Font-Size="Small" DataSourceID="ObjectDataSourceData" 
                                onrowdatabound="Num1GridViewShow_RowDataBound" 
                                ondatabound="Num1GridViewShow_DataBound">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                       <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
<%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                         <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" >
                        <HeaderStyle CssClass="hidden" />
                        <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="商品名称" 
                        SortExpression="Name" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RepertoryNumber" HeaderText="货号" 
                        SortExpression="RepertoryNumber" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MarketPrice" HeaderText="市场价" 
                        SortExpression="MarketPrice">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ShopPrice" HeaderText="本店售价" 
                        SortExpression="ShopPrice">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>     
                    <asp:TemplateField HeaderText="购买价格">
                        <ItemTemplate>
                            <asp:TextBox ID="textBoxBuyPrice" runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="购买数量">
                        <ItemTemplate>
                            <asp:TextBox ID="textBoxBuyNumber" runat="server"></asp:TextBox>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="小计">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="LabelAll" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                            <asp:BoundField DataField="BuyPrice" HeaderText="购买价格">
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" />
                    </asp:BoundField>
                    <asp:BoundField DataField="BuyNumber" HeaderText="购买数量">
                        <HeaderStyle CssClass="hidden" />
                        <ItemStyle CssClass="hidden" HorizontalAlign="Center" />
                    </asp:BoundField>
                            <asp:BoundField DataField="ProductGuid" HeaderText="商品Guid">
                                <HeaderStyle CssClass="hidden" />
                                <ItemStyle CssClass="hidden" />
                    </asp:BoundField>
                            </Columns>
            </cc1:Num1GridView>
                        </td>
                    </tr>
                       <tr>
                        <td align="left">
                        <div class="vote" style="color:red;line-height:30px;height:30px">
                            <asp:Label ID="LabelAll" runat="server" Text="合计："></asp:Label>
                            <asp:Label ID="LabelAllMoney" runat="server"></asp:Label></div>
                           </td>                    
                    </tr>
                       <tr>
                        <td align="left">
                        <div class="vote">
                        <asp:Button ID="ButtonUpdate" runat="server" 
                                onclientclick="GetCheckedBoxValues()" Text="更新购物车" 
                                CausesValidation="False" onclick="ButtonUpdate_Click" CssClass="bt3" />
                            &nbsp;<asp:Button ID="ButtonDelete" runat="server" Text="从购物车移除" 
            onclientclick="return DeleteButton()" onclick="ButtonDelete_Click" CssClass="bt3" />
    
        &nbsp;<asp:Button ID="ButtonLast" runat="server" Text="上一步" 
              onclick="ButtonLast_Click" CssClass="bt3" />
    
        &nbsp;
           <asp:Button ID="ButtonNext" runat="server" Text="下一步" 
              onclick="ButtonNext_Click" CssClass="bt3" />
    
        &nbsp;<asp:Button ID="ButtonCancel" runat="server" Text="取消" onclick="ButtonCancel_Click" CssClass="bt2"/>
    
        &nbsp;<asp:Button ID="ButtonLastEdit" runat="server" Text="上一步" 
             onclick="ButtonLastEdit_Click" Visible="False" CssClass="bt3" />
    
        &nbsp;<asp:Button ID="ButtonEditConfirm" runat="server" 
                             onclick="ButtonEditConfirm_Click" Text="确定" Visible="False" CssClass="bt2"/>
&nbsp;<asp:Button ID="ButtonCancelEdit" runat="server" onclick="ButtonCancelEdit_Click" Text="取消编辑" 
                             Visible="False"  CssClass="bt3"/>
                     &nbsp;<ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" CssClass="bt3" /></div>
    
                           </td>                    
                    </tr>
</table>
        <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%><br />
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenFieldMemloginID" runat="server" Value="0" />
    <asp:HiddenField ID="hiddenFieldProductGuids" runat="server" />
        <asp:HiddenField ID="HiddenFieldorderGuid" runat="server" />
        <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
            SelectMethod="SearchByMemLoginID" 
            TypeName="ShopNum1.BusinessLogic.ShopNum1_Cart_Action">
            <SelectParameters>
                <asp:ControlParameter ControlID="hiddenFieldMemloginID" Name="memLoginID" 
                    PropertyName="Value" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
            <asp:HiddenField ID="HiddenFieldAllWeight" runat="server" Value="0.00" />
    </form>
</body>
</html>