<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_payment, App_Web_susspz30" enableeventvalidation="false" async="true" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>


  

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
           <link rel="stylesheet" href="../CSS/chosen.css" />
       <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
       <script type="text/javascript" src="../js/JScript.js"></script>
       <script src="../js/JScript_showDiv_Hide.js" type="text/javascript"></script>


      <style type="text/css">
           .shadow_five222 {
            background-color: #FFF0DB;      
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 0px 0px 0px #B1A59A;
            -webkit-box-shadow: 0px 0px 0px #B1A59A;
            -o-box-shadow: 0px 0px 0px #B1A59A;
            -ms-box-shadow: 0px 0px 0px #B1A59A;
            box-shadow: 0px 0px 0px #B1A59A;
           width:65%;
            }
         .shadow_five223 {
            background-color: #FFF0DB;      
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 0px 0px 0px #B1A59A;
            -webkit-box-shadow: 0px 0px 0px #B1A59A;
            -o-box-shadow: 0px 0px 0px #B1A59A;
            -ms-box-shadow: 0px 0px 0px #B1A59A;
            box-shadow: 0px 0px 0px #B1A59A;
           width:100%;
        }
     .modelbackground
        {
        	background-color:Gray;
	        filter:alpha(opacity=70);
	        opacity:0.7;
        }
         .categorypanel
        {
        	background-color:White;
        	border:2px solid black;
        	
        		}  
     .Label
    {

       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#55002b 90%, #55002b);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white ;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:25px;

}
     
        .style1
        {
            height: 6%;
        }
        
            .shadow_five2 {
             background-color: #E1E1E1 ;
             -moz-border-radius: 10px;
             -webkit-border-radius: 10px;
             -o-border-radius: 10px;
             -ms-border-radius: 10px;
             border-radius: 10px;
             -moz-box-shadow: 3px 3px 5px #B1A59A;
             -webkit-box-shadow: 3px 3px 5px #B1A59A;
             -o-box-shadow: 3px 3px 5px #B1A59A;
             -ms-box-shadow: 3px 3px 5px #B1A59A;
             box-shadow: 3px 3px 5px #B1A59A;
             padding-top : auto;
             height:auto;
         }
              .cssPager table
        {
        	margin:7px 0px;
        	color:Blue;
        }   
        .cssPager span
        {        	
        	background-color:#F2F2F2;
        	border:1px solid #999999;
        	padding:1px 4px;
        	color:Blue;
        	font-weight:bold;
        }
        .cssPager td
        {
        	padding:0px 4px;           		
        }
        
                .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	   
        	width:300px;
        	height:20%;
        	background-color:#ffebcc;
        	display:inline;
            z-index:999;
            margin-top:200px;
            align:center;
        	
        
        }
     
    </style>
    
      <style type="text/css">
 .categorypanel
        {
        	background-color:#b3ebf4;
        	/*border:2px solid black;*/
        	
        }
      
  .contactpanelcss
        {
        	width:98%;
        	  margin: 0px;
         background-color: White;
         border: 5px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }
   .font
   {
	font-size:12px;
	font-family:Verdana;
	}

     .style2
     {
         height: 49px;
     }

     .style3
     {
         height: 28px;
     }
     .style4
     {
         height: 25px;
     }
     .style5
     {
         height: 31px;
     }
     .style7
     {
         height: 28px;
         width: 289px;
     }
     .style8
     {
         height: 31px;
         width: 289px;
     }
     .style9
     {
         height: 25px;
         width: 289px;
     }
     .style10
     {
         width: 327px;
     }
     .style11
     {
         width: 103px;
     }
     .style12
     {
         width: 15px;
     }
  </style>
      <style type="text/css">
        .style2
        {
            width: 100%;
        }
         .style34
     {
         width: 117px;
         height: 32px;
     }
     .regular-checkboxgrid1 
    {
	    -webkit-appearance: none;
    	background-color: #fafafa;
    	border: 1px solid #cacece;
    	box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
	    padding: 9px;
	    border-radius: 3px;
	    display: inline-block;
	    position: relative;
	    width: 110px;
	    overflow:auto;
	    height:100px;
        top: 0px;
        left: 0px;
     }
     .contactpanelcss
        {
        	width:65%;
        	margin:0px;
        	background-color:White;
        	border:6px solid ActiveBorder;
        	padding:5px;
        	margin-top:0px;
        	     	   	
        }   
    
         .shadow_five {
        background-color: #FFECCE;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom:10px;
        
    }
     .p1
        {
       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#ff9966 90%, #bfbfbf);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white ;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:35px;
            width:250px;
        }
        .style36
        {
            height: 32px;
        }
         .shadow_five1 {
            background-color: #F2FFC6;
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 3px 3px 5px #B1A59A;
            -webkit-box-shadow: 3px 3px 5px #B1A59A;
            -o-box-shadow: 3px 3px 5px #B1A59A;
            -ms-box-shadow: 3px 3px 5px #B1A59A;
            box-shadow: 3px 3px 5px #B1A59A;
            margin-bottom: 10px;
            width:100%;
        }
         .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	background-color:White;
          
        	width:300px;
        	height:150PX;
        	 background-color:#ffebcc;
        	
        
        }  
          .auto-style2 {
              width: 7px;
          }
          .auto-style3 {
              height: 31px;
              width: 293px;
          }
          .auto-style5 {
              width: 151px;
          }
          .auto-style6 {
              width: 293px;
          }
    </style>

  
  
  
  
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="p12" style="width:240px;" >
      <p style="font-family:Verdana; font-size:14px; margin-top:5px;color:White;font-weight:bold;padding-top:5px;">
      <b style="color:White;">&nbsp;&nbsp;Add Payment</b> 
      </p>
      </div>
     <div  style="margin-left:500px;" >
                   
                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnAddNew" runat="server" CssClass="myButton" 
                       Text="Add" Width="80px" onclick="btnAddNew_Click" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnShowOutside" runat="server" CssClass="myButton" 
                       Text="Show" Width="80px" onclick="btnShowOutside_Click" />
                    
                    <asp:Label ID="lblTest1" runat="server" Font-Names="Verdana" Font-Size="14px" 
                        ForeColor="Red"></asp:Label>
               </div>



                        <asp:Panel ID="pnlAdd" runat="server"  Width="70%"  Visible="false" 
                   > 
                   
           <table width="100%" class="addtabel" style="margin-top:-25px;">

                    
               <tr>
                   
                   <td align="right" class="style8">
                       <asp:Label ID="lblcname" runat="server" CssClass="lb" Font-Names="Verdana" 
                           Font-Size="14px" Text="Client Name" ></asp:Label>
                   </td>
                   <td class="auto-style2"><a style="color:Red;">*</a>
                   </td>
                   <td align="left" class="auto-style3">
					   
 <div id="container" style="margin:0px;padding:0px;">

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

                      <asp:DropDownList ID="ddlCrName" runat="server"  DataTextField="CName" DataValueField="cid"  
                   
                      AppendDataBoundItems="True" Width="200px" AutoPostBack="True" CssClass="selectbox"  onselectedindexchanged="ddlCrName_SelectedIndexChanged" >
                      </asp:DropDownList>

           
                   
					   <asp:Label ID="lblTest2" runat="server" Font-Names="Verdana" Font-Size="14px" 
                           ForeColor="Red"></asp:Label>

	<%--      <script src="../Scripts/chosen.jquery.js" type="text/javascript"></script>
	--%>


                  </div>
		 </div>



                   </td>
                   <td align="left" class="style5">
					       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  Display="Dynamic"  
                           ControlToValidate="ddlCrName" ErrorMessage="Select Name" InitialValue="-Select-" 
                           ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                      

                    <asp:LinkButton ID="lnkNewCust" runat="server" CssClass="myButton" Visible="false"
                   Font-Names="Verdana" Font-Size="12px" PostBackUrl="~/Admin/CustomerMaster.aspx?var=serviceinvoice"
                   Text="Add New Customer" Width="133px"></asp:LinkButton>

                     </td>
               </tr>
        
       
        <tr>
        
            <td align="right" class="style9">
                <asp:Label ID="Label7" runat="server" Font-Names="Verdana" Font-Size="14px" CssClass="lb"
                    Text="Invoice No."></asp:Label>
            </td>
            <td class="auto-style2"> <a style="color:Red;">*</a>
            </td>
            <td align="left" class="auto-style6">
            
               
                <asp:DropDownList ID="ddlpname" runat="server" AutoPostBack="True"  AppendDataBoundItems="True"  CssClass="selectbox"
                    Width="230px"   onselectedindexchanged="ddlpname_SelectedIndexChanged" >
                   <%-- <asp:ListItem Value="0">-Select-</asp:ListItem>--%>
                </asp:DropDownList>

            </td>
            <td class="style38" align="left">
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"  Display="Dynamic" 
                    ControlToValidate="ddlpname" ErrorMessage="Select Invoice Number" InitialValue="-Select-"
                    ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
            </td>
                <td class="style38">
            </td>
        </tr>
               <tr>
             
                   <td align="right" class="style9">
                       <asp:Label ID="Label16" runat="server" CssClass="lb" Font-Names="Verdana" 
                           Font-Size="14px" Text="Invoice Date"></asp:Label>
                   </td>
                   <td class="auto-style2">
                       <a style="color:Red;">*</a>&nbsp;</td>
                   <td align="left" class="auto-style6">
                       <asp:TextBox ID="txtDate" runat="server" Enabled="false" Height="16px" 
                           Width="150px"></asp:TextBox>
                      
                   </td>
                   <td class="style38" align="left">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  Display="Dynamic" 
                           ControlToValidate="txtDate" ErrorMessage="Select Invoice Date" 
                           ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                       &nbsp;</td>
                         <td class="style38">
                       &nbsp;</td>
               </tr>
               <tr>
                 
                   <td align="right" class="style9">
                       <asp:Label ID="Label17" runat="server" CssClass="lb" Font-Names="Verdana" 
                           Font-Size="14px" Text="Invoice Amount"></asp:Label>
                   </td>
                   <td class="auto-style2"> <a style="color:Red;">*</a>&nbsp;
                       </td>
                   <td align="left" class="auto-style6">
                       <asp:TextBox ID="txtpono" runat="server" Height="15px" Width="149px" 
                         ></asp:TextBox>
                   
                       <asp:Label ID="Balance" runat="server" Text="(Balance Payment)"></asp:Label>
                      
                   </td>
                   <td class="style38" align="left">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  Display="Dynamic" 
                           ControlToValidate="txtAmount" ErrorMessage="Pending Amount" 
                           ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                       &nbsp;</td>
                     <td class="style38">
                       &nbsp;</td>
               </tr>
               <tr>
                 
                   <td align="right" class="style9">
                       <asp:Label ID="Label18" runat="server" CssClass="lb" Font-Names="Verdana" 
                           Font-Size="14px" Text="Received Payment"></asp:Label>
                   </td>
                   <td class="auto-style2"> <a style="color:Red;">*</a>
                       &nbsp;</td>
                   <td align="left" class="auto-style6">
                       <asp:TextBox ID="txtAmount" runat="server" Height="16px" Width="150px"></asp:TextBox>
                        <cc1:FilteredTextBoxExtender ID="_FiltAmounteredTextBoxExtender" 
                           runat="server" FilterType="Numbers,Custom" ValidChars="." TargetControlID="txtAmount">
                       </cc1:FilteredTextBoxExtender>
                     
                   </td>
                   <td class="style38" align="left">
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"  Display="Dynamic" 
                           ControlToValidate="txtAmount" ErrorMessage="Enter Received Amount" 
                           ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                       &nbsp;</td>
                     <td class="style38">
                       &nbsp;</td>
               </tr>
     
      
               <tr>
                  
                   <td align="right" class="style9">
                       <asp:Label ID="Label15" runat="server" CssClass="lb" Font-Names="Verdana" 
                           Font-Size="14px" Text="Payment Type"></asp:Label>
                   </td>
                   <td class="auto-style2"> <a style="color:Red;">*</a>
                       &nbsp;</td>
                   <td align="left" class="auto-style6">
                      <%-- <br />
                       <asp:Label ID="lbl_note_msg" runat="server" Text="[This remark is show in respective employee login.]" Font-Names="Verdana" Font-Size="12px" ForeColor="Green"></asp:Label>--%>
                       <asp:DropDownList ID="ddl_payment_terms" runat="server"   CssClass="selectbox"
                           Width="230px">
                           <asp:ListItem Value="-Select-">-Select-</asp:ListItem>
                           <asp:ListItem Value="1">Cheque</asp:ListItem>
                           <asp:ListItem Value="2">Cash delivery</asp:ListItem>
                           <asp:ListItem Value="3">Demand Draft</asp:ListItem>
                           <asp:ListItem Value="4">RTGS</asp:ListItem>
                         
                       </asp:DropDownList>
                         </td>
                   <td align="left">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  Display="Dynamic" 
                           ControlToValidate="ddl_payment_terms" ErrorMessage="Select Payment Type" 
                           InitialValue="-Select-" ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                
                       &nbsp;</td>
                    <td class="style41">
                       &nbsp;</td>
               </tr>
               <tr>
          
               <td class="style12" align="right">
                   <asp:Label ID="Label19" runat="server" CssClass="lb" Font-Names="Verdana" 
                       Font-Size="14px" Text="Bank Details"></asp:Label>
                   </td>
               <td class="auto-style2"><a style="color:Red;">*</a>
                       &nbsp;</td>
               <td class="auto-style6" align="left">
                   <asp:TextBox ID="TextBox1" runat="server" Width="150px" Enabled="true"
                      ></asp:TextBox>
                 
                   </td>
                   <td align="left">
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"  Display="Dynamic" 
                       ControlToValidate="TextBox1" ErrorMessage="Fill Bank Details " 
                       ValidationGroup="1" ForeColor="Red" ></asp:RequiredFieldValidator>
                   </td>
                    <td class="style41">
                       &nbsp;</td>

               </tr>
      
               <caption>
                   &nbsp;</caption>
               <tr>
                   
                
                   <td align="right" class="style9">
                  
                   </td>
                   <td class="auto-style2">
                   </td>
                   <td align="left" class="auto-style6">
                       <asp:Button ID="btnSubmit" runat="server" CssClass="myButton" 
                        Text="Submit" ValidationGroup="1" Width="80px" onclick="btnSubmit_Click" />
                       <br />
                       <br />
                       <b><a style="color:Red;  padding-right:20px;">* Indicates Compulsory Fields</a></b>
                       <%-- <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                           DynamicLayout="true">
                          <ProgressTemplate>
                              <div>
                                  <img id="Img1" alt="Loading..." src="../images/Regloader.gif" runat="server" />
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>--%>
                       <br />
                       <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                           ForeColor="Red"></asp:Label>
                   </td>
                   <td class="style65">
                   </td>
                      <td class="style65">
                       &nbsp;</td>
                   
               </tr>
        
        
        </table>
       
 </asp:Panel>

        
                        <asp:Panel ID="pnladminedit" runat="server" Visible="false" Width="100%" >
                       
                     
       
       <div align="left" style="Width:100%;">
               <div align="left" style="Width:85%;float:left;">
                   </div>
           </div>
                              <br /> <br />
       
         <div style="width:100%;height:auto; overflow:auto;" align="center" >
         
         
                     
<%--  <asp:Label ID="Label24" runat="server" Text="Invoices List" Font-Bold="True" Font-Names="Verdana" 
                    Font-Size="23px" ForeColor="#6600FF" ></asp:Label> --%>
     
                  <asp:Label ID="lbl_delete_msg" runat="server" Text="" Font-Bold="true" ForeColor="Red" Font-Names="Verdana" Font-Size="12px"></asp:Label>
             
             
               <asp:GridView ID="GridView2" runat="server" AllowPaging="true" 
                   AutoGenerateColumns="False" BorderColor="Tan" 
                   BorderWidth="1px" CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" 
                  ForeColor="#333333" GridLines="Both" 
                     onrowcancelingedit="GridView2_RowCancelingEdit" onrowediting="GridView2_RowEditing" onrowupdating="GridView2_RowUpdating" 
                  PageSize="50" Width="80%"
                      OnPageIndexChanging="GridView2_PageIndexChanging"
                   >
                    <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                   <Columns>
                       <asp:TemplateField Visible="false">
                           <ItemTemplate>
                               <center>
                                   <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID")%>' Width="50px"></asp:Label>
                               </center>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Invoice Number">
                           <ItemTemplate>
                               <asp:Label ID="lblInvoice_No0" runat="server" CssClass="font" ReadOnly="true" 
                                   Text='<%# Eval("Invoice_No")%>' Width="100%"></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Invoice Date">
                           <ItemTemplate>
                               <asp:Label ID="lblInvoice_date0" runat="server" CssClass="font" ReadOnly="true" 
                                   Text='<%# Eval("invoice_date_var")%>' Width="90px"></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                    
                       <asp:TemplateField HeaderText="Customer Name">
                           <ItemTemplate>
                               <asp:Label ID="lblCrName0" runat="server" CssClass="font" ReadOnly="true" 
                                   Text='<%# Eval("CrName")%>' Width="100%"></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="State">
                           <ItemTemplate>
                               <asp:Label ID="lblCrCity0" runat="server" CssClass="font" ReadOnly="true" 
                                   Text='<%# Eval("Crstate")%>' Width="100%"></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Payment Terms">
                           <ItemTemplate>
                               <asp:Label ID="lbl_payment_terms" runat="server" 
                                   Text='<% # Eval("payment_terms") %>'></asp:Label>
                           </ItemTemplate>
                       </asp:TemplateField>
                       
                          <asp:TemplateField HeaderText="Amount">
                           <ItemTemplate>
                               <div align="right">
                                   <asp:Label ID="lblAmount0" runat="server" Text='<%# Eval("Amount")%>' 
                                       Width="100%"></asp:Label>
                               </div>
                           </ItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Recived Payment">
                           <ItemTemplate>
                               <asp:Label ID="lblpay" runat="server" CssClass="font" ReadOnly="true" 
                                   Text='<%# Eval("Received_Payment")%>' Width="100%"></asp:Label>
                           </ItemTemplate>
                           <EditItemTemplate>
                               <asp:TextBox ID="ReceiveP" runat="server" Text='<%# Eval("Received_Payment")%>' 
                                   Width="70px"></asp:TextBox>
                           </EditItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Payment Type">
                           <ItemTemplate>
                               <asp:Label ID="lbl_payment_type" runat="server" 
                                   Text='<% # Eval("Payment_Type") %>'></asp:Label>
                           </ItemTemplate>
                           <EditItemTemplate>
                               <asp:TextBox ID="PType" runat="server" Text='<%# Eval("Payment_Type")%>' 
                                   Width="70px"></asp:TextBox>
                           </EditItemTemplate>
                       </asp:TemplateField>
                       <asp:TemplateField HeaderText="Bank Details">
                           <ItemTemplate>
                               <asp:Label ID="lbl_bank" runat="server" Text='<% # Eval("Bank_Detail") %>'></asp:Label>
                           </ItemTemplate>
                           <EditItemTemplate>
                               <asp:TextBox ID="bank" runat="server" Text='<%# Eval("Bank_Detail")%>' 
                                   Width="70px"></asp:TextBox>
                           </EditItemTemplate>
                       </asp:TemplateField>


                       <asp:TemplateField>
                               
                           <ItemTemplate>
                                
                                 
                                                   <div id="div_edit" runat="server">
                                                      
           <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit" Text="Edit" Font-Underline="false" ></asp:LinkButton>
    
           </div>
                                                    
                                                    <div>
                                                    <asp:LinkButton ID="lnkRemove" runat="server" Font-Underline="false"
                                       CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" 
                                       OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                                    </div>
                                                   
                                                   

                                         


                                    
                              
                           </ItemTemplate>
                             <EditItemTemplate>
          <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="true"  BackColor="Transparent" ForeColor="Brown" CommandName="Update"   Font-Underline="false" Text="Update" ValidationGroup="up11"></asp:LinkButton><br />
        <asp:LinkButton ID="lnkcancel" runat="server" CausesValidation="true"  BackColor="Transparent" ForeColor="Brown" CommandName="Cancel"  Font-Underline="false" Text="Cancel"></asp:LinkButton>
        </EditItemTemplate>
                       </asp:TemplateField>
                     <%--  <asp:CommandField ShowEditButton="true" ValidationGroup="up1" />--%>
                       <%--    <asp:CommandField ShowEditButton="true"/>--%>
                   </Columns>
                  
                 <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="cssPager" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
               </asp:GridView>
               
         
         
          <asp:HiddenField ID="HiddenField1" runat="server" />
     <asp:HiddenField ID="HiddenField2" runat="server" />
        <%--   <asp:Label ID="Label6" runat="server" Text="Debtors List" Font-Bold="True" Font-Names="Verdana" 
                    Font-Size="23px" ForeColor="#6600FF"></asp:Label><br /><br />--%>
                    <asp:HiddenField ID="hf_month_no_quotation" runat="server" />
             <asp:HiddenField ID="hf_value_edit" runat="server" />
             <asp:HiddenField ID="hf_record_found_count" runat="server" />
             <asp:HiddenField ID="hf_from_date" runat="server" />
             <asp:HiddenField ID="hf_search_click" runat="server" />
             <asp:HiddenField ID="hf_todate" runat="server" />
             <asp:HiddenField ID="hf_from_date_enquiry" 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:HiddenField ID="hf_todate_enquiry" runat="server" />
             <asp:HiddenField ID="hf_date_enquiry" runat="server" />
             <asp:HiddenField ID="hf_month_no_enquiry" runat="server" />
             <asp:HiddenField ID="hf_year_no_enquiry" runat="server" />
             <asp:HiddenField ID="hf_year_no_Quotation" runat="server" />
             <asp:HiddenField ID="hf_from_date_quotation" runat="server" />
             <asp:HiddenField ID="hf_todate_quotation" runat="server" />
             <asp:HiddenField ID="hf_enq_quo_records_count" runat="server" />
                 <asp:HiddenField ID="hf_search_val" runat="server" />
                        <br />

         </div>
        </asp:Panel>
                      

                                    
        
        <asp:Button ID="btn_leave_addvisit" runat="server" style="display:none" />
<cc1:modalpopupextender ID="ModalPopupExtender_delete_close" runat="server" 
          TargetControlID="btn_leave_addvisit" PopupControlID="pnl_leave_addvisit"
 BackgroundCssClass="modelbackground">
</cc1:modalpopupextender>

<asp:Panel ID="pnl_leave_addvisit" runat="server" BackColor="White" Height="160px" Width="500px" style="display:none" CssClass="categorypanel">
<table width="100%" style="border:Solid 2px #D46900; width:100%; height:100%" cellpadding="0" cellspacing="0">
<tr style="background-image:url(../Images/header.gif)">
<td style="height:10%; color:White; font-weight:bold;padding:3px; font-size:larger; font-family:Calibri" align="left">Confirm Box</td>
<td style=" color:White; font-weight:bold;padding:3px; font-size:larger" align="right">  
<%--<a href = "javascript:void(0)" onclick = "closepopup()"><img src="../Images/Close.gif" alt="Close" style="border :0px" align="right"/></a>
--%> 
    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="../Images/Close.gif" BackColor="#D46900"  Width="20px"  />
 </td>
</tr>
<tr>
<td colspan="2" align="center" style="padding:5px; font-family:Calibri"> 
<asp:Label ID="lbl_no_tour_msg" runat="server" ForeColor="Red" Font-Bold="true" Text="Do you want close this Invoice?"/>
</td>
</tr>
<tr style="background-color:White;">
<td align="right"  style="background-color:White;">
<%--Enter Reason:--%>
</td>
<td  style="background-color:White;">
    <%-- <asp:HiddenField ID="HiddenField_enq_id" runat="server" />
    <asp:HiddenField ID="HiddenField_close" runat="server" />
    <asp:HiddenField ID="hf_enq_or_quo" runat="server" />
    
   <asp:DropDownList ID="ddl_delete_close_reason" runat="server" AppendDataBoundItems="true" DataTextField="status_desc" DataValueField="status_id">
    </asp:DropDownList>

    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddl_delete_close_reason" InitialValue="-Select-" ErrorMessage="select reason." ValidationGroup="s" ></asp:RequiredFieldValidator>
    --%>
    
    <asp:HiddenField ID="HiddenField_close_PI" runat="server" />
    </td></tr><tr>
<td align="right" style="padding-right:15px; background-color:White;" >
<asp:Button ID="btn_yes_delete_close"  runat="server" Text="Yes" Width="70" 
        Height="35" CssClass="myButton" ValidationGroup="s" onclick="btn_yes_delete_close_Click"  />   
</td>
<td align="center" style="padding-right:15px; background-color:White;" >

       
        
<asp:Button ID="btn_no_delete_close"  runat="server" Text="No" Width="70" 
        Height="35" CssClass="myButton"   />

             
 

</td>
</tr>
<tr>
<td>

</td>
<td>
&nbsp;&nbsp;
</td>
</tr>

</table>

</asp:Panel>
        
                 
          <asp:HiddenField ID="hf_subject_emp" runat="server" />
     <asp:HiddenField ID="hf_employeename" runat="server" />

                              
       
    </asp:Content>

