C# Class DRMFSS.BLL.Services.ReceiptAllocationService

Inheritance: IReceiptAllocationService
Show file Open project: edgecomputing/cats-hub-module

Public Methods

Method Description
AddReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
CloseById ( System.Guid id ) : void
CommitReceiveAllocation ( string checkedRecords, UserProfile user ) : void

Commits the receive allocation.

DeleteByID ( System.Guid id ) : bool
DeleteById ( int id ) : bool
DeleteReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
Dispose ( ) : void
EditReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
FindBy ( bool>.Expression predicate ) : List
FindByID ( System.Guid id ) : ReceiptAllocation
FindById ( System.Guid id ) : ReceiptAllocation
FindById ( int id ) : ReceiptAllocation
FindBySINumber ( string SINumber ) : List
GetAllByTypeMerged ( int commoditySoureType ) : List
GetAllReceiptAllocation ( ) : List
GetAvailableCommodities ( string SINumber, int hubId ) : List
GetAvailableCommoditiesFromUnclosed ( string SINumber, int hubId, int commoditySourceId ) : List
GetBalance ( string siNumber, int commodityId ) : decimal

Gets the balance.

GetBalanceForSI ( string SInumber ) : decimal

Gets the balance for SI.

GetListOfSource ( int commoditySoureType ) : int[]
GetReceivedAlready ( ReceiptAllocation receiptAllocation ) : decimal
GetReceivedAlreadyInUnit ( ReceiptAllocation receiptAllocation ) : decimal
GetSIBalanceForCommodity ( int hubId, int CommodityId ) : List
GetSIBalanceForCommodityInUnit ( int hubId, int CommodityId ) : List
GetSIBalances ( string SINumber ) : List

Gets the SI balances.

GetSIsWithOutGiftCertificate ( ) : List
GetSIsWithOutGiftCertificate ( int commoditySoureType ) : List
GetTotalAllocation ( string siNumber, int commodityId, int hubId, int commoditySourceId ) : decimal
GetUnclosedAllocationsDetached ( int hubId, int commoditySoureType, bool closedToo, string weightMeasurmentCode, int CommodityType ) : List
GetUncommitedAllocationTransaction ( int CommodityID, int ShipingInstructionID, int HubID ) : Transaction

Gets the uncommited allocation transaction.

IsSINSource ( int source, string siNumber ) : bool
ReceiptAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService ShippingInstructionService, IDispatchAllocationService DispatchAllocationService ) : System

Method Details

AddReceiptAllocation() public method

public AddReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
receiptAllocation ReceiptAllocation
return bool

CloseById() public method

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

CommitReceiveAllocation() public method

Commits the receive allocation.
public CommitReceiveAllocation ( string checkedRecords, UserProfile user ) : void
checkedRecords string The checked records.
user UserProfile
return void

DeleteByID() public method

public DeleteByID ( System.Guid id ) : bool
id System.Guid
return bool

DeleteById() public method

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

DeleteReceiptAllocation() public method

public DeleteReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
receiptAllocation ReceiptAllocation
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditReceiptAllocation() public method

public EditReceiptAllocation ( ReceiptAllocation receiptAllocation ) : bool
receiptAllocation ReceiptAllocation
return bool

FindBy() public method

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

FindByID() public method

public FindByID ( System.Guid id ) : ReceiptAllocation
id System.Guid
return ReceiptAllocation

FindById() public method

public FindById ( System.Guid id ) : ReceiptAllocation
id System.Guid
return ReceiptAllocation

FindById() public method

public FindById ( int id ) : ReceiptAllocation
id int
return ReceiptAllocation

FindBySINumber() public method

public FindBySINumber ( string SINumber ) : List
SINumber string
return List

GetAllByTypeMerged() public method

public GetAllByTypeMerged ( int commoditySoureType ) : List
commoditySoureType int
return List

GetAllReceiptAllocation() public method

public GetAllReceiptAllocation ( ) : List
return List

GetAvailableCommodities() public method

public GetAvailableCommodities ( string SINumber, int hubId ) : List
SINumber string
hubId int
return List

GetAvailableCommoditiesFromUnclosed() public method

public GetAvailableCommoditiesFromUnclosed ( string SINumber, int hubId, int commoditySourceId ) : List
SINumber string
hubId int
commoditySourceId int
return List

GetBalance() public method

Gets the balance.
public GetBalance ( string siNumber, int commodityId ) : decimal
siNumber string The si number.
commodityId int The commodity id.
return decimal

GetBalanceForSI() public method

Gets the balance for SI.
public GetBalanceForSI ( string SInumber ) : decimal
SInumber string The S inumber.
return decimal

GetListOfSource() public method

public GetListOfSource ( int commoditySoureType ) : int[]
commoditySoureType int
return int[]

GetReceivedAlready() public method

public GetReceivedAlready ( ReceiptAllocation receiptAllocation ) : decimal
receiptAllocation ReceiptAllocation
return decimal

GetReceivedAlreadyInUnit() public method

public GetReceivedAlreadyInUnit ( ReceiptAllocation receiptAllocation ) : decimal
receiptAllocation ReceiptAllocation
return decimal

GetSIBalanceForCommodity() public method

public GetSIBalanceForCommodity ( int hubId, int CommodityId ) : List
hubId int
CommodityId int
return List

GetSIBalanceForCommodityInUnit() public method

public GetSIBalanceForCommodityInUnit ( int hubId, int CommodityId ) : List
hubId int
CommodityId int
return List

GetSIBalances() public method

Gets the SI balances.
public GetSIBalances ( string SINumber ) : List
SINumber string
return List

GetSIsWithOutGiftCertificate() public method

public GetSIsWithOutGiftCertificate ( ) : List
return List

GetSIsWithOutGiftCertificate() public method

public GetSIsWithOutGiftCertificate ( int commoditySoureType ) : List
commoditySoureType int
return List

GetTotalAllocation() public method

public GetTotalAllocation ( string siNumber, int commodityId, int hubId, int commoditySourceId ) : decimal
siNumber string
commodityId int
hubId int
commoditySourceId int
return decimal

GetUnclosedAllocationsDetached() public method

public GetUnclosedAllocationsDetached ( int hubId, int commoditySoureType, bool closedToo, string weightMeasurmentCode, int CommodityType ) : List
hubId int
commoditySoureType int
closedToo bool
weightMeasurmentCode string
CommodityType int
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 Transaction

IsSINSource() public method

public IsSINSource ( int source, string siNumber ) : bool
source int
siNumber string
return bool

ReceiptAllocationService() public method

public ReceiptAllocationService ( IUnitOfWork unitOfWork, IShippingInstructionService ShippingInstructionService, IDispatchAllocationService DispatchAllocationService ) : System
unitOfWork IUnitOfWork
ShippingInstructionService IShippingInstructionService
DispatchAllocationService IDispatchAllocationService
return System