C# Class Cats.Services.EarlyWarning.RegionalRequestDetailService

Inheritance: IRegionalRequestDetailService
Datei anzeigen Open project: edgecomputing/cats

Public Methods

Method Description
AddAllCommodity ( int regionalRequestID ) : bool
AddCommodityFdp ( RegionalRequestDetail requestDetail ) : bool
AddRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
AddRegionalRequestDetailWithBeneficiary ( RegionalRequestDetail regionalRequestDetail ) : bool
AddRequestDetailCommodity ( int commodityId, int requestId ) : bool
DeleteById ( int id ) : bool
DeleteRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
DeleteRequestDetailCommodity ( int commodityId, int requestId ) : bool
Dispose ( ) : void
EditRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : RegionalRequestDetail
Get ( bool>.Expression filter = null, Func orderBy = null, string includeProperties = "" ) : IEnumerable
GetAllRegionalRequestDetail ( ) : List
RegionalRequestDetailService ( IUnitOfWork unitOfWork ) : System
Save ( ) : bool
UpdateRequestDetailCommodity ( int commodityId, int requestCommodityId ) : bool

Private Methods

Method Description
CalculateAllocation ( RegionalRequestDetail requestDetail ) : bool
GetCommodityRation ( int requestId, int commodityId ) : decimal
GetDurationOfAssistance ( int planId, int woredaId ) : decimal
GetRationDependingOnPreference ( decimal ration ) : decimal

Method Details

AddAllCommodity() public method

public AddAllCommodity ( int regionalRequestID ) : bool
regionalRequestID int
return bool

AddCommodityFdp() public method

public AddCommodityFdp ( RegionalRequestDetail requestDetail ) : bool
requestDetail Cats.Models.RegionalRequestDetail
return bool

AddRegionalRequestDetail() public method

public AddRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
regionalRequestDetail Cats.Models.RegionalRequestDetail
return bool

AddRegionalRequestDetailWithBeneficiary() public method

public AddRegionalRequestDetailWithBeneficiary ( RegionalRequestDetail regionalRequestDetail ) : bool
regionalRequestDetail Cats.Models.RegionalRequestDetail
return bool

AddRequestDetailCommodity() public method

public AddRequestDetailCommodity ( int commodityId, int requestId ) : bool
commodityId int
requestId int
return bool

DeleteById() public method

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

DeleteRegionalRequestDetail() public method

public DeleteRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
regionalRequestDetail Cats.Models.RegionalRequestDetail
return bool

DeleteRequestDetailCommodity() public method

public DeleteRequestDetailCommodity ( int commodityId, int requestId ) : bool
commodityId int
requestId int
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditRegionalRequestDetail() public method

public EditRegionalRequestDetail ( RegionalRequestDetail regionalRequestDetail ) : bool
regionalRequestDetail Cats.Models.RegionalRequestDetail
return bool

FindBy() public method

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

FindById() public method

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

Get() public method

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

GetAllRegionalRequestDetail() public method

public GetAllRegionalRequestDetail ( ) : List
return List

RegionalRequestDetailService() public method

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

Save() public method

public Save ( ) : bool
return bool

UpdateRequestDetailCommodity() public method

public UpdateRequestDetailCommodity ( int commodityId, int requestCommodityId ) : bool
commodityId int
requestCommodityId int
return bool