<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"  EnableEventValidation="false" CodeBehind="CloseBid.aspx.cs" Inherits="VMT.CloseBid" %>
<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>
            Bid Process</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="bid.aspx">Bid</a> <strong>&#8249;&#8249;</strong> Bid Process-Maintenance</div>
            <div >
             <fieldset class="masterform">
                <legend>Bid Process - Maintenance</legend> 
               <div style=" width: 100%; height:30px; ">
                    <table>
                        <tr>
                            <td> Business Unit:
                                <asp:DropDownList ID="ddlBUnit" runat="server" OnSelectedIndexChanged="ddlBUnit_SelectedIndexChanged" AutoPostBack="true" OnDataBound="ddlBUnit_DataBound">
                                </asp:DropDownList>
                            </td>

                            <td> Work Year:
                                <asp:DropDownList ID="ddlYear" runat="server" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged" AutoPostBack="true" OnDataBound="ddlYear_DataBound">
                                </asp:DropDownList>
                            <td/>
                            <td>
                                Bid Status:
                                <asp:DropDownList ID="ddlBidStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBidStatus_SelectedIndexChanged" OnDataBound="ddlBidStatus_DataBound"></asp:DropDownList>
                            </td>
                            <td> Bid Description:
                                <asp:DropDownList ID="ddlBidDesc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBidDesc_SelectedIndexChanged" OnDataBound="ddlBidDesc_DataBound">
                                </asp:DropDownList>
                            </td>
                            <%--<td> <asp:Button ID="btnGo" runat="server" Text="Go" OnClick="btnGo_Click"  CssClass="FormButton"/></td> --%>
                        </tr>
                    </table>
                 </div>
               

               <br />
               <div style=" width: 100%; height: 240px; overflow-y: scroll;" > 
                   <asp:HiddenField ID="hdn_role" runat="server" />
                   <br />
                <asp:GridView ID="gdvBidClose" runat="server" HeaderStyle-CssClass="FixedHeader" BorderColor="#014567" CellPadding="3"
                     AutoGenerateColumns="false" AllowPaging="false"  emptydatatext="No data in the data source."
                    OnRowDeleting="gdvBidClose_RowDeleting" onrowdatabound="gdvBidClose_RowDataBound" OnSorting="gdvBidClose_Sorting" AllowSorting="true">
                    <AlternatingRowStyle BackColor="#E9EFF2" />
                    <Columns>
                         <asp:TemplateField  SortExpression="EVENT_CODE" HeaderStyle-Width="401px" ItemStyle-Width="400px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton2" runat="server" Text="PROJECT/EVENT"  CommandName="Sort" CommandArgument="EVENT_CODE" ForeColor="Black"/> 
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%--<asp:Label ID="lbl_STATUS" runat="server" Text='<%# Eval("EVENT_CODE") %>'></asp:Label>--%>
                                <asp:HiddenField ID="hdn_WkStsID" runat="server" Value='<%# Eval("WORK_STATUS_ID") %>'> </asp:HiddenField >
                                <asp:HiddenField ID="hdn_BidID" runat="server" Value='<%# Eval("BID_ID") %>'> </asp:HiddenField >
                                <asp:HiddenField ID="hdn_WORK_AREA_ID" runat="server" Value='<%# Eval("WORK_AREA_ID") %>'> </asp:HiddenField>
                                <%--<a href='LocateWA_Map.aspx?EVENT_CODE_ID=<%# Eval("EVENT_CODE_ID") %>&nm=<%# Eval("EVENT_CODE") %>' target="_blank">--%>
                                <a href='<%=System.Configuration.ConfigurationManager.AppSettings["VMSWorkLink"]%>?bu=0&ec=<%# Eval("EVENT_CODE_ID") %>&wa=0&yr=0' target="_blank">  <asp:Label ID="Label2" runat="server" Text='<%# Bind("EVENT_CODE") %>'></asp:Label> </a>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField SortExpression="WORK_AREA" HeaderStyle-Width="300px" ItemStyle-Width="300px">
                            <HeaderTemplate>
                                <asp:LinkButton  ID="LinkButton1" runat="server" Text="SECTION/WA"  CommandName="Sort" CommandArgument="WORK_AREA" ForeColor="Black"/>                           
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <%--<asp:Label ID="lbl_WORK_AREA_ID" runat="server" Text='<%# Eval("WORK_AREA") %>'></asp:Label>--%>
                                <%--<a href='LocateWA_Map.aspx?WORK_AREA_ID=<%# Eval("WORK_AREA_ID") %>&nm=<%# Eval("WORK_AREA") %>'  target="_blank"> --%> 
                                <a href='<%=System.Configuration.ConfigurationManager.AppSettings["VMSWorkLink"]%>?bu=0&ec=<%# Eval("EVENT_CODE_ID") %>&wa=<%# Eval("WORK_AREA_ID") %>&yr=0' target="_blank"> <asp:Label ID="Label1" runat="server" Text='<%# Bind("WORK_AREA") %>'></asp:Label></a>
                            </ItemTemplate>
                        </asp:TemplateField>

                       

                        <%--<asp:templatefield HeaderText="Select All">
                            <HeaderTemplate>
                                 <asp:checkbox ID="cbSelectAll"  runat="server" AutoPostBack="true" OnCheckedChanged="chkboxSelectAll_CheckedChanged"></asp:checkbox> All                                
                            </HeaderTemplate>
                            <itemtemplate>
                                <asp:checkbox ID="cbSelect"  runat="server" ></asp:checkbox>
                            </itemtemplate>
                        </asp:templatefield>--%>

                         <asp:TemplateField ShowHeader="False" HeaderStyle-Width="81px" ItemStyle-Width="80px">
                             <HeaderTemplate>
                                <asp:label  ID="lblDelete" runat="server" Text="DELETE"   ForeColor="Black"/> 
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="lkBtnDelete" runat="server" CausesValidation="False" visible="false" CommandName="Delete" 
                                    OnClientClick="javascript:return confirm('Are you sure to delete bid detail?');" >
                                    <img src="resource_gallery/graphics/icon_delete.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>

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

            </div> 
              <fieldset class="masterform">
                <div style=" width: 89%; height:32px; ">
                    <table>
                        <tr>
                            <td>
                                <td> <asp:Button ID="btnCloseBid" runat="server" Text="Close Bid"   OnClick="btnCloseBid_Click" Visible="false" CssClass="FormButton"/></td> 
                                 <td> <asp:Button ID="btnDeleteBid" runat="server" Text="Delete Bid" OnClientClick="javascript:return confirm('Are you sure to delete bid details?');"
                                        OnClick="btnDeleteBid_Click" Visible="false" CssClass="FormButton"/></td>
                                <td><asp:Button ID="btnExportExcel" runat="server" CssClass="FormButton" Visible="false" OnClick="btnExportExcel_Click" Text="Export To Excel" /></td>
                            </td>
                        </tr>
                    </table>
                 </div>
               </fieldset>
            </div> 
            </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>
