<%@ Page Title="" Language="C#"   AutoEventWireup="true" CodeBehind="Auditing.aspx.cs" Inherits="bid.bid.Auditing" %>
 

<!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.12.4.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>

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

    <form id="form1" runat="server">
    <div class="dfblock">
        
          
    请对申请进行审批
       
        <div style="margin:20px;" id="opt">        
            
            <asp:RadioButtonList
             Width="440px"
             runat="server" ClientIDMode="Static" ID="ddl_auditstatus" RepeatColumns="2" RepeatDirection="Horizontal">
            <asp:ListItem Text="同意" Value="1" Selected="True" ></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="90%"></asp:TextBox>
        <br /><br />
        
        <div style="margin:0 auto; width:400px; text-align:center">
          <asp:Button ID="btnSubmit" CssClass="btn btn-sm btn-success" UseSubmitBehavior="false" 
               OnClientClick="if(!isok()) return false;  this.value='处理中…'; this.disabled=true; "
                runat="server" Text="确定"  OnClick="btnSubmit_Click" />
        </div>
         

       <script>

           function isok() {

               var sel = $("input[type='radio']:checked").val();
               if (sel == "-1") {

                   if ($("#txt_note").val() == "") {
                       alert("请在备注里填写拒绝原因");
                       return false;
                   }

               }

               return true;
           }

       </script>



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