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

📄 cardshow.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Admin.User
{
    using PowerEasy.Accessories;
    using PowerEasy.Common;
    using PowerEasy.Controls;
    using PowerEasy.Model.Accessories;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;

    public class CardShow : AdminPage
    {
        protected ExtendedSiteMapPath SmpNavigator;
        protected HtmlTableCell TdAgentName;
        protected HtmlTableCell TdCardNum;
        protected HtmlTableCell TdCardType;
        protected HtmlTableCell TdCreateTime;
        protected HtmlTableCell TdEndDate;
        protected HtmlTableCell TdMoney;
        protected HtmlTableCell TdPassword;
        protected HtmlTableCell TdProductName;
        protected HtmlTableCell TdStatus;
        protected HtmlTableCell TdUserName;
        protected HtmlTableCell TdUseTime;
        protected HtmlTableCell TdValidNum;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.ShowCard();
            }
        }

        private void ShowCard()
        {
            int cardId = BasePage.RequestInt32("CardId");
            if (cardId > 0)
            {
                CardInfo cardById = Cards.GetCardById(cardId);
                this.TdCardType.InnerHtml = Cards.GetCardType(cardById.CardType);
                this.TdProductName.InnerHtml = Cards.GetProductName(cardById.ProductName);
                this.TdCardNum.InnerHtml = cardById.CardNum;
                this.TdPassword.InnerHtml = StringHelper.Base64StringDecode(cardById.Password);
                this.TdMoney.InnerHtml = cardById.Money.ToString("N2");
                this.TdValidNum.InnerHtml = cardById.ValidNum.ToString() + Cards.GetValidUnitType(cardById.ValidUnit);
                this.TdEndDate.InnerHtml = cardById.EndDate.ToString("yyyy-MM-dd");
                this.TdCreateTime.InnerHtml = cardById.CreateTime.ToString();
                this.TdStatus.InnerHtml = Cards.GetCardStatus(cardById);
                this.TdUserName.InnerHtml = cardById.UserName;
                this.TdUseTime.InnerHtml = !cardById.UseTime.HasValue ? "" : cardById.UseTime.ToString();
                this.TdAgentName.InnerHtml = cardById.AgentName;
            }
        }
    }
}

⌨️ 快捷键说明

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