Tasks 184281, 184799, 184800, 184801 and 184802
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
This commit is contained in:
@ -1,226 +1,167 @@
|
||||
using Fab2ApprovalSystem.ViewModels;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
using Fab2ApprovalSystem.ViewModels;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class MRB {
|
||||
|
||||
public int MRBNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int MRBRaisedAreaID { get; set; }
|
||||
public int OriginatorID { get; set; }
|
||||
public int Owner { get; set; }
|
||||
public int Module { get; set; }
|
||||
public DateTime? MRBRaisedDate { get; set; }
|
||||
public string Process { get; set; }
|
||||
public int ApprovalStatus { get; set; }
|
||||
public string Tool { get; set; }
|
||||
public string ToolCSV { get; set; }
|
||||
public int NumberOfLotsAffected { get; set; }
|
||||
public int NumberOfWafersAffected { get; set; }
|
||||
public int NumberOfDiesAffected { get; set; }
|
||||
public DateTime? ApprovalDate { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string IssueDescription { get; set; }
|
||||
public DateTime? IssueDetectedDate { get; set; }
|
||||
public DateTime? IssueStartDate { get; set; }
|
||||
public DateTime? IssueEndDate { get; set; }
|
||||
|
||||
// viewmodel
|
||||
public string OwnerName { get; set; }
|
||||
public List<int> PartGroupIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public List<int> DispositionIDs { get; set; }
|
||||
public List<int> RiskAssessmentIDs { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string OwnerApprover { get; set; }
|
||||
public string MfgEngineeringAppover { get; set; }
|
||||
public string YEApprover { get; set; }
|
||||
public string PEApprover { get; set; }
|
||||
public string OtherApprovers { get; set; }
|
||||
public string QualityApprovers { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public string DetailsFolder { get; set; }
|
||||
public bool CustomerImpacted { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public string ApprovalStatusString {
|
||||
get {
|
||||
switch (ApprovalStatus) {
|
||||
case 0:
|
||||
return "PENDING";
|
||||
case 1:
|
||||
return "APPROVED";
|
||||
default:
|
||||
return "CLOSED";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class MRB
|
||||
{
|
||||
|
||||
public int MRBNumber {get;set;}
|
||||
public string Title { get; set; }
|
||||
public int MRBRaisedAreaID { get; set; }
|
||||
public int OriginatorID { get; set; }
|
||||
public int Owner { get; set; }
|
||||
public int Module { get; set; }
|
||||
public DateTime? MRBRaisedDate { get; set; }
|
||||
public string Process { get; set; }
|
||||
public int ApprovalStatus { get; set; }
|
||||
public string Tool { get; set; }
|
||||
public string ToolCSV { get; set; }
|
||||
public int NumberOfLotsAffected { get; set; }
|
||||
public int NumberOfWafersAffected { get; set; }
|
||||
public int NumberOfDiesAffected { get; set; }
|
||||
public DateTime? ApprovalDate { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string IssueDescription { get; set; }
|
||||
public DateTime? IssueDetectedDate { get; set; }
|
||||
public DateTime? IssueStartDate { get; set; }
|
||||
public DateTime? IssueEndDate { get; set; }
|
||||
|
||||
// viewmodel
|
||||
public string OwnerName { get; set; }
|
||||
public List<int> PartGroupIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public List<int> DispositionIDs { get; set; }
|
||||
public List<int> RiskAssessmentIDs { get; set; }
|
||||
|
||||
//public List<PartGroup> PartGroups { get; set; }
|
||||
//public List<Module> Modules { get; set; }
|
||||
//public List<Disposition> Dispositions { get; set; }
|
||||
//public List<RiskAssessment> RiskAssessments { get; set; }
|
||||
|
||||
public string Notes { get; set; }
|
||||
public string OwnerApprover { get; set; }
|
||||
public string MfgEngineeringAppover { get; set; }
|
||||
public string YEApprover { get; set; }
|
||||
public string PEApprover { get; set; }
|
||||
public string OtherApprovers { get; set; }
|
||||
public string QualityApprovers { get; set; }
|
||||
//public string Details { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public string DetailsFolder { get; set; }
|
||||
public bool CustomerImpacted { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
|
||||
public string ApprovalStatusString {
|
||||
get
|
||||
{
|
||||
switch (ApprovalStatus)
|
||||
{
|
||||
case 0:
|
||||
return "PENDING";
|
||||
case 1:
|
||||
return "APPROVED";
|
||||
default:
|
||||
return "CLOSED";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public MRB()
|
||||
{
|
||||
PartGroupIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
DispositionIDs = new List<int>();
|
||||
RiskAssessmentIDs = new List<int>();
|
||||
}
|
||||
|
||||
|
||||
public MRB() {
|
||||
PartGroupIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
DispositionIDs = new List<int>();
|
||||
RiskAssessmentIDs = new List<int>();
|
||||
}
|
||||
|
||||
//public class zMRBLot
|
||||
//{
|
||||
// public int LotID { get; set; }
|
||||
// [Display(Name = "Wafer Lot#")]
|
||||
// public string LotNumber { get; set; }
|
||||
// public string ParentLotNumber { get { return LotNumber.Length >= 7 ? LotNumber.Substring(0, 7) : LotNumber; } }
|
||||
}
|
||||
|
||||
// public int MRBNumber { get; set; }
|
||||
// public string DieLotNumber { get; set; }
|
||||
// public string Description { get; set; }
|
||||
// [Display(Name = "New PN#")]
|
||||
// public string NewPartNo { get; set; }
|
||||
// [Display(Name = "WIP PN#")]
|
||||
// public string WipPartNo { get; set; }
|
||||
// [Display(Name = "Die PN#")]
|
||||
// public string DiePartNo { get; set; }
|
||||
// [Display(Name = "Family")]
|
||||
// public string ProductFamily { get; set; }
|
||||
// public double Gen { get; set; }
|
||||
// public string Channel { get; set; }
|
||||
// public double Hexsize { get; set; }
|
||||
// public double Voltage { get; set; }
|
||||
// public int WaferCount { get; set; }
|
||||
// public int ReleaseCount { get; set; }
|
||||
// public int ScrapCount { get; set; }
|
||||
// public int DieCount { get; set; }
|
||||
// public string Location { get; set; }
|
||||
// public double TotalCost { get; set; }
|
||||
// public string LotStatusOptionName { get; set; }
|
||||
// public double WaferCost { get; set; }
|
||||
// public double DieCost { get; set; }
|
||||
//}
|
||||
public class PartGroup {
|
||||
|
||||
public int PartGroupID { get; set; }
|
||||
public string PartGroupName { get; set; }
|
||||
|
||||
public class PartGroup
|
||||
{
|
||||
public int PartGroupID { get; set; }
|
||||
public string PartGroupName { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
public class Module {
|
||||
|
||||
public class Module
|
||||
{
|
||||
public int ModuleID { get; set; }
|
||||
//public int MRBNumber { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class RiskAssessment {
|
||||
|
||||
public class RiskAssessment
|
||||
{
|
||||
public int RiskAssessmentID { get; set; }
|
||||
public string RiskAssessmentName { get; set; }
|
||||
|
||||
public int RiskAssessmentID { get; set; }
|
||||
//public int MRBNumber { get; set; }
|
||||
public string RiskAssessmentName { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
public class Disposition {
|
||||
|
||||
public int DispositionID { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
[Display(Name = "Type")]
|
||||
public string DispositionType { get; set; }
|
||||
[Display(Name = "Dispo Desc")]
|
||||
public string DispositionName { get; set; }
|
||||
public string DispositionNotes { get; set; }
|
||||
|
||||
public class Disposition
|
||||
{
|
||||
//Duplicated as the CloseToQDBOptionID is being used in the dropdown in the Grid kept the old code
|
||||
public int CloseToQDBOption_ID { get; set; }
|
||||
|
||||
public int DispositionID { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
[Display(Name = "Type")]
|
||||
public string DispositionType { get; set; }
|
||||
[Display(Name="Dispo Desc")]
|
||||
public string DispositionName { get; set; }
|
||||
public string DispositionNotes { get; set; }
|
||||
[UIHint("CloseToQDBTemplate")]
|
||||
[Display(Name = "Close To QDB(Yes/No)")]
|
||||
public CloseToQDBOptionViewModel CloseToQDBOption { get; set; }
|
||||
|
||||
//Duplicated as the CloseToQDBOptionID is being used in the dropdown in the Grid kept the old code
|
||||
public int CloseToQDBOption_ID { get; set; }
|
||||
//public string CloseToQDBOption { get; set; }
|
||||
|
||||
[UIHint("CloseToQDBTemplate")]
|
||||
[Display(Name = "Close To QDB(Yes/No)")]
|
||||
public CloseToQDBOptionViewModel CloseToQDBOption { get; set; }
|
||||
|
||||
[Display(Name = "MRB Flag to SPN")]
|
||||
public string CloseToQDBOptionString
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (CloseToQDBOption_ID)
|
||||
{
|
||||
case 0:
|
||||
return "No";
|
||||
case 1:
|
||||
return "Yes";
|
||||
default:
|
||||
return "No";
|
||||
}
|
||||
[Display(Name = "MRB Flag to SPN")]
|
||||
public string CloseToQDBOptionString {
|
||||
get {
|
||||
switch (CloseToQDBOption_ID) {
|
||||
case 0:
|
||||
return "No";
|
||||
case 1:
|
||||
return "Yes";
|
||||
default:
|
||||
return "No";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class MRBAttachment
|
||||
{
|
||||
public int AttachmentID { set; get; }
|
||||
public int MRBNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
// extrafield
|
||||
public string FullName { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
public string Path { get; set; }
|
||||
public class MRBAttachment {
|
||||
|
||||
}
|
||||
public int AttachmentID { set; get; }
|
||||
public int MRBNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
// extrafield
|
||||
public string FullName { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
public string Path { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ContainmentActionObj
|
||||
{
|
||||
public int ContainmentActionID { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
public string ContainmentAction { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwner { get; set; }
|
||||
public class ContainmentActionObj {
|
||||
|
||||
//[DataType(DataType.Date)]
|
||||
public DateTime? ECD { get; set; }
|
||||
public int ContainmentActionID { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
public string ContainmentAction { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwner { get; set; }
|
||||
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
}
|
||||
//[DataType(DataType.Date)]
|
||||
public DateTime? ECD { get; set; }
|
||||
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class SPN_MRB {
|
||||
|
||||
public int MRBNumber;
|
||||
public char? DispoType;
|
||||
|
||||
public class SPN_MRB
|
||||
{
|
||||
public int MRBNumber;
|
||||
public char? DispoType;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user