C# Class Cats.Models.Hubs.ViewModels.ReceiveViewModel

Exibir arquivo Open project: edgecomputing/cats Class Usage Examples

Private Properties

Property Type Description
InitalizeViewModel void

Public Methods

Method Description
GenerateReceive ( ) : Receive

Generates the receive.

GenerateReceiveModel ( Receive receive, List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : ReceiveViewModel

Generates the receive model.

InitializeEditLists ( List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : void

Initializes the edit lists.

ReceiveViewModel ( ) : System

parameterless constructor, which is hidden so that this object is not constructed with out the user being specified,

ReceiveViewModel ( List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : System

constructor with the testable repositories and the user the user is required because we need to decide what wareshouses to display for her.

Private Methods

Method Description
InitalizeViewModel ( List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : void

Initalizes the view model.

Method Details

GenerateReceive() public method

Generates the receive.
public GenerateReceive ( ) : Receive
return Receive

GenerateReceiveModel() public static method

Generates the receive model.
public static GenerateReceiveModel ( Receive receive, List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : ReceiveViewModel
receive Receive The receive.
commodities List
commodityGrades List
transporters List
commodityTypes List
commoditySources List
programs List
donors List
hubs List
user UserProfile The user.
units List
return ReceiveViewModel

InitializeEditLists() public method

Initializes the edit lists.
public InitializeEditLists ( List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : void
commodities List
commodityGrades List
transporters List
commodityTypes List
commoditySources List
programs List
donors List
hubs List
user UserProfile
units List
return void

ReceiveViewModel() public method

parameterless constructor, which is hidden so that this object is not constructed with out the user being specified,
public ReceiveViewModel ( ) : System
return System

ReceiveViewModel() public method

constructor with the testable repositories and the user the user is required because we need to decide what wareshouses to display for her.
public ReceiveViewModel ( List commodities, List commodityGrades, List transporters, List commodityTypes, List commoditySources, List programs, List donors, List hubs, UserProfile user, List units ) : System
commodities List
commodityGrades List
transporters List
commodityTypes List
commoditySources List
programs List
donors List
hubs List
user UserProfile
units List
return System