C# Class Cats.Services.Hub.DispatchService

Inheritance: IDispatchService
Afficher le fichier Open project: edgecomputing/cats Class Usage Examples

Méthodes publiques

Méthode Description
AddDispatch ( Dispatch dispatch ) : bool
ByHubIdAndAllocationIDetached ( int hubId, System.Guid dispatchAllocationId ) : List
ByHubIdAndOtherAllocationIDetached ( int hubId, System.Guid OtherDispatchAllocationId ) : List
CreateDispatchFromDispatchAllocation ( System.Guid dispatchAllocationId, decimal quantityInUnit ) : DispatchViewModel
DeleteById ( int id ) : bool
DeleteDispatch ( Dispatch dispatch ) : bool
DispatchService ( IUnitOfWork unitOfWork ) : System
Dispose ( ) : void
EditDispatch ( Dispatch dispatch ) : bool
FindBy ( bool>.Expression predicate ) : List
FindByAllocationId ( System id ) : Dispatch
FindById ( System id ) : Dispatch
FindById ( int id ) : Dispatch
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllDispatch ( ) : List
GetAvailableCommodities ( string SINumber, int hubID ) : List

Gets the available commodities.

GetDispatchByGIN ( string ginNo ) : Dispatch
GetDispatchTransaction ( System.Guid dispatchId ) : Transaction

Gets the dispatch transaction.

GetFDPBalance ( int FDPID, string RequisitionNo ) : FDPBalance

Gets the FDP balance.

GetFDPDispatch ( int transportOrderId, int fdpId ) : decimal
GetNewTranaction ( Transaction transaction ) : Transaction
RejectToHubs ( Dispatch dispatch ) : bool

Method Details

AddDispatch() public méthode

public AddDispatch ( Dispatch dispatch ) : bool
dispatch Cats.Models.Hubs.Dispatch
Résultat bool

ByHubIdAndAllocationIDetached() public méthode

public ByHubIdAndAllocationIDetached ( int hubId, System.Guid dispatchAllocationId ) : List
hubId int
dispatchAllocationId System.Guid
Résultat List

ByHubIdAndOtherAllocationIDetached() public méthode

public ByHubIdAndOtherAllocationIDetached ( int hubId, System.Guid OtherDispatchAllocationId ) : List
hubId int
OtherDispatchAllocationId System.Guid
Résultat List

CreateDispatchFromDispatchAllocation() public méthode

public CreateDispatchFromDispatchAllocation ( System.Guid dispatchAllocationId, decimal quantityInUnit ) : DispatchViewModel
dispatchAllocationId System.Guid
quantityInUnit decimal
Résultat Cats.Models.Hubs.DispatchViewModel

DeleteById() public méthode

public DeleteById ( int id ) : bool
id int
Résultat bool

DeleteDispatch() public méthode

public DeleteDispatch ( Dispatch dispatch ) : bool
dispatch Cats.Models.Hubs.Dispatch
Résultat bool

DispatchService() public méthode

public DispatchService ( IUnitOfWork unitOfWork ) : System
unitOfWork IUnitOfWork
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EditDispatch() public méthode

public EditDispatch ( Dispatch dispatch ) : bool
dispatch Cats.Models.Hubs.Dispatch
Résultat bool

FindBy() public méthode

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
Résultat List

FindByAllocationId() public méthode

public FindByAllocationId ( System id ) : Dispatch
id System
Résultat Cats.Models.Hubs.Dispatch

FindById() public méthode

public FindById ( System id ) : Dispatch
id System
Résultat Cats.Models.Hubs.Dispatch

FindById() public méthode

public FindById ( int id ) : Dispatch
id int
Résultat Cats.Models.Hubs.Dispatch

Get() public méthode

public Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
filter bool>.Expression
orderBy Func
includeProperties string
Résultat IEnumerable

GetAllDispatch() public méthode

public GetAllDispatch ( ) : List
Résultat List

GetAvailableCommodities() public méthode

Gets the available commodities.
public GetAvailableCommodities ( string SINumber, int hubID ) : List
SINumber string The SI number.
hubID int
Résultat List

GetDispatchByGIN() public méthode

public GetDispatchByGIN ( string ginNo ) : Dispatch
ginNo string
Résultat Cats.Models.Hubs.Dispatch

GetDispatchTransaction() public méthode

Gets the dispatch transaction.
public GetDispatchTransaction ( System.Guid dispatchId ) : Transaction
dispatchId System.Guid The dispatch id.
Résultat Cats.Models.Hubs.Transaction

GetFDPBalance() public méthode

Gets the FDP balance.
public GetFDPBalance ( int FDPID, string RequisitionNo ) : FDPBalance
FDPID int The FDPID.
RequisitionNo string
Résultat Cats.Models.Hubs.FDPBalance

GetFDPDispatch() public méthode

public GetFDPDispatch ( int transportOrderId, int fdpId ) : decimal
transportOrderId int
fdpId int
Résultat decimal

GetNewTranaction() public méthode

public GetNewTranaction ( Transaction transaction ) : Transaction
transaction Cats.Models.Hubs.Transaction
Résultat Cats.Models.Hubs.Transaction

RejectToHubs() public méthode

public RejectToHubs ( Dispatch dispatch ) : bool
dispatch Cats.Models.Hubs.Dispatch
Résultat bool