<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Target.aspx.cs" Inherits="NikaiDSR.Admin.Target" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="errMsg" id="errMsg" runat="server" style="display: none;">
        <div class="errMsgText" id="errMsgText" runat="server"></div>
        <br />
    </div>
    <div class="content_holder">
        <div class="bg_shadow">
                        <h1><asp:Literal ID="Literal1" runat="server" Text="Target" /></h1>
            <br />
            <br />
               
            <telerik:RadComboBox ID="cmbLocation" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbLocation_SelectedIndexChanged" />
            <telerik:RadComboBox ID="cmbExecutive" runat="server" />
            <telerik:RadComboBox ID="cmbYear" runat="server" />
            <asp:Button ID="btnGo" runat="server" OnClick="btnGo_Click" Text="Go" />
        </div>
    </div>

    <div class="content_holder">
            <br />
            <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="Grid_NeedDataSource" OnItemDataBound="Grid_ItemDataBound">
                <MasterTableView>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Target_Id" UniqueName="Target_Id" Display="false" />
                        <telerik:GridBoundColumn DataField="Month" UniqueName="Month" Display="false" />
                        <telerik:GridBoundColumn HeaderText="Month" UniqueName="Month_Value" />
                        <telerik:GridTemplateColumn HeaderText="Sales" DataField="Sales" UniqueName="Sales">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txtSales" runat="server" MaxLength="6" Value='<%# Convert.ToUInt32(Eval("Sales")) %>' />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Collection" DataField="Collection" UniqueName="Collection">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txtCollection" runat="server" MaxLength="6" Value='<%# Convert.ToUInt32(Eval("Collection")) %>' />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Secondary Sales" DataField="Secondary_Sales" UniqueName="SecondarySales">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txtSecondarySales" runat="server" MaxLength="6" Value='<%# Convert.ToUInt32(Eval("Secondary_Sales")) %>' />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <br />
            <asp:Button ID="btnSave" Text="Save" runat="server" OnClick="btnSave_Click" />
    </div>
</asp:Content>
