<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="true" MasterPageFile="~/Main.Master"
    Theme="Default"  CodeBehind="ProductGroupList.aspx.cs" Inherits="OAWeb.crm.Agent.ProductGroupList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="/UserControls/AgentLeft.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:TaskNav ID="TaskNav1" runat="server" />
            </td>
            <td class="main_center">
                <div class="page_main">
                    <div class="page_content">
                        <table class="data_title" style="margin-top: 10px;">
                            <tr>
                                <td class="data_caption">
                                    产品组列表
                                </td>
                            </tr>
                            <tr>
                                <td class="data-field">
                                    <table width="60%">
                                        <tr>
                                            <td class="tb-editor" nowrap="nowrap">
                                                <asp:Button ID="btnAdd" runat="server" Text="添加产品组" CssClass="btn_77px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <asp:GridView ID="gvMath" runat="server" AutoGenerateColumns="False" DataKeyNames=""
                            Width="99%" OnRowDataBound="gvMath_RowDataBound" OnRowCommand="gvMath_RowCommand">
                            <HeaderStyle Wrap="False" CssClass="title"></HeaderStyle>
                            <Columns>
                                <asp:TemplateField HeaderText="产品组名称">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%# Eval("Name")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="产品数量">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblCount" runat="server" Text=""></asp:Label>  
                                        <a style=" margin-left:15px;" href='javascript:void(0)' onclick="OpenDialog('/crm/agent/ProductGroupItemList.aspx?Id=<%# Eval("Id") %>','');return false;" >管理</a>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="备注">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%# Eval("remark")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="操作">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="lbtnEdit" CommandArgument='<%# Eval("Id") %>'>编辑</asp:LinkButton>
                                        <asp:LinkButton ID="lbtnDel" OnClientClick="return confirm('此等级下的代理商将使用默认等级，是否继续？')"
                                            runat="server" CommandName="lbtnDel" CommandArgument='<%# Eval("Id") %>'>删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
