C# Class Cats.Services.EarlyWarning.ReliefRequisitionService

Inheritance: IReliefRequisitionService
Show file Open project: edgecomputing/cats Class Usage Examples

Public Methods

Method Description
AddReliefRequisions ( List reliefRequisitions ) : void
AddReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
AssignRequisitonNo ( string>.Dictionary requisitionNumbers ) : bool
CreateRequisition ( int requestId ) : IEnumerable
CreateRequistionFromRequest ( RegionalRequest regionalRequest ) : List
DeleteById ( int id ) : bool
DeleteReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
Dispose ( ) : void
EditAllocatedAmount ( decimal>.Dictionary allocations ) : bool
EditReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : ReliefRequisition
GenerateRequisition ( RegionalRequest regionalRequest, List regionalRequestDetails, int commodityId, int zoneId ) : ReliefRequisition
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllReliefRequisition ( ) : List
GetRequisitionByRequestId ( int requestId ) : IEnumerable
GetRequisitionsSentToLogistics ( ) : List
GetZonesFoodRequested ( int requestId ) : List
ReliefRequisitionService ( IUnitOfWork unitOfWork ) : System

Method Details

AddReliefRequisions() public method

public AddReliefRequisions ( List reliefRequisitions ) : void
reliefRequisitions List
return void

AddReliefRequisition() public method

public AddReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
reliefRequisition Cats.Models.ReliefRequisition
return bool

AssignRequisitonNo() public method

public AssignRequisitonNo ( string>.Dictionary requisitionNumbers ) : bool
requisitionNumbers string>.Dictionary
return bool

CreateRequisition() public method

public CreateRequisition ( int requestId ) : IEnumerable
requestId int
return IEnumerable

CreateRequistionFromRequest() public method

public CreateRequistionFromRequest ( RegionalRequest regionalRequest ) : List
regionalRequest Cats.Models.RegionalRequest
return List

DeleteById() public method

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

DeleteReliefRequisition() public method

public DeleteReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
reliefRequisition Cats.Models.ReliefRequisition
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditAllocatedAmount() public method

public EditAllocatedAmount ( decimal>.Dictionary allocations ) : bool
allocations decimal>.Dictionary
return bool

EditReliefRequisition() public method

public EditReliefRequisition ( ReliefRequisition reliefRequisition ) : bool
reliefRequisition Cats.Models.ReliefRequisition
return bool

FindBy() public method

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

FindById() public method

public FindById ( int id ) : ReliefRequisition
id int
return Cats.Models.ReliefRequisition

GenerateRequisition() public method

public GenerateRequisition ( RegionalRequest regionalRequest, List regionalRequestDetails, int commodityId, int zoneId ) : ReliefRequisition
regionalRequest Cats.Models.RegionalRequest
regionalRequestDetails List
commodityId int
zoneId int
return Cats.Models.ReliefRequisition

Get() public method

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

GetAllReliefRequisition() public method

public GetAllReliefRequisition ( ) : List
return List

GetRequisitionByRequestId() public method

public GetRequisitionByRequestId ( int requestId ) : IEnumerable
requestId int
return IEnumerable

GetRequisitionsSentToLogistics() public method

public GetRequisitionsSentToLogistics ( ) : List
return List

GetZonesFoodRequested() public method

public GetZonesFoodRequested ( int requestId ) : List
requestId int
return List

ReliefRequisitionService() public method

public ReliefRequisitionService ( IUnitOfWork unitOfWork ) : System
unitOfWork IUnitOfWork
return System