<%@ page title="" language="C#" masterpagefile="~/html/Masterpage.master" autoeventwireup="true" inherits="ShowComplaintsReport, App_Web_susspz30" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

  <link href="../CSS/style.css" type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForButton.css" type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForButton1.css" type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForTextBox.css" type="text/css" rel="Stylesheet" />       
    <link href="../CSS/Widthset.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/JScript.js"></script>
       <link href="../CSS/newdesign.css" type="text/css" rel="Stylesheet" />
          

	
<style type="text/css">

		a img{border: none;}
		ol li{list-style: decimal outside;}
		div#container{width: 350px;margin: 0 auto;padding: 1em 0;}
		div.side-by-side{width: 100%;margin-bottom: 1em;}
		div.side-by-side > div{float: left;width: 50%;}
		div.side-by-side > div > em{margin-bottom: 10px;display: block;}
		.clearfix:after{content: "\0020";display: block;height: 0;clear: both;overflow: hidden;visibility: hidden;}
		
	</style>
   <link rel="stylesheet" href="../CSS/chosen.css" />





<style type="text/css">
    
    .modelbackground
        {
        	background-color:Gray;
	        filter:alpha(opacity=70);
	        opacity:0.7;
        }
        .categorypanel
        {
        	background-color:#b3ebf4;
        	border:2px solid black;
        	
        		}
    
    
    
    
#header1{
    width:100%; 
    background: url(header_plain.jpg);
            height:30px;
            margin-top:-10px;
           
        }
#headerContent1{
    margin: 0 auto; width: 960px;
    margin-left:30px;
    color:White;
    
    
   
}
</style>

  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>



   <script type="text/javascript">

       $().ready(function () {
           $("[id*=lnkCustomer_Name_Quotation]").click(function () {
               var fillid = $(this).closest('tr').find("input[id*=hf_enq_quot_Row_id]").val();

               var custname = $(this).closest('tr').find('span[id*="lblName_customer"]').text();
//               var dept = $(this).closest('tr').find('span[id*="lbl_department"]').text();
//               var designation = $(this).closest('tr').find('span[id*="lbl_designation"]').text();
//               var industry = $(this).closest('tr').find('span[id*="lbl_industrytyp"]').text();
//               var vendor = $(this).closest('tr').find('span[id*="lbl_vendorcode"]').text();
//               var timein = $(this).closest('tr').find('span[id*="lbl_timein"]').text();
//               var timeout = $(this).closest('tr').find('span[id*="lbl_timeout"]').text();
//               var remark = $(this).closest('tr').find('span[id*="lbl_remark"]').text();
//               var visitytype = $(this).closest('tr').find('span[id*="lbl_visittype"]').text();

               //               alert(dept);
               //               alert(designation);


               $('#<%=lbl_customer_name_val.ClientID%>').html(custname);
               //               $('#<%=txt_dept.ClientID%>').html(dept);
               //               $('#<%=txt_designation.ClientID%>').html(designation);
               //               $('#<%=TextBox1.ClientID%>').html(industry);
               //               $('#<%=txt_vendorcode.ClientID%>').html(vendor);
               //               $('#<%=txt_timein.ClientID%>').html(timein);
               //               $('#<%=txt_timeout.ClientID%>').html(timeout);
               //               $('#<%=txt_remark.ClientID%>').html(remark);
               //               $('#<%=txt_visit.ClientID%>').html(visitytype);


               bindProductListGrid(fillid);
               bindreportdetails(fillid);

               $find("enq_quot_popup").show();

           });


           $("[id*=btn_popup_close]").click(function () {
               $find("enq_quot_popup").hide();
           });


           $("[id*=ImageButton1]").click(function () {
               $find("enq_quot_popup").hide();
           });



       });




       function bindProductListGrid(fillid) {
           var userid = $('input[id$=hf_user_id]').val();


           $.ajax({
               type: "post",
               url: "ShowComplaintsReport.aspx/bindmachinedetails",
               data: "{enq_quot_id:'" + fillid + "',userid:" + userid + "}",
               contentType: "application/json; charset=utf-8",
               dataType: "json",
               success: function (response) {
                   $("#Regular_quotation_products").empty();
                   var xmlDoc = $.parseXML(response.d);
                   var xml = $(xmlDoc);
                   var customers = xml.find("Machindetails");

                   $.each(customers, function () {

                       var customer = $(this);
                       $("#Regular_quotation_products").append("<tr><td>" + $(this).find("SrNo").text() + "</td><td>" + $(this).find("MachineName").text() + "</td><td>" + $(this).find("MachFault").text() + "</td> <td>" + $(this).find("ElectFaulr").text() + "</td> <td>" + $(this).find("Working").text() + "</td> <td>" + $(this).find("MChrs").text() + "</td> </tr>");

                   });

                   var rowCount1 = $('#tableRegular_quotation_products >tbody >tr').length;
                   if (rowCount1 == 1) {
                       $("#div_Regular_quotation_products").hide();

                   } else {
                       $("#div_Regular_quotation_products").show();
                       
                   }


               },
               failure: function (response11) {
                   alert(response11.d);
               }

           });
       }



       function bindreportdetails(fillid) {
           var userid = $('input[id$=hf_user_id]').val();
         //  alert(fillid);

           $.ajax({
               type: "post",
               url: "ShowComplaintsReport.aspx/bindcomplaintdetails",
               data: "{enq_quot_id:'" + fillid + "',userid:" + userid + "}",
               contentType: "application/json; charset=utf-8",
               dataType: "json",
               success: function (response) {
                  
                   var xmlDoc = $.parseXML(response.d);
                   var xml = $(xmlDoc);
                   var customers = xml.find("reportdetails");

                   $.each(customers, function () {

                       var customer = $(this);
                  
                      
                       var dept = $(this).find("department").text();
                       var designation = $(this).find("designation").text();
                       var industry = $(this).find("industrytype").text();
                       var vendor = $(this).find("vendorcode").text();
                       var timein = $(this).find("timein").text();
                       var timeout = $(this).find("timeout").text();
                       var remark = $(this).find("remark").text();
                       var visitytype = $(this).find("visittype").text();

                      // alert(visitytype);

                       $("[id*=txt_dept]").val(dept);
                       $("[id*=txt_designation]").val(designation);
                       $("[id*=TextBox1]").val(industry);
                       $("[id*=txt_vendorcode]").val(vendor);
                       $("[id*=txt_timein]").val(timein);
                       $("[id*=txt_timeout]").val(timeout);
                       $("[id*=txt_remark]").val(remark);
                       $("[id*=txt_visit]").val(visitytype);
//                                     

                   });

                  


               },
               failure: function (response11) {
                   alert(response11.d);
               }

           });
       }




               </script>

       <script type="text/javascript">

           $().ready(function() {
               var valdata = $("input[id$=hf_load_postback_eq_quot_check]").val();

               if (valdata == "Load") {               
                  
                   $("#div_txt_search").hide();
                   $("#div_product_name").hide();
                   $("#div_model_name").hide();
                   $("#div_Complaint").hide();
                   $("#div_ddl_employee_wise_search").hide();           
                       }
               else {

                   show_controls_search_wise(valdata);
               }

           });
           
           </script>






              <script type="text/javascript">
                  $().ready(function() {

                      $("[id*=ddl_search_value]").change(function() {
                          var searchval = $("[id*=ddl_search_value]").val();
                          var search_text = $("[id*=ddl_search_value]").find("option:selected").text();
                     
                          show_controls_search_wise(searchval);


                      });
                  });


                  function show_controls_search_wise(searchval) {
                      if (searchval == "1") {
                        
                          $("#div_txt_search").show();
                          $("#div_product_name").hide();
                          $("#div_model_name").hide();
                          $("#div_Complaint").hide();
                          $("#div_ddl_employee_wise_search").hide();
                          $("[id$=hf_load_postback_eq_quot_check]").val("1");

                      } else if (searchval == "2") {

                    
                          $("#div_txt_search").hide();
                          $("#div_product_name").show();
                          $("#div_model_name").hide();
                          $("#div_Complaint").hide();
                          $("#div_ddl_employee_wise_search").hide();
                          $("[id$=hf_load_postback_eq_quot_check]").val("2");
                      }
                      else if (searchval == "3") {

                     
                          $("#div_txt_search").hide();
                          $("#div_product_name").show();
                          $("#div_model_name").show();
                          $("#div_Complaint").hide();
                          $("#div_ddl_employee_wise_search").hide();
                          $("[id$=hf_load_postback_eq_quot_check]").val("3");
                      }
                      else if (searchval == "4") {

                   
                          $("#div_txt_search").hide();
                          $("#div_product_name").hide();
                          $("#div_model_name").hide();
                          $("#div_Complaint").show();
                          $("#div_ddl_employee_wise_search").hide();

                          $("[id$=hf_load_postback_eq_quot_check]").val("4");
                      }
                      else if (searchval == "5") {

                      
                          $("#div_txt_search").hide();
                          $("#div_product_name").hide();
                          $("#div_model_name").hide();
                          $("#div_Complaint").hide();
                          $("#div_ddl_employee_wise_search").show();
                          $("[id$=hf_load_postback_eq_quot_check]").val("5");
                      }

                      else {

                          $("#div_search_enq_quot").hide();
                      }
                  
                  }

                                    </script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <table class="Label" width="100%">
     <tr >
            <td align="justify"  colspan="5"  >
                <asp:Label ID="Label23" runat="server" Text="Show Servicing Report" 
                    Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="X-Large"></asp:Label>
                  </td>
      
        </tr>
          </table> 


<div class="box effect1" style="margin-top:-3px;">
    <asp:HiddenField ID="hf_load_postback_eq_quot_check" runat="server" />
    
      <asp:HiddenField ID="hf_serch_value" runat="server" />
      
      <div style="margin-top:8px;">
    <asp:Panel ID="pln_show_Enq_Quo_reoprt"  runat="server"  Width="100%"  >

		 <table style="width:100%;">
			 <tr>
				 <td style="float:left;width:10%;">
				
       
                <asp:RadioButton ID="rb_Complaint_report" runat="server"  Text="Complaint"  CssClass="lb"
                   
                   Checked="true" oncheckedchanged="rb_Complaint_CheckedChanged" AutoPostBack="true" GroupName="a1" />
                  <br />
                  <asp:RadioButton ID="rb_commissioning_reoprt" runat="server" Text="Commissioning"  CssClass="lb"
                  oncheckedchanged="rb_commissioning_CheckedChanged" AutoPostBack="true" GroupName="a1" />
                       <br />
                    <asp:RadioButton ID="rb_AMC_report" runat="server" Text="AMC"  CssClass="lb"
                    oncheckedchanged="rb_AMC_CheckedChanged" AutoPostBack="true"  GroupName="a1"/>
                 <br />
                    <asp:RadioButton ID="rb_warranty_service" runat="server" Text="Warranty Service" CssClass="lb"
                    oncheckedchanged="rb_warranty_service_CheckedChanged" AutoPostBack="true"  GroupName="a1"/>
                <br />
  <asp:CustomValidator id="CustomValidator1111" runat="server" Display="Dynamic" ValidationGroup="1" ErrorMessage="Please Select Type." ClientValidationFunction="CustomValidator1_ClientValidate"></asp:CustomValidator>
 


				
			
				 </td>

			
				 	<td style="width:77%;float:left;">
						 <asp:Panel ID="Panel2"  runat="server"  Width="100%" class="shadow_filters" >
						 <table >
							 <tr>

							

            <td>  



              <asp:Label ID="lbl_month_name_year" runat="server" Text="" Font-Bold="true" Font-Size="14px" Font-Names="Verdana" ForeColor="#cc0000"></asp:Label>
            &nbsp;
        <b class="lb">Select Search Type:</b> 
				

				 <asp:DropDownList ID="ddl_search_value" runat="server"  Font-Bold="true" CssClass="selectbox"
              Height="25px"> 
           <asp:ListItem Value="-Select-">-Select-</asp:ListItem>
           <asp:ListItem Value="1">Customer Name</asp:ListItem>      
           <asp:ListItem Value="2">Product Name</asp:ListItem>
           <asp:ListItem Value="3">Model Name</asp:ListItem>
           <asp:ListItem Value="4">Complaint</asp:ListItem>
            <asp:ListItem Value="5">Employee Name</asp:ListItem>
             
                   </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddl_search_value" InitialValue="-Select-" Display="Dynamic"
              ErrorMessage="Select Type" ValidationGroup="5"> </asp:RequiredFieldValidator>
                   
				  </td> 
				 <td align="left">
				
               <div id="div_Complaint" style="float:left;">
       
           <asp:DropDownList ID="ddl_Complaint" runat="server" AppendDataBoundItems="true" CssClass="selectbox"
        Height="25px"  Width="150px" AutoPostBack="true" 
               onselectedindexchanged="ddl_Complaint_SelectedIndexChanged" >
       </asp:DropDownList>

               </div>
               
                <div id="div_ddl_employee_wise_search"style="float:left;">
       <asp:DropDownList ID="ddl_employee_wise_search" runat="server" AppendDataBoundItems="true" CssClass="selectbox"
        Height="25px"  Width="150px" 
                        onselectedindexchanged="ddl_employee_wise_search_SelectedIndexChanged" AutoPostBack="true">   </asp:DropDownList>
           </div>       
   
            
             <div style="float:left;" id="div_product_name" style="float:left;">
  <asp:DropDownList ID="ddlproduct_name" runat="server" Height="25px"  Width="150px" AppendDataBoundItems="true"  CssClass="selectbox"
  onselectedindexchanged="ddlproduct_name_SelectedIndexChanged" AutoPostBack="true">
             </asp:DropDownList>
                         
             </div>                                
                          
               <div id="div_txt_search" style="float:left;">
                 <%--  <asp:TextBox ID="txt_search" runat="server" 
                Width="181px" Font-Size="12px" ontextchanged="txt_search_TextChanged" AutoPostBack="true"></asp:TextBox>--%>
                

 <div id="container" style="margin:0px;padding:0px;">

   <div class="side-by-side clearfix" style="margin:0px;padding:0px;">



                  <asp:DropDownList ID="ddl_customer_name_list" runat="server" Height="25px"  Width="150px" AppendDataBoundItems="true" 
					  CssClass="chzn-select" onselectedindexchanged="ddl_customer_name_list_SelectedIndexChanged" AutoPostBack="true" ValidationGroup="5">
             </asp:DropDownList>
                         

	    <script src="../Scripts/chosen.jquery.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(".chzn-select").chosen();
			$(".chzn-select-deselect").chosen({ allow_single_deselect: true }); 

		</script>

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

         </td>    
				  <td >

              <div align="left" style="float:left;" id="div_model_name">
                <asp:DropDownList ID="ddl_model_name" runat="server" Height="25px" Width="150px"  CssClass="selectbox"
                      AppendDataBoundItems="true" onselectedindexchanged="ddl_model_name_SelectedIndexChanged" AutoPostBack="true"
                >            
            </asp:DropDownList>
                </div>
             </td>
				<td>	

                 <asp:TextBox ID="txt_from_date_search" runat="server" 
                Width="90px" Font-Size="12px" ontextchanged="txt_from_date_search_TextChanged" AutoPostBack="true">
                 </asp:TextBox>
  <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txt_from_date_search" WatermarkText="From date" WatermarkCssClass="watermarkcss" ></cc1:TextBoxWatermarkExtender>

                 <cc1:CalendarExtender ID="CalendarExtender8" runat="server"
                    Enabled="True" TargetControlID="txt_from_date_search" Format="dd-MM-yyyy">
                </cc1:CalendarExtender>
                 <asp:TextBox ID="txt_to_date_search" runat="server" AutoPostBack="true" 
                Width="90px" Font-Size="12px" 
           ontextchanged="txt_to_date_search_TextChanged"></asp:TextBox>
 <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_to_date_search" WatermarkText="To date" WatermarkCssClass="watermarkcss" ></cc1:TextBoxWatermarkExtender>

                 <cc1:CalendarExtender ID="CalendarExtender9" runat="server"
                    Enabled="True" TargetControlID="txt_to_date_search" Format="dd-MM-yyyy">
                </cc1:CalendarExtender>
        
           
				</td>

			 </tr>
						 </table>
							 </asp:Panel>
				 </td>

				  <td style="float:right;width:11%;" align="right">

					 



					    <div style="width:100%;float:right;" runat="server" id="div_lead_previ_next" >

							<div>
								  <asp:Button ID="btn_exp1" runat="server"  CssClass="empmyButton"  Width="60px"
                     Text="Export" onclick="btn_exp1_Click"/>  
							</div>

   <div  style="margin-top:8px;">
              <asp:Button ID="btnNextWeek" runat="server" CssClass="empmyButton" 
                    Text="Next Month" ValidationGroup="1" Width="80px" 
                   onclick="btnNextWeek_Click" /> 
                   
           </div>
          <div  style="margin-top:8px;">
           <asp:HiddenField ID="hf_from_date" runat="server" />
         <asp:HiddenField ID="hf_todate" runat="server" />
        
        <asp:HiddenField ID="hf_date" runat="server" />
          <asp:HiddenField ID="hf_month_no" runat="server" />
            <asp:HiddenField ID="hf_year_no" runat="server" />
            
            <asp:Button ID="btn_Previous_week" runat="server" CssClass="empmyButton" 
                    Text="Previous Month" ValidationGroup="1" Width="100px" onclick="btn_Previous_week_Click" 
           />
          </div>
        
                                
           </div>



					  </td>




			 </tr>
			 </table>


		
							<div style="float:right;">
								  <asp:Label ID="lbl_msg_for_end" runat="server" Text="" ForeColor="Green"></asp:Label>
							</div>
		






        </asp:Panel>
     </div>

	<div>

		
		 <asp:Label ID="lbl_message" runat="server" Font-Bold="True" Font-Size="13px" 
                    ForeColor="Red"></asp:Label>
                    
	</div>


       
       
       
         <asp:Panel ID="Panel1" runat="server" >
         
         <div id="grd_div" runat="server" align="center" style="float:left; width:1160px;overflow-x:scroll;margin-top:8px; margin-bottom:30px;padding-bottom:30px;">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            GridLines="Both"  AllowPaging="True" AllowSorting="True" PageSize="40"  
                            BackColor="White" BorderColor="#CCCCCC" BorderWidth="1px"  
                    CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black"
                           ShowHeader="true"   OnRowDataBound="GridView1_RowDataBound"
                           onpageindexchanging="GridView1_PageIndexChanging" PagerStyle-CssClass="paging">
                            
                            <Columns>
                                                      
                         
                                <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblCID" runat="server" Text='<%# Eval("fillid")%>' ></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="Complaint Date" >
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lbl_registereddate" runat="server" Width="90px"
                                                Text='<%# Eval("registerdate")%>'></asp:Label> 
                                        
                                          <asp:Label ID="lbl_attendeddate" runat="server" Width="90px"
                                                Text='<%# Eval("attenddate")%>'></asp:Label>        
                                    </ItemTemplate>
                                                                                                 
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Customer Name">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lblName_customer" runat="server" 
                                               Text='<%# Eval("customernm")%>' Width="150px"></asp:Label>
                                   </ItemTemplate>                               

                                </asp:TemplateField> 
                                
                                  <asp:TemplateField HeaderText="Address ">
                                    <ItemTemplate>
                                 
                                            <asp:Label ID="lbl_Addr_ess" runat="server" Width="100%"
                                                Text='<%# Eval("address")%>'></asp:Label>
                                                
                                                 <asp:Label ID="lbl_St_ate" runat="server" Width="100%"
                                                Text='<%# Eval("state")%>'></asp:Label>     
                                    
                                    </ItemTemplate>
                                   
                                     </asp:TemplateField>                          
                             <%--     <asp:TemplateField HeaderText="State" >
                                    <ItemTemplate>                                  
                                            <asp:Label ID="lbl_St_ate" runat="server" Width="100%"
                                                Text='<%# Eval("state")%>'></asp:Label>                                       
                                    </ItemTemplate>                                    
                                </asp:TemplateField>--%>
                                
                                  <asp:TemplateField HeaderText="Employee Name" >
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lbl_EName" runat="server" Width="80px"
                                                Text='<%# Eval("EName")%>'></asp:Label>                                       
                                    </ItemTemplate>
                                                                                                 
                                </asp:TemplateField>
                                
                                 

                               

                                 <asp:TemplateField HeaderText="Product Name" >
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lbl_ProductName" runat="server" Width="100px"
                                                Text='<%# Eval("pname")%>'></asp:Label>

                                                </ItemTemplate>
                                                <ItemStyle Width="100px" />
                                                </asp:TemplateField>

                                  <asp:TemplateField HeaderText="Model Name" >
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lblModel_Name" runat="server" Width="100px"
                                                Text='<%# Eval("modelnm")%>'></asp:Label>
                                       
                                    </ItemTemplate>
                                    <ItemStyle Width="100px" />                               
                                    </asp:TemplateField>

                               
                                
                                    <asp:TemplateField HeaderText="Complaint">
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lblComplaint" runat="server" Width="150px"
                                                Text='<%# Eval("complaintnm")%>'></asp:Label>                                             
                                       
                                    </ItemTemplate>
                                    <ItemStyle Width="150px" />                                                                 
                                    
                                </asp:TemplateField>
                               
                              <%--    <asp:TemplateField HeaderText="Site Problem">
                                    <ItemTemplate>
                                            <asp:Label ID="lbl_Site_problem" runat="server" Width="100%"
                                                Text='<%# Eval("siteproblem")%>'></asp:Label>                                           
                                       </ItemTemplate>
                                    <ItemStyle Width="150px" />                                                                                                        
                                </asp:TemplateField>--%>
                                

                              


                            <%--     <asp:TemplateField HeaderText="Area" >
                                    <ItemTemplate>                                  
                                            <asp:Label ID="lbl_ar_ea" runat="server" Width="100%"
                                                Text='<%# Eval("area")%>'></asp:Label>
                                       
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>--%>

                              
                                
                                   <asp:TemplateField HeaderText="Site Condition" >
                                    <ItemTemplate>                                  
                                            <asp:Label ID="lbl_Site_Condition" runat="server" Width="150px"
                                                Text='<%# Eval("sitecondition")%>'></asp:Label>
                                       
                                    </ItemTemplate>
                                    <ItemStyle Width="150px" />
                                </asp:TemplateField>
                                  


                                 <asp:TemplateField HeaderText="Solution Provided" >
                                    <ItemTemplate>                                  
                                            <asp:Label ID="lbl_Solution_provided" runat="server" Width="150px"
                                                Text='<%# Eval("solution")%>'></asp:Label>
                                       
                                    </ItemTemplate>
                                    <ItemStyle Width="150px" />
                                </asp:TemplateField>                                
                                 <asp:TemplateField HeaderText="Days">
                                    <ItemTemplate>    
                                    <div align="right">                              
                                            <asp:Label ID="CrPEmail" runat="server" Width="100%"
                                                Text='<%# Eval("days")%>'></asp:Label>                                     
                                                </div>
                                                
                                    </ItemTemplate>
                                    <ItemStyle Width="50px" />                                    
                                </asp:TemplateField>
                                
                                                           
                                
                                   <asp:TemplateField HeaderText="Invoice Yes/No">
                                    <ItemTemplate>
                                 
                                            <asp:Label ID="lbl_invoice_yesno" runat="server" Width="100%"
                                                Text='<%# Eval("invoice")%>'></asp:Label>
                                    
                                    </ItemTemplate>
                                     <ItemStyle Width="100px" />
                                </asp:TemplateField>
                                
                               <%--   <asp:TemplateField HeaderText="Next Date">
                                    <ItemTemplate>                                 
                                            <asp:Label ID="llbl_Next_date" runat="server" Width="100%"
                                                Text='<%# Eval("Nextdate")%>'></asp:Label>
                                     </ItemTemplate>
                                     <ItemStyle Width="100px" />                                 
                                   </asp:TemplateField>--%>
                                   
                                     <asp:TemplateField HeaderText="Warranty" >
                                    <ItemTemplate>
                                   
                                            <asp:Label ID="lbl_Warranty" runat="server" Width="100%"
                                                Text='<%# Eval("warranty")%>'></asp:Label>
                                       
                                    </ItemTemplate>
                                    <ItemStyle Width="100px"  />                                                                   
                                </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Collect Letter">
                                    <ItemTemplate>                                  
                                            <asp:Label ID="lbl_Collect_letter" runat="server" Width="100%"
                                                Text='<%# Eval("collectletter")%>'></asp:Label>                                       
                                    </ItemTemplate>                                  
                                </asp:TemplateField>
                                
                                 <asp:TemplateField HeaderText="Quantity" >
                                    <ItemTemplate> 
                                      <div align="right">                                            
                                            <asp:Label ID="lbl_Quantity" runat="server" Width="100%"
                                                Text='<%# Eval("quantity")%>'></asp:Label>
                                       </div>
                                    </ItemTemplate>                                   
                                </asp:TemplateField>                                
                                    <asp:TemplateField HeaderText="Service Charges" >
                                    <ItemTemplate>    
                                      <div align="right">                                         
                                            <asp:Label ID="lbl_service_charges" runat="server" Width="100%"
                                                Text='<%# Eval("charges")%>'></asp:Label>                                       
                                                </div>
                                    </ItemTemplate>                                   
                                </asp:TemplateField>
                                
                                     <asp:TemplateField HeaderText="Attended Date" >
                                    <ItemTemplate>                                   
                                            <asp:Label ID="lbl_attended_date" runat="server" Width="90px"
                                                Text='<%# Eval("attenddate")%>'></asp:Label>                                                                                     
                                    </ItemTemplate>
                                                                                        
                                    
                                </asp:TemplateField>

                                
                            

                                   <asp:TemplateField HeaderText="More Details" >
                                    <ItemTemplate>           
                                  <a id="lnkCustomer_Name_Quotation" style="color:Blue;cursor:pointer;font-size:13px;font-family:Verdana;" >
                                                   More Details</a>
                                                      <asp:HiddenField ID="hf_enq_quot_Row_id" runat="server" Value='<%# Eval("fillid") %>' />
                                                        <asp:HiddenField ID="hf_visittype" runat="server" Value='<%# Eval("visittype") %>' />
                                                     
                                        </ItemTemplate>

                                                         </asp:TemplateField>
                                
                                     <asp:TemplateField Visible="false" >
                                <%--HeaderText="Attachments" --%>
                                     
                                    <ItemTemplate>                                   
                                   <div>                                      
                                                      <asp:HyperLink ID="hyper_filelink" runat="server" ImageUrl="images/link.png" Font-Bold="false"  Width="30px"
                                NavigateUrl='<%# Eval("uploadpath")%>' Target="_blank" Font-Underline="false" ForeColor="Blue" 
                                 style="" Visible="true"  Font-Size="12px"></asp:HyperLink>                             
                                 </div>                                                                       
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>
                                
                              
                                
                               </Columns>
                            
                      <FooterStyle BackColor="White" ForeColor="#000066" />
                  <HeaderStyle BackColor="#006699" ForeColor="White"/>
                <PagerSettings Position="Bottom"/>    
                    <SelectedRowStyle BackColor="#669999" ForeColor="White" Font-Bold="True" />
                  
                        </asp:GridView>
                        
                        <br />
                        
                            
              
                        
              </div> 
              
              
              
               <br />       <br />
          <asp:HiddenField ID="hf_user_id" runat="server"/>
      </asp:Panel>
       
          <asp:Button ID="btn_popup21" runat="server" style="display:none;" Text="Popup" />
                <cc1:ModalPopupExtender ID="model_popup_show_cust_person_info" runat="server" 
                     PopupControlID="pnlCrDetails" BehaviorID="enq_quot_popup"
                    TargetControlID="btn_popup21" BackgroundCssClass="modelbackground">
                </cc1:ModalPopupExtender>
         <asp:Panel ID="pnlCrDetails" runat="server" CssClass="categorypanel" Width="50%" style="margin-left:0px;margin-top:10px;height:400px;overflow:auto;"> 
        
        <table width="100%" style=" width:100%; height:70%" cellpadding="0" cellspacing="0">
<tr class="Label">
<td style="height:8px; color:White; font-weight:bold;padding:3px; font-size:larger; font-family:Calibri" align="left">More Details</td>
<td style=" color:White; font-weight:bold;padding:3px; font-size:larger" align="right">  
   
    <a  id="ImageButton1">
<img  src="../Images/Close.gif" alt="Close" style="border :0px" align="right"/>
</a>

  </td>
</tr>
<tr>
<td colspan="2">


  &nbsp; <asp:Label ID="Label71" runat="server" Text="Customer Name :" Font-Bold="true" Font-Size="14px" Font-Names="Verdana"
            ForeColor="#cc0000" ></asp:Label>
  <asp:Label ID="lbl_customer_name_val" runat="server" Text="" Font-Bold="true" Font-Size="14px" Font-Names="Verdana"
             ></asp:Label>
          
        

  <div runat="server" id="follwup_update_submit">
 
 
     <table width="100%" >
        
        <tr>
        <td></td>
        <td></td>
        <td></td>
         <td></td>
        </tr>
        <tr>
        <td align="right"> <asp:Label ID="Label1" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Vendor Code" ></asp:Label></td>
        <td> <asp:TextBox ID="txt_vendorcode" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox></td>
        <td>       
                 <asp:Label ID="Label3" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Industry Type" ></asp:Label>      </td>
                        <td>  
                        <asp:TextBox ID="TextBox1" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox>     
                       </td>
     
        </tr>
        
         <tr>
        <td align="right"> <asp:Label ID="Label2" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Department" ></asp:Label></td>
        
        <td >
         <asp:TextBox ID="txt_dept" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox>
                       </td>
     <td><asp:Label ID="Label4" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Designation" ></asp:Label></td>
     <td> <asp:TextBox ID="txt_designation" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox></td>
        </tr>

          <tr>
        <td align="right"> <asp:Label ID="Label5" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Time In" ></asp:Label></td>
        
        <td >
         <asp:TextBox ID="txt_timein" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox>
                       </td>
     <td><asp:Label ID="Label6" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Time Out" ></asp:Label></td>
     <td> <asp:TextBox ID="txt_timeout" runat="server"  Enabled="false"
             Width="150px"  ></asp:TextBox></td>
        </tr>

         <tr>
        <td align="right"> <asp:Label ID="Label7" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Visit for" ></asp:Label></td>
        
        <td >
         <asp:TextBox ID="txt_visit" runat="server"  Enabled="false" TextMode="MultiLine" Height="30px"
             Width="147px"  ></asp:TextBox>
                       </td>
     <td><asp:Label ID="Label8" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Width="100px" Text="Remark" ></asp:Label></td>
     <td> <asp:TextBox ID="txt_remark" runat="server"  Enabled="false" TextMode="MultiLine" Height="30px"
             Width="150px"  ></asp:TextBox></td>
        </tr>
         
                <tr>
        <td></td>
        <td></td>
        <td></td>
        </tr>
               
        <tr>
        <td></td>
         <td></td>
          <td>
              <asp:Label ID="lbl_followup_msg" runat="server" Text="" ForeColor="Red" Font-Bold="true"></asp:Label>
          </td> <td></td>
        </tr>
        </table>
      
       <div style="margin-left:5px;margin-right:5px;margin-top:6px;">
       
       <div id="div_enq_quot_product_show">
         <asp:Label ID="lbl_enq_quotation_no_date_heading" runat="server" Text="" Font-Bold="true" Font-Size="14px" Font-Names="Verdana"
            ForeColor="#cc0000"></asp:Label>
            <br />    
            <div id="div_Regular_quotation_products">     
            
             <table id="tableRegular_quotation_products" border='0.5px' style="border-color:Black;" width="100%">
<tr style="background-color:#006080; color:White;"><th>Sr.No.</th><th>Machine Name</th><th>Mechanical Faults</th><th>Electrical Faults</th><th>Machine Working</th><th>Running Hrs</th></tr>
<tbody id="Regular_quotation_products" style="background-color:White;">

</tbody>
</table>
   
        </div>
     
        </div>
        
            <asp:HiddenField ID="hf_quotatio_enquiry_lead_id" runat="server" />
        
             <div style="margin-left:5px;margin-right:5px;">
            <asp:HiddenField ID="HiddenField1" runat="server" />
           &nbsp;&nbsp;&nbsp;  
           
           
            
            </div>
       </div>
       <br />  <br /><br />
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      
                
                 <input type="button" id="btn_popup_close" value="Close" class="empmyButton" style="width:80px" /> 
                        
       <br />
       </div>
       </td></tr></table>

    </asp:Panel> 


    

</div>
     <asp:HiddenField ID="hf_total_row_count" runat="server" />
     <asp:HiddenField ID="hf_selecttype" runat="server"/>
     <asp:HiddenField ID="hf_complaint" runat="server"/>
     <asp:HiddenField ID="hf_commissioning" runat="server"/>
     <asp:HiddenField ID="hf_amc" runat="server"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CP2" Runat="Server">
</asp:Content>


