<%@ page language="C#" autoeventwireup="true" inherits="fillreport1, App_Web_qsmgnciu" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!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">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
   <%--<link rel="stylesheet" href="css/style1.css" type="text/css" />
 <link href="css/button.css" rel="Stylesheet" type="text/css"/>
   <link href="css1/bootstrap.css" rel="stylesheet" type="text/css" />
      <link href="css1/bootstrap-responsive.css" rel="stylesheet" type="text/css" />--%>


      <link href="../CSS/ForButton.css" rel="stylesheet" type="text/css" />
      <link href="../ServiceCss/bootstrap.css" rel="stylesheet" type="text/css" />
      <link href="../ServiceCss/bootstrap-responsive.css" rel="stylesheet" type="text/css" />

      <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>

      <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <title></title>
    <style type="text/css">
     #header{
    width:100%; 
    background: url(HeaderImage.jpg);
            height: 163px;
            margin-top:10px;
           
        }
#headerContent{
    margin: 0 auto; width: 960px;
    margin-left:30px;
    color:White;
   
}


.modelbackground
        {
        	background-color:Gray;
	        filter:alpha(opacity=70);
	        opacity:0.7;
        }
        .categorypanel
        {
        	background-color:White;
        	border:2px solid black;
        		}   
</style>

      <script type="text/javascript">

          $().ready(function () {
              $("[id*=btnYes]").click(function () {
                  $find("enq_quot_popup").hide();
              });
          });
              </script>

</head>
<body>
    <form id="form1" runat="server">
     <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    <Scripts>
    <asp:ScriptReference Path="~/js/webkit.js" />
    <asp:ScriptReference Path="~/js/JScript.js" />
    </Scripts>
    </cc1:ToolkitScriptManager>
    <%--
    <asp:UpdatePanel ID="pnl_update_dd" runat="server" UpdateMode="Conditional" >
    <ContentTemplate>
    --%>
    
    
    <div style="background-color:White;">
       <img id="Img1" src="~/Images/PMS-Header-New1.jpg" runat="server" alt="Seagull Project Monitoring " style="width:100%;"/>
        </div>
        
        <div class="container-fluid">      
      <legend class="legend1" style="background: url(../Images/header_plain.jpg);">
          <b style="color:White;">Fill Servicing Report</b></legend>
      <div class="row-fluid">
          <div class="span8">

           <asp:UpdatePanel ID="pnl_update_dd" runat="server" >
    <ContentTemplate>
    
          
            
              <fieldset>
                  <legend>Customer Details</legend>
                   <div class="row-fluid" runat="server" id="amc_div" visible="false">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <asp:Label ID="lblamc" runat="server" CssClass="control-label" ></asp:Label>
                              </div>
                              </div>
                              </div>

                   <div  class="row-fluid" >
                  <div >
                     <%-- class="span6 bgcolor"--%>
                          <div >
                              <%--class="control-group"--%>
                              <label class="control-label" for="Visit">
                             Visit for</label>
                              <div  >
                          <%--   class="controls"--%>
                                   <div style="width:100%; float:left;">
                                  <table>
                                      <td valign="top">
                              <div class="radio">
                               <asp:RadioButton ID="CheckBox1" Checked="true" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBox1_CheckedChanged"
                                    Font-Size="13px" ForeColor="#333333" GroupName="17" Text="Breakdown"/>
                               </div>
                                           &nbsp;  &nbsp;  
                                     &nbsp;  &nbsp;     </td>
                                     
                                  
                                      <td  valign="top">
                                           <div class="radio">
                                           <asp:RadioButton ID="CheckBox3" runat="server" AutoPostBack="true"  OnCheckedChanged="CheckBox3_CheckedChanged"
                                    Font-Size="13px" ForeColor="#333333" GroupName="17" Text="AMC"/>
                                       &nbsp;  &nbsp;     &nbsp;  &nbsp;            </div>

                                  
                                          </td>
                                          <td  runat="server"  valign="top">
                                           <div class="radio" >
                                          <asp:RadioButton ID="CheckBox2" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBox2_CheckedChanged"
                                    Font-Size="13px" ForeColor="#333333" GroupName="17" Text="E&C"/>
                                         </div>
                                          
                     
                                    &nbsp;  &nbsp;     &nbsp;  &nbsp;      </td>
                                       
                                        <td runat="server"  valign="top">
                                           <div class="radio">
                                           <asp:RadioButton ID="CheckBox4" runat="server" AutoPostBack="true"  OnCheckedChanged="CheckBox4_CheckedChanged"
                                    Font-Size="13px" ForeColor="#333333" GroupName="17" Text="Warranty Service Report"/>
                                       &nbsp;  &nbsp;     &nbsp;  &nbsp;            </div>

                                  
                                          </td>
                                          </table>
                                 </div>


                                  <div style="width:10%; float:left;" runat="server" visible="false">
                                  <asp:CheckBoxList ID="chk_visitlist" AutoPostBack="true" RepeatDirection="Vertical" runat="server" OnSelectedIndexChanged="chk_visitlist_SelectedIndexChanged">
                                  <asp:ListItem Value="0" Text="" ></asp:ListItem>
                                   <asp:ListItem Value="1" Text="" ></asp:ListItem>
                                    <asp:ListItem Value="2" Text="" ></asp:ListItem>
                                  </asp:CheckBoxList>
                                  </div>
                                  <div  style="width:50%; float:left; margin-top:5px;" runat="server" visible="false">
                                  <asp:Label ID="lbl_brakdown" runat="server" Font-Bold="True" Font-Size="13px" 
                                 ForeColor="#333333" Text="Breakdown"></asp:Label>
                                  <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="13px" 
                                 ForeColor="#333333" Text="Commissioning"></asp:Label>
                                  <asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="13px" 
                                 ForeColor="#333333" Text="AMC"></asp:Label>
                                 </div>

                              </div>
                          </div>
                      </div>

                       </div>

                   <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="dateOfBirth">
                              Customer Name</label>
                              <div class="controls">
                                 <asp:DropDownList ID="ddlcustnm" runat="server" AppendDataBoundItems="True" 
                                AutoPostBack="True"
                                onselectedindexchanged="ddlcustnm_SelectedIndexChanged">
                                </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="ddlcustnm" ErrorMessage="select Customer" ForeColor="Red"
                                InitialValue="-Select Customer-" ValidationGroup="1"></asp:RequiredFieldValidator>
                                </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">
                              Email-Id</label>
                              <div class="controls">
                                 <asp:TextBox ID="txtemail" runat="server"
                                ReadOnly="True"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>


 <div class="row-fluid" runat="server" id="complaintdetails">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="dateOfBirth">
                              Complaint code</label>
                              <div class="controls">
                                  <asp:DropDownList ID="ddlccode" runat="server" AppendDataBoundItems="True" 
                                AutoPostBack="True" 
                                onselectedindexchanged="ddlccode_SelectedIndexChanged">
                               </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                ControlToValidate="ddlccode" ErrorMessage="Select Complaint" 
                                InitialValue="-Select-" ValidationGroup="1"  ForeColor="Red"
                                  AutoPostBack="True" onselectedindexchanged="ddlcustnm_SelectedIndexChanged"
                                
                                ></asp:RequiredFieldValidator>
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="lastName">
                              Date</label>
                              <div class="controls">
                                     <asp:TextBox ID="txtdate" runat="server" 
                                Enabled="false"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                  </div>

                 
                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="dateOfBirth">
                              Mobile No.</label>
                              <div class="controls">
                                 <asp:TextBox ID="txtmobno" runat="server" ></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="lastName">
                              Address</label>
                              <div class="controls">
                                 <asp:TextBox ID="txtaddress" runat="server"
                                TextMode="MultiLine"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <%-- --%>
                      <!--/span-->
                      <!--/span-->
                  </div>
                  <!--/row-->
                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Area">
                              Area</label>
                              <div class="controls">
                                  <asp:TextBox ID="txtarea" runat="server"></asp:TextBox>
                                
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="State">
                              State</label>
                              <div class="controls">
                                    <asp:TextBox ID="txtstate" runat="server"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
                   <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Vendorcode">
                              Vendor Code</label>
                              <div class="controls">
                                  <asp:TextBox ID="txt_vendor" runat="server"></asp:TextBox>
                                
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Designation">
                              Designation</label>
                              <div class="controls">
                                    <asp:TextBox ID="txt_designation" runat="server"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>


                     <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Department">
                              Department</label>
                              <div class="controls">
                                  <asp:TextBox ID="txt_department" runat="server"></asp:TextBox>
                                
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Timein">
                              Time In</label>
                              <div class="controls">
                                    <asp:TextBox ID="txt_timein" runat="server"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
               <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Industry Type">
                              Industry Type</label>
                              <div class="controls">
                                  <asp:TextBox ID="txt_industrytype" runat="server"></asp:TextBox>
                                
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Timeout">
                              Time Out</label>
                              <div class="controls">
                                    <asp:TextBox ID="txt_timeout" runat="server"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
              <div class="row-fluid">
                      
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Remark">Remark
                              </label>
                              <div class="controls">
                                <asp:TextBox ID="txt_remark" TextMode="MultiLine" runat="server"></asp:TextBox>
                                                                  
                              </div>
                          </div>
                      </div>
                     <div class="span6 bgcolor" runat="server" id ="div_invoice" visible="false" >
                          <div class="control-group">
                              <label class="control-label" for="Invoiceno">Invoice No
                              </label>
                              <div class="controls">
                               
                                         <asp:DropDownList ID="ddl_customers_Invoiceno_list" runat="server" AppendDataBoundItems="true" Width="160px"  AutoPostBack="True"
                                onselectedindexchanged="ddl_customers_Invoiceno_list_SelectedIndexChanged">

                       </asp:DropDownList>     
                                  <br />
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator_4" runat="server" 
                                ControlToValidate="ddl_customers_Invoiceno_list" ErrorMessage="Select Invoice" ForeColor="Red"
                                InitialValue="-Select Invoice-" ValidationGroup="1"></asp:RequiredFieldValidator>

                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
                  <!--/row-->



                  
                  <div class="row-fluid" runat="server" visible="false" id="div_chk_next_comm_date">
                              
                      <div class="span6 bgcolor">
                          <div class="control-group">
                   
                    <asp:UpdatePanel runat="server"  >
                      <ContentTemplate>
                      
                     
                         <div id="Div4" class="span6 bgcolor" runat="server">
                          <div class="control-group">
                              <div class="col-lg-10">
                                  <asp:Label ID="Label11" runat="server" Text="Installation Completed" Font-Bold="true" Width="200px"></asp:Label>
                            <div class="radio">
                               <asp:RadioButton ID="rdb_installaton_yes" runat="server" AutoPostBack="true" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="13" Text="Yes" 
                                    oncheckedchanged="rdb_installaton_yes_CheckedChanged" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdb_installaton_no" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="13" Text="No" AutoPostBack="true" 
                                    oncheckedchanged="rdb_installaton_no_CheckedChanged"/>
                                &nbsp;
                                <asp:Label ID="Label12" runat="server" ForeColor="Red" Visible = "false" Width="200px" ></asp:Label>
                                </div>

                                <div class="radio" runat="server" id="div_next_comm_date" visible="false">
                                 <asp:Label ID="Label13" runat="server" Text="Next Visit Date" Font-Bold="true"></asp:Label>
                         
                                 <asp:TextBox ID="txt_next_comm_date" Width="150px" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                    Enabled="True" TargetControlID="txt_next_comm_date" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                                &nbsp;
                             
                                </div>
                                
                             
                        </div>
                          </div>
                      </div>

                       </ContentTemplate>    
                        <Triggers >   
                        <asp:PostBackTrigger ControlID = "rdb_installaton_yes" />
                          <asp:PostBackTrigger ControlID = "rdb_installaton_no" />


                          </Triggers>
                      </asp:UpdatePanel>
                 
                              
                              </div>
                           </div>

                       <div class="span6 bgcolor">
                          <div class="control-group">
                            

                                  </div>
                           </div>
                      </div>



                                
                  <div class="row-fluid" runat="server" visible="false" id="div_warranty">
                              
                      <div class="span6 bgcolor">
                          <div class="control-group">
                                  <asp:Label ID="Label10" runat="server" Text="Check Warranty" Font-Bold="true"></asp:Label>
                            <div class="radio">
                   
                               <asp:RadioButton ID="rdb_warrenty_yes" runat="server" Font-Bold="True" Checked="true"
                                    Font-Size="13px" ForeColor="#333333" GroupName="16" Text="Within Warranty" />
                            </div>
                              <div class="radio">
                                <asp:RadioButton ID="rdb_warrenty_no" runat="server" Font-Bold="True" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="16" Text="Out Of Warranty" 
                                   />
                                &nbsp;</div>
                              </div>
                           </div>

                       <div class="span6 bgcolor">
                          <div class="control-group">
                            

                                  </div>
                           </div>
                      </div>

              </fieldset>
              <fieldset runat="server" id="comdetails">
                  <legend>Complaint Details</legend>

                  
                  <div class="row-fluid" runat="server" visible="false">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="postCode">
                              Group Name</label>
                              <div class="controls">
                                 <asp:TextBox ID="txt_groupname" runat="server"
                                ReadOnly="True"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                      <div ID="Div3" runat="server" class="span6 bgcolor">
                          <div class="control-group">
                              
                          </div>
                      </div>
                      <!--/span-->
                  </div>
                



                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="postCode">
                              Product Name</label>
                              <div class="controls">
                                 <asp:TextBox ID="txtpname" runat="server"
                                ReadOnly="True"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                      <div ID="mname" runat="server" class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="country">
                              Model Name</label>
                              <div class="controls">
                                  <asp:TextBox ID="txtmname" runat="server"
                                ReadOnly="True"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
                
                  <!--/row-->
                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">
                             Complaint</label>
                              <div class="controls">
                                 <asp:TextBox ID="txtcomplaintnm" runat="server"
                                ReadOnly="True"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">Date of installation
                              </label>
                              <div class="controls">
                                 <asp:TextBox ID="txtinstalldate" runat="server"></asp:TextBox>
                                 <cc1:CalendarExtender runat="server" ID="ddddaaaa" TargetControlID="txtinstalldate" Format="dd-MM-yyyy"></cc1:CalendarExtender>
                                <br />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtinstalldate" ErrorMessage="Add installation date" ForeColor="Red"
                               ValidationGroup="1"></asp:RequiredFieldValidator>
                              
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>
                     <div class="row-fluid">
                          <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">Site Condition
                              </label>
                              <div class="controls">
                                <asp:TextBox ID="txtsitecond" runat="server"></asp:TextBox>
                                  <br />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtsitecond" ErrorMessage="Add Site Condition" ForeColor="Red"
                               ValidationGroup="1"></asp:RequiredFieldValidator>
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">
                             Solution Provided</label>
                              <div class="controls">
                                <asp:TextBox ID="txtsolution" runat="server"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtsolution" ErrorMessage="Add Solution Provided" ForeColor="Red"
                               ValidationGroup="1"></asp:RequiredFieldValidator>
                              </div>
                          </div>
                      </div>
                     
                      <!--/span-->
                  </div>
                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">
                             Serial No.</label>
                              <div class="controls">
                               <asp:TextBox ID="txtserialno" runat="server"></asp:TextBox>
                              </div>
                          </div>
                      </div>
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">Quantity
                              </label>
                              <div class="controls">
                                <asp:TextBox ID="txtquantity" runat="server"></asp:TextBox>
                                
                                    <cc1:FilteredTextBoxExtender runat="server" ID="FilteredTextBoxExtender1" TargetControlID="txtquantity" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                                
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                  </div>


                     

                   </fieldset>
                

                   <fieldset>

                  <div style="width:100%; float:left;">
                <%--  class="row-fluid"--%>
                                <asp:gridview ID="gv_add_multiple_product" Visible="false" runat="server" ShowFooter="true" BackColor="#e6fff9"
            AutoGenerateColumns="false" Width="60%"  Font-Names="Calibri" Font-Size="12px"
                    ForeColor="Black" GridLines="Both" OnRowDeleting="gv_add_multiple_product_RowDeleting" >
            <Columns>
          <%--  <asp:BoundField DataField="RowNumber" HeaderText="Model Name" />--%>
           <asp:TemplateField HeaderText="Sr.No." >
                <ItemTemplate>
                    <asp:TextBox ID="txt_machinesrno" runat="server" Width="20px"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="rfq_machinesrno" runat="server" Display="Dynamic" ErrorMessage="Enter Machine Sr.No" ControlToValidate="txt_machinesrno" InitialValue=" " ValidationGroup="m" ForeColor="Red"></asp:RequiredFieldValidator>
           
                    </ItemTemplate>
              
            </asp:TemplateField>


            <asp:TemplateField HeaderText="Model Name" >
                <ItemTemplate>
                    <asp:TextBox ID="txt_machinename" runat="server" Width="150px"></asp:TextBox>                   
                  <asp:RequiredFieldValidator ID="rfq_machinename" runat="server" Display="Dynamic" ErrorMessage="Enter Machine Name" ControlToValidate="txt_machinename" InitialValue=" " ValidationGroup="m" ForeColor="Red"></asp:RequiredFieldValidator>
           
                     </ItemTemplate>
                 <FooterTemplate>
                 <asp:Button ID="ButtonAdd" runat="server" Text="Submit Item" BorderStyle="None" 
                         onclick="ButtonAdd_Click"   CssClass="btn btn-primary" Width="120px"  ValidationGroup="m"/>
                </FooterTemplate>
                
            </asp:TemplateField>

                  <asp:TemplateField HeaderText="Spares / Accessories Name" Visible="false" >
                <ItemTemplate>
                    <asp:TextBox ID="txt_sparesname" runat="server" Width="150px"></asp:TextBox>                   
               
                     </ItemTemplate>
                
            </asp:TemplateField>

           

            <asp:TemplateField HeaderText="Mechanical Faults" >
                <ItemTemplate>
                    <asp:TextBox ID="txt_mechfault" runat="server" TextMode="MultiLine" Width="100px"></asp:TextBox>
                   
                   </ItemTemplate>
                
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Electrical Faults" >
                <ItemTemplate>
                  
                    <asp:TextBox ID="txt_elefault" runat="server" TextMode="MultiLine" Width="100px"></asp:TextBox>                 
                      </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Model Working" >
                <ItemTemplate>
                <div style="width:60px;">
                  <asp:RadioButton ID="rdb_working_y" runat="server" Checked="true"
                                    Font-Size="13px" ForeColor="#333333" GroupName="15"  AutoPostBack="true" 
                                    />
                                     <asp:Label ID="lbl_yes" runat="server" Font-Bold="True" Font-Size="13px" 
                                    ForeColor="#333333" Text="Yes"></asp:Label>
                                    </div>
                                    <div  style="width:60px;">
                                        <asp:RadioButton ID="rdb_working_n" runat="server" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="15" AutoPostBack="true" 
                                    />   
                                    <asp:Label ID="lbl_no" runat="server" Font-Bold="True" Font-Size="13px" 
                                    ForeColor="#333333" Text="No"></asp:Label>   </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Running Hrs" HeaderStyle-Width="60px">
                <ItemTemplate>
                <div style="vertical-align:top;">
                    <asp:TextBox ID="txt_hrs" runat="server" Width="50px" MaxLength="10"></asp:TextBox>
          </div>
                </ItemTemplate>
                
            </asp:TemplateField>
       <%--  <asp:CommandField ShowDeleteButton="true" />--%>
            
            </Columns>
                 <AlternatingRowStyle BackColor="#ccfff2" />
                      <FooterStyle BackColor="White" ForeColor="#000066" Font-Bold="true" />
                  <HeaderStyle BackColor="#006080" ForeColor="White"/>
                <PagerSettings Position="Bottom"/>    
                    <SelectedRowStyle BackColor="#669999" ForeColor="White" Font-Bold="True" />

        </asp:gridview>
       <br />
        </div>

          </fieldset>


         <fieldset runat="server" id="complaintrdb">

                  <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <div class="col-lg-10">
                                  <asp:Label ID="Label2" runat="server" Text="Check Warranty" Font-Bold="true"></asp:Label>
                            <div class="radio">
                    
                               <asp:RadioButton ID="rdb_warranty" runat="server" Font-Bold="True" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="11" Text="Within Warranty" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdb_outwarranty" runat="server" Font-Bold="True" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="11" Text="Out Of Warranty" 
                                   />
                                &nbsp;</div>
                                  <div class="span6 bgcolor" runat="server" id = "upload1" visible="false">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">Upload file
                              </label>
                              <div class="controls">
                                <asp:FileUpload ID="FileUpload1" runat="server"/>
                              </div>
                          </div>
                      </div>
                        </div>
                          </div>
                      </div>
                      <div id="Div1" class="span6 bgcolor" runat="server">
                          <div class="control-group">
                              <div class="col-lg-10">
                                  <asp:Label ID="Label3" runat="server" Text="Generate Invoice" Font-Bold="true"></asp:Label>
                            <div class="radio">
                               <asp:RadioButton ID="rdb_invoiceyes" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="12" Text="Yes" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdb_invoiceno" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="12" Text="No"/>
                                &nbsp;</div>
                        </div>
                          </div>
                      </div>
                      
                      
                      <!--/span-->
                  </div>
                  
                   </fieldset>
               
                  </ContentTemplate>
    <Triggers > 
   <asp:PostBackTrigger ControlID="CheckBox1" />
   <asp:PostBackTrigger ControlID="CheckBox2" />
         <asp:PostBackTrigger ControlID="CheckBox3" />
         <asp:PostBackTrigger ControlID="CheckBox4" />
     </Triggers>
    
    
    </asp:UpdatePanel>
    
       <fieldset runat="server" id="Fieldset1">
                   <div class="row-fluid">
                      <div class="span6 bgcolor">

                        
                          <div class="control-group">


                              <div class="col-lg-10">
                                  <asp:Label ID="Label1" runat="server" Text="Collect letter from customer/MOM" Font-Bold="true"></asp:Label>
                            <div class="radio">
                                <asp:RadioButton ID="rdbbypost" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="2" Text="By Courier" 
                                    AutoPostBack="True" oncheckedchanged="rdbbypost_CheckedChanged" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdbinhand" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="2" Text="In hand" 
                                    AutoPostBack="True" oncheckedchanged="rdbinhand_CheckedChanged" />
                                     <asp:RadioButton ID="rdbattach" runat="server" oncheckedchanged="rdbattach_CheckedChanged"
                                    AutoPostBack="true" Font-Size="13px" ForeColor="#333333" GroupName="2" Text="Attach" />
                                &nbsp;</div>

                                
                                    <!--Attach file code cut from here-->
                                
                        </div>
                        
                      
                          </div>
                   

                      </div>
                      <!--/span-->

                      <asp:UpdatePanel runat="server"  >
                      <ContentTemplate>
                      
                     
                         <div id="Div2" class="span6 bgcolor" runat="server">
                          <div class="control-group">
                              <div class="col-lg-10">
                                  <asp:Label ID="Label4" runat="server" Text="Complaint to be closed" Font-Bold="true"></asp:Label>
                            <div class="radio">
                               <asp:RadioButton ID="rdb_closeyes" runat="server" AutoPostBack="true" 
                                    Font-Size="13px" ForeColor="#333333" GroupName="13" Text="Yes" 
                                    oncheckedchanged="rdb_closeyes_CheckedChanged" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdb_closeno" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="13" Text="No" AutoPostBack="true" 
                                    oncheckedchanged="rdb_closeno_CheckedChanged"/>
                                &nbsp;
                                <asp:Label ID="lblmessage" runat="server" ForeColor="Red" Visible = "false" ></asp:Label>
                                </div>

                                <div class="radio" runat="server" id="divnextdate" visible="false">
                                 <asp:Label ID="Label7" runat="server" Text="Next Visit Date" Font-Bold="true"></asp:Label>
                         
                                 <asp:TextBox ID="txtNextDate" Width="150px" runat="server"></asp:TextBox>
                                <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtNextDate" Format="dd/MM/yyyy">
                </cc1:CalendarExtender>
                                &nbsp;
                             
                                </div>
                                
                             
                        </div>
                          </div>
                      </div>

                       </ContentTemplate>    
                        <Triggers >   
                        <asp:PostBackTrigger ControlID = "rdb_closeyes" />
                          <asp:PostBackTrigger ControlID = "rdb_closeno" />


                          </Triggers>
                      </asp:UpdatePanel>
                      
                  </div>
                   <div class="row-fluid">
                      <div class="span6 bgcolor">
                          <div class="control-group">
                              <label class="control-label" for="Complaint ID">
                             Service Charges</label>
                              <div class="controls">
                               <asp:TextBox ID="txt_charges" runat="server"></asp:TextBox>
                                 <cc1:FilteredTextBoxExtender runat="server" ID="fte_txt_charges" TargetControlID="txt_charges" FilterType="Numbers"></cc1:FilteredTextBoxExtender>
                              </div>
                          </div>
                      </div>
                      <!--/span-->
                        <div id="div_quotation" class="span6 bgcolor" runat="server" visible="false">
                          <div class="control-group">
                              <div class="col-lg-10">
                                  <asp:Label ID="Label5" runat="server" Text="Quotation to be send" Font-Bold="true"></asp:Label>
                            <div class="radio">
                               <asp:RadioButton ID="rdbq_yes" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="14" Text="Yes" />
                            </div>
                            <div class="radio">
                                <asp:RadioButton ID="rdbq_no" runat="server"
                                    Font-Size="13px" ForeColor="#333333" GroupName="14" Text="No"/>
                                &nbsp;
                                <asp:Label ID="Label6" runat="server" ForeColor="Red" Visible = "false" ></asp:Label>
                                </div>
                                
                             
                        </div>
                          </div>
                      </div>
                  </div>

           </fieldset>
                  <div class="row-fluid">
                      <asp:Label ID="lblmsg" runat="server" Font-Bold="True" Font-Size="14px" 
                          ForeColor="#FF3300" Text=""></asp:Label>
                      <br />
                      <asp:Button ID="btnfill" runat="server" BorderStyle="None" 
                                CssClass="btn btn-primary" Height="35px" onclick="btnfill_Click" Text="Submit" 
                                ValidationGroup="1" Width="100px" />
                      &nbsp;&nbsp;
                     <asp:Button ID="btnfill0" runat="server" BorderStyle="None" 
                                CssClass="btn btn-primary" Height="35px" PostBackUrl="~/html/Home.aspx" 
                                Text="Close" Width="100px" />
                  </div>
             
<asp:HiddenField ID="hf_subject_emp" runat="server" />
     <asp:HiddenField ID="hf_employeename" runat="server" />
              
     <asp:HiddenField ID="hf_complaintdate" runat="server" />

          </div>
          <!--/span-->
      </div>
      <!--/row-->

      <hr>

           <asp:Button ID="btn_popup1" runat="server" style="display:none;" Text="Popup" />
                <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" 
                    PopupControlID="Panel2"  BehaviorID="enq_quot_popup"
                    TargetControlID="btn_popup1" BackgroundCssClass="modelbackground">
                </cc1:ModalPopupExtender>
                <asp:Panel ID="Panel2" runat="server" CssClass="categorypanel" Width="400px"
                    >
                            <table cellspacing="0" class="style1">
                                <%-- style="width: 74%;"--%>
                 <tr style="background-image:url(header_plain.jpg)">
<td style="height:10%; color:White; font-weight:bold;padding:3px; font-size:larger; font-family:Calibri" align="left">Attach Box</td>
<td style=" color:White; font-weight:bold;padding:3px; font-size:larger" align="right">  
    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="Images/Close.gif" Width="10px" />
<%--<a href = "javascript:void(0)" onclick = "closepopup()"><img src="Images/Close.gif" alt="close" style="border :0px" align="right"/></a>--%>
  </td>
</tr>
                                <tr>
                        <td>
                             <div  id="attachfile" runat="server" >
                             
                                <%-- style="margin-top:-10px;"--%>
                                 
                                     <asp:FileUpload ID="FileUpload2" runat="server" style="margin-top: 0px" Width="250px" Height="25px"/>
                                     <asp:Label ID="lblfiles" runat="server" Text="[Upload only Png,Jpeg,Jpg,Excel,Pdf,Word format file.]" Font-Size="13px" ForeColor="Green"></asp:Label>
              
                                &nbsp;</div>

                        </td>
                        </tr>
                                <tr>
<td style="background-color:White;">
</td>
<td align="right" style="padding-right:15px; background-color:White;">
<%--<asp:ImageButton ID="btnYes" OnClick="btnYes_Click" runat="server" ImageUrl="~/Images/OK1.jpg" Width="100" Height="30"/>--%>
<%--<asp:Button ID="btnYes"  runat="server" Text="Attach" OnClick="btnYes_Click" Width="110" Height="35" CssClass="myButton1" />--%>
<%--<asp:ImageButton ID="btnNo" OnClick="btnNo_Click" runat="server" ImageUrl="Images/btnNo.jpg" />--%>

       <input type="button" id="btnYes" value="Attach" class="myButton1" style="width:108px" /> 
</td>
</tr>
                               </table>
                    </asp:Panel>


    </div>
    
    <%-- </ContentTemplate>
    <Triggers > 
   
  
     </Triggers>
    
    
    </asp:UpdatePanel>--%>
     
    
    
    </form>
</body>
</html>
