public CreateProcessSchedule ( long ProcessID, string scheduleVersion, System.DateTime nextScheduled, string repeatSchedule, string instantiatedUsers ) : |
||
ProcessID | long | |
scheduleVersion | string | |
nextScheduled | System.DateTime | |
repeatSchedule | string | |
instantiatedUsers | string | |
return |
public Schedule CreateProcessSchedule(long ProcessID, string scheduleVersion, DateTime nextScheduled, string repeatSchedule, string instantiatedUsers)
{
long ScheduleID = 0;
Atul_v1Data adb = new Atul_v1Data();
Schedule s;
ScheduleID = adb.CreateProcessSchedule(ProcessID, scheduleVersion, nextScheduled, repeatSchedule, instantiatedUsers);
s = adb.GetProcessScheduleByID(ScheduleID);
this.PushNextScheduleToAdminQueue(s, s.NextScheduledDate);
return s;
}
public Schedule CreateProcessSchedule(string ProcessID, string scheduleVersion, string nextScheduled, string repeatSchedule, string instantiatedUsers) { Schedule s; long AtulProcessID = Convert.ToInt64(ProcessID); DateTime NextScheduledDate = DateTime.Parse(nextScheduled); AtulBusinessLogic adb = new AtulBusinessLogic(); s = adb.CreateProcessSchedule(AtulProcessID, scheduleVersion, NextScheduledDate, repeatSchedule, instantiatedUsers); return s; }