Align .editorconfig files Move Controller logic to DMO classes GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager(); Question EditorConfig Project level editorconfig Format White Spaces AppSetting when EnvironmentVariable not set Corrective Actions Tests Schedule Actions Tests DMO Tests Controller Tests Get ready to use VSCode IDE
30 lines
844 B
C#
30 lines
844 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Fab2ApprovalSystem.ViewModels;
|
|
|
|
public enum ParameterControlTypes {
|
|
Textbox, DatePicker, Dropdown, Multiselect
|
|
}
|
|
|
|
public class ReportParameterViewModel<T> // <T> => System.Web.Mvc.SelectListItem
|
|
{
|
|
|
|
public bool Visible { get; set; }
|
|
public string Prompt { get; set; }
|
|
public string Name { get; set; }
|
|
public string HtmlID { get; set; }
|
|
public string DefaultValue { get; set; }
|
|
public ParameterControlTypes ControlType { get; set; }
|
|
public IEnumerable<T> SelectList { get; set; }
|
|
|
|
}
|
|
|
|
public class ReportViewModel<T> {
|
|
|
|
public string ReportID { get; set; }
|
|
public string ReportName { get; set; }
|
|
public string Description { get; set; }
|
|
public string DocType { get; set; }
|
|
public IEnumerable<ReportParameterViewModel<T>> Parameters { get; set; }
|
|
|
|
} |