<%@ page language="C#" autoeventwireup="true" masterpagefile="~/html/MasterPage.master" inherits="html_ShowPending, App_Web_fz5gj3qy" %>
<%@ 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="Show Pending" CssClass="p12" 
                    Height="23px" Width="50%" ForeColor="White" Font-Bold="True" 
                    Font-Size="18px"></asp:Label>
             </td>
        </tr>

       
      
       
     </table>
     
     </asp:Panel>
   <div style="width: 100%; height: auto; overflow: auto; " align="center">
                            <asp:Label ID="lblInsertUpdate" runat="server" Font-Names="Verdana"
                                Font-Size="14px" ForeColor="Red"></asp:Label>
                            <br />
       <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:GridView ID="GridView3"  runat="server" AutoGenerateColumns="false"  AllowPaging="true" 
                            CellPadding="4"  ForeColor="#333333" GridLines="Both" Font-Names="Verdana" Font-Size="12px" 
                                    PageSize="50"
                                    OnPageIndexChanging="GridView3_PageIndexChanging"
                                    OnRowDataBound="GridView3_RowDataBound"
                                    OnRowCancelingEdit="GridView3_RowCancelingEdit"
                                    OnRowEditing="GridView3_RowEditing" OnRowUpdating="GridView3_RowUpdating">
                                  
                        <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="80px"></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" Display="Dynamic" 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" CssClass="selectbox">
                                                </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:DropDownList ID="ddlstate" runat="server" Width="90%" AppendDataBoundItems="true" CssClass="selectbox">
                                                </asp:DropDownList>
                                            </EditItemTemplate>
                                        </asp:TemplateField>



                                        <asp:TemplateField HeaderText="Payment due Date">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_payment_terms222" runat="server" Text='<% # Eval("payment_terms") %>' Width="100px"></asp:Label>
                                            </ItemTemplate>

                                            <FooterTemplate>
                                                <asp:Label ID="lbl_t_ot_al_in_voi_ce_va_lue" runat="server" Text="Total Amount" Width="100%" Font-Bold="true" ForeColor="Green"></asp:Label>
                                            </FooterTemplate>

                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Amount">
                                            <ItemTemplate>
                                                <div align="right">
                                                    <asp:Label ID="lblAmount01" runat="server"
                                                        Text='<%# Eval("Amount")%>' Width="100%"></asp:Label>
                                                </div>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txtamount12" runat="server" Text='<%# Eval("Amount")%>' Width="90%"></asp:TextBox>

                                                <asp:RequiredFieldValidator ID="RequiredFieldValidatortxtamount12" runat="server" Display="Dynamic" ControlToValidate="txtamount12" ErrorMessage="Enter Amount" ValidationGroup="up1" ForeColor="Red"></asp:RequiredFieldValidator>

                                                <cc1:FilteredTextBoxExtender ID="txtamount125555" runat="server" FilterType="Numbers" TargetControlID="txtamount12"></cc1:FilteredTextBoxExtender>
                                            </EditItemTemplate>

                                            <FooterTemplate>
                                                <asp:Label ID="lbl_total_invoice_value" runat="server" Text="" Width="100%" Font-Bold="true"></asp:Label>
                                            </FooterTemplate>

                                        </asp:TemplateField>




                                        <asp:TemplateField HeaderText="Advance Received" HeaderStyle-HorizontalAlign="Right">
                                            <ItemTemplate>

                                                <div align="right">
                                                    <asp:Label ID="lblInvoice_Advance_Received" runat="server" CssClass="font" ReadOnly="true"
                                                        align="left" Text='<%# Eval("Invoice_Advance_Received")%>' Width="50px"></asp:Label>
                                                </div>

                                            </ItemTemplate>
                                        </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="Remark">
                                            <ItemTemplate>
                                                <asp:Label ID="lblRemarks01" runat="server"
                                                    Text='<%# Eval("Remarkbyadmin")%>' Width="100%"></asp:Label>

                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="txtremark11" runat="server" Text='<%# Eval("Remarkbyadmin")%>' Width="90%"></asp:TextBox>
                                            </EditItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="Employee Name">
                                            <ItemTemplate>
                                                <asp:Label ID="lblEmpname" runat="server"
                                                    Text='<%# Eval("EmpName")%>' Width="100%"></asp:Label>
                                                <div style="float: right; width: 19px; vertical-align: middle; margin-right: 10px;" class="lead_mode_details">

                                                    <a id="Added_lnk_PIInvoice_fo_llo_wup_deta_ils" title="Follow up count" style="cursor: pointer; font-family: Verdana; color: black; font-size: 12px;">
                                                        <%# Eval("followup_count") %></a>

                                                </div>

                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                <asp:Label ID="lblinvoiceRowid" runat="server" Text='<%# Eval("Rowid")%>'
                                                    Width="5%" Visible="false"></asp:Label>
                                                <asp:CheckBoxList ID="ddl_enquiry_employee_update" runat="server" CssClass="regular-checkboxnew" ForeColor="Black">
                                                </asp:CheckBoxList>
                                            </EditItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField>
                                            

                                            <ItemTemplate>



                                                            <asp:HiddenField ID="hf_invoice_rowid" runat="server" Value='<%# Eval("Rowid") %>' />

                                                         
                                          <%--                     <asp:LinkButton ID="lnkCustomer_Name_enquiry" runat="server" 
                                                CommandArgument='<%# Eval("Rowid") %>' CommandName="Select" 
                                              OnClick="lnkCustomer_Name_Click" Font-Underline="false"
                                                Text="More Items" Width="100%"></asp:LinkButton>
                                            --%>

                                                       
                                                      <%--  <div>
                                                            <asp:LinkButton ID="lnk_assign" runat="server" Text="Reassign" CommandArgument='<%#Eval("Rowid")%>' OnClick="Assign_emp" Font-Underline="false"></asp:LinkButton>
                                                        </div>--%>

                                                        <div>

                                                            <asp:LinkButton ID="lnkEdit1" runat="server" CausesValidation="false" CommandName="Edit" Text="Edit" Font-Underline="false"></asp:LinkButton>
                                                        </div>
                                                        <div>
                                                            <asp:LinkButton ID="Linkclosedebtors" runat="server"
                                                                Text="Close" OnClick="lnkclose_Click" Font-Underline="false" CommandArgument='<%# Eval("Rowid") %>'></asp:LinkButton>

                                                        </div>




                                                    </div>


                                              

                                            </ItemTemplate>

                                            <EditItemTemplate>



                                                <asp:LinkButton ID="lnkUpdate1" runat="server" CausesValidation="true" BackColor="Transparent" ForeColor="Brown" CommandName="Update" Text="Update" ValidationGroup="up1" Font-Underline="false"></asp:LinkButton><br />
                                                <asp:LinkButton ID="lnkcancel1" runat="server" CausesValidation="true" BackColor="Transparent" ForeColor="Brown" CommandName="Cancel" Text="Cancel" Font-Underline="false"></asp:LinkButton>

                                            </EditItemTemplate>

                                        </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>
                        </div>
     <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%;margin-top: -18px;" cellpadding="0" cellspacing="0">
<tr style="background-image:url(../Images/header.gif)">
<td style="height:10%; color:White; font-weight:bold;padding:0px; font-size:larger; font-family:Calibri" align="left">Confirm Box</td><td style=" color:White; font-weight:bold;padding:0px; font-size:larger" align="right">  
    <asp:LinkButton ID="LinkButton3" runat="server">
    <img src="../Images/Close.gif" alt="Close" style="border :0px" align="right"/>
</asp:LinkButton>
  </td>
</tr>
<tr>
<td colspan="2" align="left" style="padding:0px; font-family:Calibri"> 
<asp:Label ID="lbl_no_tour_msg" runat="server" ForeColor="Red" Font-Bold="true"/>
</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" CssClass="selectbox">
    </asp:DropDownList>
   <%-- <asp:TextBox ID="txt_delete_close_reason" runat="server" TextMode="MultiLine" Width="90%" Height="30px"></asp:TextBox>--%>
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Display="Dynamic"  ControlToValidate="ddl_delete_close_reason" InitialValue="-Select-" ErrorMessage="select reason." ValidationGroup="s" ForeColor="Red"  ></asp:RequiredFieldValidator></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" onclick="btn_no_delete_close_Click"  />

             
 

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

</td>
<td>
&nbsp;&nbsp;
</td>
</tr>
    <caption>
        &nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbldeb1" runat="server" Font-Bold="true" Font-Names="Verdana" 
            Font-Size="14px" ForeColor="#cc0000"></asp:Label>
        <%--<tr>
<td align="center" style="padding-right:15px; background-color:White;" >
 <b style="color:Green;">[Add Visit]</b> 
</td>
<td align="center" style="padding-right:15px; background-color:White;" >
   <b style="color:Green;">[Leave] </b>
</td>
</tr>--%>
    </caption>
</table>
        <asp:HiddenField ID="hf_user_id" runat="server" />

</asp:Panel>
    </asp:Content>