<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="AddCommission.aspx.cs" Inherits="Admin_airtoegen" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

     <script src="script/ddlevelsmenu.js" type="text/javascript"></script>
  
    <script src="script/func.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td style="text-align:center">
                <asp:Label ID="Label3" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">
            </td>
        </tr>
        <tr>
            <td>
                <table width="80%" style="text-align:center">
                    <%--<tr>
                        <td style="text-align:right" width="45%">
                            Service Type
                        </td>
                        <td align="center">
                            ::
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlServiceType" runat="server" AutoPostBack="false" Width="120px">
                                <asp:ListItem>Online</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>--%>
                    
                    <tr>
                        <td style="text-align:right" width="45%">
                            User Type
                        </td>
                        <td align="center">
                            ::
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlUserType" runat="server" Width="120px">
                                <%--<asp:ListItem>Select</asp:ListItem>--%>
                                <asp:ListItem>Agent</asp:ListItem>
                                <asp:ListItem>Distributor</asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please Select Type"
                               ControlToValidate="ddlUserType" InitialValue="Select"></asp:RequiredFieldValidator></td>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right">
                            Comission Category
                        </td>
                        <td align="center">
                            ::
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlCategory" runat="server"  Width="120px">
                            </asp:DropDownList>
                            
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Select Comission Category"
                               ControlToValidate="ddlCategory" InitialValue="Select"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right" colspan="2">
                            <asp:Button ID="btnShow" runat="server" Text="Show Detail" OnClick="btnShow_Click" />
                        </td>
                        <td align="left">
                            <asp:Button ID="btnSetCommission" runat="server" Text="Add Commission" OnClick="btnSetCommission_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3">
                            <asp:GridView ID="gvCommissionsheet" runat="server" AutoGenerateColumns="false" 
                                Width="100%" DataKeyNames="MobileDthOperatorDetailsID">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkbox" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Operator">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOperator" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OperatorName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="Service Type" DataField="ServiceType" />
                                    <asp:BoundField HeaderText="Category" DataField="Category" />
                                    <asp:BoundField HeaderText="User Type" DataField="UserType" />
                                    <asp:BoundField HeaderText="Operator Type" DataField="OperatorType" />
                                    <asp:TemplateField HeaderText="Commission">
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtCommission" Width="45px" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CommissionInPercentage") %>'></asp:TextBox>%
                                        </ItemTemplate>
                                    </asp:TemplateField>                                                                       
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="center">
                        </td>
                        <td align="left">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
