<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WorkArea_Rates.aspx.cs" Inherits="VMT.WorkArea_Rates" %>
<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 Rates
        </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 style="text-align:right;"><strong>&#8249;&#8249;</strong> <a href="Administration.aspx">Back</a></div>
 <div style="text-align:left; width: 100%;">
                            <fieldset class="masterform">
                                <legend>Select Work-Area</legend>
                                <div style=" width: 100%; height:155px; ">
                                    
                                    <table class="auto-style2">
                                        <tr>
                                            <td style="width: 25%">Business Unit</td>
                                            <td style="width: 25%">Year</td>
                                            <td style="width: 10%">&nbsp;</td>
                                            <td style="width: 25%">&nbsp;</td>
                                            <td style="width: 15%">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 25%">
                                                <asp:DropDownList ID="ddl_Bunit" runat="server" AutoPostBack="True" OnDataBound="ddl_Bunit_DataBound" OnSelectedIndexChanged="ddl_Bunit_SelectedIndexChanged" >
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 25%">
                                                <asp:DropDownList ID="ddl_Year" runat="server" AutoPostBack="True" OnDataBound="ddl_Year_DataBound" OnSelectedIndexChanged="ddl_Year_SelectedIndexChanged" >
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10%">&nbsp;</td>
                                            <td style="width: 25%">&nbsp;</td>
                                            <td style="width: 15%">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 25%"><strong>Event Code</strong></td>
                                            <td style="width: 25%"><strong>Work Area</strong></td>
                                            <td style="width: 10%">&nbsp;</td>
                                            <td style="width: 25%"><strong>Selected Work Area</strong></td>
                                            <td style="width: 15%">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 25%; vertical-align:top;">
                                                <asp:DropDownList ID="ddl_eventcode" runat="server" AutoPostBack="True" OnDataBound="ddl_eventcode_DataBound" OnSelectedIndexChanged="ddl_eventcode_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 25%">
                                                <asp:ListBox ID="lst_WorkArea" runat="server" Rows="6"></asp:ListBox>
                                                
                                            </td>
                                            <td style="width: 10%">
                                                <asp:Button ID="btn_addWA" runat="server" CssClass="FormButton" Text="&gt;&gt;" OnClick="btn_addWA_Click" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btn_remWA" runat="server" CssClass="FormButton" Text="&lt;&lt;" OnClick="btn_remWA_Click" />
                                            </td>
                                            <td style="width: 25%">
                                                <asp:ListBox ID="lst_selWorkArea" runat="server" Rows="6"></asp:ListBox>
                                            </td>
                                            <td style="width: 15%">&nbsp;</td>
                                        </tr>
                                    </table>
                                    
                                </div>
                            </fieldset></div>
<div style="text-align:left; width: 100%;">
                            <fieldset class="masterform">
                                <legend>Select Rates</legend>
                                <div style=" width: 100%; height:115px; ">
                                    
                                    <table class="auto-style2">
                                        <tr>
                                            <td style="width: 25%">&nbsp;</td>
                                            <td style="width: 25%"><strong>Rates</strong></td>
                                            <td style="width: 10%">&nbsp;</td>
                                            <td style="width: 25%"><strong>Selected Rates</strong></td>
                                            <td style="width: 15%">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 25%; vertical-align:top;">
                                                &nbsp;</td>
                                            <td style="width: 25%">
                                                <asp:ListBox ID="lst_Rate" runat="server" Rows="6"></asp:ListBox>
                                            </td>
                                            <td style="width: 10%">
                                                <asp:Button ID="btn_addRate" runat="server" CssClass="FormButton" Text="&gt;&gt;" OnClick="btn_addRate_Click" />
                                                <br />
                                                <br />
                                                <asp:Button ID="btn_remRate" runat="server" CssClass="FormButton" Text="&lt;&lt;" OnClick="btn_remRate_Click" />
                                            </td>
                                            <td style="width: 25%">
                                                <asp:ListBox ID="lst_selRate" runat="server" Rows="6"></asp:ListBox>
                                            </td>
                                            <td style="width: 15%">
                                                <asp:Button ID="btn_add1" runat="server" CssClass="FormButton" Text="Apply" OnClick="btn_add1_Click"  />
                                            </td>
                                        </tr>
                                    </table>
                                    
                                </div>
                            </fieldset></div>
                        <div style="text-align:left; width: 100%;">
                            <fieldset class="masterform">
                                <legend>Work-Area Rate List</legend>
                              
                                <div style=" width: 100%; height:200px; overflow-y: scroll;">
                                    <asp:GridView ID="gdv_WA_Rate" runat="server" BorderColor="#014567" CellPadding="3"  Width="96%" AutoGenerateColumns="False" >
                                        <AlternatingRowStyle BackColor="#E9EFF2" />
                                        <Columns>
                                            <asp:BoundField DataField="EVENT_CODE" HeaderText="EVENT CODE" />
                                            <asp:BoundField DataField="WORK_AREA" HeaderText="WORK AREA" />
                                            <asp:BoundField DataField="COMPANY_NAME" HeaderText="COMPANY NAME" />
                                            <asp:TemplateField ShowHeader="False" HeaderText="Delete">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" ><img src="resource_gallery/graphics/icon_delete.png" /></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("WORK_AREA_ID") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lbl_WORK_AREA_ID" runat="server" Text='<%# Bind("WORK_AREA_ID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("COMPANY_ID") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label ID="lbl_COMPANY_ID" runat="server" Text='<%# Bind("COMPANY_ID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                                        <SelectedRowStyle BackColor="#FFE98F" />
                                    </asp:GridView>


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

