<%@ page language="C#" autoeventwireup="true" inherits="Shop_Shop1_Shop_Review, HoWaveVGO" title="信用评价" enableviewstate="false" enableEventValidation="false" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<form id="form_1" runat="server"> 

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"/>
    
<div id="Category_Content" style="width:99%; margin:0 auto">
  <ul class="TabBarLevel1">
       <li ><asp:HyperLink  ID="btn_shop_name" runat="server" /></li>
       <li><asp:HyperLink ID="btn_shopIntro" runat="server" Text="【店铺介绍】" /></li>
       <li class="Selected"><asp:HyperLink ID="btn_Review" runat="server" Text="【信用评价】" /></li>
  </ul>
  <br />
  <div class="clear"></div>
   <!--主栏目-->
  <div id="Main_Frame">
         
      <!--卖家买家评价主栏-->
      <div id="Product_List">
         <div id="mainSarR">
             <asp:Literal ID="Label3" runat="server" />
             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ReviewDataSource"
                    OnDataBound="GridView1_DataBound" Width="100%" CssClass="ReviewTableStyle">
                    <Columns>
                        <asp:TemplateField HeaderText="等级">             
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Bind("StarImageURL") %>' />
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Star") %>'/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Nearweek" HeaderText="最近一个星期" />
                        <asp:BoundField DataField="NearMonth" HeaderText="最近一个月" />
                        <asp:BoundField DataField="NearSixMonth" HeaderText="最近六个月" />
                        <asp:BoundField DataField="PreSixMonth" HeaderText="六个月前" />
                        <asp:BoundField DataField="CountStar" HeaderText="总计" />
                    </Columns>
             </asp:GridView>
             <br />
             <asp:Literal ID="Label2" runat="server"/>   
             <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="ReviewDataSource0"
                    OnDataBound="GridView2_DataBound" Width="100%"  CssClass="ReviewTableStyle">
                    <Columns>
                        <asp:TemplateField HeaderText="等级">                
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Bind("StarImageURL")%>' />
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Star") %>'/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Nearweek" HeaderText="最近一个星期" />
                        <asp:BoundField DataField="NearMonth" HeaderText="最近一个月" />
                        <asp:BoundField DataField="NearSixMonth" HeaderText="最近六个月" />
                        <asp:BoundField DataField="PreSixMonth" HeaderText="六个月前" />
                        <asp:BoundField DataField="CountStar" HeaderText="总计" />
                    </Columns>                       
             </asp:GridView>
         </div>
      </div>
      <div id="Side_Bar">
         <!--个人信息侧栏-->
         <table  style="border:solid 1px #BCCCE1;width:198px;">
             <tr>
                 <th style="background:#EEEEEE;height:22px;text-align:center">个人信息</th>
             </tr>
              <tr>
                 <td  style="background:#F8F8F8; padding:5px;">
                   <ul style="line-height:150%;">
                      <li><b>会员名称：</b><asp:Label ID="LabUsername" runat="server"/></li>
                      <li><b>和我联系：</b><hl:QQTaobaoContactMe ID="ContactMe1" runat="server" /></li>
                      <li><b>站内短信：</b><asp:HyperLink ID="SendMessage" runat="server" Text="站内短信" /></li>
                      <li><b>所在城市：</b><asp:Label ID="Labaddress" runat="server" Text="Label" /></li>
                      <li><b>认证信息：</b><hl:ShowMemberIdentify id="ShowMemberIdentify1" runat="server"/></li></ul>
                      <br />
                     <b>卖家好评率：</b> <asp:Label ID="Labwellbargainorperson" runat="server" CssClass="font_orange_14"/><br /> 
                     <b>买家好评率：</b> <asp:Label ID="Labwellpurchaserperson" runat="server" CssClass="font_orange_14" /><br /> 
                </td>
             </tr>
          </table>
      </div>
  </div>

  <div class="clear"></div>
  <br /><br />
   <ul class="TabBarLevel1" style="margin-top:30px;">  
               <li><asp:LinkButton ID="all_review" runat="server" CommandName="allReview" OnCommand="ShowReview"  Text="所有评价" /></li>
               <li><asp:LinkButton ID="buyer_review" runat="server" CommandName="buyerReview" OnCommand="ShowReview"  Text="来自买家的评价" /></li>
               <li><asp:LinkButton ID="saler_review" runat="server" CommandName="salerReview" OnCommand="ShowReview" Text="来自卖家的评价" /></li>
               <li><asp:LinkButton ID="my_review_buyer" runat="server" CommandName="myReview_buyer" OnCommand="ShowReview"  Text="作为买家给出的评价" /></li>
               <li><asp:LinkButton ID="my_review_saler" runat="server" CommandName="myReview_saler" OnCommand="ShowReview"  Text="作为卖家给出的评价" /></li>
  </ul> 
  <div class="ReviewButtonList">
        <asp:RadioButtonList ID="Review_Star_Select" runat="server" AutoPostBack="True"  OnSelectedIndexChanged="Review_Star_Select_SelectedIndexChanged" RepeatDirection="Horizontal">
               <asp:ListItem Value="-2" Selected="True">所有评价</asp:ListItem>
               <asp:ListItem Value="1">所有好评</asp:ListItem>
               <asp:ListItem Value="0">所有中评</asp:ListItem>
               <asp:ListItem Value="-1">所有差评</asp:ListItem>
        </asp:RadioButtonList>
   </div>

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
         <asp:GridView ID="GridViewReview" runat="server" AutoGenerateColumns="False"  CssClass="ReviewListStyle" EnableViewState="false"  BorderWidth="0" Width="100%">
            <Columns>
               <asp:TemplateField >
                  <ItemTemplate>
                     <img src='<%# Eval("ReviewStarImageURL") %>' />
                    <span><asp:Literal ID="ReviewStar" runat="server" Text='<%# Eval("NickReviewStar") %>' /></span>
                  </ItemTemplate> 
                  <HeaderStyle Width="20%" />                 
               </asp:TemplateField>
               
               <asp:TemplateField HeaderText="评价人">
                  <ItemTemplate>
                      <asp:Literal ID="Label8" runat="server" Text='<%# Eval("PurchaserBargainorSize ") %>'/>：　
                       <asp:HyperLink ID="HyperLink1" Text='<%# Eval("UserName") %>' NavigateUrl='<%#"Shop_ShopIntro.aspx?UserID="+Eval("userID")%>' Target="_blank" runat="server" />
                        
                  </ItemTemplate>
                  <HeaderStyle Width="20%" /> 
               </asp:TemplateField>
               <asp:TemplateField HeaderText="商品名称">
                  <ItemTemplate>
                      <asp:HyperLink ID="ProductName" Text='<%# Eval("ProductName") %>' NavigateUrl='<%#"../Auction/Auction.aspx?ProductID="+Eval("ProductID")%>' Target="_blank" runat="server"  /><br />                    
                      <asp:Label ID="ProductPrice" runat="server" Text='<%# Eval("ProductPrice")+"元" %>' ForeColor="orangered"/>&nbsp;
                  </ItemTemplate>
                  <HeaderStyle Width="30%" /> 
               </asp:TemplateField>
               <asp:TemplateField HeaderText="评价内容">
                  <ItemTemplate>
                     <asp:Literal ID="Label7" runat="server" Text='<%# Eval("ReviewContent") %>' /> 
                  </ItemTemplate>
                   <HeaderStyle Width="30%" /> 
               </asp:TemplateField>
            </Columns> 
            <AlternatingRowStyle CssClass="ReviewAlterStyle" />
            <EmptyDataTemplate>
               <div style="text-align:center; height:30px; line-height:30px;">暂无评价！</div>
            </EmptyDataTemplate>
         </asp:GridView>
     </ContentTemplate>
     <Triggers>
         <asp:AsyncPostBackTrigger ControlID="Review_Star_Select" EventName="SelectedIndexChanged" />
         <asp:AsyncPostBackTrigger ControlID="all_review" EventName="Click" />
         <asp:AsyncPostBackTrigger ControlID="buyer_review" EventName="Click" />
         <asp:AsyncPostBackTrigger ControlID="saler_review" EventName="Click" />
         <asp:AsyncPostBackTrigger ControlID="my_review_buyer" EventName="Click" />
         <asp:AsyncPostBackTrigger ControlID="my_review_saler" EventName="Click" />
     </Triggers>
 </asp:UpdatePanel>
 </div>
 <div style="clear:both; width:auto; background:gray; line-height:1px; height:1px;">&nbsp;</div>
 <asp:ObjectDataSource ID="ReviewDataSource" runat="server" SelectMethod="GetbargainorReviewCount"
        TypeName="Shop_Review" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="UserID" QueryStringField="UserID"
                Type="Int32" />
        </SelectParameters>
 </asp:ObjectDataSource>
 <asp:ObjectDataSource ID="ReviewDataSource0" runat="server" SelectMethod="GetpurchaserReviewCount"
        TypeName="Shop_Review" OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="UserID" QueryStringField="UserID"
                Type="Int32" />
        </SelectParameters>
 </asp:ObjectDataSource>
    <asp:HiddenField ID="H_Review_Type" runat="server"  Value="-1"/>
    <asp:HiddenField ID="H_Review_Star" runat="server" Value="-2" />
    <asp:HiddenField ID="H_Review_UserID" runat="server"  />
    <asp:HiddenField ID="H_Review_ReviewerID" runat="server" />
    <asp:HiddenField ID="H_SelectType" runat="server" />
</form>
</body>
</html>


