<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="Admin_ApproveExpenses, 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">
        .style2
        {
            width: 100%;
         
      }
       	 .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: 10px;
            width: 580px;
        }
          .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 14px;
            color: #660033;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Eurostile LT;
        }
     .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%);
}
  
     .contactpanelcss
        {
        	width:98%;
        	  margin: 0px;
         background-color: White;
         border: 5px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }


.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:243px;
        }
        
        
          .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="p12"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:0px;">
     <b style="color:White;">&nbsp;&nbsp;Approve Expenses</b> 
      </p>
           </div>
               <%-- <asp:Label ID="Label5" runat="server" Text="Approve 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></td></tr>
    </table>--%>
    
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                      BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black"
                     GridLines="None" Width="600px">
                     
                     <Columns>
                        <%-- <asp:TemplateField Visible="false">
                             <ItemTemplate>
                                 <asp:Label ID="lblRowid" runat="server" Text='<%# Eval("Rowid") %>'></asp:Label>
                             </ItemTemplate>
                         </asp:TemplateField>--%>
                        <asp:TemplateField Visible="false">
                             <ItemTemplate>
                                 <asp:Label ID="lblEID" runat="server" Text='<%# Eval("EmpID") %>'></asp:Label>
                             </ItemTemplate>
                         </asp:TemplateField>
                         <%--fIRST record--%>
                         <asp:TemplateField HeaderText="Employee Name">
                             <ItemTemplate>
                                
                                     <asp:LinkButton ID="lnkEName" runat="server" 
                                         CommandArgument='<%# Eval("EName") %>' CommandName="Select" Font-Size="12pt" 
                                         OnClick="lnkEName_Click" Text='<%# Eval("EName") %>' Width="250px"></asp:LinkButton>
                                 
                             </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>
    </asp:Panel>
    </td></tr>
    
    
<%--    Panel to show all details after clicking on Emp's Name     --%> 
   
    <tr><td>
<%--      <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>
    
    <br />
    
   <%-- <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="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("Rowid")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <center>
                                   <asp:TextBox ID="lblSubmittedDate" runat="server" Text='<%# Eval("SubmittedDate")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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")%>' Height="25px"
                                                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" colspan="3" align="right">
                      
                         <asp:Button ID="btnShow" runat="server" CssClass="myButton" 
                    onclick="btnShow_Click" Text="Show Expense Master" Width="200px" />
                        </td>
                    </tr>
                   
                        <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="[To Approve Selected expenses click on 'Approve' button]"></asp:Label>
                            </td>
                            <td align="right">
                                <asp:Button ID="btnApprove" runat="server" CssClass="myButton" 
                                    onclick="btnApprove_Click" Text="Approve" Width="80px" />
                                <br />

                              <%--  <script language="javascript" type="text/javascript">



                      var prm = Sys.WebForms.PageRequestManager.getInstance();
                      prm.add_endRequest(function() {
                          $(document).ready(function() {
                          $("span[id$='lblInsertApprove']").delay(3000).fadeOut(3000, function() {
                                  //                         $(this).innerHTML("");
                              });
                          });
                      });

</script>--%>

                                <asp:Label ID="lblInsertApprove" runat="server" Font-Names="Verdana" 
                                    Font-Size="14px" ForeColor="#FF3300"></asp:Label>
                            </td>
                        </tr>
                   
                    </table>
                </asp:Panel>    
    
    
    
     <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="GridView3" runat="server" AutoGenerateColumns="False" 
                            GridLines="None" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">  
                                                      
                            <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="Expense Head">
                                    <ItemTemplate>
                                     <asp:TextBox ID="lblHead" runat="server" Text='<%# Eval("head")%>' Height="25px"
                                                Width="320px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="Grade">
                                    <ItemTemplate>
                                 <asp:TextBox ID="lblGrade" runat="server" Text='<%# Eval("Grade")%>' Height="25px"
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox>            
                                        
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                  <asp:TemplateField HeaderText="Area Type">
                                    <ItemTemplate>
                                        <center>
                                         <asp:TextBox ID="lblAreaType" runat="server" Text='<%# Eval("AreaType")%>' Height="25px"
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:TextBox>    
                                        
                                        </center>
                                    </ItemTemplate>
                                                                   
                                    
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Limit">
                                    <ItemTemplate>
                                        <center>
                                            <asp:TextBox ID="lblLimit" runat="server" Text='<%# Eval("Limit")%>' Height="25px"
                                                Width="150px" ReadOnly="true" CssClass="font"></asp:TextBox>    
                                          
                                        </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_Close2" runat="server" CssClass="myButton" Text="Close" 
                                    Width="80px" />--%></asp:Panel>    
    
    </td></tr>
</table>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

