PhaseFunctionsCalculateDueDate Method |
Calculate next dueDate for a phase based on phase durations.
Namespace: Scanjour.Workflow4.ActivityLibrary.PhasesAssembly: Scanjour.Workflow4.ActivityLibrary_24.5.0.0 (in Scanjour.Workflow4.ActivityLibrary_24.5.0.0.dll) Version: 24.5.0.0 (24.5.0.0)
Syntaxpublic static DateTime CalculateDueDate(
int phaseNumber,
List<TimeSpan> phaseDurations,
List<DateTime?> phaseDueDates,
DateTime now,
DateTime endDate
)
Public Shared Function CalculateDueDate (
phaseNumber As Integer,
phaseDurations As List(Of TimeSpan),
phaseDueDates As List(Of DateTime?),
now As DateTime,
endDate As DateTime
) As DateTime
public:
static DateTime CalculateDueDate(
int phaseNumber,
List<TimeSpan>^ phaseDurations,
List<Nullable<DateTime>>^ phaseDueDates,
DateTime now,
DateTime endDate
)
static member CalculateDueDate :
phaseNumber : int *
phaseDurations : List<TimeSpan> *
phaseDueDates : List<Nullable<DateTime>> *
now : DateTime *
endDate : DateTime -> DateTime
Parameters
- phaseNumber Int32
- The phase number.
- phaseDurations ListTimeSpan
- The durations for the phases.
- phaseDueDates ListNullableDateTime
- The due dates for the phases.
- now DateTime
- The current time to calculate the due date from.
- endDate DateTime
- The end date of the workflow.
Return Value
DateTimeThe phase due date.
See Also