C# Class Cats.Models.Hubs.ReceiptAllocationViewModel

Datei anzeigen Open project: edgecomputing/cats Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GenerateAllocationViewModel ( ReceiptAllocation receiptAllocation ) : ReceiptAllocationViewModel

Generates the allocation view model.

GenerateReceiptAllocation ( ) : ReceiptAllocation

Generates the receipt allocation.

InitalizeViewModel ( List commodities, List donors, List allHubs, List programs, List commoditySources, List commodityTypes, List receiveList ) : void

Initalizes the view model.

ReceiptAllocationViewModel ( ) : System

Initializes a new instance of the ReceiptAllocationViewModel class.

ReceiptAllocationViewModel ( List commodities, List donors, List allHubs, List programs, List commoditySources, List commodityTypes, UserProfile user, List receiveList ) : System

Initializes a new instance of the ReceiptAllocationViewModel class.

Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.Collections.Generic.IEnumerable

Method Details

GenerateAllocationViewModel() public static method

Generates the allocation view model.
public static GenerateAllocationViewModel ( ReceiptAllocation receiptAllocation ) : ReceiptAllocationViewModel
receiptAllocation ReceiptAllocation The receipt allocation.
return ReceiptAllocationViewModel

GenerateReceiptAllocation() public method

Generates the receipt allocation.
public GenerateReceiptAllocation ( ) : ReceiptAllocation
return ReceiptAllocation

InitalizeViewModel() public method

Initalizes the view model.
public InitalizeViewModel ( List commodities, List donors, List allHubs, List programs, List commoditySources, List commodityTypes, List receiveList ) : void
commodities List
donors List
allHubs List
programs List
commoditySources List
commodityTypes List
receiveList List
return void

ReceiptAllocationViewModel() public method

Initializes a new instance of the ReceiptAllocationViewModel class.
public ReceiptAllocationViewModel ( ) : System
return System

ReceiptAllocationViewModel() public method

Initializes a new instance of the ReceiptAllocationViewModel class.
public ReceiptAllocationViewModel ( List commodities, List donors, List allHubs, List programs, List commoditySources, List commodityTypes, UserProfile user, List receiveList ) : System
commodities List
donors List
allHubs List
programs List
commoditySources List
commodityTypes List
user UserProfile
receiveList List
return System

Validate() public method

public Validate ( System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.Collections.Generic.IEnumerable
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return System.Collections.Generic.IEnumerable