C# Класс Cats.Services.Hub.DispatchAllocationService

Наследование: IDispatchAllocationService
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
MapDispatchToDispatchViewModel ( List dispatches ) : List

Описание методов

AddDispatchAllocation() публичный Метод

public AddDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Результат bool

AttachTransactionGroup() публичный Метод

Attaches the transaction group.
public AttachTransactionGroup ( DispatchAllocation allocation, int TransactionGroupID ) : bool
allocation Cats.Models.Hubs.DispatchAllocation The allocation.
TransactionGroupID int The transaction group ID.
Результат bool

CloseById() публичный Метод

public CloseById ( System.Guid id ) : void
id System.Guid
Результат void

CommitDispatchAllocation() публичный Метод

public CommitDispatchAllocation ( System.Guid AllocationId, int SIID, int ProjectCodeID ) : bool
AllocationId System.Guid
SIID int
ProjectCodeID int
Результат bool

CommitDispatchAllocation() публичный Метод

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.
Результат void

DeleteById() публичный Метод

public DeleteById ( int id ) : bool
id int
Результат bool

DeleteDispatchAllocation() публичный Метод

public DeleteDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Результат bool

DispatchAllocationService() публичный Метод

public DispatchAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService shippingInstructionService ) : System
unitOfWork IUnitOfWork
shippingInstructionService IShippingInstructionService
Результат System

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

EditDispatchAllocation() публичный Метод

public EditDispatchAllocation ( DispatchAllocation dispatchAllocation ) : bool
dispatchAllocation Cats.Models.Hubs.DispatchAllocation
Результат bool

FindBy() публичный Метод

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
Результат List

FindById() публичный Метод

public FindById ( System id ) : DispatchAllocation
id System
Результат Cats.Models.Hubs.DispatchAllocation

FindById() публичный Метод

public FindById ( int id ) : DispatchAllocation
id int
Результат Cats.Models.Hubs.DispatchAllocation

Get() публичный Метод

public Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
filter bool>.Expression
orderBy Func
includeProperties string
Результат IEnumerable

GetAllBidRefsForReport() публичный Метод

public GetAllBidRefsForReport ( ) : List
Результат List

GetAllDispatchAllocation() публичный Метод

public GetAllDispatchAllocation ( ) : List
Результат List

GetAllTransportersWithoutGrn() публичный Метод

public GetAllTransportersWithoutGrn ( ) : List
Результат List

GetAllocations() публичный Метод

Gets the allocations under a given requisition number.
public GetAllocations ( string requisitonNumber ) : List
requisitonNumber string The requisiton number.
Результат List

GetAllocations() публичный Метод

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].
Результат List

GetAllocations() публичный Метод

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
Результат List

GetAvailableCommodities() публичный Метод

Gets the available commodities.
public GetAvailableCommodities ( string requisitionNo ) : List
requisitionNo string The requisition no.
Результат List

GetAvailableRequisionNumbers() публичный Метод

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].
Результат List

GetAvailableSINumbersWithUncommitedBalance() публичный Метод

Gets the available SI numbers in a given hub
public GetAvailableSINumbersWithUncommitedBalance ( int commodityID, int hubID ) : List
commodityID int The commodity ID.
hubID int
Результат List

GetCommitedAllocationsByHub() публичный Метод

Gets the commited allocations by hub.
public GetCommitedAllocationsByHub ( int hubId ) : List
hubId int The hub id.
Результат List

GetCommitedAllocationsByHubDetached() публичный Метод

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment ) : List
hubId int
PreferedWeightMeasurment string
Результат List

GetCommitedAllocationsByHubDetached() публичный Метод

public GetCommitedAllocationsByHubDetached ( int hubId, string PreferedWeightMeasurment, bool closedToo, int AdminUnitId, int CommodityType ) : List
hubId int
PreferedWeightMeasurment string
closedToo bool
AdminUnitId int
CommodityType int
Результат List

GetDispatchedTransportOrders() публичный Метод

public GetDispatchedTransportOrders ( ) : List
Результат List

GetSIBalances() публичный Метод

Gets the SI balances.
public GetSIBalances ( int hubID ) : List
hubID int
Результат List

GetSIBalancesGroupedByCommodity() публичный Метод

Gets the SI balances grouped by commodity.
public GetSIBalancesGroupedByCommodity ( int hubID ) : List
hubID int
Результат List

GetSummaryForCommitedAllocations() публичный Метод

public GetSummaryForCommitedAllocations ( int hubId ) : List
hubId int
Результат List

GetSummaryForUncommitedAllocations() публичный Метод

public GetSummaryForUncommitedAllocations ( int hubId ) : List
hubId int
Результат List

GetTransportOrderDispatches() публичный Метод

public GetTransportOrderDispatches ( int transportOrderId ) : List
transportOrderId int
Результат List

GetUncomitedAllocations() публичный Метод

Gets the list of uncommited uncomited allocations.
public GetUncomitedAllocations ( System.Guid ids ) : List
ids System.Guid The ids.
Результат List

GetUncommitedAllocationTransaction() публичный Метод

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.
Результат Cats.Models.Hubs.Transaction

GetUncommitedAllocationsByHub() публичный Метод

Gets the list of dispatch allocations uncommited allocations by hub.
public GetUncommitedAllocationsByHub ( int hubId ) : List
hubId int The hub id.
Результат List

GetUncommitedBalance() публичный Метод

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.
Результат decimal

GetUncommitedSIBalance() публичный Метод

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
Результат List