<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/Dashboard.master" AutoEventWireup="true" CodeBehind="Dashboard_unsatisfy.aspx.cs" Inherits="helpdesk.helpdesk.Dashboard_unsatisfy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

      <style>
        .isprocess1 {
         display:none
        }

    </style>



<div class="alert alert-danger">
    <b>说明：</b>如果已经将不满意反馈进行处理，请标记为“已处理”。
</div>




 <div>

     

     <div class="pull-right">
         状态:<asp:DropDownList runat="server" AutoPostBack="true" CssClass="form-control inline" Width="120px" ID="ddl_givestatus">
            
              <asp:ListItem Text="不满意" Value="0"></asp:ListItem>
              <asp:ListItem Text="所有" Value=""></asp:ListItem>
            </asp:DropDownList>


           <asp:TextBox ID="txt_key" Visible="false" runat="server" Width="140" class="form-control inline" placeholder="输入问题ID" ></asp:TextBox>
      <asp:Button ID="Button1" runat="server" Visible="false" Text="搜索"  class="btn  btn-primary btn-sm  btn-flat" />
   
     </div>
     <div class="clearfix"></div>
 </div>

 
              

          <br />   <br />
   








    <asp:GridView runat="server" ID="gv_list"
         GridLines="None" 
         DataSourceID="SqlDataSource1" CssClass="table" AutoGenerateColumns="False" DataKeyNames="id" OnRowCommand="gv_list_RowCommand">
        <Columns>
           

             <asp:TemplateField>
                 <HeaderStyle Width="70px" />
                <HeaderTemplate>流水ID
                          

                </HeaderTemplate>
                <ItemTemplate>
  <%#Eval("id") %>
                   

                </ItemTemplate>

            </asp:TemplateField>


            <asp:TemplateField>
                 <HeaderStyle Width="250px" />
                <HeaderTemplate>问题名称</HeaderTemplate>
                <ItemTemplate>
                    <a href="ticket_view.aspx?id=<%#Eval("tid") %>" target="_blank"  ><%#Eval("title") %></a>

                </ItemTemplate>

            </asp:TemplateField>


            <asp:BoundField DataField="contactname" HeaderText="提交人" SortExpression="contactname"  HeaderStyle-Width="80px"/>
          
            <asp:BoundField DataField="supportuser" HeaderText="处理人" SortExpression="supportuser"  HeaderStyle-Width="80px"/>
 
              <asp:BoundField DataField="totaltext" HeaderText="满意度" SortExpression="totaltext" HeaderStyle-Width="80px"/>
            <asp:BoundField DataField="note" HeaderText="用户反馈" SortExpression="note" HeaderStyle-Width="300px" />
 
           
            <asp:TemplateField>
                <HeaderTemplate>操作</HeaderTemplate>
                <ItemTemplate>
                    
                                 <a href="Out_Store_Detail.aspx?id=<%# Eval("id") %>"   target="_blank" Class="btn btn-xs  bg-green">查看</a>
                                 
                <span class='isprocess<%# Eval("isprocess") %>'>
                    <asp:LinkButton CommandName="isprocess" CommandArgument='<%# Eval("id") %>' runat="server" ID="lb_isgive" CssClass="btn btn-xs btn-info" Text="标记已处理"></asp:LinkButton>
                    </span>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>



    </asp:GridView>

    <asp:SqlDataSource ID="SqlDataSource1" 
    
     ConnectionString='<%$ Connectionstrings:connectionstring %>'
      runat="server"   SelectCommand=" select Helpdesk_PointList.id, totaltext, contactname, tid, supportuser, note, Helpdesk_PointList.category1name,Helpdesk_PointList.category1name,title, isprocess from Helpdesk_PointList inner join helpdesk_lists on Helpdesk_PointList.tid=helpdesk_lists.id   where  (@isprocess='' or isprocess=@isprocess) and (@key='' or Helpdesk_PointList.tid=@key)  order by Helpdesk_PointList.id desc "
 
  >
 <SelectParameters>
     <asp:ControlParameter ControlID="txt_key" Name="key" ConvertEmptyStringToNull="false" />
     <asp:ControlParameter ControlID="ddl_givestatus" Name="isprocess" ConvertEmptyStringToNull="false" />
 </SelectParameters>
 

  
 
 
 </asp:SqlDataSource>



    
        <input type="hidden" name="hf_ids" id="hf_ids" />
</asp:Content>
