Hidistro.UI.Web/Admin/promotion/PointToCash.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.promotion
{
    using ASPNET.WebControls;
    using Hidistro.Core;
    using Hidistro.Core.Entities;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class PointToCash : AdminPage
    {
        protected Button btnQuery;
        protected bool enable;
        protected Repeater grdProducts;
        protected PageSize hrefPageSize;
        protected Button saveBtn;
        protected HtmlForm thisForm;
        protected TextBox txt_MaxAmount;
        protected TextBox txt_name;
        protected TextBox txt_Rate;

        public PointToCash() : base("m08", "yxp03")
        {
        }

        private bool bDecimal(string val, ref decimal i)
        {
            if (string.IsNullOrEmpty(val))
            {
                return false;
            }
            return decimal.TryParse(val, out i);
        }

        private void BindData()
        {
        }

        private bool bInt(string val, ref int i)
        {
            if (string.IsNullOrEmpty(val))
            {
                return false;
            }
            if (val.Contains(".") || val.Contains("-"))
            {
                return false;
            }
            return int.TryParse(val, out i);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
            this.enable = masterSettings.PonitToCash_Enable;
            this.saveBtn.Click += new EventHandler(this.saveBtn_Click);
            if (!base.IsPostBack)
            {
                this.txt_Rate.Text = masterSettings.PointToCashRate.ToString();
后面还有 31 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。