<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CompanyMemberManage.ascx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.Company.CompanyMemberManage" %>
<pe:ExtendedGridView ID="EgvCompanyMember" Width="100%" AutoGenerateColumns="false"
    runat="server" OnRowCommand="EgvCompanyMember_RowCommand" OnRowDataBound="EgvCompanyMember_RowDataBound">
    <Columns>
        <pe:BoundField DataField="UserName" HeaderText="会员名 "
            HeaderStyle-Width="10%">
        </pe:BoundField>
        <pe:BoundField DataField="TrueName" HeaderText="真实姓名 "
            HeaderStyle-Width="10%">
        </pe:BoundField>
        <pe:BoundField DataField="ZipCode" HeaderText="邮政编码 "
            HeaderStyle-Width="10%">
        </pe:BoundField>
        <pe:BoundField DataField="Address" HeaderText="联系地址 ">
        </pe:BoundField>
        <pe:TemplateField HeaderText="状态 "
            HeaderStyle-Width="12%">
            <ItemTemplate>
                <%#GetUserTypeText(Convert.ToInt32(Eval("UserType")))%>
            </ItemTemplate>
        </pe:TemplateField>
        <pe:TemplateField HeaderStyle-Width="25%" HeaderText="操作 ">
            <ItemTemplate>
                <asp:LinkButton ID="LbtnRemoveFromCompany" Enabled="false" runat="server" CommandArgument='<%#Eval("UserName") %>'
                    CommandName="RemoveFromCompany" Text="从企业中删除 "></asp:LinkButton>
                <asp:LinkButton ID="LbtnAddToAdmin" Enabled="false" runat="server" CommandArgument='<%#Eval("UserName") %>'
                    CommandName="AddToAdmin" Text="升级为管理员 "></asp:LinkButton><br />
                <asp:LinkButton ID="LbtnRemoveFromAdmin" Enabled="false" runat="server" CommandArgument='<%#Eval("UserName") %>'
                    CommandName="RemoveFromAdmin" Text="降为普通成员 "></asp:LinkButton>
                <asp:LinkButton ID="LbtnAgree" Enabled="false" runat="server" CommandArgument='<%#Eval("UserName") %>'
                    CommandName="Agree" Text="批准加入 "></asp:LinkButton>
                <asp:LinkButton ID="LbtnReject" Enabled="false" runat="server" CommandArgument='<%#Eval("UserName") %>'
                    CommandName="Reject" Text="拒绝加入 "></asp:LinkButton>
            </ItemTemplate>
        </pe:TemplateField>
    </Columns>
</pe:ExtendedGridView>
<asp:HiddenField ID="HdnCompanyClientId" runat="server" />
<asp:HiddenField ID="HdnReturnUrl" runat="server" />
