<%@ page language="C#" masterpagefile="~/Shop/ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_shop_check_saler_message, HoWaveVGO" title="卖家留言" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="float:left;width:100%;">
   <div class="pageTitle">查看卖家留言</div>
</div>
<div style="float:left;width:96%; padding:10px;">
   <div style="float:left; height:20px; padding-top:5px;">查看留言：</div>
   <div style="float:left; height: 23px;">
    <asp:RadioButtonList  ID="CheckSalerMessage" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
       <asp:ListItem Text="商品留言" Value="0"  Selected="True"/>
       <asp:ListItem Text="店铺留言" Value="1" />
       <asp:ListItem Text="求购留言" Value="2" />    
    </asp:RadioButtonList>
    </div>
    <div style="float:left; padding-left:10px;">   
    <asp:DropDownList ID="DropDownList1" runat="server" Visible="False">
      <asp:ListItem Text="所有回复" Value="-1" />
      <asp:ListItem Text="等待回复" Value="1" />
      <asp:ListItem Text="已回复" Value="2" />
    </asp:DropDownList>
    </div>
</div>
<div style="text-align:center">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="tableHead" AllowPaging="True" DataSourceID="ObjectDataSource1" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="商品/店铺名称">
               <ItemTemplate>
                   <asp:HyperLink  Target="_blank" ID="ProductName" runat="server" Text='<%# Eval("ProductName") %>' NavigateUrl='<%# "../Auction/"+Eval("url")+Eval("M_ProductID") %>' /><br />
                   <asp:HyperLink Target="_blank" ID="ShopName" runat="server" Text='<%# Eval("ShopName") %>' NavigateUrl='<%# "../Shop1/myShop.aspx?ShopID="+Eval("M_ShopID") %>' />
               </ItemTemplate>
             </asp:TemplateField>  
             <asp:TemplateField HeaderText="卖家名称">                
                <ItemTemplate>
                    <asp:HyperLink Target="_blank" ID="SalerName" runat="server" Text='<%# Eval("M_SenderName") %>' NavigateUrl='<%# "../Shop1/Shop_ShopIntro.aspx?UserID="+Eval("M_UserID") %>'/><br />
                    <asp:HyperLink ID="QQLink" runat="server" NavigateUrl='<%# "http://wpa.qq.com/msgrd?V=1&Uin="+Eval("OICQ")+"&amp;Site="+Eval("M_SenderName")+"&amp;Menu=yes" %>' Target="_blank">
                       <asp:Image  ID="QQImage" ImageUrl='<%# Eval("OICQ")%>' runat="server" />
                    </asp:HyperLink>
                     <asp:HyperLink ID="TaobaoLink" runat="server" NavigateUrl='<%# Eval("Taobaowangwang") %>' Target="_blank">
                       <asp:Image ID="TaobaoImage" ImageUrl='<%# Eval("Taobaowangwang") %>' runat="server"  AlternateText="点击此可以直接和对方交流"/>
                    </asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="M_DateTime" HeaderText="留言日期" />
            <asp:TemplateField HeaderText="留言状态">                
                <ItemTemplate>
                    <asp:HyperLink ID="status" runat="server" Text='<%# Eval("M_Status") %>'/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="选择">                
                <ItemTemplate>
                    <asp:CheckBox ID="MessageSelect" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>       
        <EmptyDataTemplate>暂无留言!</EmptyDataTemplate>
    </asp:GridView>
</div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetMessageByTypeUserIDSalerID" TypeName="Shop_Message" OldValuesParameterFormatString="{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="CheckSalerMessage" DefaultValue="0" Name="Type"
                PropertyName="SelectedValue" Type="Int32" />
            <asp:SessionParameter Name="UserID" SessionField="Howave_UserID" Type="Int32" />
            <asp:Parameter DefaultValue="saler" Name="UserType" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

