Show / Hide Table of Contents

Class NextMilestone

Inheritance
System.Object
NextDateBase
NextMilestone
Implements
INextMilestonePlugin
Inherited Members
NextDateBase.GetQuery(AppointmentTableInfo, FieldInfo)
NextDateBase.GetNextDate(AppointmentTableInfo, FieldInfo, Restriction)
Namespace: SuperOffice.CRM
Assembly: SoDataBase.dll
Syntax
[NextMilestonePlugin("nextmilestone", -1073741824)]
public class NextMilestone : NextDateBase, INextMilestonePlugin, IPlugin

Constructors

NextMilestone()

Declaration
public NextMilestone()

Fields

ProviderName

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

Methods

BatchUpdateNextMilestone(ProgressEstimateCallback, ProgressStepCallback)

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

Declaration
public void BatchUpdateNextMilestone(ProgressEstimateCallback estimateCB, ProgressStepCallback stepCB)
Parameters
Type Name Description
ProgressEstimateCallback estimateCB

Callback for setting the estimated total of the progress bar

ProgressStepCallback stepCB

Callback for stepping the progress bar

Remarks

This method uses the RawConnection mode of the SuperOffice.Data.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.

CalculateNextMilestoneDate(Int32)

Declaration
public NextDateInfo CalculateNextMilestoneDate(int projectId)
Parameters
Type Name Description
System.Int32 projectId
Returns
Type Description
NextDateInfo

GetNextMilestoneDate(Int32)

Declaration
public NextDateInfo GetNextMilestoneDate(int projectId)
Parameters
Type Name Description
System.Int32 projectId
Returns
Type Description
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)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top