C# 클래스 DRMFSS.BLL.Services.TransactionService

상속: ITransactionService
파일 보기 프로젝트 열기: edgecomputing/cats-hub-module

공개 메소드들

메소드 설명
DeleteById ( System id ) : bool
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 parentCommodityId, int si, int project ) : decimal

Gets the commodity balance for stack.

GetCommodityBalanceForStore ( int storeId, int parentCommodityId, 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.

SaveAdjustmentTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void

SaveDispatchTransaction ( DispatchModel dispatchModel, UserProfile user ) : void

Saves the dispatch transaction.

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 ) : void

Saves the receipt transaction.

SaveStartingBalanceTransaction ( StartingBalanceViewModel startingBalance, UserProfile user ) : void

Saves the starting balance transaction.

TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService ) : System
TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService, IShippingInstructionService shippingInstructionService ) : System

비공개 메소드들

메소드 설명
GenerateDispatchDetail ( DispatchDetailModel c ) : DispatchDetail

Generates the dispatch detail.

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

Gets the negative FDP transaction.

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

Gets the negative HUB Transaction.

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

Gets the positive FDP transaction.

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

Gets the positive HUB transaction.

메소드 상세

DeleteById() 공개 메소드

public DeleteById ( System id ) : bool
id System
리턴 bool

FindById() 공개 메소드

public FindById ( System id ) : Transaction
id System
리턴 Transaction

FindByTransactionGroupID() 공개 메소드

Finds the by transaction group ID.
public FindByTransactionGroupID ( System.Guid transactionGroupID ) : Transaction
transactionGroupID System.Guid The transaction group ID.
리턴 Transaction

Get() 공개 메소드

public Get ( bool>.System filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
filter bool>.System
orderBy Func
includeProperties string
리턴 IEnumerable

GetActiveAccountsForLedger() 공개 메소드

Gets the active accounts for ledger.
public GetActiveAccountsForLedger ( int LedgerID ) : List
LedgerID int The ledger ID.
리턴 List

GetAvailableAllocations() 공개 메소드

Gets the available allocations.
public GetAvailableAllocations ( int hubId ) : List
hubId int The hub id.
리턴 List

GetCommodityBalanceForHub() 공개 메소드

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.
리턴 decimal

GetCommodityBalanceForStack() 공개 메소드

Gets the commodity balance for stack.
public GetCommodityBalanceForStack ( int storeId, int stack, int parentCommodityId, int si, int project ) : decimal
storeId int The store id.
stack int The stack.
parentCommodityId int The parent commodity id.
si int The SI.
project int The project.
리턴 decimal

GetCommodityBalanceForStore() 공개 메소드

Gets the commodity balance for store.
public GetCommodityBalanceForStore ( int storeId, int parentCommodityId, int si, int project ) : decimal
storeId int The store id.
parentCommodityId int The parent commodity id.
si int The SI.
project int The project.
리턴 decimal

GetDistributionReport() 공개 메소드

Gets the distribution report.
public GetDistributionReport ( int hubID, DistributionViewModel distributionViewModel ) : List
hubID int The hub ID.
distributionViewModel DRMFSS.BLL.ViewModels.Report.DistributionViewModel The distribution view model.
리턴 List

GetGroupedTransportationReports() 공개 메소드

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.
리턴 List

GetListOfStartingBalances() 공개 메소드

Gets the list of starting balances.
public GetListOfStartingBalances ( int hubID ) : List
hubID int The hub ID.
리턴 List

GetOffloadingReport() 공개 메소드

Gets the offloading report.
public GetOffloadingReport ( int hubID, DispatchesViewModel dispatchesViewModel ) : List
hubID int The hub ID.
dispatchesViewModel DRMFSS.BLL.ViewModels.Report.DispatchesViewModel The dispatches view model.
리턴 List

GetReceiveReport() 공개 메소드

Gets the receive report.
public GetReceiveReport ( int hubID, ReceiptsViewModel receiptsViewModel ) : List
hubID int The hub ID.
receiptsViewModel DRMFSS.BLL.ViewModels.Report.ReceiptsViewModel The receipts view model.
리턴 List

GetTotalReceiptAllocation() 공개 메소드

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.
리턴 decimal

GetTotalReceivedFromReceiptAllocation() 공개 메소드

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.
리턴 decimal

GetTotalReceivedFromReceiptAllocation() 공개 메소드

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.
리턴 decimal

GetTransactionsForLedger() 공개 메소드

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.
리턴 List

GetTransportationReports() 공개 메소드

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.
리턴 List

SaveAdjustmentTrasnsaction() 공개 메소드

public SaveAdjustmentTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel DRMFSS.BLL.ViewModels.LossesAndAdjustmentsViewModel
user UserProfile
리턴 void

SaveDispatchTransaction() 공개 메소드

Saves the dispatch transaction.
public SaveDispatchTransaction ( DispatchModel dispatchModel, UserProfile user ) : void
dispatchModel DRMFSS.Web.Models.DispatchModel The dispatch model.
user UserProfile The user.
리턴 void

SaveInternalMovementTrasnsaction() 공개 메소드

public SaveInternalMovementTrasnsaction ( InternalMovementViewModel viewModel, UserProfile user ) : void
viewModel DRMFSS.BLL.ViewModels.InternalMovementViewModel
user UserProfile
리턴 void

SaveLossAdjustmentTransaction() 공개 메소드

Saves the loss adjustment transaction.
public SaveLossAdjustmentTransaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel DRMFSS.BLL.ViewModels.LossesAndAdjustmentsViewModel The view model.
user UserProfile The user.
리턴 void

SaveLossTrasnsaction() 공개 메소드

public SaveLossTrasnsaction ( LossesAndAdjustmentsViewModel viewModel, UserProfile user ) : void
viewModel DRMFSS.BLL.ViewModels.LossesAndAdjustmentsViewModel
user UserProfile
리턴 void

SaveReceiptTransaction() 공개 메소드

Saves the receipt transaction.
public SaveReceiptTransaction ( ReceiveViewModel receiveModels, UserProfile user ) : void
receiveModels DRMFSS.Web.Models.ReceiveViewModel The receive models.
user UserProfile The user.
리턴 void

SaveStartingBalanceTransaction() 공개 메소드

Saves the starting balance transaction.
public SaveStartingBalanceTransaction ( StartingBalanceViewModel startingBalance, UserProfile user ) : void
startingBalance DRMFSS.BLL.ViewModels.StartingBalanceViewModel The starting balance.
user UserProfile The user.
리턴 void

TransactionService() 공개 메소드

public TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService ) : System
unitOfWork IUnitOfWork
accountService IAccountService
리턴 System

TransactionService() 공개 메소드

public TransactionService ( IUnitOfWork unitOfWork, IAccountService accountService, IShippingInstructionService shippingInstructionService ) : System
unitOfWork IUnitOfWork
accountService IAccountService
shippingInstructionService IShippingInstructionService
리턴 System