20. August 2008 10:41
25. August 2008 10:15
// Alter Code
IF JobQueueEntry."No. of Minutes between Runs" > 0 THEN BEGIN
NewRunTime := TIME + 60000 * JobQueueEntry."No. of Minutes between Runs";
IF (JobQueueEntry."Ending Time" = 0T) AND (NewRunTime >= 235900T) OR
(JobQueueEntry."Ending Time" <> 0T) AND (NewRunTime > JobQueueEntry."Ending Time") THEN BEGIN
NewRunTime := JobQueueEntry."Starting Time";
NoOfDays := 1;
END;
END ELSE BEGIN
NewRunTime := DT2TIME(JobQueueEntry."Earliest Start Date/Time");
NoOfDays := 1;
END;
// Neuer Code
IF JobQueueEntry."No. of Minutes between Runs" > 0 THEN BEGIN
NewRunTime := TIME + 60000 * JobQueueEntry."No. of Minutes between Runs";
IF (JobQueueEntry."Ending Time" = 0T) AND (NewRunTime < TIME) THEN
NoOfDays := 1
ELSE IF (JobQueueEntry."Ending Time" <> 0T) AND (NewRunTime > JobQueueEntry."Ending Time") THEN BEGIN
NewRunTime := JobQueueEntry."Starting Time";
NoOfDays := 1;
END;
END ELSE BEGIN
NewRunTime := DT2TIME(JobQueueEntry."Earliest Start Date/Time");
NoOfDays := 1;
END;