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

📄 collectionprogress.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
📖 第 1 页 / 共 5 页
字号:
                CollectionHistory.Add(collectionHistoryInfo);
            }
            this.m_CollectionMessage = this.m_CollectionMessage + this.m_CollectionItemInfo.ItemName + "全部采集完成!<br/>";
            this.m_CollectionErrorTime = DateTime.Now;
        }

        private void StartCreate()
        {
            this.m_CreateThread = new Thread(new ThreadStart(this.Work));
            this.m_CreateThread.Start();
        }

        private void Work()
        {
            try
            {
                if (string.IsNullOrEmpty(this.ItemId))
                {
                    this.m_ErrorInfo = "<li>没有选择要采集的项目!</li>";
                }
                else if (this.ItemId.IndexOf(',') > 0)
                {
                    string[] strArray = this.ItemId.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                    this.m_ItemCount = strArray.Length;
                    foreach (string str in strArray)
                    {
                        this.Detection(DataConverter.CLng(str));
                        if (string.IsNullOrEmpty(this.ErrorInfo))
                        {
                            this.StartCollection();
                            this.m_ItemCompleted++;
                            this.m_CollectionMessage = "";
                        }
                    }
                }
                else
                {
                    this.m_ItemCount = 1;
                    this.m_ItemCompleted = 1;
                    this.Detection(DataConverter.CLng(this.ItemId));
                    if (string.IsNullOrEmpty(this.ErrorInfo))
                    {
                        this.StartCollection();
                    }
                }
            }
            catch (Exception exception)
            {
                this.m_ErrorInfo = exception.Message;
            }
            finally
            {
                if (this.CreateThread != null)
                {
                    this.CreateThread.Abort();
                }
            }
        }

        public string AdminName
        {
            get
            {
                return this.m_AdminName;
            }
            set
            {
                this.m_AdminName = value;
            }
        }

        public int CollectionCompleted
        {
            get
            {
                return this.m_CollectionCompleted;
            }
            set
            {
                this.m_CollectionCompleted = value;
            }
        }

        public int CollectionCount
        {
            get
            {
                return this.m_CollectionCount;
            }
            set
            {
                this.m_CollectionCount = value;
            }
        }

        public DateTime CollectionErrorTime
        {
            get
            {
                return this.m_CollectionErrorTime;
            }
            set
            {
                this.m_CollectionErrorTime = value;
            }
        }

        public string CollectionMessage
        {
            get
            {
                return this.m_CollectionMessage;
            }
            set
            {
                this.m_CollectionMessage = value;
            }
        }

        public int CollectionPhotoFailure
        {
            get
            {
                return this.m_CollectionPhotoFailure;
            }
            set
            {
                this.m_CollectionPhotoFailure = value;
            }
        }

        public int CollectionPhotoSuccess
        {
            get
            {
                return this.m_CollectionPhotoSuccess;
            }
            set
            {
                this.m_CollectionPhotoSuccess = value;
            }
        }

        public DateTime CollectionStartTime
        {
            get
            {
                return this.m_CollectionStartTime;
            }
            set
            {
                this.m_CollectionStartTime = value;
            }
        }

        public string CreateId
        {
            get
            {
                return this.m_CreateId;
            }
            set
            {
                this.m_CreateId = value;
            }
        }

        public Thread CreateThread
        {
            get
            {
                return this.m_CreateThread;
            }
        }

        public string ErrorInfo
        {
            get
            {
                return this.m_ErrorInfo;
            }
            set
            {
                this.m_ErrorInfo = value;
            }
        }

        public bool IsInput
        {
            get
            {
                return this.m_IsInput;
            }
            set
            {
                this.m_IsInput = value;
            }
        }

        public bool IsTitle
        {
            get
            {
                return this.m_IsTitle;
            }
            set
            {
                this.m_IsTitle = value;
            }
        }

        public int ItemCompleted
        {
            get
            {
                return this.m_ItemCompleted;
            }
            set
            {
                this.m_ItemCompleted = value;
            }
        }

        public int ItemCount
        {
            get
            {
                return this.m_ItemCount;
            }
            set
            {
                this.m_ItemCount = value;
            }
        }

        public string ItemId
        {
            get
            {
                return this.m_ItemId;
            }
            set
            {
                this.m_ItemId = value;
            }
        }

        public string PhysicalApplicationPath
        {
            get
            {
                return this.m_PhysicalApplicationPath;
            }
            set
            {
                this.m_PhysicalApplicationPath = value;
            }
        }

        public string UserName
        {
            get
            {
                return this.m_UserName;
            }
            set
            {
                this.m_UserName = value;
            }
        }
    }
}

⌨️ 快捷键说明

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