C# Class Cats.Services.Hub.ReceiveService

Inheritance: IReceiveService
Mostrar archivo Open project: edgecomputing/cats

Public Methods

Method Description
AddReceive ( Receive entity ) : bool
ByHubId ( int hubId ) : List

Bies the hub id.

ByHubIdAndAllocationIDetached ( int hubId, System.Guid receiptAllocationId ) : List
DeleteById ( int id ) : bool
DeleteReceive ( Receive entity ) : bool
Dispose ( ) : void
EditReceive ( Receive entity ) : bool
FindBy ( bool>.Expression predicate ) : List
FindById ( System id ) : Receive
FindById ( int id ) : Receive
GetALlPorts ( ) : List

Return All Ports

GetAllReceive ( ) : List
GetAllocationStatus ( System.Guid receiptAllocationId ) : AllocationStatusViewModel
IsGrnUnique ( string grn ) : bool
IsReceiveExcedeAllocation ( ReceiveDetailNewViewModel receiveDetailNewViewModel, System.Guid receiptAllocationId ) : bool
IsReceiveGreaterThanSent ( ReceiveDetailNewViewModel receiveDetailNewViewModel ) : bool
ReceiptAllocationToReceive ( ReceiptAllocation receiptAllocation ) : ReceiveNewViewModel
ReceiveService ( IUnitOfWork unitOfWork ) : System
Update ( List inserted, List updated, List deleted, Receive receive ) : void

Method Details

AddReceive() public method

public AddReceive ( Receive entity ) : bool
entity Cats.Models.Hubs.Receive
return bool

ByHubId() public method

Bies the hub id.
public ByHubId ( int hubId ) : List
hubId int The hub id.
return List

ByHubIdAndAllocationIDetached() public method

public ByHubIdAndAllocationIDetached ( int hubId, System.Guid receiptAllocationId ) : List
hubId int
receiptAllocationId System.Guid
return List

DeleteById() public method

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

DeleteReceive() public method

public DeleteReceive ( Receive entity ) : bool
entity Cats.Models.Hubs.Receive
return bool

Dispose() public method

public Dispose ( ) : void
return void

EditReceive() public method

public EditReceive ( Receive entity ) : bool
entity Cats.Models.Hubs.Receive
return bool

FindBy() public method

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

FindById() public method

public FindById ( System id ) : Receive
id System
return Cats.Models.Hubs.Receive

FindById() public method

public FindById ( int id ) : Receive
id int
return Cats.Models.Hubs.Receive

GetALlPorts() public method

Return All Ports
public GetALlPorts ( ) : List
return List

GetAllReceive() public method

public GetAllReceive ( ) : List
return List

GetAllocationStatus() public method

public GetAllocationStatus ( System.Guid receiptAllocationId ) : AllocationStatusViewModel
receiptAllocationId System.Guid
return Cats.Models.Hubs.ViewModels.AllocationStatusViewModel

IsGrnUnique() public method

public IsGrnUnique ( string grn ) : bool
grn string
return bool

IsReceiveExcedeAllocation() public method

public IsReceiveExcedeAllocation ( ReceiveDetailNewViewModel receiveDetailNewViewModel, System.Guid receiptAllocationId ) : bool
receiveDetailNewViewModel Cats.Models.Hubs.ViewModels.ReceiveDetailNewViewModel
receiptAllocationId System.Guid
return bool

IsReceiveGreaterThanSent() public method

public IsReceiveGreaterThanSent ( ReceiveDetailNewViewModel receiveDetailNewViewModel ) : bool
receiveDetailNewViewModel Cats.Models.Hubs.ViewModels.ReceiveDetailNewViewModel
return bool

ReceiptAllocationToReceive() public method

public ReceiptAllocationToReceive ( ReceiptAllocation receiptAllocation ) : ReceiveNewViewModel
receiptAllocation Cats.Models.Hubs.ReceiptAllocation
return Cats.Models.Hubs.ViewModels.ReceiveNewViewModel

ReceiveService() public method

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

Update() public method

public Update ( List inserted, List updated, List deleted, Receive receive ) : void
inserted List
updated List
deleted List
receive Cats.Models.Hubs.Receive
return void