Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

70 lines
2.4 KiB
C#

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<int> GenerationIDs { get; set; }
public List<int> LogisticsIDs { get; set; }
public List<int> ProcessIDs { get; set; }
//public List<int> ToolTypeIDs { get; set; }
//public List<string> 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 ChangeControlViewModel()
{
GenerationIDs = new List<int>();
LogisticsIDs = new List<int>();
ProcessIDs = new List<int>();
//ToolTypeIDs = new List<int>();
//PartNumberIDs = new List<string>();
}
}
}