Quartz.Net CronExpression Builder

2019-03-20 03:57发布

I have some GUI controls forming a typical windows scheduler (Date\Time pickers, check boxes, etc) that I would like to build a CronExpression string from.

Does anyone know of a good way to build the expression string, either a pre-existing class or good approaches to tackle this problem?

标签: c# quartz.net
3条回答
做个烂人
2楼-- · 2019-03-20 04:25

Cron expressions in Quartz.Net are made up of 7 sub-expressions:

1. Seconds
2. Minutes
3. Hours
4. Day-of-Month
5. Month
6. Day-of-Week
7. Year (optional field)

I usually use CronMaker to create my own cron expressions.

Another option is this other tool which works pretty well.

查看更多
该账号已被封号
3楼-- · 2019-03-20 04:41

His question is whether there is a way to build a cron expression using an interface (may be a window made through JavaScript) where there are check boxes and radio buttons to check and select options. And according to selected and checked option a cron expression will be created.

Answer to this question is you have to write logic after checking all the options that has been checked. There is no direct way to do this.

查看更多
Evening l夕情丶
4楼-- · 2019-03-20 04:44

I used this jQuery plug-in with asp.net and Quartz.Net to schedule the cron jobs: http://shawnchin.github.com/jquery-cron/

This was a good alternative too: http://www.geekytidbits.com/cron-expression-descriptor-demo/Default.aspx

查看更多
登录 后发表回答