C# Class Cats.Services.Hub.DispatchAllocationService

Inheritance: IDispatchAllocationService
Show file Open project: edgecomputing/cats

Public Methods

Method 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

Method Description
MapDispatchToDispatchViewModel ( List dispatches ) : List

Method Details

AddDispatchAllocation() public method

public AddDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
return bool

AttachTransactionGroup() public method

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

CloseById() public method

public CloseById ( System.Guid id ) : void
id System.Guid
return void

CommitDispatchAllocation() public method

public CommitDispatchAllocation ( System.Guid AllocationId, int SIID, int ProjectCodeID ) : bool
AllocationId System.Guid
SIID int
ProjectCodeID int
return bool

CommitDispatchAllocation() public method

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.
return void

DeleteById() public method

public DeleteById ( int id ) : bool
id int
return bool

DeleteDispatchAllocation() public method

public DeleteDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
return bool

DispatchAllocationService() public method

public DispatchAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService shippingInstructionService ) : System
unitOfWork IUnitOfWork
shippingInstructionService IShippingInstructionService
return System

Dispose() public method

public Dispose ( ) : void
return void

EditDispatchAllocation() public method

public EditDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
return bool

FindBy() public method

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
return List

FindById() public method

public FindById ( System id ) : DispatchAllocation
id System
return Cats.Models.Hubs.DispatchAllocation

FindById() public method

public FindById ( int id ) : DispatchAllocation
id int
return Cats.Models.Hubs.DispatchAllocation

Get() public method

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

GetAllBidRefsForReport() public method

public GetAllBidRefsForReport ( ) : List
return List

GetAllDispatchAllocation() public method

public GetAllDispatchAllocation ( ) : List
return List

GetAllTransportersWithoutGrn() public method

public GetAllTransportersWithoutGrn ( ) : List
return List

GetAllocations() public method

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

GetAllocations() public method

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].
return List

GetAllocations() public method

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
return List

GetAvailableCommodities() public method

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

GetAvailableRequisionNumbers() public method

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].
return List

GetAvailableSINumbersWithUncommitedBalance() public method

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

GetCommitedAllocationsByHub() public method

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

GetCommitedAllocationsByHubDetached() public method

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment ) : List
hubId int
PreferedWeightMeasurment string
return List

GetCommitedAllocationsByHubDetached() public method

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment, bool closedToo, int AdminUnitId, int CommodityType ) : List
hubId int
PreferedWeightMeasurment string
closedToo bool
AdminUnitId int
CommodityType int
return List

GetDispatchedTransportOrders() public method

public GetDispatchedTransportOrders ( ) : List
return List

GetSIBalances() public method

Gets the SI balances.
public GetSIBalances ( int hubID ) : List
hubID int
return List

GetSIBalancesGroupedByCommodity() public method

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

GetSummaryForCommitedAllocations() public method

public GetSummaryForCommitedAllocations ( int hubId ) : List
hubId int
return List

GetSummaryForUncommitedAllocations() public method

public GetSummaryForUncommitedAllocations ( int hubId ) : List
hubId int
return List

GetTransportOrderDispatches() public method

public GetTransportOrderDispatches ( int transportOrderId ) : List
transportOrderId int
return List

GetUncomitedAllocations() public method

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

GetUncommitedAllocationTransaction() public method

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.
return Cats.Models.Hubs.Transaction

GetUncommitedAllocationsByHub() public method

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

GetUncommitedBalance() public method

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.
return decimal

GetUncommitedSIBalance() public method

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
return List