pointlogdetail.cs

来自「动易SiteFactory&#8482 网上商店系统1.0源代码」· CS 代码 · 共 55 行

CS
55
字号
namespace PowerEasy.WebSite.Admin.User
{
    using PowerEasy.Controls;
    using PowerEasy.Model.UserManage;
    using PowerEasy.UserManage;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.WebControls;

    public class PointLogDetail : AdminPage
    {
        protected Label LblIncomePayOut;
        protected Label LblInputer;
        protected Label LblIP;
        protected Label LblLogTime;
        protected Label LblMemo;
        protected Label LblRemark;
        protected Label LblTimes;
        protected Label LblUserName;
        protected ExtendedSiteMapPath SmpNavigator;

        protected void Page_Load(object sender, EventArgs e)
        {
            int logId = BasePage.RequestInt32("LogID");
            if (!this.Page.IsPostBack)
            {
                UserPointLogInfo pointLogById = UserPointLog.GetPointLogById(logId);
                if (!pointLogById.IsNull)
                {
                    this.LblLogTime.Text = pointLogById.LogTime.ToString();
                    this.LblUserName.Text = pointLogById.UserName;
                    this.LblIP.Text = pointLogById.IP;
                    if (pointLogById.IncomePayOut == 1)
                    {
                        this.LblIncomePayOut.Text = "收入 " + pointLogById.Point.ToString();
                    }
                    else
                    {
                        this.LblIncomePayOut.Text = "支出 " + pointLogById.Point.ToString();
                    }
                    this.LblTimes.Text = pointLogById.Times.ToString();
                    this.LblInputer.Text = pointLogById.Inputer;
                    this.LblRemark.Text = pointLogById.Remark;
                    this.LblMemo.Text = pointLogById.Memo;
                }
                else
                {
                    AdminPage.WriteErrMsg("<li>找不到对应记录!</li>");
                }
            }
        }
    }
}

⌨️ 快捷键说明

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