<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="Admin_AddExpenses, 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/ForTextBox.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">
      
      	 .shadow_five {
        background-color: #B3EBF4;
        -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;
    }
        .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;
            padding: 10px;
            margin-bottom: 10px;
        }
                       .shadow_five2 {
            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;
            padding: 5px;
            width: 710px;
        }
    .Label
    {
 /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Opera */ 
background-image: -o-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #FFCE47), color-stop(1, #F2813F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to top, #FFCE47 0%, #F2813F 100%);
}
           
    .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 12px;
            color: Black;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Verdana;
        }


      
     .contactpanelcss
        {
        	width:98%;
        	  margin: 0px;
         background-color: White;
         border: 5px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }
 
        .myButton1 {
        
        -moz-box-shadow: 0px 1px 0px 0px #fff6af;
        -webkit-box-shadow: 0px 1px 0px 0px #fff6af;
        box-shadow: 0px 1px 0px 0px #fff6af;
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffec64), color-stop(1, #ffab23));
        background:-moz-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-webkit-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-o-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-ms-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec64', endColorstr='#ffab23',GradientType=0);
        
        background-color:#ffec64;
        
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        
        border:1px solid #ffaa22;
        
        display:inline-block;
        color:#333333;
        font-family:arial;
        font-size:15px;
        font-weight:bold;
        padding:6px 24px;
        text-decoration:none;
        
        text-shadow:0px 1px 0px #ffee66;
        
    }
    .myButton1:hover {
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffab23), color-stop(1, #ffec64));
        background:-moz-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-webkit-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-o-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-ms-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffec64',GradientType=0);
        
        background-color:#ffab23;
    }
    .myButton1:active {
        position:relative;
        top:1px;
    }
    
    .font
{
	font-size:12px;
	font-family:Verdana;
	}
	   .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:143px;
        }
        
                .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>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdateProgress ID="UpdateProgress2" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1111" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Width="1330px" >  <%--BorderStyle="Groove"--%>
   <table width="100%">
    <tr>
            <td align="justify" valign="middle">
            <div class="p1"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Red;">&nbsp;&nbsp;Add Expenses</b> 
      </p>
           </div>
               <%-- <asp:Label ID="Label5" runat="server" Text="Add Expenses" CssClass="Label" 
                    Height="50px" Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="X-Large"></asp:Label>--%>
                  </td>
        </tr>
        
    <tr><td></td></tr>
        <tr>
            <td>
             <asp:Panel ID="pnlAddHead" runat="server"  Width="97%"> 
            
    <table width="100%">
    
       <tr>
            <td class="style5" align="right">
                <asp:Label ID="Label14" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Date"></asp:Label>
            </td>
            <td align="left"> &nbsp;
                <asp:TextBox ID="txtDate" runat="server" Height="15px" Width="150px"></asp:TextBox>
                
                  <cc1:CalendarExtender ID="txtTP_Datevar_CalendarExtender1" runat="server" Enabled="true" TargetControlID="txtDate" StartDate='<%# DateTime.Now %>'>
                       </cc1:CalendarExtender>      
                 <%-- <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" 
                    TargetControlID="txtDate" StartDate='<%# DateTime.Now %>'>
                </cc1:CalendarExtender>--%>
            </td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
                             &nbsp;</td>
            <td class="style26">
                &nbsp;</td>
        </tr>
       
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label8" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="TA"></asp:Label>
            </td>
            <td align="left">
                &nbsp;
                <asp:TextBox ID="txtTA" runat="server" Height="15px" Width="150px" onkeypress="return numericOnly(this);"></asp:TextBox>
            </td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
                &nbsp;
                <asp:Label ID="Label11" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Narration"></asp:Label>
            </td>
            <td class="style26">
                <asp:TextBox ID="txtTANarration" runat="server" Height="15px" Width="250px"></asp:TextBox>
            </td>
        </tr>
       
        <tr>
            <td class="style5" align="right">
                <asp:Label ID="Label9" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="DA"></asp:Label>
            </td>
            <td align="left"> &nbsp;
                <asp:TextBox ID="txtDA" runat="server" Height="15px" Width="150px" onkeypress="return numericOnly(this);"></asp:TextBox>
            </td>
            <td class="style28">
            </td>
            <td align="left" class="style26">
               <br />
           
            </td>
            <td class="style26">
            </td>
        </tr>
       
        <tr>
            <td class="style5" align="right">
                <asp:Label ID="Label10" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Lodging"></asp:Label>
            </td>
            <td align="left"> &nbsp;
                <asp:TextBox ID="txtLodging" runat="server" Height="15px" Width="150px" onkeypress="return numericOnly(this);"></asp:TextBox>
            </td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
                &nbsp;</td>
            <td class="style26">
                &nbsp;</td>
        </tr>
       
        <tr>
            <td class="style5" align="right">
                <asp:Label ID="Label12" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Others"></asp:Label>
            </td>
            <td align="left">&nbsp;
          <asp:TextBox ID="txtOthers" runat="server" Height="15px"  Width="150px" onkeypress="return numericOnly(this);"></asp:TextBox>
            </td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
              &nbsp;
                <asp:Label ID="Label13" runat="server" CssClass="lb" Font-Names="Verdana" 
                    Font-Size="14px" Text="Narration"></asp:Label>
              
            </td>
            <td class="style26">
                <asp:TextBox ID="txtOtherNarration" runat="server" Height="15px" Width="250px"></asp:TextBox>
            </td>
        </tr>
       
        <tr>
            <td align="right" class="style5">
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
                &nbsp;</td>
            <td class="style26">
                &nbsp;</td>
        </tr>
       
        <tr>
            <td class="style4" colspan="4">
                <asp:Label ID="lblLHMsg0" runat="server" Font-Names="Verdana" Font-Size="13px" 
                    ForeColor="#007500" 
                    Text="[To submit your expenses - ]"></asp:Label>
                <br />


            </td>
            <td class="style26">
                <asp:Button ID="btnSubmit" runat="server" CssClass="myButton" 
                    onclick="btnSubmit_Click" Text="Submit" 
                    Width="100px" />
                <br />
                
                <%-- <script language="javascript" type="text/javascript">
                     var prm = Sys.WebForms.PageRequestManager.getInstance();
                     prm.add_endRequest(function() {
                         $(document).ready(function() {
                             $("span[id$='lblInsert']").delay(3000).fadeOut(3000, function() {
                                 //                         $(this).innerHTML("");
                             });
                         });
                     });

</script>--%>
                <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
       
        <tr>
            <td class="style4" colspan="4">
                <asp:Label ID="lblLHMsg2" runat="server" Font-Names="Verdana" Font-Size="13px" 
                    ForeColor="#007500" 
                    Text="Show all remaining expenses to send to admin - "></asp:Label>
            </td>
            <td class="style26">
                <asp:Button ID="btnShowRemaining" runat="server" CssClass="myButton" 
                    onclick="btnShowRemaining_Click" Text="Show Remaining" Width="150px" />
                    <br />
                   <%--  <script type="text/javascript" language="javascript" >
                         var prm = Sys.WebForms.PageRequestManager.getInstance();
                         prm.add_endRequest(function() {
                             $(document).ready(function() {
                             $("span[id$='lblremaining']").delay(3000).fadeOut(3000, function() {
                                     //                         $(this).innerHTML("");
                                 });
                             });
                         });

</script>--%>
                     <asp:Label ID="lblremaining" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
       
        <tr>
            <td class="style4" colspan="4">
                <asp:Label ID="lblLHMsg3" runat="server" Font-Names="Verdana" Font-Size="13px" 
                    ForeColor="#007500" Text="Show all expenses sent to admin - "></asp:Label>
            </td>
            <td class="style26">
              
                <asp:Button ID="btnShowSent" runat="server" CssClass="myButton" 
                    onclick="btnShowSent_Click" Text="Show Sent" Width="150px" />
              
            </td>
        </tr>
       
        <tr>
            <td class="style4" colspan="4">
                <asp:Label ID="lblLHMsg" runat="server" Font-Names="Verdana" Font-Size="13px" 
                    ForeColor="#007500" 
                    Text="[To view your previous Expense &amp; Advance details - ]"></asp:Label>
            </td>
            <td class="style26">
                <asp:Button ID="btnShow" runat="server" CssClass="myButton" 
                    onclick="btnShow_Click" Text="View Details" Width="120px" />
                       <br />
               <%--  <script type="text/javascript" language="javascript" >
                     var prm = Sys.WebForms.PageRequestManager.getInstance();
                     prm.add_endRequest(function() {
                         $(document).ready(function() {
                         $("span[id$='lblView']").delay(3000).fadeOut(3000, function() {
                                 //                         $(this).innerHTML("");
                             });
                         });
                     });

</script>--%>
                <asp:Label ID="lblView" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
        
        <tr>
            <td class="style3" colspan="5">
                &nbsp;</td>
        </tr>
        
      <%--  Panel to show remaining to send expenses --%>
        
         <tr>
            <td>
                &nbsp;</td>
            <td align="right" class="style2">
                &nbsp;</td>
            <td class="style28">
                &nbsp;</td>
            <td align="left" class="style26">
                &nbsp;</td>
            <td class="style26">
                &nbsp;</td>
        </tr>
       
     </table>
     
     </asp:Panel>
     </td></tr>
     
  <%--      Panel to show remaining expenses to send           --%>
  
     <tr>
     <td>
      <asp:Button ID="btn_popup" runat="server" style="display:none;" Text="Popup" />
               <%-- <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
                    CancelControlID="btn_Close1" PopupControlID="Panel4" 
                    TargetControlID="btn_popup">
                </cc1:ModalPopupExtender>--%>
                <asp:Panel ID="Panel4" runat="server" Visible="false" >
                    <div style="overflow: scroll;height:400px;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            GridLines="None"  
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">  
                            <%--onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer" --%>
                            
                            <Columns>
                            <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblRowid" runat="server" Text='<%# Eval("Rowid")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <center>
                                   <asp:TextBox ID="lblSubmittedDate" runat="server" Text='<%# Eval("SubmittedDate")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                            
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTA" runat="server" Text='<%# Eval("TA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>    
                                                                                   
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="DA">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="lblDA" runat="server" Text='<%# Eval("DA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtDA" runat="server" 
                                                Text='<%# Eval("DA")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                    
                                    
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Lodging" ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblLodging" runat="server" Text='<%# Eval("Lodging")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtLodging" runat="server" 
                                                Text='<%# Eval("Lodging")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Others">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblOthers" runat="server" Text='<%# Eval("Others")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                           
                                        </center>
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtOthers" runat="server" 
                                                Text='<%# Eval("Others")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Total">
                                    <ItemTemplate>
                                       <center>
                                        <asp:TextBox ID="lblTotal" runat="server" Text='<%# Eval("Total")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>                                         
                                    </ItemTemplate>
                                   </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Narration for TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTANarration" runat="server" Text='<%# Eval("TANarration")%>' 
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                                                         
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                                <asp:TextBox ID="txtTANarration" runat="server" 
                                                Text='<%# Eval("TANarration")%>' Width="200px"></asp:TextBox>
                                    </EditItemTemplate>--%>
                         
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="OtherNarration" >
                                    <ItemTemplate>
                                     <asp:TextBox ID="lblOtherNarration" runat="server" Text='<%# Eval("OtherNarration")%>' 
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                          
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                    
                                            <asp:TextBox ID="txtOtherNarration" runat="server" 
                                                Text='<%# Eval("OtherNarration")%>' Width="150px"></asp:TextBox>
                                       
                                    </EditItemTemplate>--%>
                             
                                </asp:TemplateField>
                            
                               <%-- <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                              <%--  <asp:CommandField ShowEditButton="True" />--%>
                              
                              <asp:TemplateField HeaderText="select">
                               <ItemTemplate>
                               <center>
                                   <asp:CheckBox ID="chk_all" runat="server" />
                               </center>
                               </ItemTemplate>
                              </asp:TemplateField> 
                              
                            </Columns>
                            
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#c04516" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    
                    </div>
                    <table width="100%">
                    <tr>
                    <td valign="top">
                  <%--    <asp:Button ID="btn_Close1" runat="server" CssClass="myButton" 
                      Text="Close" Width="80px" />--%>
                    </td>
                    <td align="right" valign="top">
                   <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="13px" 
                    ForeColor="#007500" 
                    Text="First select expenses to send to admin & then click on 'Send'"></asp:Label>
                    </td>
                    <td align="right">
                      <asp:Button ID="btnSendFinally" runat="server" CssClass="myButton" 
                    onclick="btnSendFinally_Click" Text="Send" Width="80px" />
                <br />
                <%--  <script type="text/javascript" language="javascript" >
                      var prm = Sys.WebForms.PageRequestManager.getInstance();
                      prm.add_endRequest(function() {
                          $(document).ready(function() {
                          $("span[id$='lblInsertSend']").delay(3000).fadeOut(3000, function() {
                                  //                         $(this).innerHTML("");
                              });
                          });
                      });

</script>--%>
                <asp:Label ID="lblInsertSend" runat="server" Font-Names="Verdana" 
                    Font-Size="14px" ForeColor="#FF3300"></asp:Label>
                    </td>
                    </tr>
                   
                    </table>
                </asp:Panel>    
                    
                    
                    
     </td>
     </tr>
     
 <%--    Show all sent expenses    --%>
     
     <tr>
     <td>
     
        <asp:Button ID="btn_popup2" runat="server" style="display:none;" Text="Popup" />
           <%--     <cc1:ModalPopupExtender ID="ModalPopupExtender3" runat="server" 
                    CancelControlID="btn_Close3" PopupControlID="Panel3" 
                    TargetControlID="btn_popup2">
                </cc1:ModalPopupExtender>--%>
                <asp:Panel ID="Panel3" runat="server" Visible="false">
                    <div style="overflow: scroll;height:400px;">
                    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                            GridLines="None" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">  
                            <%--onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer" --%>
                            
                            <Columns>
                            <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblRowid" runat="server" Text='<%# Eval("Rowid")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <center>
                                   <asp:TextBox ID="lblSubmittedDate" runat="server" Text='<%# Eval("SubmittedDate")%>'
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                            
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTA" runat="server" Text='<%# Eval("TA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>    
                                                                                   
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="DA">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="lblDA" runat="server" Text='<%# Eval("DA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtDA" runat="server" 
                                                Text='<%# Eval("DA")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                    
                                    
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Lodging" ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblLodging" runat="server" Text='<%# Eval("Lodging")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtLodging" runat="server" 
                                                Text='<%# Eval("Lodging")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Others">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblOthers" runat="server" Text='<%# Eval("Others")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                           
                                        </center>
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtOthers" runat="server" 
                                                Text='<%# Eval("Others")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Total">
                                    <ItemTemplate>
                                       <center>
                                        <asp:TextBox ID="lblTotal" runat="server" Text='<%# Eval("Total")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>                                         
                                    </ItemTemplate>
                                   </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Narration for TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTANarration" runat="server" Text='<%# Eval("TANarration")%>' 
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                                                         
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                                <asp:TextBox ID="txtTANarration" runat="server" 
                                                Text='<%# Eval("TANarration")%>' Width="200px"></asp:TextBox>
                                    </EditItemTemplate>--%>
                         
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="OtherNarration" >
                                    <ItemTemplate>
                                     <asp:TextBox ID="lblOtherNarration" runat="server" Text='<%# Eval("OtherNarration")%>' 
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                          
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                    
                                            <asp:TextBox ID="txtOtherNarration" runat="server" 
                                                Text='<%# Eval("OtherNarration")%>' Width="150px"></asp:TextBox>
                                       
                                    </EditItemTemplate>--%>
                             
                                </asp:TemplateField>
                            
                               <%-- <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                              <%--  <asp:CommandField ShowEditButton="True" />--%>
                              
                             <%-- <asp:TemplateField HeaderText="select">
                               <ItemTemplate>
                               <center>
                                   <asp:CheckBox ID="chk_all" runat="server" />
                               </center>
                               </ItemTemplate>
                              </asp:TemplateField> --%>
                              
                            </Columns>
                            
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#c04516" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    
                    </div>
                     <%--  <asp:Button ID="btn_Close3" runat="server" CssClass="myButton" 
                      Text="Close" Width="80px" />--%></asp:Panel>
     
     </td>
     
     </tr>
     
    <%--  Approved expenses --%>
    
     <tr>
     <td>
     
        <asp:Button ID="btn_popup3" runat="server" style="display:none;" Text="Popup" />
               <%-- <cc1:ModalPopupExtender ID="ModalPopupExtender4" runat="server" 
                    CancelControlID="btn_Close4" PopupControlID="Panel5" 
                    TargetControlID="btn_popup3">
                </cc1:ModalPopupExtender>--%>
                <asp:Panel ID="Panel5" runat="server" Visible="false" >
                    <div style="overflow: scroll;height:400px;">
                    <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" 
                            GridLines="None" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">  
                            <%--onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer" --%>
                            
                            <Columns>
                            <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblRowid" runat="server" Text='<%# Eval("Rowid")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <center>
                                   <asp:TextBox ID="lblSubmittedDate" runat="server" Text='<%# Eval("SubmittedDate")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                            
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTA" runat="server" Text='<%# Eval("TA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>    
                                                                                   
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="DA">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="lblDA" runat="server" Text='<%# Eval("DA")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtDA" runat="server" 
                                                Text='<%# Eval("DA")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                    
                                    
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Lodging" ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblLodging" runat="server" Text='<%# Eval("Lodging")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtLodging" runat="server" 
                                                Text='<%# Eval("Lodging")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Others">
                                    <ItemTemplate>
                                        <center>
                                        <asp:TextBox ID="lblOthers" runat="server" Text='<%# Eval("Others")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                           
                                        </center>
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtOthers" runat="server" 
                                                Text='<%# Eval("Others")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Total">
                                    <ItemTemplate>
                                       <center>
                                        <asp:TextBox ID="lblTotal" runat="server" Text='<%# Eval("Total")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                        </center>                                         
                                    </ItemTemplate>
                                   </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Narration for TA">
                                    <ItemTemplate>
                                      <asp:TextBox ID="lblTANarration" runat="server" Text='<%# Eval("TANarration")%>'
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                                                         
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                                <asp:TextBox ID="txtTANarration" runat="server" 
                                                Text='<%# Eval("TANarration")%>' Width="200px"></asp:TextBox>
                                    </EditItemTemplate>--%>
                         
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="OtherNarration" >
                                    <ItemTemplate>
                                     <asp:TextBox ID="lblOtherNarration" runat="server" Text='<%# Eval("OtherNarration")%>' 
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                          
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                    
                                            <asp:TextBox ID="txtOtherNarration" runat="server" 
                                                Text='<%# Eval("OtherNarration")%>' Width="150px"></asp:TextBox>
                                       
                                    </EditItemTemplate>--%>
                             
                                </asp:TemplateField>
                            
                               <%-- <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                              <%--  <asp:CommandField ShowEditButton="True" />--%>
                              
                           <%--   <asp:TemplateField HeaderText="select">
                               <ItemTemplate>
                               <center>
                                   <asp:CheckBox ID="chk_all" runat="server" />
                               </center>
                               </ItemTemplate>
                              </asp:TemplateField> --%>
                              
                            </Columns>
                            
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#c04516" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    
                    </div>
                       <asp:Button ID="btn_Close4" runat="server" CssClass="myButton" 
                      Text="Close" Width="80px" />
                    </asp:Panel>
     
     </td>
     
     </tr>
     
     
     <%--   Panel to view Advance, total expenses, sactioned, Balance expenses    --%>
  
     <tr><td>
     <asp:Button ID="btn_popup1" runat="server" style="display:none;" Text="Popup" />
              <%--  <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" 
                    CancelControlID="btn_Close2" PopupControlID="Panel2" 
                    TargetControlID="btn_popup1">
                </cc1:ModalPopupExtender>--%>
                <asp:Panel ID="Panel2" runat="server" Visible="false" >
                    <div style="overflow: scroll;height:400px;">
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                            GridLines="None" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">  
                            <%--onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer" --%>
                            
                            <Columns>
                            <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblRowid" runat="server" Text='<%# Eval("AdvanceID")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Assigned Date">
                                    <ItemTemplate>
                                        <center>
                                  <asp:TextBox ID="lblSubmittedDate" runat="server" Text='<%# Eval("AssignedDate")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="Assigned Advance">
                                    <ItemTemplate>
                                       <center>
                                       <asp:TextBox ID="lblTA" runat="server" Text='<%# Eval("AssignAdvance")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                       </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="TotalExpenses">
                                    <ItemTemplate>
                                        <center>
                                         <asp:TextBox ID="lblTotalExpenses" runat="server" Text='<%# Eval("TotalExpenses")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                           
                                        </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtDA" runat="server" 
                                                Text='<%# Eval("DA")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                    
                                    
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="TillDate">
                                    <ItemTemplate>
                                        <center>
                                         <asp:TextBox ID="lblTillDate" runat="server" Text='<%# Eval("TillDate")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                         </center>
                                    </ItemTemplate>
                                   <%-- <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtLodging" runat="server" 
                                                Text='<%# Eval("Lodging")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Sanctioned">
                                    <ItemTemplate>
                                        <center>
                                         <asp:TextBox ID="lblSanctioned" runat="server" Text='<%# Eval("Sanctioned")%>' 
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                           
                                        </center>
                                    </ItemTemplate>
                                  <%--  <EditItemTemplate>
                                        <center>
                                            <asp:TextBox ID="txtOthers" runat="server" 
                                                Text='<%# Eval("Others")%>' Width="100px"></asp:TextBox>
                                        </center>
                                    </EditItemTemplate>--%>
                     
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Balance">
                                    <ItemTemplate>
                                      <center>
                                        <asp:TextBox ID="lblBalance" runat="server" Text='<%# Eval("Balance")%>'
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox> 
                                       </center>
                                    </ItemTemplate>
                                   </asp:TemplateField>
                                                          
                               <%-- <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("Rowid")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                    </asp:TemplateField>--%>
                              <%--  <asp:CommandField ShowEditButton="True" />--%>
                                 
                            </Columns>
                            
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#c04516" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    
                    </div>
                     <%-- <asp:Button ID="btn_Close2" runat="server" CssClass="myButton" 
                      Text="Close" Width="80px" />--%></asp:Panel>
     
     </td></tr>
     
     
     
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

