<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DF_Ticket.aspx.cs" Inherits="Helpdesk.helpdesk.DF_Ticket" %>

<!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 runat="server">
    <title></title>
   
   <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" />     
     <script src="../Javascript/jquery-1.9.1.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>

</head>
<body  style="margin:20px;" >
    

    <form id="form1" runat="server">
    <div class="dfblock">
        
          
   对于<b><asp:Label runat="server" ID="title"></asp:Label></b>问题处理，请对我们的服务进行评价。
       
        <div style="margin:20px;" id="opt">        
            
            <asp:RadioButtonList
             Width="440px"
             runat="server" ClientIDMode="Static" ID="ddl_totalpoint" RepeatColumns="5" RepeatDirection="Horizontal">
            <asp:ListItem Text="非常满意" Value="10"></asp:ListItem>
               <asp:ListItem Text="满意" Value="9"></asp:ListItem> 
              <asp:ListItem Text="一般" Value="7"></asp:ListItem>
              <asp:ListItem Text="不满意" Value="2"></asp:ListItem>
            <asp:ListItem Text="非常不满意" Value="1"></asp:ListItem>

        </asp:RadioButtonList>
   </div>
     
        
           备注：<br />
        <asp:TextBox runat="server" ID="txt_note"  ClientIDMode="Static" TextMode="MultiLine" CssClass="form-control" Height="60px" Width="450px"></asp:TextBox>
        <br /><br />
        
        <div style="margin:0 auto; width:400px; text-align:center">
          <asp:Button ID="btnSubmit" CssClass="btn btn-sm btn-success"
              
               OnClientClick="if(!issel()){return false;}"
                runat="server" Text="确定"  OnClick="btnSubmit_Click" />
        </div>
         

       

        <script>

            function issel()
            {

                var c = $("#opt input[type=radio]:checked").length;
                var reason=$("#txt_note").val();

             
                if (c > 0)
                {
                    //选择了

                    var point = $("#opt input[type=radio]:checked").val();
                    
                    if (point < 5)
                    {
               
                        if (reason == "")
                        {
                            alert("请填写不满意原因");
                            return false;
                        }

                    }

                    return true;
                }

                alert("请选择满意度");
                return false;

            }

        </script>


    </div>
    </form>
</body>
</html>
