C# Class Cats.Services.Hub.DispatchAllocationService

Inheritance: IDispatchAllocationService
Afficher le fichier Open project: edgecomputing/cats

Méthodes publiques

Méthode Description
AddDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
AttachTransactionGroup ( DispatchAllocation allocation, int TransactionGroupID ) : bool

Attaches the transaction group.

CloseById ( System.Guid id ) : void
CommitDispatchAllocation ( System.Guid AllocationId, int SIID, int ProjectCodeID ) : bool
CommitDispatchAllocation ( string checkedRecords, int SINumber, UserProfile user, int ProjectCode ) : void

Commits the dispatch allocation.

DeleteById ( int id ) : bool
DeleteDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
DispatchAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService shippingInstructionService ) : System
Dispose ( ) : void
EditDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( System id ) : DispatchAllocation
FindById ( int id ) : DispatchAllocation
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllBidRefsForReport ( ) : List
GetAllDispatchAllocation ( ) : List
GetAllTransportersWithoutGrn ( ) : List
GetAllocations ( string requisitonNumber ) : List

Gets the allocations under a given requisition number.

GetAllocations ( string RequisitionNo, int hubId, bool UnComitted ) : List

Gets the allocations.

GetAllocations ( string RequisitionNo, int CommodityID, int hubId, bool UnComitted, string PreferedWeightMeasurment ) : List

Gets the allocations.

GetAvailableCommodities ( string requisitionNo ) : List

Gets the available commodities.

GetAvailableRequisionNumbers ( int HubId, bool UnCommited ) : List

Gets the available requision numbers.

GetAvailableSINumbersWithUncommitedBalance ( int commodityID, int hubID ) : List

Gets the available SI numbers in a given hub

GetCommitedAllocationsByHub ( int hubId ) : List

Gets the commited allocations by hub.

GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment ) : List
GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment, bool closedToo, int AdminUnitId, int CommodityType ) : List
GetDispatchedTransportOrders ( ) : List
GetSIBalances ( int hubID ) : List

Gets the SI balances.

GetSIBalancesGroupedByCommodity ( int hubID ) : List

Gets the SI balances grouped by commodity.

GetSummaryForCommitedAllocations ( int hubId ) : List
GetSummaryForUncommitedAllocations ( int hubId ) : List
GetTransportOrderDispatches ( int transportOrderId ) : List
GetUncomitedAllocations ( System.Guid ids ) : List

Gets the list of uncommited uncomited allocations.

GetUncommitedAllocationTransaction ( int commodityID, int shipingInstructionID, int hubID ) : Transaction

Gets the uncommited allocation transaction.

GetUncommitedAllocationsByHub ( int hubId ) : List

Gets the list of dispatch allocations uncommited allocations by hub.

GetUncommitedBalance ( int siNumber, int commodityId, int hubId ) : decimal

Gets the balance of an SI number commodity .

GetUncommitedSIBalance ( int hubID, int commodityId, string PreferedWeightMeasurment ) : List

Gets the uncommited SI balance.

Private Methods

Méthode Description
MapDispatchToDispatchViewModel ( List dispatches ) : List

Method Details

AddDispatchAllocation() public méthode

public AddDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Résultat bool

AttachTransactionGroup() public méthode

Attaches the transaction group.
public AttachTransactionGroup ( DispatchAllocation allocation, int TransactionGroupID ) : bool
allocation Cats.Models.Hubs.DispatchAllocation The allocation.
TransactionGroupID int The transaction group ID.
Résultat bool

CloseById() public méthode

public CloseById ( System.Guid id ) : void
id System.Guid
Résultat void

CommitDispatchAllocation() public méthode

public CommitDispatchAllocation ( System.Guid AllocationId, int SIID, int ProjectCodeID ) : bool
AllocationId System.Guid
SIID int
ProjectCodeID int
Résultat bool

CommitDispatchAllocation() public méthode

Commits the dispatch allocation.
public CommitDispatchAllocation ( string checkedRecords, int SINumber, UserProfile user, int ProjectCode ) : void
checkedRecords string The checked records.
SINumber int The SI number.
user Cats.Models.Hubs.UserProfile The user.
ProjectCode int The project code.
Résultat void

DeleteById() public méthode

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

DeleteDispatchAllocation() public méthode

public DeleteDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Résultat bool

DispatchAllocationService() public méthode

public DispatchAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService shippingInstructionService ) : System
unitOfWork IUnitOfWork
shippingInstructionService IShippingInstructionService
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EditDispatchAllocation() public méthode

public EditDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Résultat bool

FindBy() public méthode

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

FindById() public méthode

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

FindById() public méthode

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

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

GetAllBidRefsForReport() public méthode

public GetAllBidRefsForReport ( ) : List
Résultat List

GetAllDispatchAllocation() public méthode

public GetAllDispatchAllocation ( ) : List
Résultat List

GetAllTransportersWithoutGrn() public méthode

public GetAllTransportersWithoutGrn ( ) : List
Résultat List

GetAllocations() public méthode

Gets the allocations under a given requisition number.
public GetAllocations ( string requisitonNumber ) : List
requisitonNumber string The requisiton number.
Résultat List

GetAllocations() public méthode

Gets the allocations.
public GetAllocations ( string RequisitionNo, int hubId, bool UnComitted ) : List
RequisitionNo string The requisition no.
hubId int The hub id.
UnComitted bool if set to true [un comitted].
Résultat List

GetAllocations() public méthode

Gets the allocations.
public GetAllocations ( string RequisitionNo, int CommodityID, int hubId, bool UnComitted, string PreferedWeightMeasurment ) : List
RequisitionNo string The requisition no.
CommodityID int The commodity ID.
hubId int The hub id.
UnComitted bool if set to true [un comitted].
PreferedWeightMeasurment string
Résultat List

GetAvailableCommodities() public méthode

Gets the available commodities.
public GetAvailableCommodities ( string requisitionNo ) : List
requisitionNo string The requisition no.
Résultat List

GetAvailableRequisionNumbers() public méthode

Gets the available requision numbers.
public GetAvailableRequisionNumbers ( int HubId, bool UnCommited ) : List
HubId int The hub id.
UnCommited bool if set to true [un commited].
Résultat List

GetAvailableSINumbersWithUncommitedBalance() public méthode

Gets the available SI numbers in a given hub
public GetAvailableSINumbersWithUncommitedBalance ( int commodityID, int hubID ) : List
commodityID int The commodity ID.
hubID int
Résultat List

GetCommitedAllocationsByHub() public méthode

Gets the commited allocations by hub.
public GetCommitedAllocationsByHub ( int hubId ) : List
hubId int The hub id.
Résultat List

GetCommitedAllocationsByHubDetached() public méthode

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment ) : List
hubId int
PreferedWeightMeasurment string
Résultat List

GetCommitedAllocationsByHubDetached() public méthode

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment, bool closedToo, int AdminUnitId, int CommodityType ) : List
hubId int
PreferedWeightMeasurment string
closedToo bool
AdminUnitId int
CommodityType int
Résultat List

GetDispatchedTransportOrders() public méthode

public GetDispatchedTransportOrders ( ) : List
Résultat List

GetSIBalances() public méthode

Gets the SI balances.
public GetSIBalances ( int hubID ) : List
hubID int
Résultat List

GetSIBalancesGroupedByCommodity() public méthode

Gets the SI balances grouped by commodity.
public GetSIBalancesGroupedByCommodity ( int hubID ) : List
hubID int
Résultat List

GetSummaryForCommitedAllocations() public méthode

public GetSummaryForCommitedAllocations ( int hubId ) : List
hubId int
Résultat List

GetSummaryForUncommitedAllocations() public méthode

public GetSummaryForUncommitedAllocations ( int hubId ) : List
hubId int
Résultat List

GetTransportOrderDispatches() public méthode

public GetTransportOrderDispatches ( int transportOrderId ) : List
transportOrderId int
Résultat List

GetUncomitedAllocations() public méthode

Gets the list of uncommited uncomited allocations.
public GetUncomitedAllocations ( System.Guid ids ) : List
ids System.Guid The ids.
Résultat List

GetUncommitedAllocationTransaction() public méthode

Gets the uncommited allocation transaction.
public GetUncommitedAllocationTransaction ( int commodityID, int shipingInstructionID, int hubID ) : Transaction
commodityID int The commodity ID.
shipingInstructionID int The shiping instruction ID.
hubID int The hub ID.
Résultat Cats.Models.Hubs.Transaction

GetUncommitedAllocationsByHub() public méthode

Gets the list of dispatch allocations uncommited allocations by hub.
public GetUncommitedAllocationsByHub ( int hubId ) : List
hubId int The hub id.
Résultat List

GetUncommitedBalance() public méthode

Gets the balance of an SI number commodity .
public GetUncommitedBalance ( int siNumber, int commodityId, int hubId ) : decimal
siNumber int The si number.
commodityId int The commodity id.
hubId int The hub id.
Résultat decimal

GetUncommitedSIBalance() public méthode

Gets the uncommited SI balance.
public GetUncommitedSIBalance ( int hubID, int commodityId, string PreferedWeightMeasurment ) : List
hubID int The hub ID.
commodityId int The commodity id.
PreferedWeightMeasurment string
Résultat List