⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usershow.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 4 页
字号:
namespace PowerEasy.WebSite.Admin.User
{
    using PowerEasy.AccessManage;
    using PowerEasy.Accessories;
    using PowerEasy.Common;
    using PowerEasy.Components;
    using PowerEasy.Contents;
    using PowerEasy.Controls;
    using PowerEasy.Crm;
    using PowerEasy.Enumerations;
    using PowerEasy.ExtendedControls;
    using PowerEasy.Model.Accessories;
    using PowerEasy.Model.Crm;
    using PowerEasy.Model.Shop;
    using PowerEasy.Model.UserManage;
    using PowerEasy.ModelControls;
    using PowerEasy.Shop;
    using PowerEasy.UserManage;
    using PowerEasy.Web.UI;
    using PowerEasy.WebSite.Controls;
    using System;
    using System.Collections;
    using System.Data;
    using System.Web;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class UserShow : AdminPage
    {
        protected HtmlTableRow BalancePoint;
        protected ExtendedButton BtnAddPoint;
        protected ExtendedButton BtnAddValidDate;
        protected ExtendedButton BtnDelete;
        protected ExtendedButton BtnExchangePoint;
        protected ExtendedButton BtnExchangeValid;
        protected ExtendedButton BtnIncome;
        protected ExtendedButton BtnLock;
        protected ExtendedButton BtnMessage;
        protected ExtendedButton BtnMinusPoint;
        protected ExtendedButton BtnMinusValidDate;
        protected ExtendedButton BtnModifyPurview;
        protected ExtendedButton BtnModifyUserSubmit;
        protected ExtendedButton BtnPayment;
        protected CompanyInfoControl CompanyInfo1;
        protected CompanyMemberManage CompanyMemberManage1;
        protected HtmlTableRow ConsumeExp;
        protected HtmlTableRow ConsumeMoney;
        protected HtmlGenericControl Details;
        protected ExtendedButton EBtnRegClient;
        protected ExtendedButton EBtnRegCompany;
        protected ExtendedGridView EgvAgentOrders;
        protected ExtendedGridView EgvBankrollItem;
        protected ExtendedGridView EgvBill;
        protected ExtendedGridView EgvComplain;
        protected ExtendedGridView EgvOrder;
        protected ExtendedGridView EgvUserPoint;
        protected ExtendedGridView EgvUserValid;
        protected HtmlTableRow ExpValid;
        protected ExtendedGridView GdvPaymentLogList;
        protected HiddenField HdnLockType;
        protected HtmlTableCell InfoNull;
        protected HtmlTableCell InfoTabTitle0;
        protected HtmlTableCell InfoTabTitle1;
        protected HtmlTableCell InfoTabTitle2;
        protected HtmlTableCell InfoTabTitle3;
        protected HtmlTableCell InfoTabTitle4;
        protected HtmlTableCell InfoTabTitle5;
        protected HtmlTableCell InfoTabTitle6;
        protected HtmlTableCell InfoTabTitle7;
        protected Label LblAddress;
        protected Label LblAim;
        protected Label LblBalance;
        protected Label LblBirthday;
        protected Label LblCity;
        protected Label LblCompany;
        protected Label LblCompanyAddress;
        protected Label LblConsumeExp;
        protected Label LblConsumeMoney;
        protected Label LblConsumePoint;
        protected Label LblCountry;
        protected Label LblDelItems;
        protected Label LblDepartment;
        protected Label LblEducation;
        protected Label LblEmail;
        protected Label LblFax;
        protected Label LblGraduateFrom;
        protected Label LblGroupName;
        protected Label LblHomePage;
        protected Label LblHomephone;
        protected Label LblICQ;
        protected Label LblIDCard;
        protected Label LblIncome;
        protected Label LblInterestsOfAmusement;
        protected Label LblInterestsOfCulture;
        protected Label LblInterestsOfLife;
        protected Label LblInterestsOfOther;
        protected Label LblInterestsOfSport;
        protected Label LblJoinTime;
        protected Label LblLastLoginIP;
        protected Label LblLastLoginTime;
        protected Label LbllEmail;
        protected Label LblLoginTimes;
        protected Label LblMarriage;
        protected Label LblMobile;
        protected Label LblMSN;
        protected Label LblNation;
        protected Label LblNativePlace;
        protected Label LblOfficePhone;
        protected Label LblOperation;
        protected Label LblPassedItems;
        protected Label LblPHS;
        protected Label LblPosition;
        protected Label LblPostItems;
        protected Label LblProvince;
        protected Label LblQQ;
        protected Label LblRegTime;
        protected Label LblRejectItems;
        protected Label LblSex;
        protected Label LblSpecialPermission;
        protected Label LblTitle;
        protected Label LblTrueName;
        protected Label LblUC;
        protected Label LblUnreadMsg;
        protected Label LblUnsignedItems;
        protected Label LblUserExp;
        protected Label LblUserFriendGroup;
        protected Label LblUserId;
        protected Label LblUserName;
        protected Label LblUserPoint;
        protected Label LblUserStatus;
        protected Label LblUserType;
        protected Label LblValidNum;
        protected Label LblYahoo;
        protected Label LblZipCode;
        private decimal m_CurrentPageIncome;
        private decimal m_CurrentPagePayout;
        private decimal m_MoneyReceipt;
        private decimal m_MoneyTotal;
        protected string m_PointName = SiteConfig.UserConfig.PointName;
        private bool m_ShowCompanyInfo;
        private decimal m_TotalIncome;
        private decimal m_TotalPayout;
        protected ObjectDataSource OdsInfo;
        protected ExtendedButton OtherIncome;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName1;
        protected ExtendedSiteMapPath SmpNavigator;
        protected HtmlTableRow Tr1;
        private int userId;
        private string userName;

        protected void BtnAddPoint_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("AddPoint.aspx?UserID=" + this.userId);
        }

        protected void BtnAddValidDate_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("AddValidDate.aspx?UserID=" + this.userId);
        }

        protected void BtnDelete_Click(object sender, EventArgs e)
        {
            if (Users.Delete(this.userId.ToString()))
            {
                BasePage.ResponseRedirect("UserManage.aspx");
            }
            else
            {
                AdminPage.WriteErrMsg("<li>删除会员失败!</li>");
            }
        }

        protected void BtnExchangePoint_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("ExchangePoint.aspx?UserID=" + this.userId);
        }

        protected void BtnExchangeValid_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("ExchangeValid.aspx?UserID=" + this.userId);
        }

        protected void BtnIncome_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("AddIncome.aspx?UserID=" + this.userId);
        }

        protected void BtnLock_Click(object sender, EventArgs e)
        {
            if (this.HdnLockType.Value == "1")
            {
                if (Users.BatchLock(this.userId.ToString()))
                {
                    BasePage.ResponseRedirect("UserShow.aspx?UserID=" + this.userId);
                }
                else
                {
                    AdminPage.WriteErrMsg("<li>操作锁定会员失败!</li>");
                }
            }
            else if (Users.BatchUnlock(this.userId.ToString()))
            {
                BasePage.ResponseRedirect("UserShow.aspx?UserID=" + this.userId);
            }
            else
            {
                AdminPage.WriteErrMsg("<li>操作解锁会员失败!</li>");
            }
        }

        protected void BtnMessage_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("../Accessories/MessageSend.aspx?UserName=" + HttpUtility.UrlEncode(this.LblUserName.Text));
        }

        protected void BtnMinusPoint_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("MinusPoint.aspx?UserID=" + this.userId);
        }

        protected void BtnMinusValidDate_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("MinusValidDate.aspx?UserID=" + this.userId);
        }

        protected void BtnModifyPurview_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("ModifyPurview.aspx?UserID=" + this.userId);
        }

        protected void BtnModifyUserSubmit_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("User.aspx?Action=Modify&UserID=" + this.userId.ToString());
        }

        protected void BtnPayment_Click(object sender, EventArgs e)
        {
            BasePage.ResponseRedirect("AddPayment.aspx?UserID=" + this.userId);
        }

        private void CheckAgent(UserInfo userInfo)
        {
            if ((UserGroups.GetUserGroupById(userInfo.GroupId).GroupType == GroupType.Agent) && (SiteConfig.SiteInfo.ProductEdition.CompareTo("eShop") == 0))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -