GZY.Quartz.MUI 2.8.0

dotnet add package GZY.Quartz.MUI --version 2.8.0
                    
NuGet\Install-Package GZY.Quartz.MUI -Version 2.8.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GZY.Quartz.MUI" Version="2.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GZY.Quartz.MUI" Version="2.8.0" />
                    
Directory.Packages.props
<PackageReference Include="GZY.Quartz.MUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GZY.Quartz.MUI --version 2.8.0
                    
#r "nuget: GZY.Quartz.MUI, 2.8.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GZY.Quartz.MUI@2.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GZY.Quartz.MUI&version=2.8.0
                    
Install as a Cake Addin
#tool nuget:?package=GZY.Quartz.MUI&version=2.8.0
                    
Install as a Cake Tool

GZY.Quartz.MUI

轻量级 Quartz 可视化管理 UI 组件库 支持平台:.NET 5.0 / .NET 6.0 / .NET 8.0

Licence Build NuGet Support
alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image .Net5.0&.Net6.0&.Net8.0

✨ 功能特性

  • 📊 可视化管理 Quartz 作业:添加、修改、删除、暂停、恢复任务
  • 🔌 ClassJob 模式支持:直接通过类定义并注册任务
  • 🗂️ 存储方式可选:支持文件存储、数据库存储两种模式
  • 📦 Razor Class Library (RCL) 打包:静态资源嵌入程序集,开箱即用
  • 🛠️ 无侵入集成:通过中间件和服务扩展快速接入

📦 安装

NuGet 安装:

dotnet add package GZY.Quartz.MUI

🚀 快速开始

一、文件存储版本(适合轻量应用)

1.在 Program.cs 或 Startup.cs 注册服务:

services.AddQuartzUI();
services.AddQuartzClassJobs(); // 如果需要 ClassJob 模式

2.在 Configure 中启用中间件:

app.UseQuartz();

二、数据库存储版本(适合中大型需持久化任务场景,以mysql为例)

1.在 Program.cs 或 Startup.cs 注册服务:

var optionsBuilder = new DbContextOptionsBuilder<QuarzEFContext>();
optionsBuilder.UseMysql("server=xxxxxxx;database=xxx;User Id=xxxx;PWD=xxxx", b => b.MaxBatchSize(1));//创建数据库连接
services.AddQuartzUI(optionsBuilder.Options); //注入UI组件

2.在 Configure 中启用中间件:

app.UseQuartz();

三、启动应用,并输入地址后缀/QuartzUI,比如:

localhost:5260/QuartzUI

中文详细使用方法请参考: https://www.cnblogs.com/GuZhenYin/p/15411316.html

📸 运行效果

运行项目即可
<img width="1883" height="531" alt="微信图片_20250915092354_4272" src="https://github.com/user-attachments/assets/f86ac1e3-66b0-44a7-8cb2-3d6cd13ae7eb" /> <img width="1893" height="950" alt="微信图片_20250915092334_4271" src="https://github.com/user-attachments/assets/b4e9adc7-30ea-49ce-9145-48e40e14fb0f" />

运行效果如下: 653851-20211229145753683-274021795


🤝 注意事项

有个比较重要的注意事项 因为组件使用RCL的技术实现的,所以在开发环境需要手动添加一下静态资源包 .NET5.0的兄弟应该在Program类中添加如下代码:

webBuilder.UseStaticWebAssets();

如图: image .NET6.0+的兄弟 应该添加如下代码: image

📝 更新说明

2.8 更新说明:

注意:2.8如果是数据库存储并从老版本更新的话 请手动添加JobStatus,DurationMs字段</br> Mysql例子如下:</br>

 ALTER TABLE `tab_quarz_tasklog` ADD COLUMN `DurationMs` int NOT NULL COMMENT '任务耗时(毫秒)';
 ALTER TABLE `tab_quarz_tasklog` ADD COLUMN `JobStatus` int NOT NULL COMMENT '任务执行结果';

1.新增任务界面搜索功能,可根据任务名称和任务分组名进行检索</br> 2.新增任务仪表盘界面,方便随时监控定时任务情况</br> 3.修复秒级任务在项目启动时偶尔会执行一次的BUG </br> 4.修复API类型的任务异常被忽略,无法显示的问题</br> 5.优化文件存储时,对文件操作的并发控制,确保在多线程环境下的安全性</br>


2.7 更新说明:

注意:2.7如果是数据库存储并从老版本更新的话,请手动给tab_quarz_task表添加ApiTimeOut字段</br> Mysql例子如下:</br>

ALTER TABLE `tab_quarz_task` ADD COLUMN `ApiTimeOut` int NULL;

1.添加API类任务的超时时间,可以通过全局配置也可以单个任务设置</br> 2.设置定时任务日志查看默认按开始时间倒序</br> 3.添加是否显示控制台日志的全局配置 </br> 目前支持两个参数:<br /> ShowConsoleLog //是否显示控制台日志 <br /> DefaultApiTimeOut //默认全局API超时时间 <br /> 初始化时,添加代码如下:

builder.Services.AddQuartzUI(quartzMUIOptions: new QuartzMUIOptions() { ShowConsoleLog=false,DefaultApiTimeOut=10});

4.优化UI显示-固定操作栏和表头,方便任务较多的情况下操作</br> 5.优化UI显示-执行记录消息添加支持br关键字进行换行查看</br> 6.修复API类定时任务在没有参数的情况下会报错的问题</br>


Star History

Star History Chart

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on GZY.Quartz.MUI:

Package Downloads
FlexibleCore

FlexibleCore 快速开发框架,基于 .NET Core 开发,目前兼容:.NET 6。直接引用,通过简单的配置即可适用。 帮助文档会在 https://www.liulinguang.com/ 更新

FlexibleCoreNet

.NET Core 快速开发框架,基于 .NET Core 开发,目前兼容:.NET 8。直接引用,通过简单的配置即可适用。 帮助文档会在 https://www.liulinguang.com/ 更新

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.8.0 264 9/15/2025
2.7.0 4,705 9/20/2024
2.6.0 3,193 12/13/2023
2.5.0 248 12/13/2023
2.4.0 1,982 6/15/2023
2.3.0 745 5/25/2023
2.2.0 419 5/18/2023
2.1.0 373 5/17/2023
2.0.0 3,419 8/31/2022 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
1.1.5 3,286 4/1/2022
1.1.4 625 1/13/2022
1.1.3 1,553 12/27/2021
1.1.2 574 10/18/2021
1.1.1 530 10/15/2021
1.1.0 616 10/15/2021 1.1.0 is deprecated because it has critical bugs.