32 lines
960 B
C#
32 lines
960 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace Fab2ApprovalSystem.ViewModels
|
|
{
|
|
public enum ParameterControlTypes
|
|
{
|
|
Textbox, DatePicker, Dropdown, Multiselect
|
|
}
|
|
public class ReportParameterViewModel
|
|
{
|
|
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<System.Web.Mvc.SelectListItem> SelectList { get; set; }
|
|
}
|
|
public class ReportViewModel
|
|
{
|
|
public String ReportID { get; set; }
|
|
public String ReportName { get; set; }
|
|
public String Description { get; set; }
|
|
|
|
public String DocType { get; set; }
|
|
|
|
public IEnumerable<ReportParameterViewModel> Parameters { get; set; }
|
|
}
|
|
} |