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:
2024-12-04 11:58:13 -07:00
parent 538b1f817e
commit b1c6903c1c
150 changed files with 29146 additions and 33456 deletions

View File

@ -1,21 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class ApproversListViewModel
{
public int ApprovalID { get; set; }
public int UserID { get; set; }
public string FullName { get; set; }
public string RoleName { get; set; }
public string SubRoleName { get; set; }
public string Status { get; set; }
public DateTime? AssignedDate { get; set; }
public DateTime? CompletedDate { get; set; }
public string Comments { get; set; }
namespace Fab2ApprovalSystem.ViewModels;
public class ApproversListViewModel {
public int ApprovalID { get; set; }
public int UserID { get; set; }
public string FullName { get; set; }
public string RoleName { get; set; }
public string SubRoleName { get; set; }
public string Status { get; set; }
public DateTime? AssignedDate { get; set; }
public DateTime? CompletedDate { get; set; }
public string Comments { get; set; }
}
}

View File

@ -1,70 +1,46 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class ChangeControlViewModel
{
namespace Fab2ApprovalSystem.ViewModels;
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; }
public class ChangeControlViewModel {
[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; }
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; }
// 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; }
[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; }
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<int>();
//LogisticsIDs = new List<int>();
//ProcessIDs = new List<int>();
//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 string PlanTitle { get; set; }
public ChangeControlViewModel()
{
//GenerationIDs = new List<int>();
//LogisticsIDs = new List<int>();
//ProcessIDs = new List<int>();
//ToolTypeIDs = new List<int>();
//PartNumberIDs = new List<string>();
}
//ToolTypeIDs = new List<int>();
//PartNumberIDs = new List<string>();
}
}
}

View File

@ -1,16 +1,11 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace Fab2ApprovalSystem.ViewModels
{
public class CloseToQDBOptionViewModel
{
namespace Fab2ApprovalSystem.ViewModels;
public class CloseToQDBOptionViewModel {
public int CloseToQDBOptionID { get; set; }
[Display(Name = "Close To QDB(Yes/No)")]
public string CloseToQDBOption { get; set; }
public int CloseToQDBOptionID { get; set; }
[Display(Name = "Close To QDB(Yes/No)")]
public string CloseToQDBOption { get; set; }
}
}

View File

@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels;
namespace Fab2ApprovalSystem.ViewModels
{
public class ECNTrainingAssignment
{
}
public class ECNTrainingAssignment {
}

View File

@ -1,19 +1,14 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class ECNTrainingAssignments
{
public int TrainingAssignmentID { get; set; }
public int ECN_ID { get; set; }
public int TrainingID { get; set; }
public DateTime? DateAssigned { get; set; }
public DateTime? DateCompleted { get; set; }
public bool Status { get; set; }
namespace Fab2ApprovalSystem.ViewModels;
}
}
public class ECNTrainingAssignments {
public int TrainingAssignmentID { get; set; }
public int ECN_ID { get; set; }
public int TrainingID { get; set; }
public DateTime? DateAssigned { get; set; }
public DateTime? DateCompleted { get; set; }
public bool Status { get; set; }
}

View File

@ -1,13 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels;
public class IssueWithExistingLotsViewModel {
public string IssuesList { get; set; }
public string LotList { get; set; }
namespace Fab2ApprovalSystem.ViewModels
{
public class IssueWithExistingLotsViewModel
{
public string IssuesList { get; set; }
public string LotList { get; set; }
}
}

View File

@ -1,28 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
namespace Fab2ApprovalSystem.ViewModels
{
public class LTMaterialViewModel
{
public int ID { get; set; }
[Display(Name = "WIP Part #")]
public string WIPPartNumber { get; set; }
public string Description { get; set; }
[Display(Name = "EPI Silicon Part#")]
public string EPISiliconPartNumber { get; set; }
public int Quantity { get; set; }
public string Supplier { get; set; }
public string Source { get; set; }
public int LTWorkRequestID { get; set; }
public int PreviousMaterialID { get; set; }
namespace Fab2ApprovalSystem.ViewModels;
public LTMaterialViewModel()
{
Description = "";
}
public class LTMaterialViewModel {
public int ID { get; set; }
[Display(Name = "WIP Part #")]
public string WIPPartNumber { get; set; }
public string Description { get; set; }
[Display(Name = "EPI Silicon Part#")]
public string EPISiliconPartNumber { get; set; }
public int Quantity { get; set; }
public string Supplier { get; set; }
public string Source { get; set; }
public int LTWorkRequestID { get; set; }
public int PreviousMaterialID { get; set; }
public LTMaterialViewModel() {
Description = "";
}
}

View File

@ -1,30 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels;
namespace Fab2ApprovalSystem.ViewModels
{
public class LotDispositionLotSummaryViewModel
{
public int IssueID { get; set; }
public class LotDispositionLotSummaryViewModel {
// release lot sunn
public int LotCount { get; set; }
public int LotStatusOption { get; set; }
public int IssueID { get; set; }
public int TotalWaferCount { get; set; }
public int TotalDieCount { get; set; }
public double TotalCost { get; set; }
public int ReleaseWaferCount { get; set; }
public int ReleaseDieCount { get; set; }
public string ReleaseCost { get; set; }
public int ScrapWaferCount { get; set; }
public int ScrapDieCount { get; set; }
public string ScrapCost { get; set; }
// release lot sunn
public int LotCount { get; set; }
public int LotStatusOption { get; set; }
public int TotalWaferCount { get; set; }
public int TotalDieCount { get; set; }
public double TotalCost { get; set; }
public int ReleaseWaferCount { get; set; }
public int ReleaseDieCount { get; set; }
public string ReleaseCost { get; set; }
public int ScrapWaferCount { get; set; }
public int ScrapDieCount { get; set; }
public string ScrapCost { get; set; }
}
}

View File

@ -1,41 +1,32 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class IssuesViewModel
{
[Display(Name = "Document Type")]
public string DocumentType { get; set; }
[Display(Name = "Sub Category")]
public string SubDoc { get; set; }
[Display(Name = "Issue#")]
public int IssueID { get; set; }
public int DocID { get; set; }
public string Title { get; set; }
public string IssueDescription { get; set; }
public string LotNos { get; set; }
public DateTime? IssueDate { get; set; }
[Display(Name = "Submit Date")]
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? SubmitedDate { get; set; }
public DateTime? CloseDate { get; set; }
public string Originator { get; set; }
public string ScrapDescription { get; set; }
public string PendingApprovers { get; set; }
public int ItemStatus { get; set; }
public DateTime? ExpirationDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExtensionDate { get; set; }
public DateTime? NextDueDate { get; set; }
namespace Fab2ApprovalSystem.ViewModels;
public class IssuesViewModel {
}
[Display(Name = "Document Type")]
public string DocumentType { get; set; }
[Display(Name = "Sub Category")]
public string SubDoc { get; set; }
[Display(Name = "Issue#")]
public int IssueID { get; set; }
public int DocID { get; set; }
public string Title { get; set; }
public string IssueDescription { get; set; }
public string LotNos { get; set; }
public DateTime? IssueDate { get; set; }
[Display(Name = "Submit Date")]
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? SubmitedDate { get; set; }
public DateTime? CloseDate { get; set; }
public string Originator { get; set; }
public string ScrapDescription { get; set; }
public string PendingApprovers { get; set; }
public int ItemStatus { get; set; }
public DateTime? ExpirationDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExtensionDate { get; set; }
public DateTime? NextDueDate { get; set; }
}
}

View File

@ -1,16 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
namespace Fab2ApprovalSystem.ViewModels
{
public class LotStatusOptionViewModel
{
public int LotStatusOptionID { get; set; }
[Display(Name="Lot Status")]
public string LotStatusOption { get; set; }
}
namespace Fab2ApprovalSystem.ViewModels;
public class LotStatusOptionViewModel {
public int LotStatusOptionID { get; set; }
[Display(Name = "Lot Status")]
public string LotStatusOption { get; set; }
}

View File

@ -1,19 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class OOOViewModel
{
public int OOOUserID { get; set; }
public string OOOUser { get; set; }
public bool IsOOO { get; set; }
public int DelegatedToUserID { get; set; }
public string DelegatedToUser { get; set; }
public DateTime OOOStartDate { get; set; }
public DateTime OOOEndDate { get; set; }
}
namespace Fab2ApprovalSystem.ViewModels;
public class OOOViewModel {
public int OOOUserID { get; set; }
public string OOOUser { get; set; }
public bool IsOOO { get; set; }
public int DelegatedToUserID { get; set; }
public string DelegatedToUser { get; set; }
public DateTime OOOStartDate { get; set; }
public DateTime OOOEndDate { get; set; }
}

View File

@ -1,19 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class OpenActionItemViewModel
{
public int IssueID { get; set; }
public int DocID { get; set; }
public string DocumentType { get; set; }
public string DocumentTypeDisplay { get; set; }
public string Originator { get; set; }
public DateTime? AssignedDate { get; set; }
public DateTime? DueDate { get; set; }
public string pcrMesaID { get; set; } = string.Empty;
}
}
namespace Fab2ApprovalSystem.ViewModels;
public class OpenActionItemViewModel {
public int IssueID { get; set; }
public int DocID { get; set; }
public string DocumentType { get; set; }
public string DocumentTypeDisplay { get; set; }
public string Originator { get; set; }
public DateTime? AssignedDate { get; set; }
public DateTime? DueDate { get; set; }
public string pcrMesaID { get; set; } = string.Empty;
}

View File

@ -1,230 +1,193 @@
using Fab2ApprovalSystem.Models;
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Fab2ApprovalSystem.ViewModels
{
public class ECNPdf
{
public string Title { get; set; }
public int ECNNumber { get; set; }
using Fab2ApprovalSystem.Models;
[DataType(DataType.Date)]
public DateTime IssueDate { get; set; }
namespace Fab2ApprovalSystem.ViewModels;
public class ECNPdf {
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? SubmitedDate { get; set; }
public string Title { get; set; }
public int ECNNumber { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? CloseDate { get; set; }
[DataType(DataType.Date)]
public DateTime IssueDate { get; set; }
public int OriginatorID { get; set; }
public string OriginatorName { 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
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? SubmitedDate { get; set; }
//public List<string> AffectedModules { get; set; }
public List<ECNApprovalLog> Approvalog { get; set; }
public List<string> Attachments { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? CloseDate { get; set; }
public int OriginatorID { get; set; }
public string OriginatorName { 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 string AffectedModules { get; set; }
public string AffectedDepartments { get; set; }
//public string Attachments { get; set; }
public List<ECNApprovalLog> Approvalog { get; set; }
public List<string> Attachments { get; set; }
public string AffectedModules { get; set; }
public string AffectedDepartments { get; set; }
public string AffectedAreas { get; set; }
public string AffectedTechnologies { get; set; }
public string TrainingBy { get; set; }
public string AcknowledgementBy { get; set; }
public bool IsECN { get; set; }
public bool IsTECN { get; set; }
public bool IsEmergencyTECN { get; set; }
public string AffectedAreas { get; set; }
public string AffectedTechnologies { get; set; }
public string TrainingBy { get; set; }
public string AcknowledgementBy { get; set; }
[DataType(DataType.Date)]
//[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExpirationDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExtensionDate { get; set; }
public bool IsECN { get; set; }
public bool IsTECN { get; set; }
public bool IsEmergencyTECN { get; set; }
[DataType(DataType.Date)]
//[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExpirationDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExtensionDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? CancellationDate { get; set; }
public bool AcknowledgementRequired { get; set; }
public bool TrainingRequired { get; set; }
public int? AreaID { get; set; }
public int? TechnologyID { get; set; }
public bool PCRBRequired { get; set; }
public string PCRBNumber { get; set; }
public bool TestProgramChangeRequired { get; set; }
public bool MetrologyChangeRequired { get; set; }
public bool SPCChangeRequired { get; set; }
public bool NewPartFlowRequired { get; set; }
public bool SPNChangeRequired { get; set; }
public string ImplementationDetails { get; set; }
public int ImpactOnEnvironment { get; set; }
public string ImpactOnEnvironmentDescription { get; set; }
public int ImpactOnCapacity { get; set; }
public string ImpactOnCapacityDescription { get; set; }
public bool IsMA { get; set; }
public bool IsRH { get; set; }
public bool IsAU { get; set; }
public bool IsIndustrial { get; set; }
public int MaterialConsumptionChangeRequired { get; set; }
public string MaterialConsumptionChangeDescription { get; set; }
public string ReasonForChange { get; set; }
public string DescriptionOfChange { get; set; }
public bool NotAFlowChange { get; set; }
public bool AttachECN_TECNToLots { get; set; }
public bool SPNFlowChangeAtSingleStep { get; set; }
public bool SPNFlowChangeAtMultipleSteps { get; set; }
public byte CurrentStep { get; set; }
public string Area { get; set; }
public string Technology { get; set; }
public DateTime? CancellationApprovalDate { get; set; }
public int? ConvertedToNumber { get; set; }
public int? ConvertedFromNumber { get; set; }
public int WorkFlowNumber { get; set; }
public bool FIChangeRequired { get; set; }
public string NumberOfLotsAffected { get; set; }
public string RecipeChange { get; set; }
public string AffectedProductFamilies { get; set; }
public bool IsDocEC { get; set; }
public ECNPdf()
{
Approvalog = new List<ECNApprovalLog>();
Attachments = new List<string>();
}
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? CancellationDate { get; set; }
public bool AcknowledgementRequired { get; set; }
public bool TrainingRequired { get; set; }
public int? AreaID { get; set; }
public int? TechnologyID { get; set; }
public bool PCRBRequired { get; set; }
public string PCRBNumber { get; set; }
public bool TestProgramChangeRequired { get; set; }
public bool MetrologyChangeRequired { get; set; }
public bool SPCChangeRequired { get; set; }
public bool NewPartFlowRequired { get; set; }
public bool SPNChangeRequired { get; set; }
public string ImplementationDetails { get; set; }
public int ImpactOnEnvironment { get; set; }
public string ImpactOnEnvironmentDescription { get; set; }
public int ImpactOnCapacity { get; set; }
public string ImpactOnCapacityDescription { get; set; }
public bool IsMA { get; set; }
public bool IsRH { get; set; }
public bool IsAU { get; set; }
public bool IsIndustrial { get; set; }
public int MaterialConsumptionChangeRequired { get; set; }
public string MaterialConsumptionChangeDescription { get; set; }
public string ReasonForChange { get; set; }
public string DescriptionOfChange { get; set; }
public bool NotAFlowChange { get; set; }
public bool AttachECN_TECNToLots { get; set; }
public bool SPNFlowChangeAtSingleStep { get; set; }
public bool SPNFlowChangeAtMultipleSteps { get; set; }
public byte CurrentStep { get; set; }
public string Area { get; set; }
public string Technology { get; set; }
public DateTime? CancellationApprovalDate { get; set; }
public int? ConvertedToNumber { get; set; }
public int? ConvertedFromNumber { get; set; }
public int WorkFlowNumber { get; set; }
public bool FIChangeRequired { get; set; }
public string NumberOfLotsAffected { get; set; }
public string RecipeChange { get; set; }
public string AffectedProductFamilies { get; set; }
public bool IsDocEC { get; set; }
public ECNPdf() {
Approvalog = new List<ECNApprovalLog>();
Attachments = new List<string>();
}
}
/// <summary>
///
/// </summary>
public class ECNApprovalLog
{
public string FullName { get; set; }
public string Operation { get; set; }
public string SubRole { get; set; }
public string OperationTime { get; set; }
public class ECNApprovalLog {
public string FullName { get; set; }
public string Operation { get; set; }
public string SubRole { get; set; }
public string OperationTime { get; set; }
}
public class WorkRequestPdf {
public int ID { get; set; }
public int SWRNumber { get; set; }
public bool RecordLockIndicator { get; set; }
public int RecordLockedBy { get; set; }
public string RecordLockByName { get; set; }
public byte CurrentStep { get; set; }
public int Revision { get; set; }
public bool IsCurrentRevision { get; set; }
public int OriginatorID { get; set; }
public DateTime? OriginatedDate { get; set; }
public DateTime? SubmitedDate { get; set; }
public DateTime? CloseDate { get; set; }
public int Status { get; set; }
public bool IsITAR { get; set; }
public string Title { get; set; }
public char? LotType { get; set; }
public string PCRBNumber { get; set; }
public int? EngLotStartRequired { get; set; }
public int? LotTypeConversion { get; set; }
public int? QualLot { get; set; }
public string PurposeOfRequest { get; set; }
public DateTime? PlannedLotStartDate { get; set; }
public DateTime? PlannedScheduledCloseDate { get; set; }
public string ChargeDepartment { get; set; }
public string AllocationToUse { get; set; }
public int? PredictedCyleTime { get; set; }
public string ChargesForRawWafers { get; set; }
public string DeptChargedForRawWafers { get; set; }
public string DeptOwnerForRawWafers { get; set; }
public string FabCost { get; set; }
public string DeptChargedForFabCost { get; set; }
public string SignOn { get; set; }
public string Verb1 { get; set; }
public DateTime? EstimatedBinCLoseDate { get; set; }
public int? StartQty { get; set; }
public int? TotalQty { get; set; }
public string Verb2 { get; set; }
public string WIPArea { get; set; }
public DateTime? LotStartDate { get; set; }
public string LotNumber { get; set; }
public string WIPPartNumber { get; set; }
public string PartDescription { get; set; }
public string DefaultEPISiliconPartNumber { get; set; }
public string ProcessFlow { get; set; }
public string EmployeeID { get; set; }
public string VerbComment { get; set; }
public int? RecordSiliconLotInSPNTapeTagTotrav { get; set; }
public string SiliconLotNoCassette1 { get; set; }
public bool SiliconOnHand { get; set; }
public bool ReticleOnHand { get; set; }
public bool SPNTransferOnHand { get; set; }
public bool ProbeCardOnHand { get; set; }
public bool ProbeRecipeOnHand { get; set; }
public bool ProcessChangeDetailsOnHand { get; set; }
public string LotStartCheckListComments { get; set; }
public List<LTHoldStep> LTHoldStep { get; set; }
public string AffectedDepartments { get; set; }
public string AffectedModules { get; set; }
public string OriginatorName { get; set; }
public string RevisionComments { get; set; }
public List<LTMaterial> LTMaterial { get; set; }
public WorkRequestPdf() {
LTHoldStep = new List<LTHoldStep>();
LTMaterial = new List<LTMaterial>();
}
}
public class LotTravelerPdf {
public int SWRNumber { get; set; }
public string LotNumber { get; set; }
public string Title { get; set; } //
public string Status { get; set; } //
public string Originator { get; set; } //
public string WIPPartNumber { get; set; }
public string PartDescription { get; set; }
public string BaseFlow { set; get; }
public bool IsITAR { set; get; }
public DateTime? LastUpdate { get; set; }
public string LastUpdatedBy { get; set; }
public string PurposeOfRequest { get; set; }
public int LotTravCurrentRevision { get; set; }
public List<LTLotTravelerHoldSteps> Tasklist { get; set; }
public LotTravelerPdf() {
Tasklist = new List<LTLotTravelerHoldSteps>();
}
/// <summary>
///
/// </summary>
public class WorkRequestPdf
{
public int ID{ get; set; }
public int SWRNumber{ get; set; }
public bool RecordLockIndicator{ get; set; }
public int RecordLockedBy { get; set; }
public string RecordLockByName { get; set; }
public byte CurrentStep { get; set; }
public int Revision{ get; set; }
public bool IsCurrentRevision { get; set; }
public int OriginatorID{ get; set; }
public DateTime? OriginatedDate { get; set; }
public DateTime? SubmitedDate { get; set; }
public DateTime? CloseDate { get; set; }
public int Status{ get; set; }
public bool IsITAR{ get; set; }
public string Title{ get; set; }
public char? LotType{ get; set; }
public string PCRBNumber{ get; set; }
public int? EngLotStartRequired{ get; set; }
public int? LotTypeConversion{ get; set; }
public int? QualLot{ get; set; }
public string PurposeOfRequest{ get; set; }
public DateTime? PlannedLotStartDate{ get; set; }
public DateTime? PlannedScheduledCloseDate{ get; set; }
public string ChargeDepartment{ get; set; }
public string AllocationToUse{ get; set; }
public int? PredictedCyleTime{ get; set; }
public string ChargesForRawWafers{ get; set; }
public string DeptChargedForRawWafers{ get; set; }
public string DeptOwnerForRawWafers{ get; set; }
public string FabCost{ get; set; }
public string DeptChargedForFabCost{ get; set; }
public string SignOn{ get; set; }
public string Verb1{ get; set; }
public DateTime? EstimatedBinCLoseDate { get; set; }
public int? StartQty{ get; set; }
public int? TotalQty { get; set; }
public string Verb2{ get; set; }
public string WIPArea{ get; set; }
public DateTime? LotStartDate{ get; set; }
public string LotNumber { get; set; }
public string WIPPartNumber{ get; set; }
public string PartDescription { get; set; }
public string DefaultEPISiliconPartNumber { get; set; }
public string ProcessFlow{ get; set; }
public string EmployeeID{ get; set; }
public string VerbComment{ get; set; }
public int? RecordSiliconLotInSPNTapeTagTotrav { get;set;}
public string SiliconLotNoCassette1 { get; set; }
public bool SiliconOnHand { get; set; }
public bool ReticleOnHand { get; set; }
public bool SPNTransferOnHand { get; set; }
public bool ProbeCardOnHand { get; set; }
public bool ProbeRecipeOnHand { get; set; }
public bool ProcessChangeDetailsOnHand { get; set; }
public string LotStartCheckListComments { get; set; }
public List<LTHoldStep> LTHoldStep { get; set; }
public string AffectedDepartments { get; set; }
public string AffectedModules { get; set; }
public string OriginatorName { get; set; }
public string RevisionComments { get; set; }
public List<LTMaterial> LTMaterial { get; set; }
public WorkRequestPdf()
{
LTHoldStep = new List<LTHoldStep>();
LTMaterial = new List<LTMaterial>();
}
}
/// <summary>
///
/// </summary>
public class LotTravelerPdf
{
public int SWRNumber { get; set; }
public string LotNumber { get; set; }
public string Title { get; set; } //
public string Status { get; set; } //
public string Originator { get; set; } //
public string WIPPartNumber { get; set; }
public string PartDescription { get; set; }
public string BaseFlow { set; get; }
public bool IsITAR { set; get; }
public DateTime? LastUpdate { get; set; }
public string LastUpdatedBy { get; set; }
public string PurposeOfRequest { get; set; }
public int LotTravCurrentRevision { get; set; }
public List<LTLotTravelerHoldSteps> Tasklist { get; set; }
public LotTravelerPdf()
{
Tasklist = new List<LTLotTravelerHoldSteps>();
}
}
}

View File

@ -1,32 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections.Generic;
namespace Fab2ApprovalSystem.ViewModels
namespace Fab2ApprovalSystem.ViewModels;
public enum ParameterControlTypes {
Textbox, DatePicker, Dropdown, Multiselect
}
public class ReportParameterViewModel<T> // <T> => System.Web.Mvc.SelectListItem
{
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 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; }
public IEnumerable<ReportParameterViewModel> Parameters { get; set; }
}
}