• 大小: 92.33MB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2022-02-19
  • 语言: C#
  • 标签: asp.net  mvc5  easyui  

资源简介

这是一套通用的基于asp.net mvc5+Easyui开发框架源码,数据库为SQL2008以上。

资源截图

代码片段和文件信息

/*----------------------------------------------------------------
        // Copyright (C) Rookey
        // 版权所有
        // 开发者:rookey
        // Email:rookey@yeah.net
        // 
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Timers;
using System.Web;
using System.Linq;

namespace Rookey.frame.AutoProcess
{
    /// 
    /// 自动处理任务
    /// 

    public class AutoProcessTask
    {
        /// 
        /// 执行Execute方法后事件
        /// 

        public static event EventHandler EventAfterExecute;

        /// 
        /// 是否已经开始运行
        /// 

        private static bool isStart = false;

        /// 
        /// 任务列表
        /// 

        private static List taskList = new List();

        /// 
        /// 是否启动
        /// 

        public static bool IsStart
        {
            get { return isStart; }
        }
       
        /// 
        /// 添加任务
        /// 

        /// 任务对象
        public static void AddTask(BackgroundTask task)
        {
            if (task != null && isStart)
            {
                BackgroundTask tempTask = taskList.Where(x => x.ExecuteMethod == task.ExecuteMethod).FirstOrDefault();
                if (tempTask != null) //系统已存在该任务
                {
                    return;
                }
                taskList.Add(task); //添加到任务列表
                task.Execute(); //开始执行任务
            }
        }

        /// 
        /// 执行任务
        /// 

        public static void Execute()
        {
            isStart = true;
            if (EventAfterExecute != null)
            {
                EventAfterExecute(null null);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\
     文件        5373  2018-03-23 00:55  Rookeyframe-v1.0\README.md
     文件       28254  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame v1.0.sln
     文件     2348544  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame v1.0.suo
     文件     3084800  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame v1.0.v11.suo
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\
     文件        2103  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\AutoProcessTask.cs
     文件        5415  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\BackgroundTask.cs
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\Properties\
     文件        1386  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\Properties\AssemblyInfo.cs
     文件        3812  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\Rookey.frame.AutoProcess.csproj
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Debug\
     文件        6171  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        2733  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Debug\Rookey.frame.AutoProcess.csproj.FileListAbsolute.txt
     文件        7680  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Debug\Rookey.frame.AutoProcess.dll
     文件       17920  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Debug\Rookey.frame.AutoProcess.pdb
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\
     文件        6173  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
     文件        1818  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\Rookey.frame.AutoProcess.csproj.FileListAbsolute.txt
     文件        7168  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\Rookey.frame.AutoProcess.dll
     文件       24064  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\Rookey.frame.AutoProcess.pdb
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\TempPE\
     文件           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.AutoProcess\obj\Release\TempPE\说明.txt
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\base\
     文件       31918  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\base\baseBLL.cs
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\Properties\
     文件        1360  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\Properties\AssemblyInfo.cs
     文件        4567  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\Rookey.frame.BLL.csproj
     目录           0  2018-03-23 00:55  Rookeyframe-v1.0\Rookey.frame.BLL\Sys\
............此处省略8524个文件信息

评论

共有 条评论