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

📄 userindividuation.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace PowerEasy.WebSite.Controls
{
    using PowerEasy.Common;
    using PowerEasy.Components;
    using PowerEasy.Model.UserManage;
    using PowerEasy.ModelControls;
    using PowerEasy.Web.UI;
    using System;
    using System.Text;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class UserIndividuation : BaseUserControl
    {
        protected CheckBox ChkCommentNeedCheck;
        protected CheckBox ChkEnableComment;
        protected CheckBox ChkEnableExchangePoint;
        protected CheckBox ChkEnableExchangeValidDate;
        protected CheckBox ChkEnableGivePointToOthers;
        protected CheckBox ChkEnablePm;
        protected CheckBox ChkManageSelfPublicInfo;
        protected CheckBox ChkPublicInfoNoNeedCheck;
        protected CheckBox ChkSetEditor;
        protected CheckBox ChkSetEnableSale;
        protected CheckBox ChkSetToNotCheck;
        protected Label LblGetExp;
        protected Label LblGetExp2;
        protected Label LblManageSelfPublicInfo;
        protected Label LblMaxPublicInfoOneDay;
        protected Label LblMaxPublicInfoOneDay2;
        protected Label LblSetEditor;
        protected Label LblSetToNotCheck;
        protected HtmlTableRow PnlCharge;
        protected HtmlTableRow PnlComment;
        protected HtmlTableRow PnlEnableExchange;
        protected HtmlTableRow PnlFavorite;
        protected HtmlTableRow PnlMessage;
        protected HtmlTableRow PnlMinusPoint;
        protected HtmlTableRow PnlPublicInfo;
        protected HtmlTableRow PnlShop;
        protected RadioButton RadChargeByPoint;
        protected RadioButton RadChargeByPointAndValidDate;
        protected RadioButton RadChargeByPointOrValidDate;
        protected RadioButton RadChargeByValidDate;
        protected RadioButton RadMinusPoint;
        protected RadioButton RadNotMinusPointNotWriteToLog;
        protected RadioButton RadWriteToLog;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName1;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName10;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName11;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName12;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName13;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName14;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName2;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName3;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName4;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName5;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName6;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName7;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName8;
        protected PowerEasy.ModelControls.ShowPointName ShowPointName9;
        protected HtmlGenericControl SpanSetToNotCheck;
        protected TextBox TxtDiscount;
        protected TextBox TxtGetExp;
        protected TextBox TxtMaxPublicInfoOneDay;
        protected TextBox TxtMaxSaveInfos;
        protected TextBox TxtMaxSendToUsers;
        protected TextBox TxtOverdraft;
        protected TextBox TxtTotalViewInfoNumber;
        protected TextBox TxtViewInfoNumberOneDay;
        protected RangeValidator ValgGetExp;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                if (BaseUserControl.RequestInt32("GroupId") == -2)
                {
                    this.ChkManageSelfPublicInfo.Visible = false;
                    this.ChkSetToNotCheck.Visible = false;
                    this.ChkSetEditor.Visible = false;
                    this.LblMaxPublicInfoOneDay.Visible = false;
                    this.LblGetExp.Visible = false;
                    this.LblManageSelfPublicInfo.Visible = false;
                    this.LblSetToNotCheck.Visible = false;
                    this.LblSetEditor.Visible = false;
                    this.LblMaxPublicInfoOneDay.Visible = false;
                    this.LblMaxPublicInfoOneDay2.Visible = false;
                    this.LblGetExp.Visible = false;
                    this.LblGetExp2.Visible = false;
                    this.TxtMaxPublicInfoOneDay.Visible = false;
                    this.TxtGetExp.Visible = false;
                    this.PnlComment.Visible = false;
                    this.PnlMessage.Visible = false;
                    this.PnlFavorite.Visible = false;
                    this.PnlShop.Visible = false;
                    this.PnlCharge.Visible = false;
                    this.PnlMinusPoint.Visible = false;
                    this.PnlEnableExchange.Visible = false;
                }
                if (!SiteConfig.SiteOption.EnablePointMoneyExp)
                {
                    this.LblGetExp.Visible = false;
                    this.TxtGetExp.Visible = false;
                    this.LblGetExp2.Visible = false;
                    this.PnlCharge.Style.Add("display", "none");
                    this.PnlMinusPoint.Style.Add("display", "none");
                    this.PnlEnableExchange.Style.Add("display", "none");
                }
                this.PnlShop.Visible = base.IseShop;
            }
            if (this.PublicInfoNoNeedCheck)
            {
                this.SpanSetToNotCheck.Style.Add("display", "none");
            }
            this.ChkPublicInfoNoNeedCheck.Attributes.Add("onclick", "SwicthPublicInfoNoNeedCheck(this);");
            StringBuilder builder = new StringBuilder();
            builder.Append("<script type=\"text/javascript\">");
            builder.Append("function SwicthPublicInfoNoNeedCheck(obj)");
            builder.Append("{");
            builder.Append("if(obj.checked){");
            builder.Append("document.getElementById(\"" + this.SpanSetToNotCheck.ClientID + "\").style.display = \"none\";");
            builder.Append("}else{");
            builder.Append("document.getElementById(\"" + this.SpanSetToNotCheck.ClientID + "\").style.display = \"\";");
            builder.Append("}}</script>");
            this.Page.ClientScript.RegisterStartupScript(base.GetType(), "SwicthPublicInfoNoNeedCheck", builder.ToString());
        }

        public bool ChargeByPoint
        {
            get
            {
                return this.RadChargeByPoint.Checked;
            }
            set
            {
                this.RadChargeByPoint.Checked = value;
            }
        }

        public bool ChargeByPointAndValidDate
        {
            get
            {
                return this.RadChargeByPointAndValidDate.Checked;
            }
            set
            {
                this.RadChargeByPointAndValidDate.Checked = value;
            }
        }

        public bool ChargeByPointOrValidDate
        {
            get
            {
                return this.RadChargeByPointOrValidDate.Checked;
            }
            set
            {
                this.RadChargeByPointOrValidDate.Checked = value;
            }
        }

        public bool ChargeByValidDate
        {
            get
            {
                return this.RadChargeByValidDate.Checked;
            }
            set
            {
                this.RadChargeByValidDate.Checked = value;
            }
        }

        public bool CommentNeedCheck
        {
            get
            {
                return this.ChkCommentNeedCheck.Checked;
            }
            set
            {
                this.ChkCommentNeedCheck.Checked = value;
            }
        }

        public double Discount
        {
            get
            {
                return DataConverter.CDouble(this.TxtDiscount.Text);
            }
            set
            {
                this.TxtDiscount.Text = value.ToString();
            }
        }

        public bool EnableComment
        {
            get
            {
                return this.ChkEnableComment.Checked;
            }
            set
            {
                this.ChkEnableComment.Checked = value;
            }
        }

        public bool EnableExchangePoint
        {
            get
            {
                return this.ChkEnableExchangePoint.Checked;
            }
            set
            {
                this.ChkEnableExchangePoint.Checked = value;
            }
        }

        public bool EnableExchangeValidDate
        {
            get
            {
                return this.ChkEnableExchangeValidDate.Checked;
            }
            set
            {
                this.ChkEnableExchangeValidDate.Checked = value;
            }
        }

        public bool EnableGivePointToOthers
        {
            get
            {
                return this.ChkEnableGivePointToOthers.Checked;
            }
            set
            {
                this.ChkEnableGivePointToOthers.Checked = value;
            }
        }

        public bool Enablepm
        {
            get
            {
                return this.ChkEnablePm.Checked;

⌨️ 快捷键说明

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