Tasks 184281, 184799, 184800, 184801 and 184802

Align .editorconfig files

Move Controller logic to DMO classes

GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager();

Question EditorConfig
Project level editorconfig
Format White Spaces
AppSetting when EnvironmentVariable not set
Corrective Actions Tests
Schedule Actions Tests
DMO Tests
Controller Tests

Get ready to use VSCode IDE
This commit is contained in:
2024-12-04 11:58:13 -07:00
parent 538b1f817e
commit b1c6903c1c
150 changed files with 29146 additions and 33456 deletions

View File

@ -1,118 +1,101 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Fab2ApprovalSystem.Models;
namespace Fab2ApprovalSystem.Misc
{
public class GlobalVars
{
public int USER_ID;
public const string SESSION_USERNAME = "UserName";
public const string ApplicationName = "LotDisposition";
public const string SESSION_USERID = "UserID";
public const string ECN_VIEW_OPTION = "ECN_ViewOption";
public const string IS_ADMIN = "IsAdmin";
public const string IS_MANAGER = "IsManager";
public const string OOO = "OOO";
public const string SUCCESS = "Success";
public const string CAN_CREATE_PARTS_REQUEST = "CanCreatePartsRequest";
namespace Fab2ApprovalSystem.Misc;
public static bool USER_ISADMIN = false;
public static bool IS_INFINEON_DOMAIN = false;
public static string hostURL = "";
public static string DBConnection = "TEST";
public static string DB_CONNECTION_STRING = "";
#if !NET8
public class GlobalVars {
public static string AttachmentUrl = "";
public static string NDriveURL = "";
public static string WSR_URL = "";
public static string CA_BlankFormsLocation = "";
public static string MesaTemplateFiles = "D:\\WebSites\\FabApprovalAttachments\\Template5Why";
public int USER_ID;
#else
public static class GlobalVars {
//public static string DevWebSiteUrl = "";
//public static string ProdWebSiteUrl = "";
public static int USER_ID = 0;
#endif
public const string SESSION_USERNAME = "UserName";
public const string ApplicationName = "LotDisposition";
public const string SESSION_USERID = "UserID";
public const string ECN_VIEW_OPTION = "ECN_ViewOption";
public const string IS_ADMIN = "IsAdmin";
public const string IS_MANAGER = "IsManager";
public const string OOO = "OOO";
public const string SUCCESS = "Success";
public const string CAN_CREATE_PARTS_REQUEST = "CanCreatePartsRequest";
public const string LOT_NO = "LotNo";
public const string LOCATION = "Location";
//public static string DevAttachmentUrl = "";
//public static string ProdAttachmentUrl = "";
public static AppSettings? AppSettings = null;
public static bool USER_ISADMIN = false;
public static bool IS_INFINEON_DOMAIN = false;
public static string hostURL = "";
public static string DBConnection = "TEST";
public static string DB_CONNECTION_STRING = "";
public static string LOT_NO = "LotNo";
public static string LOCATION = "Location";
public static string SENDER_EMAIL = "MesaFabApproval@infineon.com";
//public static List<UserProfileDTO> UserProfileDTO { get; set; }
public enum LotStatusOption
{
Release = 1,
Scrap,
NotAvailable,
M_Suffix,
Select_Wafers,
CloseToQDB,
SplitOffHold
}
public enum ApprovalOption
{
Pending = 0,
Approved = 1,
Denied = 2,
Waiting = 3, //waiting on other approver to approve first
Skipped = 4, //set to this state if the original approval is no longer needed.
ReAssigned = 5, //set to this state if current approver got reassigned
Terminated = 6, //future use
Closed = 7,
Recalled = 8
}
public enum WorkFLowStepNumber
{
Step1 = 1,
Step2,
Step3
}
public enum DocumentType
{
LotDisposition = 1,
MRB=2,
ECN=3,
EECN = 4,
TECNCancelledExpired = 5,
LotTraveler = 6,
ChangeControl = 7,
Audit = 8,
CorrectiveAction = 9,
PartsRequest = 10,
CorrectiveActionSection = 12
}
public enum TECNExpirationCancellation
{
Cancellation = 1,
Expiration = 2
}
public enum Colors { None = 0, Red = 1, Green = 2, Blue = 4 };
public enum NotificationType
{
WorkRequest = 1,
LotTraveler = 2
}
public enum CASection
{
Main, D1, D2, D3, D4, D5,D6, D7, D8, CF
}
public static string AttachmentUrl = "";
public static string NDriveURL = "";
public static string WSR_URL = "";
public static string CA_BlankFormsLocation = "";
public static string SENDER_EMAIL = "MesaFabApproval@infineon.com";
public static string MesaTemplateFiles = "D:\\WebSites\\FabApprovalAttachments\\Template5Why";
public enum LotStatusOption {
Release = 1,
Scrap,
NotAvailable,
M_Suffix,
Select_Wafers,
CloseToQDB,
SplitOffHold
}
}
public enum ApprovalOption {
Pending = 0,
Approved = 1,
Denied = 2,
Waiting = 3, //waiting on other approver to approve first
Skipped = 4, //set to this state if the original approval is no longer needed.
ReAssigned = 5, //set to this state if current approver got reassigned
Terminated = 6, //future use
Closed = 7,
Recalled = 8
}
public enum WorkFLowStepNumber {
Step1 = 1,
Step2,
Step3
}
public enum DocumentType {
LotDisposition = 1,
MRB = 2,
ECN = 3,
EECN = 4,
TECNCancelledExpired = 5,
LotTraveler = 6,
ChangeControl = 7,
Audit = 8,
CorrectiveAction = 9,
PartsRequest = 10,
CorrectiveActionSection = 12
}
public enum TECNExpirationCancellation {
Cancellation = 1,
Expiration = 2
}
public enum Colors { None = 0, Red = 1, Green = 2, Blue = 4 };
public enum NotificationType {
WorkRequest = 1,
LotTraveler = 2
}
public enum CASection {
Main, D1, D2, D3, D4, D5, D6, D7, D8, CF
}
}