<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" MasterPageFile="~/Dialog/DialogMaster.Master"   EnableViewState="true" CodeBehind="CustomerGradeList.aspx.cs" Inherits="OAWeb.crm.customer.CustomerGradeList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div style="width: 600px; height:400px; margin-left:auto; margin-right:auto; padding:10px;">
         <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" />
                                                <input type="button" class="btn_77px" value="关 闭"  onclick="CloseReload()" />
                                            </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>
                                        <%# Eval("Point")%>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="折扣">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%# Eval("discount")%>
                                    </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:Label ID="lblState" runat="server" Text=""></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

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