<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WorkArea.aspx.cs" Inherits="VMT.WorkArea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2 {
            width: 100%;
            padding: 3px;
        }
    </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>
            Work Area
        </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 style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="Administration.aspx">Administration</a> <strong>&#8249;&#8249;</strong> Workarea</div>
           

                <div style="text-align:left; width: 100%;">
                    <fieldset class="masterform">
                        <legend>Create Work Area</legend>
                        <div style=" width: 100%; height:150px; ">                                    
                            <table class="auto-style2">
                                <tr>
                                    <td>Businesss Unit</td>
                                    <td>
                                        <asp:DropDownList ID="ddl_Bunit" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td>Section Code</td>
                                    <td><asp:TextBox ID="txtSectionCode" runat="server" MaxLength="2"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>Cycle</td>
                                    <td><asp:DropDownList ID="ddlCycle" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCycle_SelectedIndexChanged"></asp:DropDownList></td>
                                    <td>Work Area Description</td>
                                    <td><asp:TextBox ID="txtWADescription" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>Cycle Year</td>
                                    <td colspan="3"><asp:DropDownList ID="ddlCycleYr" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCycleYr_SelectedIndexChanged"></asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td>FTYT</td>
                                    <td colspan="3"><asp:TextBox ID="txtFTYT" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>FFTYT</td>
                                    <td colspan="3"><asp:TextBox ID="txtFFTYT" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>&nbsp;<asp:HiddenField ID="hd_WorkareaId" runat="server" />
                                    </td>
                                    <td colspan="3">
                                        <asp:Button ID="btnSubmit" runat="server" CssClass="FormButton" OnClick="btnSubmit_Click" Text="Add New" />&nbsp;&nbsp;
                                        <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="Delete" CssClass="FormButton" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                </div>

                <div style="text-align:left; width: 100%;">
                    <fieldset class="masterform">
                        <legend>Work Area</legend>
                              
                        <div style=" width: 100%; height:200px; overflow-y: scroll;">
                                    
                            <asp:GridView ID="gdvWorkArea" runat="server" BorderColor="#014567" CellPadding="3" OnSelectedIndexChanging="gdvWorkArea_SelectedIndexChanging"
                                Width="100%" AutoGenerateColumns="TRUE" OnSorting="gdvWorkArea_Sorting" AllowSorting="true">
                                       <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"><img src="resource_gallery/graphics/select.png" width="30px" height="30px" /></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            </asp:TemplateField>
                        </Columns>
                                
                                <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                                <SelectedRowStyle BackColor="#FFE98F" />
                            </asp:GridView>
                        </div>
                    </fieldset>
                </div>

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