<%@ page language="C#" masterpagefile="~/Shop/ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_SaleView, HoWaveVGO" title="销售明细" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
  <div class="pageTitle">销售明细管理</div>
  <br />
    <table class="SearchTableStyle">
        <tr>           
            <td class="tdbg5">商品名称：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtProductName" runat="server" Height="16px"/></td>
            <td class="tdbg5">客户名称：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtUserName" runat="server" Height="16px"/></td>
        </tr>       
        <tr>
           
            <td class="tdbg5">起始日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px"/></td>
            <td class="tdbg5">结束日期：</td>
            <td class="tdbg5"><asp:TextBox ID="TxtEndDate" runat="server" Height="16px"/></td>
        </tr>
        <tr>
            <td class="tdbg5" colspan="4" style="text-align:center"><asp:Button ID="QuickSearchBtn" runat="server" Text="查询"  /></td>
           
        </tr>
    </table>
    <br />
    <table class="SearchTableStyle">
    <tr><td>
       你现在查看的是： <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Width="120px">
                    <asp:ListItem Selected="True">所有</asp:ListItem>
                    <asp:ListItem>本周</asp:ListItem>
                    <asp:ListItem>十天</asp:ListItem>
                    <asp:ListItem>本月</asp:ListItem>
                    <asp:ListItem>本年</asp:ListItem>
                </asp:DropDownList>
    </td></tr>
    </table>
    <br />
<%--   <asp:UpdatePanel ID="UpdatePanel4" runat="server" >
        <ContentTemplate>--%>
          <asp:GridView id="GridView1" EmptyDataText="对不起，没有找到符合你查询条件的数据"  runat="server" CssClass="tableHead" OnDataBound="GridView1_DataBound" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="true">
                <Columns>
                  
                    <asp:TemplateField HeaderText="编号">                    
                        <HeaderStyle Width="10%" />
                        <ItemTemplate>
                           <asp:HyperLink ID="ProductNum" NavagateUrl='<%#"shop_buyorder.aspx?OrderFormNum="+Eval("OrderFormNum")   %>' Text='<%# Bind("OrderFormNum") %>' runat="server" />                         
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="客户">                                       
                        <HeaderStyle Width="10%" />
                        <ItemTemplate>
                            <asp:HyperLink ID="ProductNum" NavagateUrl='<%#"../Shop1/Shop_ShopIntro.aspx?UserID="+Eval("UserID")%>' Text='<%# Bind("UserName") %>' runat="server"  Target="_blank"/>                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="商品名称">                                        
                        <HeaderStyle Width="15%" />
                        <ItemTemplate>
                           <asp:HyperLink ID="ProductNum" NavagateUrl='<%#"Shop_SaleProductItemView.aspx?ProductID="+Eval("ProductID")%>' Text='<%# Bind("ProductName") %>' runat="server" />                         
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="inputtime" HeaderText="下单时间" SortExpression="inputtime">                      
                        <HeaderStyle Width="10%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Quantity" HeaderText="数量">
                        <HeaderStyle Width="7%" />                        
                    </asp:BoundField>
                    <asp:BoundField DataField="Price" HeaderText="实价">
                        <HeaderStyle Width="7%" />                       
                    </asp:BoundField>
                    <asp:BoundField DataField="TruePrice" HeaderText="指定价">
                        <HeaderStyle Width="8%" />                       
                    </asp:BoundField>
                    <asp:BoundField DataField="MoneyGoodS" HeaderText="商品总价">
                        <HeaderStyle Width="8%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="MoneyTotal" HeaderText="订单总额">
                        <HeaderStyle Width="8%" />
                    </asp:BoundField>
                    <asp:BoundField DataField="PresentExp" HeaderText="积分">
                        <HeaderStyle Width="7%" />
                     
                    </asp:BoundField>
                    
                </Columns>
                 <EmptyDataTemplate >                   
                      <div style="padding:10px;">没有符合查询条件的记录！</div>                             
                    </EmptyDataTemplate>
                                    

            </asp:GridView>
             <asp:ObjectDataSource id="ObjectDataSource1" runat="server" TypeName="Shop_Order" SelectMethod="GetSaleItem" >
                <SelectParameters>
                    <asp:SessionParameter DefaultValue="0" Name="SalerID" SessionField="Howave_UserID"    Type="Int32" />
                    <asp:ControlParameter ControlID="TxtProductName" Name="ProductName" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="DropDownList1" DefaultValue="所有" Name="Monents"  PropertyName="SelectedValue" Type="String" />
                    <asp:ControlParameter ControlID="TxtBeginDate" DefaultValue="2006-01-01" Name="BeginDate"  PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="TxtEndDate" DefaultValue="2500-01-01" Name="EndDate"  PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="TxtUserName" Name="UserName" PropertyName="Text"  Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource> 
           <%-- </ContentTemplate>
                    <Triggers>
            <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
            </Triggers>
        </asp:UpdatePanel>--%>
     
</asp:Content>

