Add "Next start job" properties

Дабавлено указание следующего времени запуска Job.
This commit is contained in:
lsv 2021-02-18 17:02:22 +05:00
parent babb16434f
commit 7d03e7efc0
2 changed files with 5 additions and 2 deletions

View file

@ -144,10 +144,10 @@ public:
bool novalid = false;
int nextp = getnext(_mi, sizeof(_mi) / sizeof(_mi[0]),mi, dr);
if (nextp == -1) {
if (nextp == -1 || !_wd[wd]) {
mi = getfirst(_mi, sizeof(_mi) / sizeof(_mi[0]), dr);
nextp = getnext(_h, sizeof(_h) / sizeof(_h[0]), h, dr);
if (nextp == -1) {
if (nextp == -1 || !_wd[wd]) {
// hours
h = getfirst(_h, sizeof(_h) / sizeof(_h[0]), dr);
do {

View file

@ -148,6 +148,9 @@ void pgproJob::ShowTreeDetail(ctlTree *browser, frmMain *form, ctlListView *prop
properties->AppendItem(_("Comment"), firstLineOnly(GetComment()));
//wxDateTime dt= GetNextSchedule_At(GetStarted(),-1);
wxDateTime t = wxDateTime::Now();
wxDateTime nextdt = GetNextSchedule_At(t, 1);
properties->AppendItem(_("Next start job"), nextdt);
wxDateTime dt = GetStarted();
if (!dt.IsValid()) dt = t;
wxDateTime prev;