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

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

공개 메소드들

메소드 설명
AddCommodity ( Commodity commodity ) : bool
CommodityService ( IUnitOfWork unitOfWork ) : System
DeleteById ( int id ) : bool
DeleteCommodity ( Commodity commodity ) : bool
Dispose ( ) : void
EditCommodity ( Commodity commodity ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( int id ) : Commodity
GetAllCommodity ( ) : List
GetAllCommodityForReprot ( ) : List

GetAllCommodityForReport

GetAllParents ( ) : List

Gets all parents.

GetAllSubCommodities ( ) : List

Gets all sub commodities.

GetAllSubCommoditiesByParantId ( int Id ) : List

Gets all sub commodities by parant id.

GetCommodityByName ( string name ) : Commodity

Gets the name of the commodity by.

IsCodeValid ( int CommodityID, string CommodityCode ) : bool

Determines whether [commodity code is valid] for [the specified commodity ID].

IsNameValid ( int CommodityID, string Name ) : bool

Determines whether name is valid for the specified commodity ID.

메소드 상세

AddCommodity() 공개 메소드

public AddCommodity ( Commodity commodity ) : bool
commodity Commodity
리턴 bool

CommodityService() 공개 메소드

public CommodityService ( IUnitOfWork unitOfWork ) : System
unitOfWork IUnitOfWork
리턴 System

DeleteById() 공개 메소드

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

DeleteCommodity() 공개 메소드

public DeleteCommodity ( Commodity commodity ) : bool
commodity Commodity
리턴 bool

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EditCommodity() 공개 메소드

public EditCommodity ( Commodity commodity ) : bool
commodity Commodity
리턴 bool

FindBy() 공개 메소드

public FindBy ( bool>.Expression predicate ) : List
predicate bool>.Expression
리턴 List

FindById() 공개 메소드

public FindById ( int id ) : Commodity
id int
리턴 Commodity

GetAllCommodity() 공개 메소드

public GetAllCommodity ( ) : List
리턴 List

GetAllCommodityForReprot() 공개 메소드

GetAllCommodityForReport
public GetAllCommodityForReprot ( ) : List
리턴 List

GetAllParents() 공개 메소드

Gets all parents.
public GetAllParents ( ) : List
리턴 List

GetAllSubCommodities() 공개 메소드

Gets all sub commodities.
public GetAllSubCommodities ( ) : List
리턴 List

GetAllSubCommoditiesByParantId() 공개 메소드

Gets all sub commodities by parant id.
public GetAllSubCommoditiesByParantId ( int Id ) : List
Id int The id.
리턴 List

GetCommodityByName() 공개 메소드

Gets the name of the commodity by.
public GetCommodityByName ( string name ) : Commodity
name string The name.
리턴 Commodity

IsCodeValid() 공개 메소드

Determines whether [commodity code is valid] for [the specified commodity ID].
public IsCodeValid ( int CommodityID, string CommodityCode ) : bool
CommodityID int The commodity ID.
CommodityCode string The commodity code.
리턴 bool

IsNameValid() 공개 메소드

Determines whether name is valid for the specified commodity ID.
public IsNameValid ( int CommodityID, string Name ) : bool
CommodityID int The commodity ID.
Name string The name.
리턴 bool