<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="FlightIssueHistory.aspx.cs" Inherits="VMT.FlightIssueHistory" %>

<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 Status Summary  
        </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="true">
                    <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 Status Summary </div>

            <fieldset class="masterform">
                <legend>Flight Status</legend>
                <div style="width: 100%; height: 70px;">
                    <table style="width: 100%;">
                        <caption>

                            <tr>
                                <td>Flight Year:
                                </td>
                                <td>Flight Type:
                                </td>
                                <td>Report Type:
                                </td>
                                <td rowspan="2">
                                    <asp:Button ID="btnView" runat="server" CssClass="FormButton" Text="View" OnClick="btnView_Click" />
                                </td>
                            </tr>
                        </caption>
                        <tr>
                            <td>
                                <asp:DropDownList ID="ddlFlightYear" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlFlightType" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlReportType" runat="server">
                                    <asp:ListItem Text="-Select-" Value="0"></asp:ListItem>
                                    <asp:ListItem Text ="Details" Value="1"></asp:ListItem>
                                    <asp:ListItem Text ="Summary by flightType" Value="2"></asp:ListItem>
                                    <asp:ListItem Text ="Summary by Year" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <br />
                </div>
            </fieldset>

            <div style="text-align: left; width: 100%;">
                <fieldset class="masterform">
                    <legend>Flight Status Report</legend>

                    <div style="width: 100%; height: 240px; overflow-y: scroll; overflow-x: scroll;">
                        <br />

                        <asp:GridView ID="gdv_FlightReport" 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="201px" ItemStyle-Width="200px">
                                    <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="FIRST_FLIGHT_ON" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton12" runat="server" Text="FIRST_FLIGHT_ON" CommandName="Sort" CommandArgument="FIRST_FLIGHT_ON" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("FIRST_FLIGHT_ON") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="LAST_FLIGHT_ON" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton12" runat="server" Text="LAST_FLIGHT_ON" CommandName="Sort" CommandArgument="LAST_FLIGHT_ON" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("LAST_FLIGHT_ON") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="FLOWN_ELECTRIC" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton13" runat="server" Text="FLOWN_ELECTRIC" CommandName="Sort" CommandArgument="FLOWN_ELECTRIC" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("FLOWN_ELECTRIC") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="FLOWN_GAS" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton14" runat="server" Text="FLOWN_GAS" CommandName="Sort" CommandArgument="FLOWN_GAS" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("FLOWN_GAS") %>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField SortExpression="NO_ISSUE_FOUND" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton15" runat="server" Text="#ISSUE_FOUND" CommandName="Sort" CommandArgument="NO_ISSUE_FOUND" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("NO_ISSUE_FOUND") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="NO_ISSUE_CLOSED" HeaderStyle-Width="201px" ItemStyle-Width="200px">
                                    <HeaderTemplate>
                                        <asp:LinkButton ID="LinkButton16" runat="server" Text="#ISSUE_CLOSED" CommandName="Sort" CommandArgument="NO_ISSUE_CLOSED" ForeColor="Black" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Eval("NO_ISSUE_CLOSED") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                            <SelectedRowStyle BackColor="#FFE98F" />
                        </asp:GridView>
                    </div>
                </fieldset>
                <br />
            </div>

           <%-- <div style="text-align: left; width: 100%;">
                <fieldset class="masterform">
                    <legend>Flight Details</legend>
                    <div style="width: 100%; height: 160px; overflow-y: scroll;">
                        <asp:GridView ID="gdv_FlightDetail" runat="server" AutoGenerateColumns="False" BorderColor="#014567" CellPadding="3" Width="100%">
                            <AlternatingRowStyle BackColor="#E9EFF2" />
                            <Columns>
                                <asp:BoundField DataField="TRANS_TIMESTAMP" HeaderText="DATE">
                                    <ItemStyle Width="30%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PAYMENT_STATUS" HeaderText="STATUS">
                                    <ItemStyle Width="30%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PAYMENT_AMOUNT" HeaderText="AMOUNT">

                                    <ItemStyle Width="30%" />
                                </asp:BoundField>

                            </Columns>
                            <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                            <SelectedRowStyle BackColor="#FFE98F" />
                        </asp:GridView>
                    </div>
                </fieldset>
            </div>--%>

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



