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

📄 createhtmlprogress.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls
{
    using PowerEasy.AccessManage;
    using PowerEasy.Enumerations;
    using PowerEasy.StaticHtml;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Xml;

    public class CreateHtmlProgress : BaseUserControl
    {
        protected Button BtnStopCreate;
        protected HtmlForm form1;
        protected HiddenField HdnWorkId;
        protected string m_UrlReferrer = "";
        private XmlNodeList nodeList;
        private string path = HttpContext.Current.Server.MapPath("~/Config/CreateHtmlWork.config");
        protected ScriptManager ScriptManager1;
        private XmlDocument xmlDoc = new XmlDocument();

        protected void BtnStopCreate_Click(object sender, EventArgs e)
        {
            foreach (XmlNode node in this.nodeList)
            {
                string name = node.Attributes[0].Value;
                if (base.Application[name] != null)
                {
                    HtmlAbstract @abstract = base.Application[name] as HtmlAbstract;
                    @abstract.CreateThread.Abort();
                    base.Application.Remove(name);
                }
                if (string.Compare(node.Attributes[0].Value, name, true) == 0)
                {
                    this.xmlDoc.SelectSingleNode("CreateWork").RemoveChild(node);
                }
            }
            this.BtnStopCreate.Visible = false;
            this.xmlDoc.Save(this.path);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.m_UrlReferrer = base.Request.UrlReferrer.ToString();
            this.nodeList = this.xmlDoc.SelectNodes("CreateWork/WorkId");
            this.xmlDoc.Load(this.path);
            RolePermissions.BusinessAccessCheck(OperateCode.CreateHtmlManage);
            this.HdnWorkId.Value = BaseUserControl.RequestString("WorkId");
            if (this.nodeList.Count > 0)
            {
                this.BtnStopCreate.Visible = true;
            }
            else
            {
                this.BtnStopCreate.Visible = false;
            }
        }
    }
}

⌨️ 快捷键说明

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