Show / Hide Table of Contents

Class NextMilestone

Inheritance
object
NextDateBase
NextMilestone
Implements
INextMilestonePlugin
Inherited Members
NextDateBase.GetQuery(AppointmentTableInfo, FieldInfo)
NextDateBase.GetNextDateAsync(AppointmentTableInfo, FieldInfo, Restriction, CancellationToken)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM
Assembly: SoDataBase.dll
Syntax
[NextMilestonePlugin("nextmilestone", -1073741824)]
public class NextMilestone : NextDateBase, INextMilestonePlugin

Constructors

NextMilestone()

Declaration
public NextMilestone()

Fields

ProviderName

Declaration
public const string ProviderName = "nextmilestone"
Field Value
Type Description
string

Methods

BatchUpdateNextMilestoneAsync(ProgressEstimateCallback, ProgressStepCallback, CancellationToken)

Update the Next Milestone date/appointmentId of all Projects; callable in unauthenticated mode

Declaration
public Task BatchUpdateNextMilestoneAsync(ProgressEstimateCallback estimateCB, ProgressStepCallback stepCB, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ProgressEstimateCallback estimateCB

Callback for setting the estimated total of the progress bar

ProgressStepCallback stepCB

Callback for stepping the progress bar

CancellationToken cancellationToken
Returns
Type Description
Task
Remarks

This method uses the RawConnection mode of the ConnectionFactory so that it can be called during a database upgrade, when system users are unknown.

It looks at all relevant appointment records to set the next milestone date of each project.

CalculateNextMilestoneDateAsync(int, CancellationToken)

Declaration
public Task<NextDateInfo> CalculateNextMilestoneDateAsync(int projectId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int projectId
CancellationToken cancellationToken
Returns
Type Description
Task<NextDateInfo>

GetNextMilestoneDateAsync(int, CancellationToken)

Declaration
public Task<NextDateInfo> GetNextMilestoneDateAsync(int projectId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int projectId
CancellationToken cancellationToken
Returns
Type Description
Task<NextDateInfo>

GetOrderbyField(AppointmentTableInfo)

Declaration
protected override FieldInfo GetOrderbyField(AppointmentTableInfo tableInfo)
Parameters
Type Name Description
AppointmentTableInfo tableInfo
Returns
Type Description
FieldInfo
Overrides
NextDateBase.GetOrderbyField(AppointmentTableInfo)

Implements

INextMilestonePlugin

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top