C# Class EA.Iws.Domain.Movement.Movement

Inheritance: System.Entity
ファイルを表示 Open project: EnvironmentAgency/prsd-iws Class Usage Examples

Public Methods

Method Description
AddStatusChangeRecord ( MovementStatusChange statusChange ) : void
Cancel ( ) : void
Capture ( int movementNumber, System.Guid notificationId, System.DateTime actualDate, System.DateTime prenotificationDate, bool hasNoPrenotification, System.Guid createdBy ) : Movement
Complete ( System.DateTime completedDate, System.Guid fileId, System.Guid createdBy ) : void
CompleteInternally ( System.DateTime completedDate, System.Guid createdBy ) : void
Receive ( System.Guid fileId, System.DateTime dateReceived, ShipmentQuantity quantity, System.Guid createdBy ) : void
ReceiveInternally ( System.DateTime dateReceived, ShipmentQuantity quantity, System.Guid createdBy ) : void
Submit ( System.Guid fileId ) : void
SubmitInternally ( System.DateTime prenotificationDate ) : void
UpdateDate ( System.DateTime newDate, IUpdatedMovementDateValidator validator ) : System.Threading.Tasks.Task

Protected Methods

Method Description
Movement ( ) : System

Private Methods

Method Description
CreateStateMachine ( ) : Trigger>.StateMachine
Movement ( int movementNumber, System.Guid notificationId, System.DateTime date, System.Guid createdBy ) : System
OnCompleted ( System.DateTime completedDate, System.Guid fileId, System.Guid createdBy ) : void
OnInternallyCompleted ( System.DateTime completedDate, System.Guid createdBy ) : void
OnInternallyReceived ( InternallyAcceptedTriggerParameters parameters ) : void
OnInternallySubmitted ( System.DateTime prenotificationDate ) : void
OnReceived ( AcceptedTriggerParameters parameters ) : void
OnSubmitted ( System.Guid fileId ) : void
OnTransitionAction ( Trigger>.StateMachine transition ) : void
Reject ( System.DateTime dateReceived, string reason, string furtherDetails ) : MovementRejection

Method Details

AddStatusChangeRecord() public method

public AddStatusChangeRecord ( MovementStatusChange statusChange ) : void
statusChange MovementStatusChange
return void

Cancel() public method

public Cancel ( ) : void
return void

Capture() public static method

public static Capture ( int movementNumber, System.Guid notificationId, System.DateTime actualDate, System.DateTime prenotificationDate, bool hasNoPrenotification, System.Guid createdBy ) : Movement
movementNumber int
notificationId System.Guid
actualDate System.DateTime
prenotificationDate System.DateTime
hasNoPrenotification bool
createdBy System.Guid
return Movement

Complete() public method

public Complete ( System.DateTime completedDate, System.Guid fileId, System.Guid createdBy ) : void
completedDate System.DateTime
fileId System.Guid
createdBy System.Guid
return void

CompleteInternally() public method

public CompleteInternally ( System.DateTime completedDate, System.Guid createdBy ) : void
completedDate System.DateTime
createdBy System.Guid
return void

Movement() protected method

protected Movement ( ) : System
return System

Receive() public method

public Receive ( System.Guid fileId, System.DateTime dateReceived, ShipmentQuantity quantity, System.Guid createdBy ) : void
fileId System.Guid
dateReceived System.DateTime
quantity ShipmentQuantity
createdBy System.Guid
return void

ReceiveInternally() public method

public ReceiveInternally ( System.DateTime dateReceived, ShipmentQuantity quantity, System.Guid createdBy ) : void
dateReceived System.DateTime
quantity ShipmentQuantity
createdBy System.Guid
return void

Submit() public method

public Submit ( System.Guid fileId ) : void
fileId System.Guid
return void

SubmitInternally() public method

public SubmitInternally ( System.DateTime prenotificationDate ) : void
prenotificationDate System.DateTime
return void

UpdateDate() public method

public UpdateDate ( System.DateTime newDate, IUpdatedMovementDateValidator validator ) : System.Threading.Tasks.Task
newDate System.DateTime
validator IUpdatedMovementDateValidator
return System.Threading.Tasks.Task