using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Fab2ApprovalSystem.ViewModels { public class ChangeControlViewModel { public int PlanNumber { get; set; } public int OwnerID { get; set; } public string OwnerName { get; set; } public byte CurrentStep { get; set; } public int Status { get; set; } public int MeetingExist { get; set; } [DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")] public DateTime? ClosedDate { get; set; } public int ChangeLevel { get; set; } public int IsITAR { get; set; } public int IsMedical { get; set; } public int IsRadHard { get; set; } public int IsAutomotive { get; set; } public string Title { get; set; } public string ReasonForChange { get; set; } public string ChangeDescription { get; set; } public string Notes { get; set; } public string RecordLockByName { get; set; } public bool PCRBClosed { get; set; } // important!!make sure the id of the control matches the name of the field in the model it is being binded to, // in order to get the selected items from the control //public List GenerationIDs { get; set; } //public List LogisticsIDs { get; set; } //public List ProcessIDs { get; set; } //public List ToolTypeIDs { get; set; } //public List PartNumberIDs { get; set; } //public string Generations { get; set; } //public string Logistics { get; set; } //public string Processes { get; set; } //public string ToolTypes { get; set; } //public string PartNumbers { get; set; } public bool RecordLockIndicator { get; set; } public int RecordLockedBy { get; set; } public bool RecordLocked { get; set; } public DateTime RecordLockedDate { get; set; } public DateTime LastUpdateDate { get; set; } public int PCR1ID { get; set; } public int PCR2ID { get; set; } public int PCR3ID { get; set; } public string PlanTitle { get; set; } public ChangeControlViewModel() { //GenerationIDs = new List(); //LogisticsIDs = new List(); //ProcessIDs = new List(); //ToolTypeIDs = new List(); //PartNumberIDs = new List(); } } }