<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Flight_Record_Status.aspx.cs" Inherits="VMT.Flight_Record_Status" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2 {
            width: 100%;
        }
        .auto-style3 {
            height: 17px;
        }
        .auto-style4 {
            height: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Flight Inspection Close
        </h1>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel2" runat="server">
          <ContentTemplate>
               <div id="loaderdiv">
                    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel2" dynamiclayout="false">
                        <progresstemplate>
                           <img src="resource_gallery/graphics/loader.gif" class="ajax-loader">
                        </progresstemplate>
                    </asp:updateprogress>
               </div>
              <div style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="CurrentYTD.aspx">Current</a> <strong>&#8249;&#8249;</strong>  Flight Inspection Close</div>
                        
             <fieldset >
                <legend>Flight Inspection Status</legend> 
                <div style=" width: 100%; height:50px; ">
                    <table style=" width: 100%;">
                        <caption>
                           
                            <tr>
                                
                                <td>Flight Type:
                                    <asp:DropDownList ID="ddlFlightType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFlightType_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                                <td>Flight Year:
                                    <asp:DropDownList ID="ddlFlightYear" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFlightYear_SelectedIndexChanged" >
                                    </asp:DropDownList>
                                </td>
                                 <td>
                                     &nbsp;</td>
                            </tr>
                        </caption>
                    </table>
                    <br />
                </div>
            </fieldset>
       

               <div style="text-align:left; width: 100% ;display:block;">
                    <fieldset class="masterform">
                          <legend> Close Flight Inspection </legend> 
                              
                        <div style="width: 100%; height: 320px; overflow-y: scroll;" > <br />
                              <asp:GridView ID="gdvFlightRecord" runat="server"  BorderColor="#014567" CellPadding="3"  HeaderStyle-CssClass="FixedHeader" 
                     AutoGenerateColumns="false"  emptydatatext="No data in the data source." 
                     AllowSorting="True">
                    <AlternatingRowStyle BackColor="#E9EFF2" />
                    <Columns>
                        <asp:TemplateField SortExpression="FLIGHT_NAME"   HeaderStyle-Width="211px" ItemStyle-Width="240px"  >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton12" runat="server" Text="FLIGHT_NAME"  CommandName="Sort" CommandArgument="FLIGHT_NAME" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <asp:Label ID="lbl_FLIGHT_RCD_ID" runat="server" Text='<%# Eval("FLIGHT_RECORD_ID") %>' Visible="false"></asp:Label>
                                <%# Eval("FLIGHT_NAME") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                       <asp:TemplateField  SortExpression="OPENED_ON"   HeaderStyle-Width="81px" ItemStyle-Width="90px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton1" runat="server" Text="OPENED_ON"  CommandName="Sort" CommandArgument="OPENED_ON" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <%# Eval("OPENED_ON") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField  SortExpression="OPENED_BY"   HeaderStyle-Width="81px" ItemStyle-Width="90px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton2" runat="server" Text="OPENED_BY"  CommandName="Sort" CommandArgument="OPENED_BY" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <%# Eval("OPENED_BY") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         <asp:templatefield HeaderText="CLOSE" HeaderStyle-Width="65px" ItemStyle-Width="70px" >                           
                            <HeaderTemplate>
                                 <asp:checkbox ID="cbSelectAll"  runat="server" AutoPostBack="true"  ForeColor="Black" 
                                     TextAlign="Left" OnCheckedChanged="cbSelectAll_CheckedChanged"></asp:checkbox> CLOSE
                                </div>                              
                            </HeaderTemplate>                           
                            <itemtemplate>
                                <asp:checkbox ID="cbSelect"  runat="server"  
                                   Enabled='<%# Convert.ToBoolean(Eval("open")) %>' 
                                    Checked='<%#Convert.ToBoolean(Eval("flight_status_id").ToString()=="8" ) %>'
                                    />                              
                            </itemtemplate>
                           
                            <ItemStyle  HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:templatefield>

                        <asp:TemplateField  SortExpression="CLOSED_ON" HeaderStyle-Width="81px" ItemStyle-Width="90px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton3" runat="server" Text="CLOSED_ON"  CommandName="Sort" CommandArgument="CLOSED_ON" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <%# Eval("CLOSED_ON") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField  SortExpression="CLOSED_BY" HeaderStyle-Width="91px" ItemStyle-Width="90px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton4" runat="server" Text="CLOSED_BY"  CommandName="Sort" CommandArgument="CLOSED_BY" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <%# Eval("CLOSED_BY") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         <asp:TemplateField SortExpression="INSPECTOR" HeaderStyle-Width="91px" ItemStyle-Width="90px">
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton51" runat="server" Text="INSPECTOR"  CommandName="Sort" CommandArgument="INSPECTOR" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("INSPECTOR") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         <asp:TemplateField SortExpression="STATUS" HeaderStyle-Width="91px" ItemStyle-Width="90px">
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton5" runat="server" Text="STATUS"  CommandName="Sort" CommandArgument="STATUS" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("STATUS") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                       
                       <%-- <asp:TemplateField SortExpression="STATUS"   HeaderStyle-Width="140px" ItemStyle-Width="140px" >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton3" runat="server" Text="STATUS"  CommandName="Sort" CommandArgument="STATUS" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("STATUS") %>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                    </Columns>
                    <HeaderStyle BackColor="#98C8DE" Font-Bold="True"/>
                    <SelectedRowStyle BackColor="#FFE98F" />
                </asp:GridView>

        </div>
                            </fieldset></div>

       <div style="text-align:left; width: 100%;">
                    <fieldset class="">
                        
                              
                        <div style=" width: 100%; height:40px; overflow-y: scroll;">
                            <table style=" width: 100%;">
                <tr>
                        <td id="rowDueDate" runat="server" >
                            <asp:Button ID="btnExportExcel0" runat="server" CssClass="FormButton" Text="Export To Excel" />
                        </td>  
                        <td style="text-align:right;"> <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"  CssClass="FormButton" />
                            &nbsp;</td> 
                </tr>
            </table>


        </div>
                            </fieldset></div>
      </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>

