<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="FlightProjectStatus.aspx.cs" EnableEventValidation="false" Inherits="VMT.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</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 Project Status
        </h1>
    </div>
    <div id="SubPageTitle">
        <!-- OPTIONAL SUB PAGE TITLE -->
     
    </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 Project Status</div>
                        <div >
             <fieldset class="masterform">
                <legend>Project Status</legend> 
                <div style=" width: 100%; height:300px; ">
                    <table>
                        <tr>
                            <td> Business Unit:
                                <asp:DropDownList ID="ddlBUnit" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBUnit_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>

                            <td> Flight Year:
                                <asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged" OnDataBound="ddlYear_DataBound">
                                </asp:DropDownList>
                            <td/>
                            <td>
                                Status:
                                <asp:DropDownList ID="ddlBidStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBidStatus_SelectedIndexChanged" OnDataBound="ddlBidStatus_DataBound"></asp:DropDownList>
                            </td>


                            <td> Project/Event:
                                <asp:DropDownList ID="ddlEventCode" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlEventCode_SelectedIndexChanged" OnDataBound="ddlEventCode_DataBound">  
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <br />
                 <div style=" width: 100%; height: 240px; overflow-y: scroll;" > <br />
                <asp:GridView ID="gdvWorkArea" runat="server"  HeaderStyle-CssClass="FixedHeader"   BorderColor="#014567" CellPadding="3"  
                     AutoGenerateColumns="False"  emptydatatext="No data in the data source." OnSorting="gdvWorkArea_Sorting"
                      AllowSorting="True">
                    <AlternatingRowStyle BackColor="#E9EFF2" />
                    <Columns>
                        <asp:TemplateField SortExpression="EVENT_CODE"  HeaderStyle-Width="213px" ItemStyle-Width="213px">
                            <HeaderTemplate >
                                <asp:LinkButton ID="LinkButton1"  runat="server" Text="PROJECT/EVENT"  CommandName="Sort" CommandArgument="EVENT_CODE" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate >
                                  <asp:Label ID="Label2" runat="server" Text='<%# Bind("EVENT_CODE") %>'></asp:Label> </a>                                
                            </ItemTemplate>
                        </asp:TemplateField>

                         <asp:TemplateField SortExpression="WORK_AREA"   HeaderStyle-Width="131px" ItemStyle-Width="130px">
                            <HeaderTemplate >
                                <asp:LinkButton ID="LinkButton2"  runat="server" Text="SECTION/WA"  CommandName="Sort" CommandArgument="WORK_AREA" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate >
                                <%--<a href='LocateSprayWA_Map.aspx?WORK_AREA_ID=<%# Eval("WORK_AREA_ID") %>&nm=<%# Eval("WORK_AREA") %>'  target="_blank">   <asp:Label ID="Label1" runat="server" Text='<%# Bind("WORK_AREA") %>'></asp:Label></a>--%>
                               <%# Eval("WORK_AREA") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <%--<asp:TemplateField SortExpression="work_area_description">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton3" runat="server" Text="WORK DESC"  CommandName="Sort" CommandArgument="work_area_description" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("work_area_description") %>
                            </ItemTemplate>

                        </asp:TemplateField>--%>
                        <asp:TemplateField SortExpression="project_description"   HeaderStyle-Width="172px" ItemStyle-Width="172px" >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton4" runat="server" Text="PROJECT DESC"  CommandName="Sort" CommandArgument="project_description" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("project_description") %>
                            </ItemTemplate>
                        </asp:TemplateField>

                         <%--<asp:TemplateField SortExpression="LENGTH"   HeaderStyle-Width="80px" ItemStyle-Width="80px" >
                            <HeaderTemplate>                                      
                                <asp:LinkButton  ID="LinkButton14" runat="server" Text="MILES"  CommandName="Sort" CommandArgument="LENGTH" ForeColor="Black"/>                       
                            </HeaderTemplate >
                            <ItemTemplate>
                                <%# Eval("LENGTH") %>
                            </ItemTemplate>
                        </asp:TemplateField>--%>

                        <asp:TemplateField SortExpression="flight_cycle"   HeaderStyle-Width="70px" ItemStyle-Width="70px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton6" runat="server" Text="FLT CYCLE"  CommandName="Sort" CommandArgument="flight_cycle" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("flight_cycle") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        
                         <asp:TemplateField SortExpression="flight_year_target"   HeaderStyle-Width="60px" ItemStyle-Width="60px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton6" runat="server" Text="FLT YEAR"  CommandName="Sort" CommandArgument="flight_year_target" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("flight_year_target") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>

                         <asp:TemplateField SortExpression="future_flight_yr_tgt"   HeaderStyle-Width="60px" ItemStyle-Width="60px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton6" runat="server" Text="FST YEAR"  CommandName="Sort" CommandArgument="future_flight_yr_tgt" ForeColor="Black"/>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("future_flight_yr_tgt") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>


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

               
            </div>
       </fieldset>
        </div>
        <fieldset class="masterform">
            <div style=" width: 89%; height:32px; ">
            <table>
                <tr>
                    <td><asp:Button ID="btnExportExcel" runat="server" CssClass="FormButton" OnClick="btnExportExcel_Click" Visible="false" Text="Export To Excel" /></td>
                </tr>
            </table>
            </div>
        </fieldset>
      </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>

