<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<style type="text/css">
        html, body, form, a img
        {
            height: 100%;
            margin: 0px;
            padding: 0px;
            overflow: hidden;
            border: 0;
        }    
</style>

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="true" runat="server">
        <MasterTableView CommandItemDisplay="Top">
            <EditFormSettings EditFormType="Template">
                <FormTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td align="left" width="25%">
                                <asp:Label ID="MadeDteLabel" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="Agreement Made:"></asp:Label>
                            </td>
                            <td align="left" width="25%">
                                <telerik:RadDatePicker ID="MadeDatePicker" runat="server" Skin="Web20">
                                    <Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
                                        ViewSelectorText="x" Skin="Web20">
                                    </Calendar>
                                    <DateInput ID="DateInput1" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy">
                                    </DateInput>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                </telerik:RadDatePicker>
                            </td>
                            <td align="left" width="25%">
                                <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="RebateType:"></asp:Label>
                            </td>
                            <td align="left" colspan="2" width="25%">
                                <telerik:RadComboBox ID="RebTypComboBox" runat="server" DataTextField="rebateType"
                                    DataValueField="rebateTypeID" Skin="Web20" Width="150px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="--" Value="0" Selected="true" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="25%">
                                <asp:Label ID="RevDteLabel" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="Rebate Revision Date:"></asp:Label>
                            </td>
                            <td align="left" width="25%">
                                <telerik:RadDatePicker ID="RevDatePicker" runat="server" Skin="Web20">
                                    <Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
                                        ViewSelectorText="x" Skin="Web20">
                                    </Calendar>
                                    <DateInput ID="DateInput2" runat="server" DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy">
                                    </DateInput>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                </telerik:RadDatePicker>
                            </td>
                            <td align="left" width="25%">
                                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="Rebate Amount:"></asp:Label>
                            </td>
                            <td align="left" colspan="2" width="25%">
                                <telerik:RadNumericTextBox ID="RebateAmt" runat="server" Text='<%# Bind("rebate_amount") %>'
                                    Skin="Web20" Width="70px">
                                </telerik:RadNumericTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" width="25%">
                                <asp:CheckBox ID="AgentRebApplyAllCB" runat="server" AutoPostBack="true" Font-Names="Arial"
                                    Font-Size="X-Small" Text="Apply To All Ports" />
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" colspan="2" width="25%">
                                <asp:Label ID="RebORLabel0" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="Rate Terms:"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="25%">
                                <asp:Label ID="RebAPLabel" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small"
                                    Text="Applicable Port:"></asp:Label>
                            </td>
                            <td align="left" width="25%">
                                <telerik:RadComboBox ID="RebAppPortComboBox" runat="server" Skin="Web20">
                                </telerik:RadComboBox>
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" colspan="2" width="25%">
                                <telerik:RadComboBox ID="RebTermComboBox" runat="server" DataTextField="term_type"
                                    DataValueField="termID" Skin="Web20" Width="150px">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="--" Value="0" Selected="true" />
                                        <telerik:RadComboBoxItem runat="server" Text="Weekly" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Monthly" Value="2" />
                                        <telerik:RadComboBoxItem runat="server" Text="Quaterly" Value="3" />
                                        <telerik:RadComboBoxItem runat="server" Text="Half Year" Value="4" />
                                        <telerik:RadComboBoxItem runat="server" Text="Yearly" Value="5" />
                                    </Items>
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" colspan="2" width="25%">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" width="25%">
                            </td>
                            <td align="left" style="width: 12.5%" width="12.5%">
                                <telerik:RadButton ID="btnUpdate" CommandName='<%#  Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'
                                    runat="server" Skin="Web20" Text='<%#  Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'>
                                </telerik:RadButton>
                            </td>
                            <td align="left" style="width: 12.5%" width="12.5%">
                                <telerik:RadButton ID="btnCancel" runat="server" Skin="Web20" CausesValidation="false"
                                    CommandName="Cancel" Text="Cancel">
                                </telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                </FormTemplate>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
</asp:Content>
