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,118 +1,48 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
[Key]
|
||||
public int UserID { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Login ID")]
|
||||
public string LoginID { get; set; }
|
||||
public class LoginModel {
|
||||
[Key]
|
||||
public int UserID { get; set; }
|
||||
|
||||
//[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
[Required]
|
||||
[Display(Name = "Login ID")]
|
||||
public string LoginID { get; set; }
|
||||
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
//[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsManager { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? LastLogin { get; set; }
|
||||
public bool OOO { get; set; }
|
||||
public DateTime? OOOStartDate { get; set; }
|
||||
public DateTime? OOOExpirationDate { get; set; }
|
||||
public int DelegatedTo { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
[Display(Name = "Delegated To")]
|
||||
public string DelegatedToFullName { get; set; }
|
||||
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsManager { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? LastLogin { get; set; }
|
||||
|
||||
public bool OOO { get; set; }
|
||||
|
||||
public DateTime? OOOStartDate { get; set; }
|
||||
public DateTime? OOOExpirationDate { get; set; }
|
||||
|
||||
public int DelegatedTo { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
[Display(Name="Delegated To")]
|
||||
public string DelegatedToFullName { get; set; }
|
||||
|
||||
[Display(Name = "OOO Action")]
|
||||
public virtual string OOOStatusWithUserID
|
||||
{
|
||||
get
|
||||
{
|
||||
return UserID.ToString() + "~" + (OOO ? "1" : "0") + "~" + FullName;
|
||||
}
|
||||
[Display(Name = "OOO Action")]
|
||||
public virtual string OOOStatusWithUserID {
|
||||
get {
|
||||
return UserID.ToString() + "~" + (OOO ? "1" : "0") + "~" + FullName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class UserProfile
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string FullName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
//public class ExternalLoginConfirmationViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
//}
|
||||
|
||||
//public class ManageUserViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Current password")]
|
||||
// public string OldPassword { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "New password")]
|
||||
// public string NewPassword { get; set; }
|
||||
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Confirm new password")]
|
||||
// [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
|
||||
// public string ConfirmPassword { get; set; }
|
||||
//}
|
||||
|
||||
//public class LoginViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Password")]
|
||||
// public string Password { get; set; }
|
||||
|
||||
// [Display(Name = "Remember me?")]
|
||||
// public bool RememberMe { get; set; }
|
||||
//}
|
||||
|
||||
//public class RegisterViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Password")]
|
||||
// public string Password { get; set; }
|
||||
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Confirm password")]
|
||||
// [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
|
||||
// public string ConfirmPassword { get; set; }
|
||||
//}
|
||||
}
|
||||
|
||||
public class UserProfile {
|
||||
|
||||
public int UserId { get; set; }
|
||||
public string FullName { get; set; }
|
||||
|
||||
}
|
@ -1,73 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
//public class DocumentType
|
||||
//{
|
||||
//}
|
||||
|
||||
public class WorkFlow
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class Role
|
||||
{
|
||||
public int RoleID { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public List<SubRole> SubRoles { get; set; }
|
||||
|
||||
public Role()
|
||||
{
|
||||
SubRoles = new List<SubRole>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class WorkFlowSteps
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class SubRole
|
||||
{
|
||||
public int SubRoleID { get; set; }
|
||||
public string SubRoleCategoryItem { get; set; }
|
||||
public int RoleID { get; set; }
|
||||
public bool Inactive { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class UserSubRole
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class ParentChildModel
|
||||
{
|
||||
public int id { get; set; }
|
||||
public int parentid { get; set; }
|
||||
public string text { get; set; }
|
||||
public string value { get; set; }
|
||||
|
||||
public List<ParentChildModel> Children = new List<ParentChildModel>();
|
||||
|
||||
}
|
||||
//public class TrainingGroup
|
||||
//{
|
||||
// public int TrainingGroupID { get; set; }
|
||||
// public string TrainingGroupName { get; set; }
|
||||
//}
|
||||
|
||||
|
||||
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class WorkFlow {
|
||||
|
||||
}
|
||||
|
||||
public class Role {
|
||||
|
||||
public int RoleID { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public List<SubRole> SubRoles { get; set; }
|
||||
public Role() => SubRoles = new List<SubRole>();
|
||||
|
||||
}
|
||||
|
||||
public class WorkFlowSteps {
|
||||
}
|
||||
|
||||
public class SubRole {
|
||||
|
||||
public int SubRoleID { get; set; }
|
||||
public string SubRoleCategoryItem { get; set; }
|
||||
public int RoleID { get; set; }
|
||||
public bool Inactive { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class UserSubRole {
|
||||
|
||||
}
|
||||
|
||||
public class ParentChildModel {
|
||||
|
||||
public int id { get; set; }
|
||||
public int parentid { get; set; }
|
||||
public string text { get; set; }
|
||||
public string value { get; set; }
|
||||
public List<ParentChildModel> Children = new();
|
||||
|
||||
}
|
@ -1,16 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class AllUserModel
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
}
|
||||
}
|
||||
public class AllUserModel {
|
||||
|
||||
public string UserName { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
}
|
189
Fab2ApprovalSystem/Models/AppSettings.cs
Normal file
189
Fab2ApprovalSystem/Models/AppSettings.cs
Normal file
@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class AppSettings {
|
||||
|
||||
internal AppSettings(string adminNotificationRecepient,
|
||||
string? apiBaseUrl,
|
||||
string attachmentFolder,
|
||||
string? attachmentUrl,
|
||||
string caBlankFormsLocation,
|
||||
string? company,
|
||||
string dBConnection,
|
||||
string dbConnectionString,
|
||||
string ftpPassword,
|
||||
string ftpServer,
|
||||
string ftpUser,
|
||||
string holdFlagDirectory,
|
||||
string hostURL,
|
||||
string ifxContainer,
|
||||
string ifxDomain,
|
||||
bool isInfineonDomain,
|
||||
string lotTempPipeLine,
|
||||
string mesaTemplateFiles,
|
||||
string naContainer,
|
||||
string naDomain,
|
||||
string nDriveURL,
|
||||
string notificationSender,
|
||||
string senderEmail,
|
||||
string? smtpServer,
|
||||
string spnMRBHoldFlagFTPLogDirectory,
|
||||
string testEmailRecipients,
|
||||
string urls,
|
||||
int userId,
|
||||
bool userIsAdmin,
|
||||
string wsrURL,
|
||||
string? workingDirectoryName) {
|
||||
AdminNotificationRecepient = adminNotificationRecepient;
|
||||
ApiBaseUrl = apiBaseUrl;
|
||||
AttachmentFolder = attachmentFolder;
|
||||
AttachmentUrl = attachmentUrl;
|
||||
CABlankFormsLocation = caBlankFormsLocation;
|
||||
Company = company;
|
||||
DBConnection = dBConnection;
|
||||
DBConnectionString = dbConnectionString;
|
||||
FTPPassword = ftpPassword;
|
||||
FTPServer = ftpServer;
|
||||
FTPUser = ftpUser;
|
||||
HoldFlagDirectory = holdFlagDirectory;
|
||||
HostURL = hostURL;
|
||||
IFXContainer = ifxContainer;
|
||||
IFXDomain = ifxDomain;
|
||||
IsInfineonDomain = isInfineonDomain;
|
||||
LotTempPipeLine = lotTempPipeLine;
|
||||
MesaTemplateFiles = mesaTemplateFiles;
|
||||
NAContainer = naContainer;
|
||||
NADomain = naDomain;
|
||||
NDriveURL = nDriveURL;
|
||||
NotificationSender = notificationSender;
|
||||
SenderEmail = senderEmail;
|
||||
SMTPServer = smtpServer;
|
||||
SPNMRBHoldFlagFTPLogDirectory = spnMRBHoldFlagFTPLogDirectory;
|
||||
TestEmailRecipients = testEmailRecipients;
|
||||
URLs = urls;
|
||||
UserId = userId;
|
||||
UserIsAdmin = userIsAdmin;
|
||||
WSR_URL = wsrURL;
|
||||
WorkingDirectoryName = workingDirectoryName;
|
||||
}
|
||||
|
||||
public string AdminNotificationRecepient { get; }
|
||||
public string? ApiBaseUrl { get; }
|
||||
public string AttachmentFolder { get; }
|
||||
public string? AttachmentUrl { get; }
|
||||
public string CABlankFormsLocation { get; }
|
||||
public string? Company { get; }
|
||||
public string DBConnection { get; }
|
||||
public string DBConnectionString { get; }
|
||||
public string FTPPassword { get; }
|
||||
public string FTPServer { get; }
|
||||
public string FTPUser { get; }
|
||||
public string HoldFlagDirectory { get; }
|
||||
public string HostURL { get; }
|
||||
public string IFXContainer { get; }
|
||||
public string IFXDomain { get; }
|
||||
public bool IsInfineonDomain { get; }
|
||||
public string LotTempPipeLine { get; }
|
||||
public string MesaTemplateFiles { get; }
|
||||
public string NAContainer { get; }
|
||||
public string NADomain { get; }
|
||||
public string NDriveURL { get; }
|
||||
public string NotificationSender { get; }
|
||||
public string SenderEmail { get; }
|
||||
public string? SMTPServer { get; }
|
||||
public string SPNMRBHoldFlagFTPLogDirectory { get; }
|
||||
public string TestEmailRecipients { get; }
|
||||
public string URLs { get; }
|
||||
public int UserId { get; }
|
||||
public bool UserIsAdmin { get; }
|
||||
public string WSR_URL { get; }
|
||||
public string? WorkingDirectoryName { get; }
|
||||
|
||||
#if NET8
|
||||
|
||||
public static AppSettings Get(Microsoft.Extensions.Configuration.IConfigurationRoot configurationRoot) {
|
||||
AppSettings? result;
|
||||
try {
|
||||
#pragma warning disable IL3050, IL2026
|
||||
result = Microsoft.Extensions.Configuration.ConfigurationBinder.Get<AppSettings>(configurationRoot) ?? throw new Exception();
|
||||
#pragma warning restore IL3050, IL2026
|
||||
} catch (Exception) {
|
||||
List<string> paths = [];
|
||||
foreach (Microsoft.Extensions.Configuration.IConfigurationProvider configurationProvider in configurationRoot.Providers) {
|
||||
if (configurationProvider is not Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider jsonConfigurationProvider)
|
||||
continue;
|
||||
if (jsonConfigurationProvider.Source.FileProvider is not Microsoft.Extensions.FileProviders.PhysicalFileProvider physicalFileProvider)
|
||||
continue;
|
||||
paths.Add(physicalFileProvider.Root);
|
||||
}
|
||||
|
||||
throw new NotSupportedException($"Not found!{Environment.NewLine}{string.Join(Environment.NewLine, paths.Distinct())}");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
internal static AppSettings LoadConfigurationManager() {
|
||||
AppSettings result;
|
||||
int userId = 0;
|
||||
string adminNotificationRecepient = ConfigurationManager.ConnectionStrings["Admin Notification Recepient"].ToString();
|
||||
string attachmentFolder = ConfigurationManager.ConnectionStrings["AttachmentFolder"].ToString();
|
||||
string ftpPassword = ConfigurationManager.ConnectionStrings["FTP Password"].ToString();
|
||||
string ftpServer = ConfigurationManager.ConnectionStrings["FTP Server"].ToString();
|
||||
string ftpUser = ConfigurationManager.ConnectionStrings["FTP User"].ToString();
|
||||
string holdFlagDirectory = ConfigurationManager.ConnectionStrings["HoldFlagDirectory"].ToString();
|
||||
string ifxContainer = ConfigurationManager.ConnectionStrings["IFXContainer"].ToString();
|
||||
string ifxDomain = ConfigurationManager.ConnectionStrings["IFXDomain"].ToString();
|
||||
string lotTempPipeLine = ConfigurationManager.ConnectionStrings["LotTempPipeLine"].ToString();
|
||||
string naContainer = ConfigurationManager.ConnectionStrings["NAContainer"].ToString();
|
||||
string naDomain = ConfigurationManager.ConnectionStrings["NADomain"].ToString();
|
||||
string notificationSender = ConfigurationManager.ConnectionStrings["Notification Sender"].ToString();
|
||||
string spnMRBHoldFlagFTPLogDirectory = ConfigurationManager.ConnectionStrings["SPNMRBHoldFlagFTPLogDirectory"].ToString();
|
||||
string testEmailRecipients = ConfigurationManager.ConnectionStrings["Test Email Recipients"].ToString();
|
||||
string? apiBaseUrl = ConfigurationManager.ConnectionStrings["FabApprovalApiBaseUrl"]?.ToString();
|
||||
string? attachmentUrl = ConfigurationManager.ConnectionStrings["AttachmentUrl"]?.ToString();
|
||||
string? company = ConfigurationManager.ConnectionStrings["Company"]?.ToString();
|
||||
string? smtpServer = ConfigurationManager.ConnectionStrings["SMTP Server"]?.ToString();
|
||||
string? urls = ConfigurationManager.ConnectionStrings["URLs"]?.ToString();
|
||||
string? workingDirectoryName = ConfigurationManager.ConnectionStrings["WorkingDirectoryName"]?.ToString();
|
||||
result = new(adminNotificationRecepient: adminNotificationRecepient,
|
||||
apiBaseUrl: apiBaseUrl,
|
||||
attachmentFolder: attachmentFolder,
|
||||
attachmentUrl: attachmentUrl,
|
||||
caBlankFormsLocation: Misc.GlobalVars.CA_BlankFormsLocation,
|
||||
company: company,
|
||||
dBConnection: Misc.GlobalVars.DBConnection,
|
||||
dbConnectionString: Misc.GlobalVars.DB_CONNECTION_STRING,
|
||||
ftpPassword: ftpPassword,
|
||||
ftpServer: ftpServer,
|
||||
ftpUser: ftpUser,
|
||||
holdFlagDirectory: holdFlagDirectory,
|
||||
hostURL: Misc.GlobalVars.hostURL,
|
||||
ifxContainer: ifxContainer,
|
||||
ifxDomain: ifxDomain,
|
||||
isInfineonDomain: Misc.GlobalVars.IS_INFINEON_DOMAIN,
|
||||
lotTempPipeLine: lotTempPipeLine,
|
||||
mesaTemplateFiles: Misc.GlobalVars.MesaTemplateFiles,
|
||||
naContainer: naContainer,
|
||||
naDomain: naDomain,
|
||||
nDriveURL: Misc.GlobalVars.NDriveURL,
|
||||
notificationSender: notificationSender,
|
||||
senderEmail: Misc.GlobalVars.SENDER_EMAIL,
|
||||
smtpServer: smtpServer,
|
||||
spnMRBHoldFlagFTPLogDirectory: spnMRBHoldFlagFTPLogDirectory,
|
||||
testEmailRecipients: testEmailRecipients,
|
||||
urls: urls,
|
||||
userId: userId,
|
||||
userIsAdmin: Misc.GlobalVars.USER_ISADMIN,
|
||||
wsrURL: Misc.GlobalVars.WSR_URL,
|
||||
workingDirectoryName: workingDirectoryName);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
@ -1,20 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ApprovalLog
|
||||
{
|
||||
public class ApprovalLog {
|
||||
|
||||
public int ApprovalLogID;
|
||||
public int IssueID;
|
||||
public int UserID;
|
||||
public string OperationType;
|
||||
public int SubRoleID;
|
||||
public string OperationLog;
|
||||
public int DocumentTypeID;
|
||||
public int ApprovalLogID;
|
||||
public int IssueID;
|
||||
public int UserID;
|
||||
public string OperationType;
|
||||
public int SubRoleID;
|
||||
public string OperationLog;
|
||||
public int DocumentTypeID;
|
||||
|
||||
}
|
||||
}
|
@ -1,21 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ApprovalLogHistory
|
||||
{
|
||||
public int ApprovalLogID { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string SubRole { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
//[Display(Name = "Operation Time")]
|
||||
public DateTime OperationTime { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public class ApprovalLogHistory {
|
||||
|
||||
}
|
||||
}
|
||||
public int ApprovalLogID { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string SubRole { get; set; }
|
||||
|
||||
//[Display(Name = "Operation Time")]
|
||||
public DateTime OperationTime { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
}
|
@ -1,22 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ApproveListModel
|
||||
{
|
||||
public int ApprovalKey { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public string AssignedName { get; set; }
|
||||
public string AssignedEmail { get; set; }
|
||||
public string AssignedFullName { get; set; }
|
||||
public DateTime LastNotification { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public DateTime RoleAssignedDate { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Title { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
}
|
||||
}
|
||||
public class ApproveListModel {
|
||||
|
||||
public int ApprovalKey { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public string AssignedName { get; set; }
|
||||
public string AssignedEmail { get; set; }
|
||||
public string AssignedFullName { get; set; }
|
||||
public DateTime LastNotification { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public DateTime RoleAssignedDate { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
}
|
21
Fab2ApprovalSystem/Models/AuditModels.cs
Normal file
21
Fab2ApprovalSystem/Models/AuditModels.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class AuditEdit {
|
||||
|
||||
public Audit Audit { get; set; }
|
||||
public IEnumerable<AuditedArea> AuditAreaList { get; set; }
|
||||
public List<string> AuditeeNames { get; set; }
|
||||
public List<AuditFindingCategory> AuditFindingCategoryList { get; set; }
|
||||
public IEnumerable<Auditor> AuditorList { get; set; }
|
||||
public IEnumerable<AuditType> AuditTypeList { get; set; }
|
||||
public IEnumerable<CANoList> CANoList { get; set; }
|
||||
public string Is8DQA { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsSubmitter { get; set; }
|
||||
public List<AllUserModel> MesaUsers { get; set; }
|
||||
public IEnumerable<CAUserList> UserList { get; set; }
|
||||
public bool RedirectToAction { get; set; }
|
||||
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
namespace Fab2ApprovalSystem.Models {
|
||||
public class AuthAttempt {
|
||||
public string LoginID { get; set; }
|
||||
public string Password { get; set; } = "";
|
||||
public AuthTokens AuthTokens { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class AuthAttempt {
|
||||
|
||||
public string LoginID { get; set; }
|
||||
public string Password { get; set; } = "";
|
||||
public AuthTokens AuthTokens { get; set; }
|
||||
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
namespace Fab2ApprovalSystem.Models {
|
||||
public class AuthTokens {
|
||||
public string JwtToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class AuthTokens {
|
||||
|
||||
public string JwtToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
}
|
@ -1,376 +1,321 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCChangeControl
|
||||
{
|
||||
public int PlanNumber { get; set; }
|
||||
public int OwnerID { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public int Status { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public class CCChangeControl {
|
||||
|
||||
public int ChangeLevel { get; set; }
|
||||
public string Notes { 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 PartNumbers { get; set; }
|
||||
public string ToolTypes { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public bool RecordLocked { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public string ReasonForChange { get; set; }
|
||||
public string ChangeDescription { 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 int PlanNumber { get; set; }
|
||||
public int OwnerID { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public int Status { get; set; }
|
||||
|
||||
}
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int ChangeLevel { get; set; }
|
||||
public string Notes { 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 PartNumbers { get; set; }
|
||||
public string ToolTypes { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public bool RecordLocked { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public string ReasonForChange { get; set; }
|
||||
public string ChangeDescription { 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; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCAttachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int PlanNumber { get; set; }
|
||||
public class CCAttachment {
|
||||
|
||||
}
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int PlanNumber { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCGeneration
|
||||
{
|
||||
public int GenerationID { get; set; }
|
||||
public string Generation { get; set; }
|
||||
}
|
||||
public class CCGeneration {
|
||||
|
||||
public int GenerationID { get; set; }
|
||||
public string Generation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCLogistics
|
||||
{
|
||||
public int LogisticsID { get; set; }
|
||||
public string Logistics { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class CCLogistics {
|
||||
|
||||
public int LogisticsID { get; set; }
|
||||
public string Logistics { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCProcess
|
||||
{
|
||||
public int ProcessID { get; set; }
|
||||
public string Process { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
//public class CCToolType
|
||||
//{
|
||||
// public int ToolTypeID { get; set; }
|
||||
// public string ToolType { get; set; }
|
||||
//}
|
||||
public class CCProcess {
|
||||
|
||||
public class CCPartNumber
|
||||
{
|
||||
public string PartNumberID { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
}
|
||||
public int ProcessID { get; set; }
|
||||
public string Process { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCPartNumber {
|
||||
|
||||
public string PartNumberID { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
}
|
||||
|
||||
#region Meeting
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCMeeting
|
||||
{
|
||||
public int MeetingID { get; set; }
|
||||
public List<string> PCRValueIDs { get; set; }
|
||||
public string PCRValueIDsDisplay { get
|
||||
{
|
||||
if(PCRValueIDs.Count < 1)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return string.Join(",", PCRValueIDs);
|
||||
} }
|
||||
public int PlanNumber { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public string Title {get;set;}
|
||||
public int? ChangeLevel
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
public string PCRB { get; set; }
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? MeetingDate { get; set; }
|
||||
public int Decision { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public int Status { get; set; }
|
||||
public class CCMeeting {
|
||||
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? ClosedDate { get; set;}
|
||||
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? CancelledDate { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public DateTime LastUpdateDate { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public bool PCRBClosed { get; set; }
|
||||
|
||||
|
||||
public CCMeeting()
|
||||
{
|
||||
PCRValueIDs = new List<string>();
|
||||
public int MeetingID { get; set; }
|
||||
public List<string> PCRValueIDs { get; set; }
|
||||
public string PCRValueIDsDisplay {
|
||||
get {
|
||||
if (PCRValueIDs.Count < 1) {
|
||||
return "";
|
||||
}
|
||||
return string.Join(",", PCRValueIDs);
|
||||
}
|
||||
}
|
||||
|
||||
public class CCPCRB
|
||||
{
|
||||
public int PCRBID { get; set; }
|
||||
public int PlanNumber { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public int Decision { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public int PlanNumber { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int? ChangeLevel {
|
||||
get; set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCMeetingAttendee
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string AttendeeName { get; set; }
|
||||
public string JobTitle { get; set; }
|
||||
public string Location { get; set; }
|
||||
public int AttendeeID { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? MeetingDate { get; set; }
|
||||
public int Decision { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public int Status { get; set; }
|
||||
|
||||
}
|
||||
public class CCPCRBAttendee
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int PCRBID { get; set; }
|
||||
public string AttendeeName { get; set; }
|
||||
public string JobTitle { get; set; }
|
||||
public string Location { get; set; }
|
||||
public bool Approved { get; set; }
|
||||
public int AttendeeID { get; set; }
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// /
|
||||
/// </summary>
|
||||
public class CCMeetingAttachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCDecisionSummary
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string DecisionNotes { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string LotDispoLinks { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCDecisionSummaryLink
|
||||
{
|
||||
public string Link { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCMeetingActionItem
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string ResponsibleID { get; set; }
|
||||
|
||||
|
||||
}
|
||||
public class CCPCRBActionItem
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int PCRBID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string ResponsibleID { get; set; }
|
||||
|
||||
}
|
||||
public class CCPCRBActionItemAll
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public string Updates { get; set; }
|
||||
public bool ClosedStatus { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int ClosedBy { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CCMeetingActionItemAll
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public string Updates { get; set; }
|
||||
public bool ClosedStatus { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int ClosedBy { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MeetingList
|
||||
{
|
||||
public int MeetingID { get; set; }
|
||||
public string MeetingInfo{ get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class MeetingDecisionSummaryList
|
||||
{
|
||||
public string PCRB { get; set; }
|
||||
public DateTime? MeetingDate { get; set; }
|
||||
public string DecisionNotes { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string LotDispoLinks { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class UserList
|
||||
{
|
||||
public int AttendeeID { set; get; }
|
||||
public string AttendeeName { get; set; }
|
||||
}
|
||||
|
||||
public class ActionItemResponsible
|
||||
{
|
||||
public string ResponsibleID { set; get; }
|
||||
public string ResponsibleName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class SiteList
|
||||
{
|
||||
public string SiteID { set; get; }
|
||||
public string SiteName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class ChangeControlList
|
||||
{
|
||||
public string IssueID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string MesaIdTitle { get; set; }
|
||||
public string Owner { get; set; }
|
||||
public string ChangeLevel { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public DateTime? StatusDate { get; set; }
|
||||
public string PCRBStatus { get; set; }
|
||||
public string Generations { get; set; }
|
||||
public string Logistics { get; set; }
|
||||
public string Processes { get; set; }
|
||||
public string ToolTypes { get; set; }
|
||||
public string ActionItemResponsibility { get; set; }
|
||||
}
|
||||
|
||||
public class PCRValue
|
||||
{
|
||||
public string PCRValueID { set; get; }
|
||||
public string PCRValueName { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? CancelledDate { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public DateTime LastUpdateDate { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public bool PCRBClosed { get; set; }
|
||||
public CCMeeting() =>
|
||||
PCRValueIDs = new List<string>();
|
||||
|
||||
}
|
||||
|
||||
public class CCPCRB {
|
||||
|
||||
public int PCRBID { get; set; }
|
||||
public int PlanNumber { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public int Decision { get; set; }
|
||||
public string Notes { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCMeetingAttendee {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string AttendeeName { get; set; }
|
||||
public string JobTitle { get; set; }
|
||||
public string Location { get; set; }
|
||||
public int AttendeeID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCPCRBAttendee {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int PCRBID { get; set; }
|
||||
public string AttendeeName { get; set; }
|
||||
public string JobTitle { get; set; }
|
||||
public string Location { get; set; }
|
||||
public bool Approved { get; set; }
|
||||
public int AttendeeID { get; set; }
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// /
|
||||
/// </summary>
|
||||
public class CCMeetingAttachment {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCDecisionSummary {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string DecisionNotes { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string LotDispoLinks { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCDecisionSummaryLink {
|
||||
|
||||
public string Link { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCMeetingActionItem {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string ResponsibleID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCPCRBActionItem {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int PCRBID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string ResponsibleID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCPCRBActionItemAll {
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public string Updates { get; set; }
|
||||
public bool ClosedStatus { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int ClosedBy { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CCMeetingActionItemAll {
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
public int MeetingID { get; set; }
|
||||
public string ActionItemName { get; set; }
|
||||
public string ResponsiblePerson { get; set; }
|
||||
public string Gating { get; set; }
|
||||
public DateTime? DueDate { get; set; }
|
||||
public string PCRB { get; set; }
|
||||
public string Updates { get; set; }
|
||||
public bool ClosedStatus { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public int ClosedBy { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime UploadDateTime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class MeetingList {
|
||||
|
||||
public int MeetingID { get; set; }
|
||||
public string MeetingInfo { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class MeetingDecisionSummaryList {
|
||||
|
||||
public string PCRB { get; set; }
|
||||
public DateTime? MeetingDate { get; set; }
|
||||
public string DecisionNotes { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string LotDispoLinks { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class UserList {
|
||||
|
||||
public int AttendeeID { set; get; }
|
||||
public string AttendeeName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ActionItemResponsible {
|
||||
|
||||
public string ResponsibleID { set; get; }
|
||||
public string ResponsibleName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class SiteList {
|
||||
|
||||
public string SiteID { set; get; }
|
||||
public string SiteName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ChangeControlList {
|
||||
|
||||
public string IssueID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string MesaIdTitle { get; set; }
|
||||
public string Owner { get; set; }
|
||||
public string ChangeLevel { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public DateTime? StatusDate { get; set; }
|
||||
public string PCRBStatus { get; set; }
|
||||
public string Generations { get; set; }
|
||||
public string Logistics { get; set; }
|
||||
public string Processes { get; set; }
|
||||
public string ToolTypes { get; set; }
|
||||
public string ActionItemResponsibility { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class PCRValue {
|
||||
|
||||
public string PCRValueID { set; get; }
|
||||
public string PCRValueName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
@ -1,218 +1,202 @@
|
||||
using System;
|
||||
#pragma warning disable CS8019
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
using Fab2ApprovalSystem.ViewModels;
|
||||
|
||||
#if !NET8
|
||||
using System.Web.Mvc;
|
||||
#endif
|
||||
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class CredentialsStorage
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
#pragma warning restore CS8019
|
||||
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class CredentialsStorage {
|
||||
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Lot {
|
||||
|
||||
public int LotID { get; set; }
|
||||
[Display(Name = "Wafer Lot#")]
|
||||
public string LotNumber { get; set; }
|
||||
public string ParentLotNumber { set; get; }
|
||||
public int MRBNumber { get; set; }
|
||||
public string MRBDispoType { get; set; }
|
||||
public bool GoodToSubmit { get; set; }
|
||||
public string SubmitErrorMessage { get; set; }
|
||||
// Lot Disposition Issue Number
|
||||
public int IssueID { get; set; }
|
||||
public string IssueIDWithoutMRB { 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 = "Device Type")]
|
||||
public string ProductFamily { get; set; }
|
||||
public string Gen { get; set; }
|
||||
public string Channel { get; set; }
|
||||
public string 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 int LotStatusOptionID { get; set; }
|
||||
public string LotStatusOptionName { get; set; }
|
||||
public double WaferCost { get; set; }
|
||||
public double DieCost { get; set; }
|
||||
|
||||
[UIHint("LotStatusOptionTemplate")]
|
||||
[Display(Name = "Lot Status")]
|
||||
public LotStatusOptionViewModel LotStatusOption { get; set; }
|
||||
public ScrapLot ScrapLotWafer { get; set; }
|
||||
|
||||
[Display(Name = "Lot Dispos")]
|
||||
public string OtherLotDispos { get; set; }
|
||||
|
||||
//MRB Lot
|
||||
//[CustomDispoTypeValidationAttribute(ErrorMessage = "The values can only either A or B or C or D")]
|
||||
public char? DispoType { get; set; }
|
||||
[Display(Name = "Lot Dispos")]
|
||||
public string LotDispositionsLinkedToLot { get; set; }
|
||||
|
||||
[Display(Name = "MRBs")]
|
||||
public string MRBsLinkedToLot { get; set; }
|
||||
public string Status { get; set; }
|
||||
public int OpenIssueWithExistingLots { get; set; }
|
||||
public string QualityCode { get; set; }
|
||||
|
||||
[Display(Name = "Source Lot#")]
|
||||
public string SourceLot { get; set; }
|
||||
public string SourceAction { get; set; }
|
||||
public DateTime? SourceActionTime { get; set; }
|
||||
public DateTime? SPNTransmitTime { get; set; }
|
||||
public string SPNTransmitMsg { get; set; }
|
||||
[Display(Name = "MRBs")]
|
||||
public string OtherMRBs { get; set; }
|
||||
public Lot() {
|
||||
LotStatusOption = new LotStatusOptionViewModel();
|
||||
ScrapLotWafer = new ScrapLot();
|
||||
}
|
||||
|
||||
public class Lot
|
||||
{
|
||||
public int LotID { get; set; }
|
||||
[Display(Name = "Wafer Lot#")]
|
||||
public string LotNumber { get; set; }
|
||||
// public string ParentLotNumber { set; get { return LotNumber.Length >= 7 ? LotNumber.Substring(0, 7) : LotNumber; } }
|
||||
public string ParentLotNumber { set; get; }
|
||||
public bool IsDirty { get; set; }
|
||||
|
||||
public int MRBNumber { get; set; }
|
||||
public string MRBDispoType { get; set; }
|
||||
public bool GoodToSubmit { get; set; }
|
||||
public string SubmitErrorMessage { get; set; }
|
||||
// Lot Disposition Issue Number
|
||||
public int IssueID { get; set; }
|
||||
public string IssueIDWithoutMRB { 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 = "Device Type")]
|
||||
public string ProductFamily { get; set; }
|
||||
public string Gen { get; set; }
|
||||
public string Channel { get; set; }
|
||||
public string 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 int LotStatusOptionID { get; set; }
|
||||
public string LotStatusOptionName { get; set; }
|
||||
public double WaferCost { get; set; }
|
||||
public double DieCost { get; set; }
|
||||
}
|
||||
|
||||
[UIHint("LotStatusOptionTemplate")]
|
||||
[Display(Name = "Lot Status")]
|
||||
public LotStatusOptionViewModel LotStatusOption { get; set; }
|
||||
public class MRBHoldFlagReport {
|
||||
|
||||
public ScrapLot ScrapLotWafer { get; set; }
|
||||
public string LotNo { get; set; }
|
||||
public string TransactionType { get; set; }
|
||||
public string PartNo { get; set; }
|
||||
public string CurrentLocation { get; set; }
|
||||
public string CurrentOperation { get; set; }
|
||||
public int StartQty { get; set; }
|
||||
public int CurrentQty { get; set; }
|
||||
public string LotStatus { get; set; }
|
||||
public string OperStatus { get; set; }
|
||||
public string Successful { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public string PriorMRBHoldLocation { get; set; }
|
||||
public string PriorMRBHoldOperation { get; set; }
|
||||
public string PriorMRB_DispoType { get; set; }
|
||||
public string CurrentMRBHoldLocation { get; set; }
|
||||
public string CurrentMRBHoldOperation { get; set; }
|
||||
public string CurrentMRB_DispoType { get; set; }
|
||||
public string MRB_DispoType { get; set; }
|
||||
public DateTime TransactionDateTime { get; set; }
|
||||
public string MRBLocation { get; set; }
|
||||
public string MRBOperation { get; set; }
|
||||
public bool Reprocess { get; set; }
|
||||
public bool HasErrors { get; set; }
|
||||
|
||||
[Display(Name = "Lot Dispos")]
|
||||
public string OtherLotDispos { get; set; }
|
||||
}
|
||||
|
||||
//MRB Lot
|
||||
//[CustomDispoTypeValidationAttribute(ErrorMessage = "The values can only either A or B or C or D")]
|
||||
public char? DispoType { get; set; }
|
||||
[Display(Name = "Lot Dispos")]
|
||||
public string LotDispositionsLinkedToLot { get; set; }
|
||||
public class MRBLotsTobeSentToSPN {
|
||||
|
||||
[Display(Name = "MRBs")]
|
||||
public string MRBsLinkedToLot { get; set; }
|
||||
public string LotNumber { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
public char? DispoType { get; set; }
|
||||
public char AddRemoveChangeMRBFlag { get; set; }
|
||||
public bool IsDirty { get; set; }
|
||||
public bool SentToSPN { get; set; }
|
||||
public DateTime MRBLotLastSentToSPNDatetime { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public int OpenIssueWithExistingLots { get; set; }
|
||||
public string QualityCode { get; set; }
|
||||
|
||||
[Display(Name = "Source Lot#")]
|
||||
public string SourceLot { get; set; }
|
||||
public string SourceAction { get; set; }
|
||||
public DateTime? SourceActionTime { get; set; }
|
||||
public DateTime? SPNTransmitTime { get; set; }
|
||||
public string SPNTransmitMsg { get; set; }
|
||||
[Display(Name = "MRBs")]
|
||||
public string OtherMRBs { get; set; }
|
||||
|
||||
public Lot()
|
||||
{
|
||||
LotStatusOption = new LotStatusOptionViewModel();
|
||||
ScrapLotWafer = new ScrapLot();
|
||||
|
||||
#if !NET8
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public class CustomDispoTypeValidationAttribute : ValidationAttribute, IClientValidatable {
|
||||
public override bool IsValid(object value) {
|
||||
char tem = (char)value;
|
||||
var productName = tem.ToString();
|
||||
if (!string.IsNullOrEmpty(productName)) {
|
||||
return Regex.IsMatch(productName, "^[A,B,C,D]");
|
||||
}
|
||||
|
||||
public bool IsDirty { get; set; }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public class MRBHoldFlagReport
|
||||
{
|
||||
public string LotNo { get; set; }
|
||||
public string TransactionType { get; set; }
|
||||
|
||||
public string PartNo { get; set; }
|
||||
public string CurrentLocation { get; set; }
|
||||
public string CurrentOperation { get; set; }
|
||||
public int StartQty { get; set; }
|
||||
public int CurrentQty { get; set; }
|
||||
public string LotStatus { get; set; }
|
||||
public string OperStatus { get; set; }
|
||||
public string Successful { get; set; }
|
||||
public string Comment { get; set; }
|
||||
|
||||
public string PriorMRBHoldLocation { get; set; }
|
||||
public string PriorMRBHoldOperation { get; set; }
|
||||
public string PriorMRB_DispoType { get; set; }
|
||||
|
||||
public string CurrentMRBHoldLocation { get; set; }
|
||||
public string CurrentMRBHoldOperation { get; set; }
|
||||
public string CurrentMRB_DispoType { get; set; }
|
||||
|
||||
|
||||
public string MRB_DispoType { get; set; }
|
||||
public DateTime TransactionDateTime { get; set; }
|
||||
public string MRBLocation { get; set; }
|
||||
public string MRBOperation { get; set; }
|
||||
|
||||
public bool Reprocess { get; set; }
|
||||
|
||||
public bool HasErrors { get; set; }
|
||||
|
||||
|
||||
public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ControllerContext context) {
|
||||
yield return new ModelClientValidationRule {
|
||||
ErrorMessage = ErrorMessage,
|
||||
ValidationType = "dispotypevalidation"
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public class MRBLotsTobeSentToSPN
|
||||
{
|
||||
public string LotNumber { get; set; }
|
||||
public int MRBNumber { get; set; }
|
||||
public char? DispoType { get; set; }
|
||||
public char AddRemoveChangeMRBFlag { get; set; }
|
||||
public bool IsDirty { get; set; }
|
||||
public bool SentToSPN { get; set; }
|
||||
public DateTime MRBLotLastSentToSPNDatetime { get; set; }
|
||||
|
||||
}
|
||||
public class Department {
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public class CustomDispoTypeValidationAttribute : ValidationAttribute, IClientValidatable
|
||||
{
|
||||
public override bool IsValid(object value)
|
||||
{
|
||||
char tem = (char)value;
|
||||
var productName = tem.ToString();
|
||||
if (!string.IsNullOrEmpty(productName))
|
||||
{
|
||||
return Regex.IsMatch(productName, "^[A,B,C,D]");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ControllerContext context)
|
||||
{
|
||||
yield return new ModelClientValidationRule
|
||||
{
|
||||
ErrorMessage = ErrorMessage,
|
||||
ValidationType = "dispotypevalidation"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Department
|
||||
{
|
||||
//public int LotDispoDepartmentID { get; set; }
|
||||
//public int IssueID { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
}
|
||||
public class AffectedModule {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class AffectedModule
|
||||
{
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class WIPPart
|
||||
{
|
||||
public string WIPPartData { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string SiliconPartNumber { get; set; }
|
||||
public string ProcessFlow { get; set; }
|
||||
}
|
||||
public class WIPPart {
|
||||
|
||||
public class ProductFamilies
|
||||
{
|
||||
public int ProductFamilyID { get; set; }
|
||||
public string ProductFamily { get; set; }
|
||||
}
|
||||
public string WIPPartData { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string SiliconPartNumber { get; set; }
|
||||
public string ProcessFlow { get; set; }
|
||||
|
||||
public class LotSplitAnalysisResult
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string ParentLotNo { get; set; }
|
||||
public string LotNo { get; set; }
|
||||
public DateTime ActionTime { get; set; }
|
||||
public string ActionType { get; set; }
|
||||
public bool? IsAffected { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class ProductFamilies {
|
||||
|
||||
public int ProductFamilyID { get; set; }
|
||||
public string ProductFamily { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LotSplitAnalysisResult {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string ParentLotNo { get; set; }
|
||||
public string LotNo { get; set; }
|
||||
public DateTime ActionTime { get; set; }
|
||||
public string ActionType { get; set; }
|
||||
public bool? IsAffected { get; set; }
|
||||
|
||||
}
|
@ -1,239 +1,208 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ECN :System.Object
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public int ECNNumber {get;set;}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime IssueDate {get;set;}
|
||||
public class ECN : object {
|
||||
|
||||
|
||||
[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
|
||||
public List<int> DepartmentIDs { get; set; }
|
||||
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public List<int> AreaIDs { get; set; }
|
||||
public List<int> TechnologyIDs { get; set; }
|
||||
public List<int> AcknowledgementByIDs { get; set; }
|
||||
public List<int> TrainingByIDs { get; set; }
|
||||
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
|
||||
public DateTime? SubmitedDate { get; set; }
|
||||
|
||||
public bool IsECN { get; set; }
|
||||
public bool IsTECN { get; set; }
|
||||
public bool IsEmergencyTECN { 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 List<int> DepartmentIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public List<int> AreaIDs { get; set; }
|
||||
public List<int> TechnologyIDs { get; set; }
|
||||
public List<int> AcknowledgementByIDs { get; set; }
|
||||
public List<int> TrainingByIDs { 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; }
|
||||
[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? 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 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 bool TECNExtensionState { get; set; }
|
||||
public bool Cancelled { get; set; }
|
||||
|
||||
public bool CancellationApproved { get; set; }
|
||||
public bool CancellationInProgress { get; set; }
|
||||
public DateTime? CancellationApprovalDate { get; set; }
|
||||
public bool ExpirationProcessed {get;set;}
|
||||
public bool ExpirationInProgress { get; set; }
|
||||
public DateTime? ExpirationProcessedlDate { get; set; }
|
||||
public bool ReSubmitted { get; set; }
|
||||
public bool Converted { get; set; }
|
||||
public string ConvertedToType { get; set; }
|
||||
public int? ConvertedToNumber { get; set; }
|
||||
public int? ConvertedFromNumber { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public bool LockedForConversion { get; set; }
|
||||
public bool ConversionRejected { get; set; }
|
||||
public bool ConversionApprovalInProgress { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int LastUpdatedBy { get; set; }
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
public DateTime LastUpdateTimeStamp { get; set; }
|
||||
|
||||
public int? CategoryID { get; set; }
|
||||
|
||||
public bool FIChangeRequired { get; set; }
|
||||
public string NumberOfLotsAffected { get; set; }
|
||||
public bool? RecipeChange { get; set; }
|
||||
public List<int> ProductFamilyIDs { get; set; }
|
||||
|
||||
public bool Deleted { get; set; }
|
||||
public bool IsDocEC { get; set; }
|
||||
public bool MetrologyChangeRequired { get; set; }
|
||||
public ECN()
|
||||
{
|
||||
DepartmentIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
AreaIDs = new List<int>();
|
||||
TechnologyIDs = new List<int>();
|
||||
AcknowledgementByIDs = new List<int>();
|
||||
TrainingByIDs = new List<int>();
|
||||
ProductFamilyIDs = new List<int>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override bool Equals(System.Object obj)
|
||||
{
|
||||
// If parameter is null return false.
|
||||
if (obj == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// If parameter cannot be cast to Point return false.
|
||||
ECN p = obj as ECN;
|
||||
if ((System.Object)p == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Return true if the fields match:
|
||||
return (IsECN == p.IsECN) && (IsEmergencyTECN == p.IsEmergencyTECN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="p"></param>
|
||||
/// <returns></returns>
|
||||
public bool Equals(ECN p)
|
||||
{
|
||||
// If parameter is null return false:
|
||||
if ((object)p == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
foreach (PropertyInfo pi in p.GetType().GetProperties())
|
||||
{
|
||||
foreach(PropertyInfo px in this.GetType().GetProperties())
|
||||
{
|
||||
if (pi.Name.ToLower() == px.Name.ToLower())
|
||||
{
|
||||
if (pi.GetValue(p).Equals(px.GetValue(this)))
|
||||
break;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
[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 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 bool TECNExtensionState { get; set; }
|
||||
public bool Cancelled { get; set; }
|
||||
public bool CancellationApproved { get; set; }
|
||||
public bool CancellationInProgress { get; set; }
|
||||
public DateTime? CancellationApprovalDate { get; set; }
|
||||
public bool ExpirationProcessed { get; set; }
|
||||
public bool ExpirationInProgress { get; set; }
|
||||
public DateTime? ExpirationProcessedlDate { get; set; }
|
||||
public bool ReSubmitted { get; set; }
|
||||
public bool Converted { get; set; }
|
||||
public string ConvertedToType { get; set; }
|
||||
public int? ConvertedToNumber { get; set; }
|
||||
public int? ConvertedFromNumber { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public bool LockedForConversion { get; set; }
|
||||
public bool ConversionRejected { get; set; }
|
||||
public bool ConversionApprovalInProgress { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int LastUpdatedBy { get; set; }
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
public DateTime LastUpdateTimeStamp { get; set; }
|
||||
public int? CategoryID { get; set; }
|
||||
public bool FIChangeRequired { get; set; }
|
||||
public string NumberOfLotsAffected { get; set; }
|
||||
public bool? RecipeChange { get; set; }
|
||||
public List<int> ProductFamilyIDs { get; set; }
|
||||
public bool Deleted { get; set; }
|
||||
public bool IsDocEC { get; set; }
|
||||
public bool MetrologyChangeRequired { get; set; }
|
||||
public ECN() {
|
||||
DepartmentIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
AreaIDs = new List<int>();
|
||||
TechnologyIDs = new List<int>();
|
||||
AcknowledgementByIDs = new List<int>();
|
||||
TrainingByIDs = new List<int>();
|
||||
ProductFamilyIDs = new List<int>();
|
||||
}
|
||||
|
||||
public override bool Equals(object obj) {
|
||||
// If parameter is null return false.
|
||||
if (obj == null) {
|
||||
return false;
|
||||
// Return true if the fields match:
|
||||
//return (IsECN == p.IsECN) && (IsEmergencyTECN == p.IsEmergencyTECN);
|
||||
}
|
||||
|
||||
// If parameter cannot be cast to Point return false.
|
||||
ECN p = obj as ECN;
|
||||
if (p == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Return true if the fields match:
|
||||
return (IsECN == p.IsECN) && (IsEmergencyTECN == p.IsEmergencyTECN);
|
||||
}
|
||||
|
||||
public bool Equals(ECN p) {
|
||||
// If parameter is null return false:
|
||||
if (p == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (PropertyInfo pi in p.GetType().GetProperties()) {
|
||||
foreach (PropertyInfo px in GetType().GetProperties()) {
|
||||
if (pi.Name.ToLower() == px.Name.ToLower()) {
|
||||
if (pi.GetValue(p).Equals(px.GetValue(this)))
|
||||
break;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class ECNAffectedDeparmtent
|
||||
{
|
||||
//public int LotDispoDepartmentID { get; set; }
|
||||
//public int IssueID { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
}
|
||||
|
||||
public class ECNAffectedModule
|
||||
{
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNCategory
|
||||
{
|
||||
public int CategoryID { get; set; }
|
||||
public string CategoryName { get; set; }
|
||||
}
|
||||
|
||||
public class ECNAttachment
|
||||
{
|
||||
public int AttachmentID { set; get; }
|
||||
public int ECNNumber { 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 ECNArea
|
||||
{
|
||||
public int AreaID { set; get; }
|
||||
public string Area { get; set; }
|
||||
}
|
||||
|
||||
public class ECNTechnology
|
||||
{
|
||||
public int TechnologyID { get; set; }
|
||||
public string Technology { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class ECNAcknowledgementTrainingBy
|
||||
{
|
||||
public int AcknowledgementTrainingByID { get; set; }
|
||||
public string AcknowledgementTrainingBy { get; set; }
|
||||
return false;
|
||||
// Return true if the fields match:
|
||||
//return (IsECN == p.IsECN) && (IsEmergencyTECN == p.IsEmergencyTECN);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ECNAffectedDeparmtent {
|
||||
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNAffectedModule {
|
||||
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNCategory {
|
||||
|
||||
public int CategoryID { get; set; }
|
||||
public string CategoryName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNAttachment {
|
||||
|
||||
public int AttachmentID { set; get; }
|
||||
public int ECNNumber { 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 ECNArea {
|
||||
|
||||
public int AreaID { set; get; }
|
||||
public string Area { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNTechnology {
|
||||
|
||||
public int TechnologyID { get; set; }
|
||||
public string Technology { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ECNAcknowledgementTrainingBy {
|
||||
|
||||
public int AcknowledgementTrainingByID { get; set; }
|
||||
public string AcknowledgementTrainingBy { get; set; }
|
||||
|
||||
}
|
@ -1,17 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ECNTypeChangeLog
|
||||
{
|
||||
public int ECNNumber;
|
||||
public int UserID;
|
||||
public string ECNTypeFrom;
|
||||
public string ECNTypeTo;
|
||||
public class ECNTypeChangeLog {
|
||||
|
||||
public int ECNNumber;
|
||||
public int UserID;
|
||||
public string ECNTypeFrom;
|
||||
public string ECNTypeTo;
|
||||
|
||||
}
|
||||
}
|
@ -1,464 +1,408 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class AuditList
|
||||
{
|
||||
public string AuditNo { get; set; }
|
||||
public string AuditTitle { get; set; }
|
||||
public string AuditType { get; set; }
|
||||
public string Auditors { get; set; }
|
||||
public string PendingCAFindingsAIOwners { get; set; }
|
||||
public string PendingCAOwners { get; set; }
|
||||
public DateTime? AuditDate { get; set; }
|
||||
public string FindingCategories { get; set; }
|
||||
public string AuditedAreas { get; set; }
|
||||
public string CADisp { get; set; }
|
||||
public string CorrectiveActions { get; set; }
|
||||
public string AuditScore { get; set; }
|
||||
public string AuditStatus { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class AuditList {
|
||||
|
||||
public string AuditNo { get; set; }
|
||||
public string AuditTitle { get; set; }
|
||||
public string AuditType { get; set; }
|
||||
public string Auditors { get; set; }
|
||||
public string PendingCAFindingsAIOwners { get; set; }
|
||||
public string PendingCAOwners { get; set; }
|
||||
public DateTime? AuditDate { get; set; }
|
||||
public string FindingCategories { get; set; }
|
||||
public string AuditedAreas { get; set; }
|
||||
public string CADisp { get; set; }
|
||||
public string CorrectiveActions { get; set; }
|
||||
public string AuditScore { get; set; }
|
||||
public string AuditStatus { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Audit {
|
||||
|
||||
public int AuditNo { set; get; }
|
||||
public int OriginatorID { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string AuditTitle { get; set; }
|
||||
public int AuditScore { get; set; }
|
||||
public DateTime? AuditDate { get; set; }
|
||||
public string AuditFindingCategories { get; set; }
|
||||
public int AuditStatus { get; set; }
|
||||
public string NoOfMajorNonConformities { get; set; }
|
||||
public string NoOfMinorNonConformities { get; set; }
|
||||
public string NoOf5SFindings { get; set; }
|
||||
public string NoOfOFIFindings { get; set; }
|
||||
public string Auditees { get; set; }
|
||||
public List<int> AuditorIDs { get; set; }
|
||||
public List<int> AuditTypeIDs { get; set; }
|
||||
public List<int> AuditedAreaIDs { get; set; }
|
||||
public List<int> AuditedStandardIDs { 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 CAFindings CAFindings { get; set; }
|
||||
public Audit() {
|
||||
AuditorIDs = new List<int>();
|
||||
AuditTypeIDs = new List<int>();
|
||||
AuditedAreaIDs = new List<int>();
|
||||
CAFindings = new CAFindings();
|
||||
}
|
||||
}
|
||||
|
||||
public class Auditees {
|
||||
private string UserName { get; set; }
|
||||
|
||||
public class Audit
|
||||
{
|
||||
public int AuditNo { set; get; }
|
||||
public int OriginatorID { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string AuditTitle { get; set; }
|
||||
//public int AuditTypeID { get; set; }
|
||||
public int AuditScore { get; set; }
|
||||
public DateTime? AuditDate { get; set; }
|
||||
//public int Auditors { get; set; } // List of Auditors
|
||||
public string AuditFindingCategories { get; set; }
|
||||
public int AuditStatus { get; set; }
|
||||
//public int AuditedAreaID { get; set; }
|
||||
public string NoOfMajorNonConformities { get; set; }
|
||||
public string NoOfMinorNonConformities { get; set; }
|
||||
public string NoOf5SFindings { get; set; }
|
||||
public string NoOfOFIFindings { get; set; }
|
||||
public string Auditees { get; set; }
|
||||
public List<int> AuditorIDs { get; set; }
|
||||
public List<int> AuditTypeIDs { get; set; }
|
||||
public List<int> AuditedAreaIDs { get; set; }
|
||||
public List<int> AuditedStandardIDs { 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 CAFindings CAFindings { get; set; }
|
||||
public Audit()
|
||||
{
|
||||
AuditorIDs = new List<int>();
|
||||
AuditTypeIDs = new List<int>();
|
||||
AuditedAreaIDs = new List<int>();
|
||||
CAFindings = new CAFindings();
|
||||
}
|
||||
}
|
||||
public class Auditees
|
||||
{
|
||||
string UserName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class AuditType
|
||||
{
|
||||
public int AuditTypeID { get; set; }
|
||||
public string AuditTypeName { get; set; }
|
||||
}
|
||||
public class AuditType {
|
||||
|
||||
public class Auditor
|
||||
{
|
||||
public int AuditorID { get; set; }
|
||||
public string AuditorName { get; set; }
|
||||
}
|
||||
public int AuditTypeID { get; set; }
|
||||
public string AuditTypeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
}
|
||||
|
||||
public class AuditedArea
|
||||
{
|
||||
public int AuditedAreaID { get; set; }
|
||||
public string AuditedAreaName { get; set; }
|
||||
}
|
||||
public class Auditor {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class AuditFindings
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public string Findings { get; set; }
|
||||
public string ViolatedClause { get; set; }
|
||||
public string FindingType { get; set; }
|
||||
public string AuditFindingCategoryID { get; set; }
|
||||
public string FindingCategories { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
public string CAStatus { get; set; }
|
||||
public int CAOwnerID { get; set; }
|
||||
public string CAOwner { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int AuditorID { get; set; }
|
||||
public string AuditorName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class AuditFindingCategory
|
||||
{
|
||||
public int AuditFindingCategoryID { get; set; }
|
||||
public string AuditFindingCategoryName { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
public class AuditedArea {
|
||||
|
||||
public class AuditReportAttachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public int? CAFindingsID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public int AuditedAreaID { get; set; }
|
||||
public string AuditedAreaName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class AuditFindings {
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CorrectiveAction
|
||||
{
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public int RequestorID { get; set; }
|
||||
public string RequestorName { get; set; }
|
||||
public string CATitle { get; set; }
|
||||
public bool D0Completed { get; set; }
|
||||
public DateTime? D0CompleteDate { get; set; }
|
||||
public bool D0Approved { get; set; }
|
||||
public DateTime? D0ApprovedDate { get; set; }
|
||||
public bool TriggerApproval { get; set; }
|
||||
public bool TriggerSectionApproval { get; set; }
|
||||
public string SectionApproval { get; set; }
|
||||
public DateTime? IssueDate { get; set; }
|
||||
public string CAType { get; set; }
|
||||
public bool IsCACompleted { get; set; }
|
||||
public DateTime CACompletedDate { get; set; }
|
||||
public int ApprovalStatus { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public int D1AssigneeID { get; set; }
|
||||
public int CurrentD1AssigneeID { get; set; }
|
||||
public string D1AssigneeName { get; set; }
|
||||
public int CASourceID { get; set; }
|
||||
public string CASource { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public int Status { get; set; }
|
||||
public string StatusName { get; set; }
|
||||
public string Stage { get; set; }
|
||||
public int QAID { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
public string PendingAIOwners { get; set; }
|
||||
public string Tools { get; set; }
|
||||
public string RelatedMRB { get; set; }
|
||||
public int RelatedAudit { get; set; }
|
||||
public string D2ProblemDescription { get; set; }
|
||||
public List<int> RiskAssessmentAreaIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public string D3RiskAssessmentNotes { get; set; }
|
||||
public bool D3Completed { get; set; }
|
||||
public DateTime? D3CompleteDate { get; set; }
|
||||
public bool D3Approved { get; set; }
|
||||
public DateTime? D3ApprovedDate { get; set; }
|
||||
public DateTime? D3DueDate { get; set; }
|
||||
public string D4RootCause1 { get; set; }
|
||||
public string D4RootCause2 { get; set; }
|
||||
public string D4RootCause3 { get; set; }
|
||||
public string D4RootCause4 { get; set; }
|
||||
public DateTime? D4CompleteDate { get; set; }
|
||||
public bool D4Completed { get; set; }
|
||||
public bool D4Approved { get; set; }
|
||||
public DateTime? D4ApprovedDate { get; set; }
|
||||
public DateTime? D5CompleteDate { get; set; }
|
||||
public bool D5Completed { get; set; }
|
||||
public DateTime? D6ValidatedDate { get; set; }
|
||||
public bool D6Validated { get; set; }
|
||||
public DateTime? D7CompleteDate { get; set; }
|
||||
public bool D7Completed { get; set; }
|
||||
public bool D5Approved { get; set; }
|
||||
public DateTime? D5ApprovedDate { get; set; }
|
||||
public DateTime? D5D7DueDate { get; set; }
|
||||
public DateTime? D8DueDate { get; set; }
|
||||
public DateTime? D8CompletedDate { get; set; }
|
||||
public bool D8Completed { get; set; }
|
||||
public DateTime? D8ApprovedDate { get; set; }
|
||||
public bool D8Approved { get; set; }
|
||||
public string D8TeamRecognition { get; set; }
|
||||
public string D8LessonsLearned { get; set; }
|
||||
public string TeamMembers { get; set; }
|
||||
public DateTime? ApprovedDate { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public bool RecordLocked { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public DateTime LastUpdateDate { get; set; }
|
||||
public List<int> TeamMemberIDs { get; set; }
|
||||
public D5D6CorrectivetAction D5D6CorrectivetAction { get; set; }
|
||||
public D7PreventiveAction D7PreventiveAction { get; set; }
|
||||
public string D0Comments { get; set; }
|
||||
public int TeamCaptainID { get; set; }
|
||||
public string TeamCaptainName { get; set; }
|
||||
public int CASponsorID { get; set; }
|
||||
public string CASponsorName { get; set; }
|
||||
public string CustomerName { get; set; }
|
||||
public string CustomerPartNo { get; set; }
|
||||
public string IFXPartNo { get; set; }
|
||||
public int PartQty { get; set; }
|
||||
public string InvoiceNo { get; set; }
|
||||
public string PurchaseOrderNo { get; set; }
|
||||
public string SalesOrderNo { get; set; }
|
||||
public double DollarImpact { get; set; }
|
||||
public string BackgroundInfo { get; set; }
|
||||
public string Analysis { get; set; }
|
||||
public string VisualVerification { get; set; }
|
||||
public string InterimContainmentAction { get; set; }
|
||||
public string ICAVerificationResults { get; set; }
|
||||
public string ICAValidationActivities { get; set; }
|
||||
public string RootCauseVerification { get; set; }
|
||||
public string EscapePoint { get; set; }
|
||||
public DateTime? NextDueDate { get; set; }
|
||||
public DateTime? FollowUpDate { get; set; }
|
||||
public bool CASubmitted { get; set; }
|
||||
public int ID { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public string Findings { get; set; }
|
||||
public string ViolatedClause { get; set; }
|
||||
public string FindingType { get; set; }
|
||||
public string AuditFindingCategoryID { get; set; }
|
||||
public string FindingCategories { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
public string CAStatus { get; set; }
|
||||
public int CAOwnerID { get; set; }
|
||||
public string CAOwner { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public string Title { get; set; }
|
||||
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
}
|
||||
|
||||
public CorrectiveAction()
|
||||
{
|
||||
TeamMemberIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
RiskAssessmentAreaIDs = new List<int>();
|
||||
D5D6CorrectivetAction = new D5D6CorrectivetAction();
|
||||
D7PreventiveAction = new D7PreventiveAction();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public class AuditFindingCategory {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CASource
|
||||
{
|
||||
public int CASourceID { get; set; }
|
||||
public string CASourceName { get; set; }
|
||||
}
|
||||
public int AuditFindingCategoryID { get; set; }
|
||||
public string AuditFindingCategoryName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CAUserList
|
||||
{
|
||||
public int UserID { get; set; }
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
public class AuditReportAttachment {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public int? CAFindingsID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CAModule
|
||||
{
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class CorrectiveAction {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CA_Attachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string FileExtension { get; set; }
|
||||
public string Section { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int? CANo { get; set; }
|
||||
public int? D5D6CAID { get; set; }
|
||||
public int? D7PAID { get; set; }
|
||||
public int? CAFindingsID { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class D3ContainmentAction
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string Section { get; set; }
|
||||
public string ContainmentAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RiskAssessmentArea
|
||||
{
|
||||
public int RiskAssessmentAreaID { get; set; }
|
||||
public string RiskAssessmentAreaName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class D5D6CorrectivetAction
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string CorrectiveAction { get; set; }
|
||||
public string CARequired { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public bool IsImplemented { get; set; }
|
||||
public string ImprovementID { get; set; }
|
||||
public string Improvement { get; set; }
|
||||
public CA_Attachment CA_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public bool Approved { get; set; }
|
||||
|
||||
public D5D6CorrectivetAction()
|
||||
{
|
||||
CA_Attachment = new CA_Attachment();
|
||||
}
|
||||
public string ActionType { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class D5D6Improvement
|
||||
{
|
||||
public int D5D6ImprovementID { get; set; }
|
||||
public string D5D6ImprovementName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class D7PreventiveAction
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string PreventiveAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public CA_Attachment CA_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
|
||||
public D7PreventiveAction()
|
||||
{
|
||||
CA_Attachment = new CA_Attachment();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class CAFindings
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public string CAFinding { get; set; }
|
||||
public string CorrectiveAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int? CurrentResponsibilityOwnerID { get; set; }
|
||||
public int? ResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public AuditReportAttachment Audit_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
|
||||
public CAFindings()
|
||||
{
|
||||
Audit_Attachment = new AuditReportAttachment();
|
||||
}
|
||||
|
||||
}
|
||||
public class CASectionApproval
|
||||
{
|
||||
public string DSection { get; set; }
|
||||
public string Fullname { get; set; }
|
||||
public string ApprovalStatus { get; set; }
|
||||
public DateTime? DateAssigned { get; set; }
|
||||
public DateTime? DateCompleted { get; set; }
|
||||
public string Comments { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CANoList
|
||||
{
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
}
|
||||
|
||||
public class CAD3D5D7Due
|
||||
{
|
||||
public int CANo { get; set; }
|
||||
public DateTime DueDate { get; set; }
|
||||
public string ItemDue { get; set; }
|
||||
public string ExpiryType { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public int RequestorID { get; set; }
|
||||
public string RequestorName { get; set; }
|
||||
public string CATitle { get; set; }
|
||||
public bool D0Completed { get; set; }
|
||||
public DateTime? D0CompleteDate { get; set; }
|
||||
public bool D0Approved { get; set; }
|
||||
public DateTime? D0ApprovedDate { get; set; }
|
||||
public bool TriggerApproval { get; set; }
|
||||
public bool TriggerSectionApproval { get; set; }
|
||||
public string SectionApproval { get; set; }
|
||||
public DateTime? IssueDate { get; set; }
|
||||
public string CAType { get; set; }
|
||||
public bool IsCACompleted { get; set; }
|
||||
public DateTime CACompletedDate { get; set; }
|
||||
public int ApprovalStatus { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
public int D1AssigneeID { get; set; }
|
||||
public int CurrentD1AssigneeID { get; set; }
|
||||
public string D1AssigneeName { get; set; }
|
||||
public int CASourceID { get; set; }
|
||||
public string CASource { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public int Status { get; set; }
|
||||
public string StatusName { get; set; }
|
||||
public string Stage { get; set; }
|
||||
public int QAID { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
public string PendingAIOwners { get; set; }
|
||||
public string Tools { get; set; }
|
||||
public string RelatedMRB { get; set; }
|
||||
public int RelatedAudit { get; set; }
|
||||
public string D2ProblemDescription { get; set; }
|
||||
public List<int> RiskAssessmentAreaIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public string D3RiskAssessmentNotes { get; set; }
|
||||
public bool D3Completed { get; set; }
|
||||
public DateTime? D3CompleteDate { get; set; }
|
||||
public bool D3Approved { get; set; }
|
||||
public DateTime? D3ApprovedDate { get; set; }
|
||||
public DateTime? D3DueDate { get; set; }
|
||||
public string D4RootCause1 { get; set; }
|
||||
public string D4RootCause2 { get; set; }
|
||||
public string D4RootCause3 { get; set; }
|
||||
public string D4RootCause4 { get; set; }
|
||||
public DateTime? D4CompleteDate { get; set; }
|
||||
public bool D4Completed { get; set; }
|
||||
public bool D4Approved { get; set; }
|
||||
public DateTime? D4ApprovedDate { get; set; }
|
||||
public DateTime? D5CompleteDate { get; set; }
|
||||
public bool D5Completed { get; set; }
|
||||
public DateTime? D6ValidatedDate { get; set; }
|
||||
public bool D6Validated { get; set; }
|
||||
public DateTime? D7CompleteDate { get; set; }
|
||||
public bool D7Completed { get; set; }
|
||||
public bool D5Approved { get; set; }
|
||||
public DateTime? D5ApprovedDate { get; set; }
|
||||
public DateTime? D5D7DueDate { get; set; }
|
||||
public DateTime? D8DueDate { get; set; }
|
||||
public DateTime? D8CompletedDate { get; set; }
|
||||
public bool D8Completed { get; set; }
|
||||
public DateTime? D8ApprovedDate { get; set; }
|
||||
public bool D8Approved { get; set; }
|
||||
public string D8TeamRecognition { get; set; }
|
||||
public string D8LessonsLearned { get; set; }
|
||||
public string TeamMembers { get; set; }
|
||||
public DateTime? ApprovedDate { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public bool RecordLocked { get; set; }
|
||||
public DateTime RecordLockedDate { get; set; }
|
||||
public DateTime LastUpdateDate { get; set; }
|
||||
public List<int> TeamMemberIDs { get; set; }
|
||||
public D5D6CorrectivetAction D5D6CorrectivetAction { get; set; }
|
||||
public D7PreventiveAction D7PreventiveAction { get; set; }
|
||||
public string D0Comments { get; set; }
|
||||
public int TeamCaptainID { get; set; }
|
||||
public string TeamCaptainName { get; set; }
|
||||
public int CASponsorID { get; set; }
|
||||
public string CASponsorName { get; set; }
|
||||
public string CustomerName { get; set; }
|
||||
public string CustomerPartNo { get; set; }
|
||||
public string IFXPartNo { get; set; }
|
||||
public int PartQty { get; set; }
|
||||
public string InvoiceNo { get; set; }
|
||||
public string PurchaseOrderNo { get; set; }
|
||||
public string SalesOrderNo { get; set; }
|
||||
public double DollarImpact { get; set; }
|
||||
public string BackgroundInfo { get; set; }
|
||||
public string Analysis { get; set; }
|
||||
public string VisualVerification { get; set; }
|
||||
public string InterimContainmentAction { get; set; }
|
||||
public string ICAVerificationResults { get; set; }
|
||||
public string ICAValidationActivities { get; set; }
|
||||
public string RootCauseVerification { get; set; }
|
||||
public string EscapePoint { get; set; }
|
||||
public DateTime? NextDueDate { get; set; }
|
||||
public DateTime? FollowUpDate { get; set; }
|
||||
public bool CASubmitted { get; set; }
|
||||
public DateTime? ClosedDate { get; set; }
|
||||
public CorrectiveAction() {
|
||||
TeamMemberIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
RiskAssessmentAreaIDs = new List<int>();
|
||||
D5D6CorrectivetAction = new D5D6CorrectivetAction();
|
||||
D7PreventiveAction = new D7PreventiveAction();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class CASource {
|
||||
|
||||
public int CASourceID { get; set; }
|
||||
public string CASourceName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CAUserList {
|
||||
|
||||
public int UserID { get; set; }
|
||||
public string UserName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CAModule {
|
||||
|
||||
public int ModuleID { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CA_Attachment {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string FileExtension { get; set; }
|
||||
public string Section { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string RequirementsNotes { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int? CANo { get; set; }
|
||||
public int? D5D6CAID { get; set; }
|
||||
public int? D7PAID { get; set; }
|
||||
public int? CAFindingsID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class D3ContainmentAction {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string Section { get; set; }
|
||||
public string ContainmentAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class RiskAssessmentArea {
|
||||
|
||||
public int RiskAssessmentAreaID { get; set; }
|
||||
public string RiskAssessmentAreaName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class D5D6CorrectivetAction {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string CorrectiveAction { get; set; }
|
||||
public string CARequired { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public bool IsImplemented { get; set; }
|
||||
public string ImprovementID { get; set; }
|
||||
public string Improvement { get; set; }
|
||||
public CA_Attachment CA_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public bool Approved { get; set; }
|
||||
public D5D6CorrectivetAction() =>
|
||||
CA_Attachment = new CA_Attachment();
|
||||
public string ActionType { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class D5D6Improvement {
|
||||
|
||||
public int D5D6ImprovementID { get; set; }
|
||||
public string D5D6ImprovementName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class D7PreventiveAction {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int CANo { get; set; }
|
||||
public string PreventiveAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string ECNLinks { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int ResponsibilityOwnerID { get; set; }
|
||||
public int CurrentResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public CA_Attachment CA_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public D7PreventiveAction() =>
|
||||
CA_Attachment = new CA_Attachment();
|
||||
|
||||
}
|
||||
|
||||
public class CAFindings {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int AuditNo { get; set; }
|
||||
public string CAFinding { get; set; }
|
||||
public string CorrectiveAction { get; set; }
|
||||
public string Result { get; set; }
|
||||
public string AttachmentLinks { get; set; }
|
||||
public int? CurrentResponsibilityOwnerID { get; set; }
|
||||
public int? ResponsibilityOwnerID { get; set; }
|
||||
public string ResponsibilityOwnerName { get; set; }
|
||||
public DateTime? ECD { get; set; }
|
||||
public DateTime? ImplementedDate { get; set; }
|
||||
public AuditReportAttachment Audit_Attachment { get; set; }
|
||||
public DateTime AssignedDate { get; set; }
|
||||
public CAFindings() =>
|
||||
Audit_Attachment = new AuditReportAttachment();
|
||||
|
||||
}
|
||||
|
||||
public class CASectionApproval {
|
||||
|
||||
public string DSection { get; set; }
|
||||
public string Fullname { get; set; }
|
||||
public string ApprovalStatus { get; set; }
|
||||
public DateTime? DateAssigned { get; set; }
|
||||
public DateTime? DateCompleted { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CANoList {
|
||||
|
||||
public int CANo { get; set; }
|
||||
public string CANoDisp { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class CAD3D5D7Due {
|
||||
|
||||
public int CANo { get; set; }
|
||||
public DateTime DueDate { get; set; }
|
||||
public string ItemDue { get; set; }
|
||||
public string ExpiryType { get; set; }
|
||||
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
#if !NET8
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
@ -36,3 +38,5 @@ namespace Fab2ApprovalSystem.Models
|
||||
public virtual DbSet<C_8DAuditedStandardByAudit> C_8DAuditedStandardByAudit { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -1,17 +1,17 @@
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
#if !NET8
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models {
|
||||
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more.
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
public class ApplicationUser : IdentityUser {
|
||||
}
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> {
|
||||
public ApplicationDbContext()
|
||||
: base("DefaultConnection")
|
||||
{
|
||||
: base("DefaultConnection") {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -1,6 +1,8 @@
|
||||
namespace Fab2ApprovalSystem.Models {
|
||||
public class LoginResult {
|
||||
public bool IsAuthenticated { get; set; }
|
||||
public AuthTokens AuthTokens { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class LoginResult {
|
||||
|
||||
public bool IsAuthenticated { get; set; }
|
||||
public AuthTokens AuthTokens { get; set; }
|
||||
|
||||
}
|
@ -1,281 +1,202 @@
|
||||
using Fab2ApprovalSystem.ViewModels;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
#if !NET8
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Script.Serialization;
|
||||
#endif
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class LotDisposition
|
||||
{
|
||||
//[Editable(false)]
|
||||
[Display(Name = "Issue Number")]
|
||||
public int IssueID { get; set; }
|
||||
//[Editable(false)]
|
||||
public string Title { get; set; }
|
||||
public bool PERequired { get; set; }
|
||||
public string IssueDescription { get; set; }
|
||||
[ReadOnly(true)]
|
||||
public DateTime? IssueDate { get; set; }
|
||||
public DateTime? SubmitedDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public int OriginatorID { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string ReasonForDisposition { get; set; }
|
||||
public int ResponsibilityID { get; set; }
|
||||
public int ResponsibilityIssueID { get; set; }
|
||||
public string SPNScrapCode { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
// Extra field Defined for Scraping wafer for a given lot
|
||||
public Lot Lot { get; set; }
|
||||
//Extra field defined for Attachments
|
||||
public Attachment DocumentAttachment { 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> DepartmentIDs { get; set; }
|
||||
|
||||
public List<Attachment> Attachments { get; set; }
|
||||
public List<Approval> Approvals { get; set; }
|
||||
public List<ScrapLot> ScrapLots { get; set; }
|
||||
|
||||
public int CANo { get; set; }
|
||||
[Display(Name = "MRB Required")]
|
||||
public bool MRBRequired { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
|
||||
[Display(Name = "Dispositon By OCAP")]
|
||||
public bool DispositionByOCAP { get; set; }
|
||||
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int LastUpdatedBy { get; set; }
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
public LotDisposition()
|
||||
{
|
||||
DepartmentIDs = new List<int>();
|
||||
Lot = new Lot();
|
||||
DocumentAttachment = new Attachment();
|
||||
//Lots = new List<Lot>();
|
||||
Attachments = new List<Attachment>();
|
||||
Approvals = new List<Approval>();
|
||||
ScrapLots = new List<ScrapLot>();
|
||||
IssueDate = DateTime.Now;
|
||||
CurrentStep = 0;
|
||||
}
|
||||
[Serializable]
|
||||
public class LotDisposition {
|
||||
//[Editable(false)]
|
||||
[Display(Name = "Issue Number")]
|
||||
public int IssueID { get; set; }
|
||||
//[Editable(false)]
|
||||
public string Title { get; set; }
|
||||
public bool PERequired { get; set; }
|
||||
public string IssueDescription { get; set; }
|
||||
[ReadOnly(true)]
|
||||
public DateTime? IssueDate { get; set; }
|
||||
public DateTime? SubmitedDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public int OriginatorID { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string ReasonForDisposition { get; set; }
|
||||
public int ResponsibilityID { get; set; }
|
||||
public int ResponsibilityIssueID { get; set; }
|
||||
public string SPNScrapCode { get; set; }
|
||||
public byte CurrentStep { get; set; }
|
||||
// Extra field Defined for Scraping wafer for a given lot
|
||||
public Lot Lot { get; set; }
|
||||
//Extra field defined for Attachments
|
||||
public Attachment DocumentAttachment { 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> DepartmentIDs { get; set; }
|
||||
public List<Attachment> Attachments { get; set; }
|
||||
public List<Approval> Approvals { get; set; }
|
||||
public List<ScrapLot> ScrapLots { get; set; }
|
||||
public int CANo { get; set; }
|
||||
[Display(Name = "MRB Required")]
|
||||
public bool MRBRequired { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
|
||||
[Display(Name = "Dispositon By OCAP")]
|
||||
public bool DispositionByOCAP { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public string RecordLockByName { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int LastUpdatedBy { get; set; }
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
public LotDisposition() {
|
||||
DepartmentIDs = new List<int>();
|
||||
Lot = new Lot();
|
||||
DocumentAttachment = new Attachment();
|
||||
//Lots = new List<Lot>();
|
||||
Attachments = new List<Attachment>();
|
||||
Approvals = new List<Approval>();
|
||||
ScrapLots = new List<ScrapLot>();
|
||||
IssueDate = DateTime.Now;
|
||||
CurrentStep = 0;
|
||||
}
|
||||
|
||||
//public class Lot
|
||||
//{
|
||||
// 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 int IssueID { 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 int LotStatusOptionID { get; set; }
|
||||
// public string LotStatusOptionName { get; set; }
|
||||
// public double WaferCost { get; set; }
|
||||
// public double DieCost { get; set; }
|
||||
public class LotDispoDepartment {
|
||||
|
||||
// [UIHint("LotStatusOptionTemplate")]
|
||||
// [Display(Name="Lot Status")]
|
||||
// public LotStatusOptionViewModel LotStatusOption { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
|
||||
// public ScrapLot ScrapLotWafer { get; set; }
|
||||
|
||||
}
|
||||
|
||||
// public Lot()
|
||||
// {
|
||||
// LotStatusOption = new LotStatusOptionViewModel();
|
||||
// ScrapLotWafer = new ScrapLot();
|
||||
// }
|
||||
public class Attachment {
|
||||
|
||||
//}
|
||||
public int AttachmentID { set; get; }
|
||||
public int IssueID { 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 LotDispoDepartment
|
||||
{
|
||||
//public int LotDispoDepartmentID { get; set; }
|
||||
//public int IssueID { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public string DepartmentName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class Attachment
|
||||
{
|
||||
public int AttachmentID { set; get; }
|
||||
public int IssueID { 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 Approval {
|
||||
|
||||
}
|
||||
public int ApprovalID { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
private string StateName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public int SubRoleID { get; set; }
|
||||
public int ItemStatus { get; set; }
|
||||
public int Step { get; set; }
|
||||
public DateTime? NotifyDate { get; set; }
|
||||
public DateTime? AssignedDate { get; set; }
|
||||
public DateTime? RoleAssignedDate { get; set; }
|
||||
public DateTime? CompleteDateTime { get; set; }
|
||||
public string UserComments { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Approval
|
||||
{
|
||||
public int ApprovalID { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
string StateName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public int SubRoleID { get; set; }
|
||||
public int ItemStatus { get; set; }
|
||||
public int Step { get; set; }
|
||||
public DateTime? NotifyDate { get; set; }
|
||||
public DateTime? AssignedDate { get; set; }
|
||||
public DateTime? RoleAssignedDate { get; set; }
|
||||
public DateTime? CompleteDateTime { get; set; }
|
||||
public string UserComments { get; set; }
|
||||
}
|
||||
public class ScrapLot {
|
||||
|
||||
public string LotNo { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public int ScrapCount { get; set; }
|
||||
public int ReleaseCount { get; set; }
|
||||
public int SplitOfHoldCount { get; set; }
|
||||
public int CloseToQDBCount { get; set; }
|
||||
|
||||
public class ScrapLot
|
||||
{
|
||||
// extra field ( a viewmodel can be created)
|
||||
public int WaferCount { get; set; }
|
||||
public byte Lot1State { get; set; }
|
||||
public byte Lot2State { get; set; }
|
||||
public byte Lot3State { get; set; }
|
||||
public byte Lot4State { get; set; }
|
||||
public byte Lot5State { get; set; }
|
||||
public byte Lot6State { get; set; }
|
||||
public byte Lot7State { get; set; }
|
||||
public byte Lot8State { get; set; }
|
||||
public byte Lot9State { get; set; }
|
||||
public byte Lot10State { get; set; }
|
||||
public byte Lot11State { get; set; }
|
||||
public byte Lot12State { get; set; }
|
||||
public byte Lot13State { get; set; }
|
||||
public byte Lot14State { get; set; }
|
||||
public byte Lot15State { get; set; }
|
||||
public byte Lot16State { get; set; }
|
||||
public byte Lot17State { get; set; }
|
||||
public byte Lot18State { get; set; }
|
||||
public byte Lot19State { get; set; }
|
||||
public byte Lot20State { get; set; }
|
||||
public byte Lot21State { get; set; }
|
||||
public byte Lot22State { get; set; }
|
||||
public byte Lot23State { get; set; }
|
||||
public byte Lot24State { get; set; }
|
||||
public byte Lot25State { get; set; }
|
||||
public byte Lot26State { get; set; }
|
||||
public byte Lot27State { get; set; }
|
||||
public byte Lot28State { get; set; }
|
||||
public byte Lot29State { get; set; }
|
||||
public byte Lot30State { get; set; }
|
||||
public byte Lot31State { get; set; }
|
||||
public byte Lot32State { get; set; }
|
||||
public byte Lot33State { get; set; }
|
||||
public byte Lot34State { get; set; }
|
||||
public byte Lot35State { get; set; }
|
||||
public byte Lot36State { get; set; }
|
||||
public byte Lot37State { get; set; }
|
||||
public byte Lot38State { get; set; }
|
||||
public byte Lot39State { get; set; }
|
||||
public byte Lot40State { get; set; }
|
||||
public byte Lot41State { get; set; }
|
||||
public byte Lot42State { get; set; }
|
||||
public byte Lot43State { get; set; }
|
||||
public byte Lot44State { get; set; }
|
||||
public byte Lot45State { get; set; }
|
||||
public byte Lot46State { get; set; }
|
||||
public byte Lot47State { get; set; }
|
||||
public byte Lot48State { get; set; }
|
||||
public byte Lot49State { get; set; }
|
||||
public byte Lot50State { get; set; }
|
||||
|
||||
|
||||
public string LotNo { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public int ScrapCount { get; set; }
|
||||
public int ReleaseCount { get; set; }
|
||||
public int SplitOfHoldCount { get; set; }
|
||||
public int CloseToQDBCount { get; set; }
|
||||
}
|
||||
|
||||
// extra field ( a viewmodel can be created)
|
||||
public int WaferCount { get; set; }
|
||||
public class Users {
|
||||
|
||||
public byte Lot1State { get; set; }
|
||||
public byte Lot2State { get; set; }
|
||||
public byte Lot3State { get; set; }
|
||||
public byte Lot4State { get; set; }
|
||||
public byte Lot5State { get; set; }
|
||||
public byte Lot6State { get; set; }
|
||||
public byte Lot7State { get; set; }
|
||||
public byte Lot8State { get; set; }
|
||||
public byte Lot9State { get; set; }
|
||||
public byte Lot10State { get; set; }
|
||||
public byte Lot11State { get; set; }
|
||||
public byte Lot12State { get; set; }
|
||||
public byte Lot13State { get; set; }
|
||||
public byte Lot14State { get; set; }
|
||||
public byte Lot15State { get; set; }
|
||||
public byte Lot16State { get; set; }
|
||||
public byte Lot17State { get; set; }
|
||||
public byte Lot18State { get; set; }
|
||||
public byte Lot19State { get; set; }
|
||||
public byte Lot20State { get; set; }
|
||||
public byte Lot21State { get; set; }
|
||||
public byte Lot22State { get; set; }
|
||||
public byte Lot23State { get; set; }
|
||||
public byte Lot24State { get; set; }
|
||||
public byte Lot25State { get; set; }
|
||||
public byte Lot26State { get; set; }
|
||||
public byte Lot27State { get; set; }
|
||||
public byte Lot28State { get; set; }
|
||||
public byte Lot29State { get; set; }
|
||||
public byte Lot30State { get; set; }
|
||||
public byte Lot31State { get; set; }
|
||||
public byte Lot32State { get; set; }
|
||||
public byte Lot33State { get; set; }
|
||||
public byte Lot34State { get; set; }
|
||||
public byte Lot35State { get; set; }
|
||||
public byte Lot36State { get; set; }
|
||||
public byte Lot37State { get; set; }
|
||||
public byte Lot38State { get; set; }
|
||||
public byte Lot39State { get; set; }
|
||||
public byte Lot40State { get; set; }
|
||||
public byte Lot41State { get; set; }
|
||||
public byte Lot42State { get; set; }
|
||||
public byte Lot43State { get; set; }
|
||||
public byte Lot44State { get; set; }
|
||||
public byte Lot45State { get; set; }
|
||||
public byte Lot46State { get; set; }
|
||||
public byte Lot47State { get; set; }
|
||||
public byte Lot48State { get; set; }
|
||||
public byte Lot49State { get; set; }
|
||||
public byte Lot50State { get; set; }
|
||||
|
||||
}
|
||||
public int OriginatorID { get; set; }
|
||||
public string Originatorname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Users
|
||||
{
|
||||
public int OriginatorID { get; set; }
|
||||
public string Originatorname { get;set;}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Responsibility
|
||||
{
|
||||
public int ResponsibilityID { get; set; }
|
||||
public string ResponsibilityName { get; set; }
|
||||
}
|
||||
public class Responsibility {
|
||||
|
||||
public int ResponsibilityID { get; set; }
|
||||
public string ResponsibilityName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ResponsibilityIssue
|
||||
{
|
||||
public int ResponsibilityIssueID { get; set; }
|
||||
public string Issue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Comments
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int IssueID {get; set;}
|
||||
public string CommentedBy { get; set; }
|
||||
public string UserName{ get; set; }
|
||||
public string UserComments { get; set; }
|
||||
public DateTime TimeStamp { get; set; }
|
||||
public class ResponsibilityIssue {
|
||||
|
||||
}
|
||||
public int ResponsibilityIssueID { get; set; }
|
||||
public string Issue { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Comments {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public string CommentedBy { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string UserComments { get; set; }
|
||||
public DateTime TimeStamp { get; set; }
|
||||
|
||||
}
|
@ -1,463 +1,381 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LTWorkRequest
|
||||
{
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
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? TotalQty { get; set; }
|
||||
public int? StartQty{ 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; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LTWorkRequest {
|
||||
|
||||
public bool SiliconOnHand { get; set; }
|
||||
public DateTime? SiliconExpectedDueDate { get; set; }
|
||||
public string SiliconComments { get; set; }
|
||||
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? TotalQty { get; set; }
|
||||
public int? StartQty { 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 DateTime? SiliconExpectedDueDate { get; set; }
|
||||
public string SiliconComments { get; set; }
|
||||
public bool ReticleOnHand { get; set; }
|
||||
public DateTime? ReticleExpectedDueDate { get; set; }
|
||||
public string ReticleComments { get; set; }
|
||||
public bool SPNTransferOnHand { get; set; }
|
||||
public DateTime? SPNTransferExpectedDueDate { get; set; }
|
||||
public string SPNTransferComments { get; set; }
|
||||
public bool ProbeCardOnHand { get; set; }
|
||||
public DateTime? ProbeCardExpectedDueDate { get; set; }
|
||||
public string ProbeCardComments { get; set; }
|
||||
public bool ProbeRecipeOnHand { get; set; }
|
||||
public DateTime? ProbeRecipeExpectedDueDate { get; set; }
|
||||
public string ProbeRecipeComments { get; set; }
|
||||
public bool ProcessChangeDetailsOnHand { get; set; }
|
||||
public DateTime? ProcessChangeDetailsDueDate { get; set; }
|
||||
public string LotStartCheckListComments { get; set; }
|
||||
public LTHoldStep LTHoldStep { get; set; }
|
||||
public LTWorkRequestAttachment WorkRequestAttachment { get; set; }
|
||||
public int LotCount { get; set; }
|
||||
|
||||
public bool ReticleOnHand { get; set; }
|
||||
public DateTime? ReticleExpectedDueDate { get; set; }
|
||||
public string ReticleComments { get; set; }
|
||||
|
||||
public bool SPNTransferOnHand { get; set; }
|
||||
public DateTime? SPNTransferExpectedDueDate { get; set; }
|
||||
public string SPNTransferComments { get; set; }
|
||||
|
||||
public bool ProbeCardOnHand { get; set; }
|
||||
public DateTime? ProbeCardExpectedDueDate { get; set; }
|
||||
public string ProbeCardComments { get; set; }
|
||||
|
||||
public bool ProbeRecipeOnHand { get; set; }
|
||||
public DateTime? ProbeRecipeExpectedDueDate { get; set; }
|
||||
public string ProbeRecipeComments { get; set; }
|
||||
|
||||
public bool ProcessChangeDetailsOnHand { get; set; }
|
||||
public DateTime? ProcessChangeDetailsDueDate { get; set; }
|
||||
|
||||
public string LotStartCheckListComments { get; set; }
|
||||
|
||||
public LTHoldStep LTHoldStep { get; set; }
|
||||
public LTWorkRequestAttachment WorkRequestAttachment { get; set; }
|
||||
public int LotCount { get; set; }
|
||||
|
||||
// View Model attributes
|
||||
public List<int> DepartmentIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string RevisionComments { get; set; }
|
||||
public LTMaterial LTMaterial { get; set; }
|
||||
public int PreviousWorkRequestID { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public string ApprovalStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return Status == 1? "Approved" : "Pending";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public LTWorkRequest()
|
||||
{
|
||||
DepartmentIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
LTHoldStep = new LTHoldStep();
|
||||
LTMaterial = new LTMaterial();
|
||||
// View Model attributes
|
||||
public List<int> DepartmentIDs { get; set; }
|
||||
public List<int> ModuleIDs { get; set; }
|
||||
public string OriginatorName { get; set; }
|
||||
public string RevisionComments { get; set; }
|
||||
public LTMaterial LTMaterial { get; set; }
|
||||
public int PreviousWorkRequestID { get; set; }
|
||||
public int WorkFlowNumber { get; set; }
|
||||
public string ApprovalStatus {
|
||||
get {
|
||||
return Status == 1 ? "Approved" : "Pending";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class LTMaterial
|
||||
{
|
||||
public int ID { get; set; }
|
||||
[Display(Name = "WIP Part #")]
|
||||
public string WIPPartNumber { 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 LTWorkRequest() {
|
||||
DepartmentIDs = new List<int>();
|
||||
ModuleIDs = new List<int>();
|
||||
LTHoldStep = new LTHoldStep();
|
||||
LTMaterial = new LTMaterial();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTAffectedDepartment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
public class LTMaterial {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTAffectedModule
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
}
|
||||
public int ID { get; set; }
|
||||
[Display(Name = "WIP Part #")]
|
||||
public string WIPPartNumber { 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; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
//public class LTMaterial
|
||||
//{
|
||||
// public int ID { get; set; }
|
||||
// public string WIPPartNumber { get; set; }
|
||||
// public string Description { get; set; }
|
||||
// public string EPISiliconPartNumber { get; set; }
|
||||
// public int Quantity { get; set; }
|
||||
// public string Supplier { get; set; }
|
||||
// public int LTWorkRequestID { get; set; }
|
||||
}
|
||||
|
||||
// public LTMaterial()
|
||||
// {
|
||||
// Description = "";
|
||||
// }
|
||||
public class LTAffectedDepartment {
|
||||
|
||||
//}
|
||||
public int ID { get; set; }
|
||||
public int DepartmentID { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLotStartCheckList
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Item { get; set; }
|
||||
public bool OnHand { get; set; }
|
||||
public DateTime? ExpectedDueDate { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public string Comments { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTHoldStep
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string BaseFlow { get; set; }
|
||||
public string Location { get; set; }
|
||||
public class LTAffectedModule {
|
||||
|
||||
[Display(Name="Seq")]
|
||||
public string OperSequence { get; set; }
|
||||
|
||||
public string Operation { get; set; }
|
||||
public string OperationDescription { get; set; }
|
||||
public string ChangeInstructions { get; set; }
|
||||
public string FileNames { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public int UpdatedBy { get; set; }
|
||||
public LTWorkRequestAttachment LTWorkRequestAttachment { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public int currentStep { get; set; }
|
||||
public int PreviousHoldStepID { get; set; }
|
||||
public LTHoldStep()
|
||||
{
|
||||
LTWorkRequestAttachment = new LTWorkRequestAttachment();
|
||||
public int ID { get; set; }
|
||||
public int ModuleID { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LTLotStartCheckList {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string Item { get; set; }
|
||||
public bool OnHand { get; set; }
|
||||
public DateTime? ExpectedDueDate { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LTHoldStep {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string BaseFlow { get; set; }
|
||||
public string Location { get; set; }
|
||||
|
||||
[Display(Name = "Seq")]
|
||||
public string OperSequence { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string OperationDescription { get; set; }
|
||||
public string ChangeInstructions { get; set; }
|
||||
public string FileNames { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public int UpdatedBy { get; set; }
|
||||
public LTWorkRequestAttachment LTWorkRequestAttachment { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public int currentStep { get; set; }
|
||||
public int PreviousHoldStepID { get; set; }
|
||||
public LTHoldStep() =>
|
||||
LTWorkRequestAttachment = new LTWorkRequestAttachment();
|
||||
|
||||
}
|
||||
|
||||
public class LTWorkRequestAttachment {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public int LTHoldStepID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public string FileExtension { get; set; }
|
||||
public int PreviousWorkRequestAttachmentID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LTLotTravelerHeaderViewModel {
|
||||
|
||||
public int ID { get; set; }
|
||||
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 LTLotTravelerHoldSteps LTLotTravelerHoldStep { get; set; }
|
||||
public bool IsCurrentRevision { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public int LotTravRevID { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public int RecordLockedByName { get; set; }
|
||||
public List<Revision> Revisions { get; set; }
|
||||
public bool TravelerClosed { get; set; }
|
||||
public DateTime? TravelerClosedDate { get; set; }
|
||||
public string TravelerClosedBy { get; set; }
|
||||
public string TravelerClosedReason { get; set; }
|
||||
public int WorkReqRevision { get; set; }
|
||||
public string TravelerStatus {
|
||||
get {
|
||||
return TravelerClosedDate == null ? "Open" : "Closed";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTWorkRequestAttachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public DateTime? UploadDateTime { get; set; }
|
||||
public int LTHoldStepID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public int Revision { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public string FileExtension { get; set; }
|
||||
public int PreviousWorkRequestAttachmentID { get; set; }
|
||||
}
|
||||
public LTLotTravelerHeaderViewModel() =>
|
||||
LTLotTravelerHoldStep = new LTLotTravelerHoldSteps();
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLotTravelerHeaderViewModel
|
||||
{
|
||||
public int ID { get; set; }
|
||||
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 Quantity { get; set; }
|
||||
//public bool TravelerAttachedToLot { get; set; }
|
||||
public int LotTravCurrentRevision { get; set; }
|
||||
public LTLotTravelerHoldSteps LTLotTravelerHoldStep { get; set; }
|
||||
public bool IsCurrentRevision { get; set; }
|
||||
//public string Comments { get; set; }
|
||||
public int LTWorkRequestID { get; set; }
|
||||
public int LotTravRevID { get; set; }
|
||||
public bool RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public int RecordLockedByName { get; set; }
|
||||
public List<Revision> Revisions { get; set; }
|
||||
public bool TravelerClosed { get; set; }
|
||||
public DateTime? TravelerClosedDate { get; set; }
|
||||
public string TravelerClosedBy { get; set; }
|
||||
public string TravelerClosedReason { get; set; }
|
||||
public int WorkReqRevision { get; set; }
|
||||
}
|
||||
|
||||
public string TravelerStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return TravelerClosedDate == null ? "Open" : "Closed";
|
||||
}
|
||||
}
|
||||
public class LTLot {
|
||||
|
||||
|
||||
public LTLotTravelerHeaderViewModel()
|
||||
{
|
||||
LTLotTravelerHoldStep = new LTLotTravelerHoldSteps();
|
||||
public int ID { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
public string LotNumber { get; set; }
|
||||
public string WIPPartNumber { get; set; }
|
||||
public int WaferQty { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string Process { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string LotStatus { get; set; }
|
||||
public bool IsTravelerGenerated { get; set; }
|
||||
[Display(Name = "Revision")]
|
||||
public int LotTravelerCurrentRevision { get; set; }
|
||||
public int LotUploadedBy { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime LotUploadDatetime { get; set; }
|
||||
public int WRWithExistingLot { get; set; }
|
||||
public string TravelerStatus { get; set; }
|
||||
public bool TravelerClosed { get; set; }
|
||||
public DateTime? TravelerClosedDate { get; set; }
|
||||
|
||||
[Display(Name = "")]
|
||||
public string ButtonAttrib {
|
||||
get {
|
||||
return (IsTravelerGenerated ? "True" : "False") + "~" + ID + "~" + WorkRequestID + "~" + LotStatus + "~" + TravelerStatus;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLot
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
public string LotNumber { get; set; }
|
||||
public string WIPPartNumber { get; set; }
|
||||
public int WaferQty { get; set; }
|
||||
public string PartDescription { get; set; }
|
||||
public string Process { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string LotStatus { get; set; }
|
||||
public bool IsTravelerGenerated { get; set; }
|
||||
[Display(Name="Revision")]
|
||||
public int LotTravelerCurrentRevision { get; set; }
|
||||
public int LotUploadedBy { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
public DateTime LotUploadDatetime { get; set; }
|
||||
public int WRWithExistingLot { get; set; }
|
||||
public string TravelerStatus { get; set; }
|
||||
public bool TravelerClosed { get; set; }
|
||||
public DateTime? TravelerClosedDate { get; set; }
|
||||
//public int RecordLockIndicator { get; set; }
|
||||
//public int RecordLockedBy { get; set; }
|
||||
//public DateTime? RecordLockedDateTime { get; set; }
|
||||
//public bool IsCurrentRevision { get; set;}
|
||||
//public int Revision { get; set; }
|
||||
[Display(Name = "")]
|
||||
public string ButtonAttrib
|
||||
{
|
||||
get
|
||||
{
|
||||
return (IsTravelerGenerated ? "True" : "False") + "~" + ID + "~" + WorkRequestID + "~" + LotStatus + "~" + TravelerStatus;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public class LTLotTravelerRevisionAttrib {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLotTravelerRevisionAttrib
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int LTLotID { get; set; }
|
||||
public int RevisionNumber { get; set; }
|
||||
public bool IsCurrentRevision { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int TravelerLastUpdatedBy { get; set; }
|
||||
public DateTime? TraverlerLastUpdatedDatetime { get; set; }
|
||||
|
||||
public int ID { get; set; }
|
||||
public int LTLotID { get; set; }
|
||||
public int RevisionNumber { get; set; }
|
||||
public bool IsCurrentRevision { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int RecordLockIndicator { get; set; }
|
||||
public int RecordLockedBy { get; set; }
|
||||
public DateTime? RecordLockedDate { get; set; }
|
||||
public int TravelerLastUpdatedBy { get; set; }
|
||||
public DateTime? TraverlerLastUpdatedDatetime { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public class LTLotTravlerHistory {
|
||||
|
||||
public class LTLotTravlerHistory
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
public class LTLotTravelerHoldSteps {
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLotTravelerHoldSteps
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string OperSequence { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string OperationDescription { get; set; }
|
||||
public string ChangeInstructions { get; set; }
|
||||
public bool OLHoldInSPN { get; set; }
|
||||
public string ExecutionTaskComments { get; set; }
|
||||
public string EmployeeID { get; set; }
|
||||
public bool Completed { get; set; }
|
||||
public DateTime? SignOffTime { get; set; }
|
||||
public int SignedOffBy { get; set; }
|
||||
[Display(Name="SignedOff By")]
|
||||
public string SignedOffByName { get; set; }
|
||||
public int LotTravelerRevisionID { get; set; }
|
||||
public string RevisionComments { get; set; }
|
||||
public DateTime? UpdatedDateTime { get; set; }
|
||||
public int? UpdatedBy { get; set; }
|
||||
public int CurrentRevision { get; set; }
|
||||
// view model fields
|
||||
public string FileNames { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public int LTLotID { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
}
|
||||
public int ID { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
public string OperSequence { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string OperationDescription { get; set; }
|
||||
public string ChangeInstructions { get; set; }
|
||||
public bool OLHoldInSPN { get; set; }
|
||||
public string ExecutionTaskComments { get; set; }
|
||||
public string EmployeeID { get; set; }
|
||||
public bool Completed { get; set; }
|
||||
public DateTime? SignOffTime { get; set; }
|
||||
public int SignedOffBy { get; set; }
|
||||
[Display(Name = "SignedOff By")]
|
||||
public string SignedOffByName { get; set; }
|
||||
public int LotTravelerRevisionID { get; set; }
|
||||
public string RevisionComments { get; set; }
|
||||
public DateTime? UpdatedDateTime { get; set; }
|
||||
public int? UpdatedBy { get; set; }
|
||||
public int CurrentRevision { get; set; }
|
||||
// view model fields
|
||||
public string FileNames { get; set; }
|
||||
public int SWRNumber { get; set; }
|
||||
public int LTLotID { get; set; }
|
||||
public int WorkRequestID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LTLotTravAttachment
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int LotTravelerRevisionID { get; set; }
|
||||
public int LTLotTravHoldStepID { get; set; }
|
||||
public DateTime? UploadTime { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class LTLotTravAttachment {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string FileGUID { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string DocType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int LotTravelerRevisionID { get; set; }
|
||||
public int LTLotTravHoldStepID { get; set; }
|
||||
public DateTime? UploadTime { get; set; }
|
||||
public int UploadedByID { get; set; }
|
||||
public string UploadedByName { get; set; }
|
||||
|
||||
|
||||
/// </summary>
|
||||
public class BaseFlowLocation
|
||||
{
|
||||
public string Location { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class BaseFlowOperations
|
||||
{
|
||||
public string Operation { get; set; }
|
||||
public string OperationDesc { get; set; }
|
||||
public string OperCode { get; set; }
|
||||
public string SeqCode { get; set; }
|
||||
/// </summary>
|
||||
public class BaseFlowLocation {
|
||||
|
||||
}
|
||||
public string Location { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// </summary>
|
||||
public class BaseFlowLocationOperation
|
||||
{
|
||||
public string BaseFlow { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
}
|
||||
public class BaseFlowOperations {
|
||||
|
||||
public class PartNumberAttrib
|
||||
{
|
||||
public string PartNumber { get; set; }
|
||||
public string SiliconAndDesc { get; set; }
|
||||
}
|
||||
public string Operation { get; set; }
|
||||
public string OperationDesc { get; set; }
|
||||
public string OperCode { get; set; }
|
||||
public string SeqCode { get; set; }
|
||||
|
||||
public class Revision
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int RevisionNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// </summary>
|
||||
public class BaseFlowLocationOperation {
|
||||
|
||||
public class LotWithTraveler
|
||||
{
|
||||
public int LotID { get; set; }
|
||||
public string LotNumber { get; set; }
|
||||
}
|
||||
public string BaseFlow { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Operation { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class PartNumberAttrib {
|
||||
|
||||
public string PartNumber { get; set; }
|
||||
public string SiliconAndDesc { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Revision {
|
||||
|
||||
public int ID { get; set; }
|
||||
public int RevisionNumber { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LotWithTraveler {
|
||||
|
||||
public int LotID { get; set; }
|
||||
public string LotNumber { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class RevisionHistory {
|
||||
|
||||
public int ID { get; set; }
|
||||
public string RevisionedBy { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public DateTime RevisionCreateDate { get; set; }
|
||||
|
||||
public class RevisionHistory
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string RevisionedBy { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public DateTime RevisionCreateDate { get; set; }
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,85 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[Serializable]
|
||||
public class PartsRequest
|
||||
{
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
[Serializable]
|
||||
public class PartsRequest {
|
||||
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public int OriginatorID { get; set; }
|
||||
public int RequestorID { get; set; }
|
||||
public int TechLeadID { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
public int CurrentStep { get; set; }
|
||||
public string Status { get; set; }
|
||||
|
||||
public int OriginatorID { get; set; }
|
||||
public int RequestorID { get; set; }
|
||||
public int TechLeadID { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
|
||||
public DateTime? LastUpdateDate { get; set; }
|
||||
[Serializable]
|
||||
public class PartsRequestAttachment {
|
||||
|
||||
public int CurrentStep { get; set; }
|
||||
public int AttachmentID { set; get; }
|
||||
public int PRNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PartsRequestAttachment
|
||||
{
|
||||
public int AttachmentID { set; get; }
|
||||
public int PRNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
}
|
||||
[Serializable]
|
||||
public class PartsRequestAttachmentList {
|
||||
|
||||
[Serializable]
|
||||
public class PartsRequestAttachmentList
|
||||
{
|
||||
public int AttachmentID { set; get; }
|
||||
public int PRNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
public int AttachmentID { set; get; }
|
||||
public int PRNumber { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public string UploadDate { get; set; }
|
||||
public string FullName { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class PartsRequestList
|
||||
{
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime SubmitDate { get; set; }
|
||||
public DateTime CloseDate { get; set; }
|
||||
public string Originator { get; set; }
|
||||
public string Requestor { get; set; }
|
||||
public string TechLead { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
}
|
||||
public class PartsRequestList {
|
||||
|
||||
public class MyPartsRequestList
|
||||
{
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public string Originator { get; set; }
|
||||
public string Requestor { get; set; }
|
||||
public string TechLead { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
public string WorkFlowStepName { get; set; }
|
||||
}
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime SubmitDate { get; set; }
|
||||
public DateTime CloseDate { get; set; }
|
||||
public string Originator { get; set; }
|
||||
public string Requestor { get; set; }
|
||||
public string TechLead { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class MyPartsRequestList {
|
||||
|
||||
public int PRNumber { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public DateTime? SubmitDate { get; set; }
|
||||
public DateTime? CloseDate { get; set; }
|
||||
public string Originator { get; set; }
|
||||
public string Requestor { get; set; }
|
||||
public string TechLead { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string PendingApprovers { get; set; }
|
||||
public string WorkFlowStepName { get; set; }
|
||||
|
||||
}
|
@ -1,68 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ProductViewModel
|
||||
{
|
||||
[ScaffoldColumn(false)]
|
||||
public int ProductID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[Required]
|
||||
[DisplayName("Product name")]
|
||||
public string ProductName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public class ProductViewModel {
|
||||
[ScaffoldColumn(false)]
|
||||
public int ProductID {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Required]
|
||||
[DisplayName("Unit price")]
|
||||
[DataType(DataType.Currency)]
|
||||
[Range(0, int.MaxValue)]
|
||||
public decimal UnitPrice
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Product name")]
|
||||
public string ProductName {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Required]
|
||||
[DisplayName("Units in stock")]
|
||||
[DataType("Integer")]
|
||||
[Range(0, int.MaxValue)]
|
||||
public int UnitsInStock
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Unit price")]
|
||||
[DataType(DataType.Currency)]
|
||||
[Range(0, int.MaxValue)]
|
||||
public decimal UnitPrice {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public bool Discontinued
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[Required]
|
||||
[DisplayName("Units in stock")]
|
||||
[DataType("Integer")]
|
||||
[Range(0, int.MaxValue)]
|
||||
public int UnitsInStock {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DisplayName("Last supply")]
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime LastSupply
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public bool Discontinued {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType("Integer")]
|
||||
public int UnitsOnOrder
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
[DisplayName("Last supply")]
|
||||
[DataType(DataType.Date)]
|
||||
public DateTime LastSupply {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataType("Integer")]
|
||||
public int UnitsOnOrder {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
@ -1,15 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class TestModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public List<string> Countries { get; set; }
|
||||
public class TestModel {
|
||||
|
||||
public string Name { get; set; }
|
||||
public List<string> Countries { get; set; }
|
||||
|
||||
}
|
||||
}
|
@ -28,7 +28,6 @@ namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
ECN_DMO ecnDMO = new ECN_DMO();
|
||||
string ECNTitle = ecnDMO.GetECN(ECN).Title;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#if !NET8
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
@ -42,3 +44,5 @@ namespace Fab2ApprovalSystem.Models
|
||||
public virtual DbSet<TECNNotificationsUser> TECNNotificationsUsers { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -1,14 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class UserSubRoles
|
||||
{
|
||||
public int SubRoleID { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public string SubRoleName { get; set; }
|
||||
}
|
||||
}
|
||||
public class UserSubRoles {
|
||||
|
||||
public int SubRoleID { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public string SubRoleName { get; set; }
|
||||
|
||||
}
|
@ -1,22 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class WinEventLog
|
||||
{
|
||||
//[Key]
|
||||
public class WinEventLog {
|
||||
//[Key]
|
||||
|
||||
public int SysDocumentID{ get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public string DocumentType { get; set; }
|
||||
public string UserID { get; set; }
|
||||
public string OperationType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public int SysDocumentID { get; set; }
|
||||
public int IssueID { get; set; }
|
||||
public string DocumentType { get; set; }
|
||||
public string UserID { get; set; }
|
||||
public string OperationType { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,43 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class ApprovalModel
|
||||
{
|
||||
public int ApprovalID { get; set; }
|
||||
public int? IssueID { get; set; }
|
||||
public string RoleName { get; set; } // nullable
|
||||
public string SubRole { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public int SubRoleID { get; set; }
|
||||
public int? ItemStatus { get; set; }
|
||||
public int? Step { get; set; }
|
||||
public DateTime NotifyDate { get; set; } // nullable
|
||||
public DateTime AssignedDate { get; set; } // nullable
|
||||
public DateTime RoleAssignedDate { get; set; } // nullable
|
||||
public DateTime CompletedDate { get; set; } // nullable
|
||||
public string Comments { get; set; } // nullable
|
||||
public byte? ApprovalType { get; set; }
|
||||
public Guid? BackToApprovalID { get; set; }
|
||||
public int DocumentTypeID { get; set; }
|
||||
public bool DisplayDeniedDocument { get; set; }
|
||||
public bool Delegated { get; set; }
|
||||
}
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
public class ApprovalModel {
|
||||
|
||||
public int ApprovalID { get; set; }
|
||||
public int? IssueID { get; set; }
|
||||
public string RoleName { get; set; } // nullable
|
||||
public string SubRole { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public int SubRoleID { get; set; }
|
||||
public int? ItemStatus { get; set; }
|
||||
public int? Step { get; set; }
|
||||
public DateTime NotifyDate { get; set; } // nullable
|
||||
public DateTime AssignedDate { get; set; } // nullable
|
||||
public DateTime RoleAssignedDate { get; set; } // nullable
|
||||
public DateTime CompletedDate { get; set; } // nullable
|
||||
public string Comments { get; set; } // nullable
|
||||
public byte? ApprovalType { get; set; }
|
||||
public Guid? BackToApprovalID { get; set; }
|
||||
public int DocumentTypeID { get; set; }
|
||||
public bool DisplayDeniedDocument { get; set; }
|
||||
public bool Delegated { get; set; }
|
||||
|
||||
public class WorkflowSteps
|
||||
{
|
||||
public int WorkflowStepID { get; set; }
|
||||
public int WorkflowID { get; set; }
|
||||
public int WorkflowStepNumber { get; set; }
|
||||
public string WorkFlowStepName { get; set; } // nullable
|
||||
public int RoleID { get; set; }
|
||||
public bool RulesApply { get; set; }
|
||||
public int ApprovalType { get; set; }
|
||||
public bool? AllowReject { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class WorkflowSteps {
|
||||
|
||||
public int WorkflowStepID { get; set; }
|
||||
public int WorkflowID { get; set; }
|
||||
public int WorkflowStepNumber { get; set; }
|
||||
public string WorkFlowStepName { get; set; } // nullable
|
||||
public int RoleID { get; set; }
|
||||
public bool RulesApply { get; set; }
|
||||
public int ApprovalType { get; set; }
|
||||
public bool? AllowReject { get; set; }
|
||||
|
||||
}
|
Reference in New Issue
Block a user