C# Class Cats.Services.Hub.TransactionService

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

Méthodes publiques

Méthode Description
DeleteById ( System id ) : bool
Dispose ( ) : void
FindById ( System id ) : Transaction
FindByTransactionGroupID ( System.Guid transactionGroupID ) : Transaction

Finds the by transaction group ID.

Get ( bool>.System filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetActiveAccountsForLedger ( int LedgerID ) : List

Gets the active accounts for ledger.

GetAvailableAllocations ( int hubId ) : List

Gets the available allocations.

GetCommodityBalanceForHub ( int HubId, int parentCommodityId, int si, int project ) : decimal

Gets the commodity balance for hub.

GetCommodityBalanceForStack ( int storeId, int stack, int CommodityId, int si, int project ) : decimal

Gets the commodity balance for stack.

GetCommodityBalanceForStack2 ( int storeId, int parentCommodityId, int si, int project ) : decimal
GetCommodityBalanceForStore ( int storeId, int commodityId, int si, int project ) : decimal

Gets the commodity balance for store.

GetDistributionReport ( int hubID, DistributionViewModel distributionViewModel ) : List

Gets the distribution report.

GetGroupedTransportationReports ( OperationMode mode, System.DateTime fromDate, System.DateTime toDate ) : List

Gets the grouped transportation reports.

GetListOfStartingBalances ( int hubID ) : List

Gets the list of starting balances.

GetOffloadingReport ( int hubID, DispatchesViewModel dispatchesViewModel ) : List

Gets the offloading report.

GetReceiveReport ( int hubID, ReceiptsViewModel receiptsViewModel ) : List

Gets the receive report.

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

Gets the total receipt allocation.

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

Gets the total received from receipt allocation.

GetTotalReceivedFromReceiptAllocation ( string siNumber, int commodityId, int hubId ) : decimal

Gets the total received from receipt allocation.

GetTransactionsForLedger ( int LedgerID, int AccountID, int Commodity ) : List

Gets the transactions for ledger.

GetTransportationReports ( OperationMode mode, System.DateTime fromDate, System.DateTime toDate ) : List

Gets the transportation reports.

ReceiptTransaction ( ReceiveNewViewModel viewModel, System.Boolean reverse = false ) : bool
ReceiptTransactionForLoanFromNGOs ( ReceiveNewViewModel viewModel, System.Boolean reverse = false ) : bool
SaveAdjustmentTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void

SaveDispatchTransaction ( DispatchModel dispatchModel, UserProfile user ) : bool

Saves the dispatch transaction.

SaveDispatchTransaction ( DispatchViewModel dispatchViewModel, System.Boolean reverse = false ) : void
SaveInternalMovementTrasnsaction ( InternalMovementViewModel viewModel, UserProfile user ) : void

SaveLossAdjustmentTransaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void

Saves the loss adjustment transaction.

SaveLossTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void

SaveReceiptTransaction ( ReceiveViewModel receiveModels, UserProfile user, System.Boolean reverse = false ) : System.Boolean

Saves the receipt transaction.

SaveStartingBalanceTransaction ( StartingBalanceViewModel startingBalance, UserProfile user ) : void

Saves the starting balance transaction.

TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService ) : System
getTransactionsAsof ( System.DateTime date ) : IEnumerable

Private Methods

Méthode Description
GenerateDispatchDetail ( DispatchDetailModel c ) : DispatchDetail

Generates the dispatch detail.

GetCommitedToFDPTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction
GetCommittedToFDPHUBTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction
GetGoodInTransitHUBTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction

Gets the positive HUB transaction.

GetGoodsInTransitFDPTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction

Gets the positive FDP transaction.

GetGoodsOnHandFDPTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction

Gets the negative FDP transaction.

GetGoodsOnHandHUBTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction
GetStatisticsFDPTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction
GetStatisticsHUBTransaction ( DispatchModel dispatchModel, Dispatch dispatch, DispatchDetailModel detail ) : Transaction

Gets the negative HUB Transaction.

Method Details

DeleteById() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FindById() public méthode

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

FindByTransactionGroupID() public méthode

Finds the by transaction group ID.
public FindByTransactionGroupID ( System.Guid transactionGroupID ) : Transaction
transactionGroupID System.Guid The transaction group ID.
Résultat Cats.Models.Hubs.Transaction

Get() public méthode

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

GetActiveAccountsForLedger() public méthode

Gets the active accounts for ledger.
public GetActiveAccountsForLedger ( int LedgerID ) : List
LedgerID int The ledger ID.
Résultat List

GetAvailableAllocations() public méthode

Gets the available allocations.
public GetAvailableAllocations ( int hubId ) : List
hubId int The hub id.
Résultat List

GetCommodityBalanceForHub() public méthode

Gets the commodity balance for hub.
public GetCommodityBalanceForHub ( int HubId, int parentCommodityId, int si, int project ) : decimal
HubId int The hub id.
parentCommodityId int The parent commodity id.
si int The si.
project int The project.
Résultat decimal

GetCommodityBalanceForStack() public méthode

Gets the commodity balance for stack.
public GetCommodityBalanceForStack ( int storeId, int stack, int CommodityId, int si, int project ) : decimal
storeId int The store id.
stack int The stack.
CommodityId int
si int The SI.
project int The project.
Résultat decimal

GetCommodityBalanceForStack2() public méthode

public GetCommodityBalanceForStack2 ( int storeId, int parentCommodityId, int si, int project ) : decimal
storeId int
parentCommodityId int
si int
project int
Résultat decimal

GetCommodityBalanceForStore() public méthode

Gets the commodity balance for store.
public GetCommodityBalanceForStore ( int storeId, int commodityId, int si, int project ) : decimal
storeId int The store id.
commodityId int
si int The SI.
project int The project.
Résultat decimal

GetDistributionReport() public méthode

Gets the distribution report.
public GetDistributionReport ( int hubID, DistributionViewModel distributionViewModel ) : List
hubID int The hub ID.
distributionViewModel Cats.Models.Hubs.ViewModels.Report.DistributionViewModel The distribution view model.
Résultat List

GetGroupedTransportationReports() public méthode

Gets the grouped transportation reports.
public GetGroupedTransportationReports ( OperationMode mode, System.DateTime fromDate, System.DateTime toDate ) : List
mode OperationMode The mode.
fromDate System.DateTime From date.
toDate System.DateTime To date.
Résultat List

GetListOfStartingBalances() public méthode

Gets the list of starting balances.
public GetListOfStartingBalances ( int hubID ) : List
hubID int The hub ID.
Résultat List

GetOffloadingReport() public méthode

Gets the offloading report.
public GetOffloadingReport ( int hubID, DispatchesViewModel dispatchesViewModel ) : List
hubID int The hub ID.
dispatchesViewModel Cats.Models.Hubs.ViewModels.Report.DispatchesViewModel The dispatches view model.
Résultat List

GetReceiveReport() public méthode

Gets the receive report.
public GetReceiveReport ( int hubID, ReceiptsViewModel receiptsViewModel ) : List
hubID int The hub ID.
receiptsViewModel Cats.Models.Hubs.ViewModels.Report.ReceiptsViewModel The receipts view model.
Résultat List

GetTotalReceiptAllocation() public méthode

Gets the total receipt allocation.
public GetTotalReceiptAllocation ( int siNumber, int commodityId, int hubId ) : decimal
siNumber int The SI number.
commodityId int
hubId int The hub id.
Résultat decimal

GetTotalReceivedFromReceiptAllocation() public méthode

Gets the total received from receipt allocation.
public GetTotalReceivedFromReceiptAllocation ( int siNumber, int commodityId, int hubId ) : decimal
siNumber int The SI number.
commodityId int
hubId int The hub id.
Résultat decimal

GetTotalReceivedFromReceiptAllocation() public méthode

Gets the total received from receipt allocation.
public GetTotalReceivedFromReceiptAllocation ( string siNumber, int commodityId, int hubId ) : decimal
siNumber string The si number.
commodityId int The commodity id.
hubId int The hub id.
Résultat decimal

GetTransactionsForLedger() public méthode

Gets the transactions for ledger.
public GetTransactionsForLedger ( int LedgerID, int AccountID, int Commodity ) : List
LedgerID int The ledger ID.
AccountID int The account ID.
Commodity int The commodity.
Résultat List

GetTransportationReports() public méthode

Gets the transportation reports.
public GetTransportationReports ( OperationMode mode, System.DateTime fromDate, System.DateTime toDate ) : List
mode OperationMode The mode.
fromDate System.DateTime From date.
toDate System.DateTime To date.
Résultat List

ReceiptTransaction() public méthode

public ReceiptTransaction ( ReceiveNewViewModel viewModel, System.Boolean reverse = false ) : bool
viewModel Cats.Models.Hubs.ViewModels.ReceiveNewViewModel
reverse System.Boolean
Résultat bool

ReceiptTransactionForLoanFromNGOs() public méthode

public ReceiptTransactionForLoanFromNGOs ( ReceiveNewViewModel viewModel, System.Boolean reverse = false ) : bool
viewModel Cats.Models.Hubs.ViewModels.ReceiveNewViewModel
reverse System.Boolean
Résultat bool

SaveAdjustmentTrasnsaction() public méthode

public SaveAdjustmentTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel Cats.Models.Hubs.ViewModels.LossesAndAdjustmentsViewModel
user Cats.Models.Hubs.UserProfile
Résultat void

SaveDispatchTransaction() public méthode

Saves the dispatch transaction.
public SaveDispatchTransaction ( DispatchModel dispatchModel, UserProfile user ) : bool
dispatchModel Cats.Models.Hubs.DispatchModel The dispatch model.
user Cats.Models.Hubs.UserProfile The user.
Résultat bool

SaveDispatchTransaction() public méthode

public SaveDispatchTransaction ( DispatchViewModel dispatchViewModel, System.Boolean reverse = false ) : void
dispatchViewModel Cats.Models.Hubs.DispatchViewModel
reverse System.Boolean
Résultat void

SaveInternalMovementTrasnsaction() public méthode

public SaveInternalMovementTrasnsaction ( InternalMovementViewModel viewModel, UserProfile user ) : void
viewModel Cats.Models.Hubs.ViewModels.InternalMovementViewModel
user Cats.Models.Hubs.UserProfile
Résultat void

SaveLossAdjustmentTransaction() public méthode

Saves the loss adjustment transaction.
public SaveLossAdjustmentTransaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel Cats.Models.Hubs.ViewModels.LossesAndAdjustmentsViewModel The view model.
user Cats.Models.Hubs.UserProfile The user.
Résultat void

SaveLossTrasnsaction() public méthode

public SaveLossTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel Cats.Models.Hubs.ViewModels.LossesAndAdjustmentsViewModel
user Cats.Models.Hubs.UserProfile
Résultat void

SaveReceiptTransaction() public méthode

Saves the receipt transaction.
public SaveReceiptTransaction ( ReceiveViewModel receiveModels, UserProfile user, System.Boolean reverse = false ) : System.Boolean
receiveModels ReceiveViewModel The receive models.
user Cats.Models.Hubs.UserProfile The user.
reverse System.Boolean
Résultat System.Boolean

SaveStartingBalanceTransaction() public méthode

Saves the starting balance transaction.
public SaveStartingBalanceTransaction ( StartingBalanceViewModel startingBalance, UserProfile user ) : void
startingBalance Cats.Models.Hubs.ViewModels.StartingBalanceViewModel The starting balance.
user Cats.Models.Hubs.UserProfile The user.
Résultat void

TransactionService() public méthode

public TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService, IShippingInstructionService shippingInstructionService, IProjectCodeService projectCodeService ) : System
unitOfWork IUnitOfWork
accountService IAccountService
shippingInstructionService IShippingInstructionService
projectCodeService IProjectCodeService
Résultat System

getTransactionsAsof() public méthode

public getTransactionsAsof ( System.DateTime date ) : IEnumerable
date System.DateTime
Résultat IEnumerable