
<%@ page language="C#" autoeventwireup="true" masterpagefile="~/html/MasterPage.master" inherits="html_closedinvoice, 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" />
   
  <script type="text/javascript" src="../js/JScript.js"></script>

     <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
 <style type="text/css">
      
     .style2
     {
         width: 22px;
     }
     .style3
     {
     }
     .style4
     {
         height: 9px;
     }
     .style5
     {
         height: 9px;
         width: 282px;
     }
     .style6
     {
         width: 282px;
     }
     .style7
     {
         height: 9px;
         width: 22px;
     }
     .style8
     {
         width: 280px;
     }
     .style9
     {
         width: 20px;
     }
     .style10
     {
     }
     .style11
     {
         width: 24px;
     }
     .style12
     {
         height: 22px;
     }
     .style13
     {
         height: 22px;
     }
     .style14
     {
         width: 20px;
         height: 22px;
     }
      .contactpanelcss1
        {
         width: 98%;
         margin: 0px;
         background-color: White;
          border:5px solid Orange;
         padding: 0px;
         margin-top: 0px;
     }
      .contactpanelcss
        {
        	width:100%;
        	  margin: 0px;
         background-color: White;
         border: 5px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }
         .categorypanel
        {
        	background-color:#FFF0DB;
        	border:2px solid black;
        		} 

   .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;
        	
        
        }  

     </style>
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" 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_enq_quo_records_count" runat="server" />
    <asp:Panel ID="Panel1" runat="server" >  <%--BorderStyle="Groove"--%>
   <table width="100%">
    <tr>
            <td align="justify" valign="middle">
                <asp:Label ID="Label5" runat="server" Text="Closed Invoices" CssClass="p12" 
                    Height="23px" Width="50%" ForeColor="White" Font-Bold="True" 
                    Font-Size="18px"></asp:Label>
             </td>
        </tr>

       
      
       
     </table>
     
     </asp:Panel>

    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
     <div style="width:100%;height:auto; overflow:auto;" align="center" >
         <div align="right" style="margin-right:200px;">
             <asp:Label ID="lbl_delete_msg" runat="server" Text="" Font-Bold="true" ForeColor="Red" Font-Names="Verdana" Font-Size="12px"></asp:Label>
         </div>
          <%-- <asp:Label ID="Label6" runat="server" Text="Debtors List" Font-Bold="True" Font-Names="Verdana" 
                    Font-Size="23px" ForeColor="#6600FF"></asp:Label>--%>
                
                       <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                           BorderColor="Tan" BorderWidth="1px" 
                           CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="#333333"
                           GridLines="Both" Width="90%" AllowPaging="true" 
                           PageSize="20" 
                           onpageindexchanging="GridView3_PageIndexChanging" 
                           
                    
                      
                       >
                               <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                           <Columns>
                               <asp:TemplateField Visible="false">
                                   <ItemTemplate>
                                       <center>
                                           <asp:Label ID="lblRowid01" runat="server" Text='<%# Eval("Rowid")%>' 
                                               Width="5%"></asp:Label>
                                       </center>
                                   </ItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="Invoice Number" >
                                   <ItemTemplate>
                                     <%--      <asp:Label ID="lblcid1" runat="server" Text='<%# Eval("cid")%>' Visible="false"></asp:Label>--%>
                                       <asp:Label ID="lblInvoice_No01" runat="server" CssClass="font"  
                                           ReadOnly="true" Text='<%# Eval("Invoice_No")%>' Width="50%"></asp:Label>
                                   </ItemTemplate>
                                 <EditItemTemplate>
                                    <asp:Label ID="lblcid" runat="server" Text='<%# Eval("cid")%>' Visible="false"></asp:Label>
                                     <asp:TextBox ID="txtinvoice12" runat="server" Width="90%" Text='<%# Eval("Invoice_No")%>'></asp:TextBox>
                                     <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtinvoice12" 
                                     ErrorMessage="Enter Invoice Number" ValidationGroup="up1" ForeColor="Red" ></asp:RequiredFieldValidator>
                                 </EditItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="Invoice Date">
                                   <ItemTemplate>
                                       <asp:Label ID="lblInvoice_date01" 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="lblCrName01" runat="server" CssClass="font"  
                                           ReadOnly="true" Text='<%# Eval("CrName")%>' Width="100%"></asp:Label>
                                    
                                   </ItemTemplate>
                                  <EditItemTemplate>
                                <%--   <asp:DropDownList ID="ddlcname" runat="server" Width="90%" AppendDataBoundItems="true">
                                       </asp:DropDownList>--%>
                                      <asp:TextBox ID="txtcname" runat="server" Width="90%" Text='<%# Eval("CrName")%>'></asp:TextBox>
                                  </EditItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="State">
                                   <ItemTemplate>
                                       <asp:Label ID="lblCrCity01" runat="server" CssClass="font"  
                                           ReadOnly="true" Text='<%# Eval("Crstate")%>' Width="100%"></asp:Label>
                                   
                                   </ItemTemplate>
                                   <EditItemTemplate>
                                     <asp:Label ID="lblCrCity01111" runat="server" CssClass="font"  
                                           ReadOnly="true" Text='<%# Eval("Crstate")%>' Width="100%"></asp:Label>
                                     <%--  <asp:DropDownList ID="ddlstate" runat="server" Width="90%" AppendDataBoundItems="true">
                                       </asp:DropDownList>--%>
                                   </EditItemTemplate>
                               </asp:TemplateField>
                     
                               
                                <asp:TemplateField HeaderText="Payment due date">
                               <ItemTemplate>
                               <asp:Label ID="lbl_payment_terms222" 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>
                                  <EditItemTemplate>
                                  <asp:TextBox ID="txtamount1" runat="server"  
                                           Text='<%# Eval("Amount")%>' Width="100px"></asp:TextBox>
                                  </EditItemTemplate>
                               </asp:TemplateField>
                                     
                        <asp:TemplateField HeaderText="Balance">
                           <ItemTemplate>
                               <asp:Label ID="lblbal" runat="server" CssClass="font" ReadOnly="true" 
                                  Text='<%# Eval("Balance")%>' Width="100%"></asp:Label>
                           </ItemTemplate>
                          
                       </asp:TemplateField>
                        <asp:TemplateField HeaderText="Employee Name">
                                   <ItemTemplate>
                                 <asp:Label ID="lblinvoiceRowid" runat="server" Text='<%# Eval("Rowid")%>' 
                                               Width="5%" Visible="false"></asp:Label>
                                       <asp:Label ID="lblEmpname" runat="server"  
                                           Text='<%# Eval("EmpName")%>' Width="100%"></asp:Label>
                                  
                                  
                                   </ItemTemplate>
                                  <EditItemTemplate>
                                  
                                   <asp:CheckBoxList ID="ddl_enquiry_employee_update" runat="server" CssClass="regular-checkboxnew">
                    
                                   </asp:CheckBoxList> 
                                  </EditItemTemplate>
                               </asp:TemplateField>
                               <asp:TemplateField HeaderText="Reason">
                               <ItemTemplate>
                                 <asp:Label ID="lblreason" runat="server" Text='<%# Eval("Reason")%>' 
                                               Width="100%"></asp:Label>
                                      <%-- <asp:Label ID="lblEmpname" runat="server"  
                                           Text='<%# Eval("EmpName")%>' Width="100%"></asp:Label>--%>
                                  
                                  
                                   </ItemTemplate>
                               </asp:TemplateField>
                             
                            <%--
                                    <asp:TemplateField>
        <ItemTemplate>
      --%>
      
<%--        <asp:HyperLink Text="Update" Font-Size="12px"  runat="server" ID="hl_show_links_leads"  style="cursor:pointer; color:Blue;"></asp:HyperLink>
--%>                                                                          
            <%--                                    <cc1:CollapsiblePanelExtender  ID="collextend_leads"
                                                    runat="server"
                                                    CollapseControlID="hl_show_links_leads"
                                                    Collapsed="true"
                                                    ExpandControlID="hl_show_links_leads" ExpandDirection="Vertical"
                                                    TargetControlID="pnlSubCategories_leads">                                                          
                                                            </cc1:CollapsiblePanelExtender>
                                                            
                                                              <asp:Panel ID="pnlSubCategories_leads" runat="server" CssClass="cpHeader">
          <div style="padding:0px 0px 0px 0px;margin:5px 0px 0px 5px;" >
 <asp:LinkButton ID="lnkRemark" runat="server" Text="Add Remark" CommandArgument='<%#Eval("Invoice_No")%>' OnClick="AddRemark" Font-Underline="false"></asp:LinkButton>
          
                <br /><br />
              
  <asp:LinkButton ID="lnkreminder" runat="server"  Text="Set Reminder"   CommandArgument='<%# Eval("Rowid") %>' 
               Font-Underline="false" OnClick="SetReminder11" ></asp:LinkButton>
                <br /><br />
                                                   
                                                       
                                                    
                        <asp:LinkButton ID="lnkhistory" runat="server"  
                Text="Show Reminder History"  Font-Underline="false" OnClick="lnkhistory" CommandArgument='<%# Eval("Rowid") %>'></asp:LinkButton>
                                                       <br /> --%>  
                                                       
                                                       <%-- <asp:LinkButton ID="lnkCustomer_Name_enquiry" runat="server" 
                                                CommandArgument='<%# Eval("Rowid") %>' CommandName="Enquiry"
                                                Font-Size="11pt" OnClick="lnkCustomer_Name_enquiry_Click" Font-Underline="false"
                                                Text="More Details" Width="100%"></asp:LinkButton>--%>
                                               <%--  <br />--%>
                                            <%-- <asp:LinkButton ID="lnk_convert_enquiry_to_quotation" runat="server"  
                Text="Convert To Quotation" onclick="lnk_convert_enquiry_to_quotation_Click" Font-Underline="false" CommandArgument='<%# Eval("Rowid") %>'
                 OnClientClick="return confirm('Are you sure to convert enquiry to quotation? ')"  ></asp:LinkButton>  --%>                                                   
                                                      
                                                       
<%--
                                                </div>
                
                
                </asp:Panel>
                </ItemTemplate>
              
                <EditItemTemplate>
        <asp:LinkButton ID="lnkUpdate1" runat="server" CausesValidation="true"  BackColor="Transparent" ForeColor="Brown" CommandName="Update"  Text="Update" ValidationGroup="upe1"></asp:LinkButton><br />
        <asp:LinkButton ID="lnkcancel1" runat="server" CausesValidation="true"  BackColor="Transparent" ForeColor="Brown" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
        </EditItemTemplate>
        </asp:TemplateField>
                              
                               <asp:TemplateField>
                                    <ItemTemplate>
                                        <center>
                                            <asp:LinkButton ID="lnkRemove" runat="server" OnClientClick="return confirm('Do you want to delete?')"
                                                CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" Text="Delete">
                                        </asp:LinkButton>
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowEditButton="true" ValidationGroup="up1"/>--%>
                          <%-- <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkedit" runat="server" 
                                            CommandArgument='<%# Eval("Rowid")%>' OnClick="EditCustomer" 
                                             Text="Edit">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                            
                           </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="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="HiddenField1" runat="server" />
             <asp:HiddenField ID="HiddenField2" runat="server" />
             <asp:HiddenField ID="HiddenField3" runat="server" />
             <asp:HiddenField ID="HiddenField4" runat="server" />
             <asp:HiddenField ID="HiddenField5" runat="server" />
             <asp:HiddenField ID="HiddenField6" runat="server" />
             <asp:HiddenField ID="HiddenField7" runat="server" />
             <asp:HiddenField ID="HiddenField8" 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="HiddenField9" runat="server" />
                <asp:HiddenField ID="hf_search_val" runat="server" />
                       
                       
             </div>

    </asp:Content>