private void BindlstReecntTimes()
        {
            BindControl.BindListBox(lstReecntTimes, new List <KVEntity>());

            if (rdoOneTimes.Checked)
            {
                if (cbxOneTimesHour.SelectedIndex == 0 || cbxOneTimesMinute.SelectedIndex == 0)
                {
                    return;
                }
            }
            else
            {
                if (cbxMultiTimesMinute.SelectedIndex == 0)
                {
                    return;
                }
            }
            string          cronString = QuartzHelper.GenerateCronExpression(BuildCronExpression());
            List <DateTime> list       = QuartzHelper.GetNextFireTime(cronString, 8);
            List <KVEntity> kvList     = list.Select(item => new KVEntity {
                K = item.ToString(), V = item.ToString()
            }).ToList();

            BindControl.BindListBox(lstReecntTimes, kvList);
        }
示例#2
0
        private void BindlstReecntTimes()
        {
            BindControl.BindListBox(lstRecentTimes, new List <KVEntity>());
            if (cbxHour.SelectedIndex == 0 || cbxMinute.SelectedIndex == 0 || chklstMonths.CheckedItems.Count == 0)
            {
                return;
            }

            string          cronString = QuartzHelper.GenerateCronExpression(_cronExpressionEntity);
            List <DateTime> list       = QuartzHelper.GetNextFireTime(cronString, 8);
            List <KVEntity> kvList     = list.Select(item => new KVEntity {
                K = item.ToString(), V = item.ToString()
            }).ToList();

            BindControl.BindListBox(lstRecentTimes, kvList);
        }
 /// <summary>
 /// 获取Cron表达式串
 /// </summary>
 /// <returns></returns>
 public string GetCronExpressionString()
 {
     return(QuartzHelper.GenerateCronExpression(BuildCronExpression()));
 }
示例#4
0
 public string GetCronExpressionString()
 {
     return(QuartzHelper.GenerateCronExpression(_cronExpressionEntity));
 }