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
101 lines
2.7 KiB
C#
101 lines
2.7 KiB
C#
using Fab2ApprovalSystem.Models;
|
|
|
|
namespace Fab2ApprovalSystem.Misc;
|
|
|
|
#if !NET8
|
|
public class GlobalVars {
|
|
|
|
public int USER_ID;
|
|
#else
|
|
public static class GlobalVars {
|
|
|
|
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 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 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
|
|
}
|
|
|
|
} |