Compare commits
20 Commits
7cc645c188
...
ba8d92ea01
Author | SHA1 | Date | |
---|---|---|---|
ba8d92ea01 | |||
603052d7e5 | |||
c97ce37238 | |||
10dbd08cd2 | |||
1b7e482ad4 | |||
cbcd3ee53a | |||
fe981c4c04 | |||
3e6fc3fdb3 | |||
1b17cd75c2 | |||
5d701ded55 | |||
0289e62e9f | |||
d6af4b6ef9 | |||
4e04d4666d | |||
88af83cf96 | |||
e8ec36fe3e | |||
4b83a89cb0 | |||
ca651191c8 | |||
ffe6cd7c63 | |||
e1675fe9e9 | |||
a3053eadf6 |
@ -23,7 +23,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public AccountController(UserManager<ApplicationUser> userManager)
|
public AccountController(UserManager<ApplicationUser> userManager)
|
||||||
{
|
{
|
||||||
UserManager = userManager;
|
UserManager = userManager;
|
||||||
@ -78,45 +77,12 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
isLoginValid = Functions.IFX_ADAuthenticate(model.LoginID, model.Password);
|
isLoginValid = Functions.IFX_ADAuthenticate(model.LoginID, model.Password);
|
||||||
isIFX = true;
|
isIFX = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (isLoginValid)
|
if (isLoginValid)
|
||||||
{
|
{
|
||||||
//Check ITAR Permissions from AD group
|
|
||||||
#if(!DEBUG)
|
|
||||||
try
|
|
||||||
{
|
|
||||||
|
|
||||||
bool hasITARAccess = false;
|
|
||||||
|
|
||||||
//========TEMP CODE - NEEDS TO BE DELETED
|
|
||||||
//Functions.WriteEvent("Using DB for EC Auth for user " + model.LoginID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
//hasITARAccess = userDMO.GetEC_AD_Users(model.LoginID);
|
|
||||||
//=============END OF TEMP CODE
|
|
||||||
|
|
||||||
|
|
||||||
if (GlobalVars.DBConnection.ToUpper() == "TEST" || GlobalVars.DBConnection.ToUpper() == "QUALITY")
|
|
||||||
{
|
|
||||||
hasITARAccess = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
hasITARAccess = Functions.NA_HasITARAccess(model.LoginID, model.Password);
|
|
||||||
if (!hasITARAccess) // check the IFX domain
|
|
||||||
hasITARAccess = Functions.IFX_HasITARAccess(model.LoginID, model.Password);
|
|
||||||
}
|
|
||||||
userDMO.UpdateInsertITARAccess(model.LoginID, hasITARAccess ? "1" : "0");
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
ModelState.AddModelError("", "Not a member of the EC Domain" + ex.Message);
|
|
||||||
return View(model);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
LoginModel user = userDMO.GetUser(model.LoginID);
|
LoginModel user = userDMO.GetUser(model.LoginID);
|
||||||
if (user != null)
|
if (user != null)
|
||||||
{
|
{
|
||||||
@ -134,7 +100,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
ModelState.AddModelError("", "The user name does not exist in the DB. Please contact the System Admin");
|
ModelState.AddModelError("", "The user name does not exist in the DB. Please contact the System Admin");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -234,7 +199,9 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
|
|
||||||
//
|
//
|
||||||
// GET: /Account/Manage
|
// GET: /Account/Manage
|
||||||
|
#pragma warning disable IDE0060 // Remove unused parameter
|
||||||
public ActionResult Manage(ManageMessageId? message)
|
public ActionResult Manage(ManageMessageId? message)
|
||||||
|
#pragma warning restore IDE0060 // Remove unused parameter
|
||||||
{
|
{
|
||||||
//ViewBag.StatusMessage =
|
//ViewBag.StatusMessage =
|
||||||
// message == ManageMessageId.ChangePasswordSuccess ? "Your password has been changed."
|
// message == ManageMessageId.ChangePasswordSuccess ? "Your password has been changed."
|
||||||
|
@ -1870,9 +1870,9 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
int assigneeId = ca.D1AssigneeID;
|
int assigneeId = ca.D1AssigneeID;
|
||||||
int requestorId = ca.RequestorID;
|
int requestorId = ca.RequestorID;
|
||||||
int qaId = ca.QAID;
|
int qaId = ca.QAID;
|
||||||
NotifySectionRejection(issueID, assigneeId, dSection);
|
NotifySectionRejection(issueID, assigneeId, userID, dSection, comments);
|
||||||
NotifySectionRejection(issueID, requestorId, dSection);
|
NotifySectionRejection(issueID, requestorId, userID, dSection, comments);
|
||||||
NotifySectionRejection(issueID, qaId, dSection);
|
NotifySectionRejection(issueID, qaId, userID, dSection, comments);
|
||||||
|
|
||||||
return Content("Successfully Saved");
|
return Content("Successfully Saved");
|
||||||
}
|
}
|
||||||
@ -1893,11 +1893,14 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
return Content(e.Message);
|
return Content(e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void NotifySectionRejection(int issueID, int userId, string section)
|
public void NotifySectionRejection(int issueID, int recipientUserId, int loggedInUserId, string section, string comment)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string userEmail = userDMO.GetUserEmailByID(userId.ToString());
|
LoginModel recipient = userDMO.GetUserByID(recipientUserId);
|
||||||
|
string recipientEmail = recipient.Email;
|
||||||
|
|
||||||
|
LoginModel loggedInUser = userDMO.GetUserByID(loggedInUserId);
|
||||||
|
|
||||||
string emailTemplate = "CorrectiveActionSectionRejection.txt";
|
string emailTemplate = "CorrectiveActionSectionRejection.txt";
|
||||||
//string userEmail = string.Empty;
|
//string userEmail = string.Empty;
|
||||||
@ -1906,16 +1909,18 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
|
|
||||||
//subject = "Corrective Action Assignment";
|
//subject = "Corrective Action Assignment";
|
||||||
EmailNotification en = new EmailNotification(subject, ConfigurationManager.AppSettings["EmailTemplatesPath"]);
|
EmailNotification en = new EmailNotification(subject, ConfigurationManager.AppSettings["EmailTemplatesPath"]);
|
||||||
string[] emailparams = new string[4];
|
string[] emailparams = new string[6];
|
||||||
emailparams[0] = Functions.ReturnCANoStringFormat(issueID);
|
emailparams[0] = Functions.ReturnCANoStringFormat(issueID);
|
||||||
emailparams[1] = issueID.ToString();
|
emailparams[1] = issueID.ToString();
|
||||||
emailparams[2] = GlobalVars.hostURL;
|
emailparams[2] = GlobalVars.hostURL;
|
||||||
emailparams[3] = section;
|
emailparams[3] = section;
|
||||||
|
emailparams[4] = loggedInUser.FirstName + " " + loggedInUser.LastName;
|
||||||
|
emailparams[5] = comment;
|
||||||
//#if(DEBUG)
|
//#if(DEBUG)
|
||||||
// userEmail = "rkotian1@irf.com";
|
// userEmail = "rkotian1@irf.com";
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, userEmail, null, subject, emailparams);
|
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, recipientEmail, null, subject, emailparams);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
ECN_DMO ecnDMO = new ECN_DMO();
|
ECN_DMO ecnDMO = new ECN_DMO();
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
TrainingDMO trainingDMO = new TrainingDMO();
|
TrainingDMO trainingDMO = new TrainingDMO();
|
||||||
|
UserAccountDMO userDMO = new UserAccountDMO();
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -2115,6 +2116,12 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
string emailSentList = "";
|
string emailSentList = "";
|
||||||
|
|
||||||
List<string> emailIst = MiscDMO.GetTECNCancelledApprovalNotifyList(ecnNumber).Distinct().ToList();
|
List<string> emailIst = MiscDMO.GetTECNCancelledApprovalNotifyList(ecnNumber).Distinct().ToList();
|
||||||
|
List<int> notificationUserList = ecnDMO.GetTECNNotificationUsers().ToList();
|
||||||
|
foreach (int userId in notificationUserList)
|
||||||
|
{
|
||||||
|
string email = userDMO.GetUserEmailByID(userId.ToString());
|
||||||
|
if (email != null && !emailIst.Contains(email)) emailIst.Add(email);
|
||||||
|
}
|
||||||
|
|
||||||
string emailTemplate = "TECNCancelled.txt";
|
string emailTemplate = "TECNCancelled.txt";
|
||||||
string userEmail = string.Empty;
|
string userEmail = string.Empty;
|
||||||
|
@ -126,7 +126,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ViewBag.ActiveTabName = tabName;
|
ViewBag.ActiveTabName = tabName;
|
||||||
IEnumerable<IssuesViewModel> data = ldDMO.GetTaskList((int)Session[GlobalVars.SESSION_USERID]);
|
List<IssuesViewModel> data = ldDMO.GetTaskList((int)Session[GlobalVars.SESSION_USERID]).Distinct().ToList();
|
||||||
return Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
|
return Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@ -141,7 +141,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ViewBag.ActiveTabName = tabName;
|
ViewBag.ActiveTabName = tabName;
|
||||||
IEnumerable<OpenActionItemViewModel> data = ldDMO.GetMyOpenActionItems((int)Session[GlobalVars.SESSION_USERID]);
|
List<OpenActionItemViewModel> data = ldDMO.GetMyOpenActionItems((int)Session[GlobalVars.SESSION_USERID]).Distinct().ToList();
|
||||||
return Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
|
return Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -15,8 +15,6 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Fab2ApprovalSystem.Controllers
|
namespace Fab2ApprovalSystem.Controllers
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[SessionExpireFilter]
|
[SessionExpireFilter]
|
||||||
public class TrainingController : Controller
|
public class TrainingController : Controller
|
||||||
@ -44,7 +42,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
trainingDMO.DeleteTraining(oldTrainingId);
|
trainingDMO.DeleteTraining(oldTrainingId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int trainingId = trainingDMO.Create(ecnId);
|
int trainingId = trainingDMO.Create(ecnId);
|
||||||
List<int> TrainingGroups = new List<int>();
|
List<int> TrainingGroups = new List<int>();
|
||||||
TrainingGroups = trainingDMO.GetECNAssignedTrainingGroups(ecnId);
|
TrainingGroups = trainingDMO.GetECNAssignedTrainingGroups(ecnId);
|
||||||
@ -61,8 +58,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
int assignmentId = trainingDMO.CreateAssignment(trainingId, trainee);
|
int assignmentId = trainingDMO.CreateAssignment(trainingId, trainee);
|
||||||
NotifyTrainee(trainee, assignmentId, ecnId, ECNTitle);
|
NotifyTrainee(trainee, assignmentId, ecnId, ECNTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return trainingId;
|
return trainingId;
|
||||||
}
|
}
|
||||||
public ActionResult AddUserToTrainingAdHoc(int trainingId, int traineeId, int ecnId)
|
public ActionResult AddUserToTrainingAdHoc(int trainingId, int traineeId, int ecnId)
|
||||||
@ -114,7 +109,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
return Content("User already has an open or completed assignment for this training.");
|
return Content("User already has an open or completed assignment for this training.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -135,9 +129,8 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
return Content("Not Authorized");
|
return Content("Not Authorized");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActionResult AddGroupToTrainingAdHoc(int trainingId, int groupId, int ecnId)
|
public ActionResult AddGroupToTrainingAdHoc(int trainingId, int groupId, int ecnId)
|
||||||
{
|
{
|
||||||
if ((bool)Session[GlobalVars.IS_ADMIN])
|
if ((bool)Session[GlobalVars.IS_ADMIN])
|
||||||
@ -166,13 +159,11 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
int assignmentId = trainingDMO.CreateAssignment(trainingId, id);
|
int assignmentId = trainingDMO.CreateAssignment(trainingId, id);
|
||||||
NotifyTrainee(id, assignmentId, ecnId, ecn.Title);
|
NotifyTrainee(id, assignmentId, ecnId, ecn.Title);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (usersAdded > 0)
|
if (usersAdded > 0)
|
||||||
{
|
{
|
||||||
trainingDMO.reOpenTraining(trainingId);
|
trainingDMO.reOpenTraining(trainingId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -188,13 +179,13 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(usersAdded > 0)
|
if (usersAdded > 0)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
trainingDMO.AddTrainingGroupToECN(ecnId, groupId);
|
trainingDMO.AddTrainingGroupToECN(ecnId, groupId);
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return Content(e.ToString());
|
return Content(e.ToString());
|
||||||
}
|
}
|
||||||
@ -220,8 +211,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
return Content("Not Authorized");
|
return Content("Not Authorized");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public ActionResult DeleteTrainingByECN(int ECNNumber)
|
public ActionResult DeleteTrainingByECN(int ECNNumber)
|
||||||
{
|
{
|
||||||
@ -258,20 +247,20 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
|
|
||||||
subject = "ECN# " + ecnId + " - Training Assignment Notice - " + title;
|
subject = "ECN# " + ecnId + " - Training Assignment Notice - " + title;
|
||||||
|
|
||||||
EmailNotification en = new EmailNotification(subject, ConfigurationManager.AppSettings["EmailTemplatesPath"]);
|
EmailNotification en = new EmailNotification(subject, ConfigurationManager.AppSettings["EmailTemplatesPath"]);
|
||||||
//string emailparams = "";
|
//string emailparams = "";
|
||||||
userEmail = recipient;
|
userEmail = recipient;
|
||||||
string[] emailparams = new string[4];
|
string[] emailparams = new string[4];
|
||||||
emailparams[0] = assignmentId.ToString();
|
emailparams[0] = assignmentId.ToString();
|
||||||
emailparams[1] = ecnId.ToString();
|
emailparams[1] = ecnId.ToString();
|
||||||
emailparams[2] = GlobalVars.hostURL;
|
emailparams[2] = GlobalVars.hostURL;
|
||||||
//#if(DEBUG)
|
//#if(DEBUG)
|
||||||
//string SenderEmail = "MesaFabApproval@infineon.com";
|
//string SenderEmail = "MesaFabApproval@infineon.com";
|
||||||
//userEmail = "jonathan.ouellette@infineon.com";
|
//userEmail = "jonathan.ouellette@infineon.com";
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, userEmail, null, subject, emailparams);
|
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, userEmail, null, subject, emailparams);
|
||||||
//en.SendNotificationEmail(emailTemplate, SenderEmail, senderName, userEmail, null, subject, emailparams);
|
//en.SendNotificationEmail(emailTemplate, SenderEmail, senderName, userEmail, null, subject, emailparams);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@ -285,9 +274,8 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
detailedException = e.Message;
|
detailedException = e.Message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActionResult ViewTrainingPartial(int trainingID, int userID)
|
public ActionResult ViewTrainingPartial(int trainingID, int userID)
|
||||||
{
|
{
|
||||||
List<TrainingAssignment> TrainingData = trainingDMO.GetTrainingAssignmentsByUser(trainingID, userID);
|
List<TrainingAssignment> TrainingData = trainingDMO.GetTrainingAssignmentsByUser(trainingID, userID);
|
||||||
@ -329,9 +317,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
string exception = e.ToString();
|
string exception = e.ToString();
|
||||||
return Content(exception);
|
return Content(exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,9 +403,6 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
return PartialView(trainingList);
|
return PartialView(trainingList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public ActionResult ViewTrainingAssignmentsReportView(int trainingID, string statusFilter, string groupFilter)
|
public ActionResult ViewTrainingAssignmentsReportView(int trainingID, string statusFilter, string groupFilter)
|
||||||
{
|
{
|
||||||
@ -445,9 +427,11 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
totalCompleted++;
|
totalCompleted++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning disable IDE0047 // Remove unnecessary parentheses
|
||||||
percentComplete = (totalCompleted / assignmentCount) * 100;
|
percentComplete = (totalCompleted / assignmentCount) * 100;
|
||||||
|
#pragma warning restore IDE0047 // Remove unnecessary parentheses
|
||||||
ViewBag.PercentComplete = percentComplete.ToString("0.00") + "%";
|
ViewBag.PercentComplete = percentComplete.ToString("0.00") + "%";
|
||||||
|
|
||||||
if (groupFilter != "" && groupFilter != null)
|
if (groupFilter != "" && groupFilter != null)
|
||||||
{
|
{
|
||||||
ViewBag.GroupFilter = groupFilter;
|
ViewBag.GroupFilter = groupFilter;
|
||||||
@ -455,7 +439,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
List<int> groupMemberIds = trainingDMO.GetTrainees(Convert.ToInt32(groupFilter));
|
List<int> groupMemberIds = trainingDMO.GetTrainees(Convert.ToInt32(groupFilter));
|
||||||
foreach (var assignment in trainingAssignments)
|
foreach (var assignment in trainingAssignments)
|
||||||
{
|
{
|
||||||
if(trainingDMO.isUserTrainingMember(Convert.ToInt32(groupFilter), assignment.UserID))
|
if (trainingDMO.isUserTrainingMember(Convert.ToInt32(groupFilter), assignment.UserID))
|
||||||
{
|
{
|
||||||
groupFilteredTraining.Add(assignment);
|
groupFilteredTraining.Add(assignment);
|
||||||
}
|
}
|
||||||
@ -468,7 +452,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
List<TrainingAssignment> filteredTraining = new List<TrainingAssignment>();
|
List<TrainingAssignment> filteredTraining = new List<TrainingAssignment>();
|
||||||
switch (statusFilter)
|
switch (statusFilter)
|
||||||
{
|
{
|
||||||
|
|
||||||
case "1":
|
case "1":
|
||||||
//Completed
|
//Completed
|
||||||
filteredTraining = (from a in trainingAssignments where a.status == true && a.Deleted != true select a).ToList();
|
filteredTraining = (from a in trainingAssignments where a.status == true && a.Deleted != true select a).ToList();
|
||||||
@ -503,7 +487,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
ViewBag.AllUsers = userDMO.GetAllActiveUsers();
|
ViewBag.AllUsers = userDMO.GetAllActiveUsers();
|
||||||
ViewBag.AllGroups = trainingDMO.GetTrainingGroups();
|
ViewBag.AllGroups = trainingDMO.GetTrainingGroups();
|
||||||
IEnumerable<TrainingAssignment> trainingAssignments = trainingDMO.GetTrainingAssignments(trainingID);
|
IEnumerable<TrainingAssignment> trainingAssignments = trainingDMO.GetTrainingAssignments(trainingID);
|
||||||
|
|
||||||
return View(trainingAssignments);
|
return View(trainingAssignments);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -530,11 +514,8 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
DateAssigned = assignment.DateAssigned,
|
DateAssigned = assignment.DateAssigned,
|
||||||
DateCompleted = assignment.DateCompleted,
|
DateCompleted = assignment.DateCompleted,
|
||||||
Status = assignment.status
|
Status = assignment.status
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return View(ViewData);
|
return View(ViewData);
|
||||||
@ -580,8 +561,8 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
ViewBag.AllGroups = trainingDMO.GetTrainingGroups();
|
ViewBag.AllGroups = trainingDMO.GetTrainingGroups();
|
||||||
return View(AllTrainings);
|
return View(AllTrainings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public ActionResult ViewAllTrainings()
|
public ActionResult ViewAllTrainings()
|
||||||
{
|
{
|
||||||
@ -630,7 +611,7 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
ECN ecn = ecnDMO.GetECN(ecnId);
|
ECN ecn = ecnDMO.GetECN(ecnId);
|
||||||
if (ecn != null)
|
if (ecn != null)
|
||||||
{
|
{
|
||||||
if(ecn.CloseDate != null)
|
if (ecn.CloseDate != null)
|
||||||
{
|
{
|
||||||
if (newTrainingGroupIds.Count > 0)
|
if (newTrainingGroupIds.Count > 0)
|
||||||
{
|
{
|
||||||
@ -643,12 +624,12 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
{
|
{
|
||||||
trainingDMO.AddTrainingGroupToECN(ecnId, trainingId);
|
trainingDMO.AddTrainingGroupToECN(ecnId, trainingId);
|
||||||
}
|
}
|
||||||
|
|
||||||
trainingDMO.SetTrainingFlag(ecnId);
|
trainingDMO.SetTrainingFlag(ecnId);
|
||||||
Create(ecnId);
|
Create(ecnId);
|
||||||
return Content("Success");
|
return Content("Success");
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return Content("Failed: " + e.Message.ToString());
|
return Content("Failed: " + e.Message.ToString());
|
||||||
}
|
}
|
||||||
@ -677,9 +658,9 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
public ActionResult CheckECN(int ecnId)
|
public ActionResult CheckECN(int ecnId)
|
||||||
{
|
{
|
||||||
ECN ecn = ecnDMO.GetECN(ecnId);
|
ECN ecn = ecnDMO.GetECN(ecnId);
|
||||||
if(ecn != null)
|
if (ecn != null)
|
||||||
{
|
{
|
||||||
if(ecn.CloseDate != null)
|
if (ecn.CloseDate != null)
|
||||||
{
|
{
|
||||||
List<int> trainingGroupIds = trainingDMO.GetECNAssignedTrainingGroups(ecnId);
|
List<int> trainingGroupIds = trainingDMO.GetECNAssignedTrainingGroups(ecnId);
|
||||||
List<TrainingGroup> assignedGroups = new List<TrainingGroup>();
|
List<TrainingGroup> assignedGroups = new List<TrainingGroup>();
|
||||||
@ -708,7 +689,9 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string emailBody = "<h1>Mesa Approval Open Training Assignments Daily Report</h1> <br />";
|
string emailBody = "<h1>Mesa Approval Open Training Assignments Daily Report</h1> <br />";
|
||||||
emailBody += "<p>The following contains open training assignments in the Mesa Approval system. Please ensure the following users complete their training assignments.</p><br />";
|
emailBody += "<p>The following contains open training assignments in the Mesa Approval system. ";
|
||||||
|
emailBody += "Please ensure the following users complete their training assignments. ";
|
||||||
|
emailBody += "Dates in red font identify past due training tasks.</p><br />";
|
||||||
emailBody += "<style>table,th,td{border: 1px solid black;}</style>";
|
emailBody += "<style>table,th,td{border: 1px solid black;}</style>";
|
||||||
//Get all users set up to receive the training report email.
|
//Get all users set up to receive the training report email.
|
||||||
List<TrainingReportUser> trainingReportUsers = adminDMO.GetTrainingReportUsers();
|
List<TrainingReportUser> trainingReportUsers = adminDMO.GetTrainingReportUsers();
|
||||||
@ -743,7 +726,14 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
|
|
||||||
string DateAssigned = assignmentDate.HasValue ? assignmentDate.Value.ToString("MM/dd/yyyy") : "<not available>";
|
string DateAssigned = assignmentDate.HasValue ? assignmentDate.Value.ToString("MM/dd/yyyy") : "<not available>";
|
||||||
|
|
||||||
trainingSection += "<tr><td>" + assignment.FullName + "</td><td>" + DateAssigned + "</td>";
|
if (assignmentDate.HasValue && (DateTime.Now.Date - assignmentDate.Value.Date).TotalDays > 15)
|
||||||
|
{
|
||||||
|
trainingSection += "<tr><td>" + assignment.FullName + "</td><td style=\"color:red;\">" + DateAssigned + "</td>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
trainingSection += "<tr><td>" + assignment.FullName + "</td><td>" + DateAssigned + "</td>";
|
||||||
|
}
|
||||||
|
|
||||||
trainingSection += "</tr>";
|
trainingSection += "</tr>";
|
||||||
}
|
}
|
||||||
@ -763,5 +753,5 @@ namespace Fab2ApprovalSystem.Controllers
|
|||||||
return isSuccess;
|
return isSuccess;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,13 @@ using System.Web;
|
|||||||
using Dapper;
|
using Dapper;
|
||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
public class AdminDMO
|
public class AdminDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
private static FabApprovalTrainingEntities FabApprovalDB = new FabApprovalTrainingEntities();
|
private static FabApprovalTrainingEntities FabApprovalDB = new FabApprovalTrainingEntities();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
@ -7,13 +7,14 @@ using System.Data.SqlClient;
|
|||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using Dapper;
|
using Dapper;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
public static class ApprovalLogDMO
|
public static class ApprovalLogDMO
|
||||||
{
|
{
|
||||||
|
|
||||||
private static IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private static IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
public static void Add(ApprovalLog appLog)
|
public static void Add(ApprovalLog appLog)
|
||||||
{
|
{
|
||||||
@ -29,4 +30,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,13 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Transactions;
|
using System.Transactions;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
public class AuditDMO
|
public class AuditDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using Dapper;
|
using Dapper;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using Fab2ApprovalSystem.ViewModels;
|
using Fab2ApprovalSystem.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
@ -15,7 +16,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class ChangeControlDMO
|
public class ChangeControlDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
public class CorrectiveActionDMO
|
public class CorrectiveActionDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
public CorrectiveAction InsertCA(CorrectiveAction ca)
|
public CorrectiveAction InsertCA(CorrectiveAction ca)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
@ -7,6 +7,7 @@ using System.Data.SqlClient;
|
|||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using Dapper;
|
using Dapper;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
@ -15,7 +16,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ECNTypeChangeLogDMO
|
public static class ECNTypeChangeLogDMO
|
||||||
{
|
{
|
||||||
private static IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private static IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
@ -37,4 +38,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class ECN_DMO
|
public class ECN_DMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
|
|
||||||
@ -598,6 +598,13 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
var approverList = this.db.Query<ApprovalLogHistory>("ECNGetECNApprovalLogHistory", parameters, commandType: CommandType.StoredProcedure).ToList();
|
var approverList = this.db.Query<ApprovalLogHistory>("ECNGetECNApprovalLogHistory", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||||
return approverList;
|
return approverList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<int> GetTECNNotificationUsers()
|
||||||
|
{
|
||||||
|
string sql = "select T.UserId from TECNNotificationsUsers T";
|
||||||
|
var result = this.db.Query<int>(sql).ToList();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
public static class EventLogDMO
|
public static class EventLogDMO
|
||||||
{
|
{
|
||||||
private static IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private static IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
//public static void Add(WinEventLog eventLog)
|
//public static void Add(WinEventLog eventLog)
|
||||||
//{
|
//{
|
||||||
@ -48,4 +48,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class LotDispositionDMO
|
public class LotDispositionDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
//LotDispositionDMO ldDMO = new LotDispositionDMO();
|
//LotDispositionDMO ldDMO = new LotDispositionDMO();
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
@ -1355,7 +1355,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
internal IEnumerable<Comments> GetComments(int issueID)
|
internal IEnumerable<Comments> GetComments(int issueID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
return db.Query<Comments>("GetComments", new { @IssueID = issueID}, commandType: CommandType.StoredProcedure).ToList();
|
return db.Query<Comments>("GetComments", new { @IssueID = issueID}, commandType: CommandType.StoredProcedure).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class LotTravelerDMO
|
public class LotTravelerDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1648,4 +1648,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
this.db.Execute("LTReassignOriginator", parameters, commandType: CommandType.StoredProcedure);
|
this.db.Execute("LTReassignOriginator", parameters, commandType: CommandType.StoredProcedure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
public class MRB_DMO
|
public class MRB_DMO
|
||||||
{
|
{
|
||||||
|
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
@ -1346,4 +1346,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable<Lot> SearchLots(string searchText, string searchBy)
|
public static IEnumerable<Lot> SearchLots(string searchText, string searchBy)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
IEnumerable<Lot> lotList;
|
IEnumerable<Lot> lotList;
|
||||||
|
|
||||||
string sql = "";
|
string sql = "";
|
||||||
@ -56,7 +56,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
}
|
}
|
||||||
public static IEnumerable<int> GetUserIDsBySubRoleID(int subRoleID)
|
public static IEnumerable<int> GetUserIDsBySubRoleID(int subRoleID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
IEnumerable<int> userList;
|
IEnumerable<int> userList;
|
||||||
|
|
||||||
string sql = "";
|
string sql = "";
|
||||||
@ -74,7 +74,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable<Lot> SearchLTLots(string searchText, string searchBy)
|
public static IEnumerable<Lot> SearchLTLots(string searchText, string searchBy)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
string sql = "";
|
string sql = "";
|
||||||
|
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable<WIPPart> SearchLTParts(string searchText)
|
public static IEnumerable<WIPPart> SearchLTParts(string searchText)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
sql.Append("SELECT PartNumber + '~' + SiliconPart + '~' + ProcessFlow + '~' + PartDescription AS WIPPartData ");
|
sql.Append("SELECT PartNumber + '~' + SiliconPart + '~' + ProcessFlow + '~' + PartDescription AS WIPPartData ");
|
||||||
sql.Append("FROM vWIPPartData WHERE PartNumber LIKE '%" + searchText + "%' ORDER BY PartNumber");
|
sql.Append("FROM vWIPPartData WHERE PartNumber LIKE '%" + searchText + "%' ORDER BY PartNumber");
|
||||||
@ -120,8 +120,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <param name="lot"></param>
|
/// <param name="lot"></param>
|
||||||
public static void GetLotInformation(Lot lot)
|
public static void GetLotInformation(Lot lot)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
//IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnectionProd"].ConnectionString);
|
|
||||||
StringBuilder qryLotInfo = new StringBuilder();
|
StringBuilder qryLotInfo = new StringBuilder();
|
||||||
qryLotInfo.Append("SELECT WP_STATUS , WP_LOT_NO, WP_PART_NUMBER, MP_PRODUCT_FAMILY, MP_DESCRIPTION, ");
|
qryLotInfo.Append("SELECT WP_STATUS , WP_LOT_NO, WP_PART_NUMBER, MP_PRODUCT_FAMILY, MP_DESCRIPTION, ");
|
||||||
qryLotInfo.Append("WP_CURRENT_QTY, WP_CURRENT_LOCATION, DieLotNumber, DiePartNo, DieCount, MP_QUALITY_CODE FROM SPNLot ");
|
qryLotInfo.Append("WP_CURRENT_QTY, WP_CURRENT_LOCATION, DieLotNumber, DiePartNo, DieCount, MP_QUALITY_CODE FROM SPNLot ");
|
||||||
@ -260,7 +259,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
public static IEnumerable<UserProfile> GetUserList()
|
public static IEnumerable<UserProfile> GetUserList()
|
||||||
{
|
{
|
||||||
|
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
sql.Append("SELECT FirstName + ' ' + LastName AS FullName, U.UserID AS UserId ");
|
sql.Append("SELECT FirstName + ' ' + LastName AS FullName, U.UserID AS UserId ");
|
||||||
@ -279,7 +278,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetApproverEmailListByDocument(int issueID, byte step, int documentType)
|
public static List<string> GetApproverEmailListByDocument(int issueID, byte step, int documentType)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@DocumentTypeID", documentType);
|
parameters.Add("@DocumentTypeID", documentType);
|
||||||
@ -305,7 +304,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
public static List<ApproversListViewModel> GetApproversListByDocument(int issueID, byte step, int documentType)
|
public static List<ApproversListViewModel> GetApproversListByDocument(int issueID, byte step, int documentType)
|
||||||
{
|
{
|
||||||
|
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@DocumentTypeID", documentType);
|
parameters.Add("@DocumentTypeID", documentType);
|
||||||
@ -317,7 +316,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
public static IEnumerable<ApprovalModel> GetApprovalsByDocument(int issueID, int documentType)
|
public static IEnumerable<ApprovalModel> GetApprovalsByDocument(int issueID, int documentType)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@DocumentTypeID", documentType);
|
parameters.Add("@DocumentTypeID", documentType);
|
||||||
@ -336,7 +335,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable<LoginModel> GetApprovedApproversListByDocument(int issueID, int currentStep, int documentType)
|
public static IEnumerable<LoginModel> GetApprovedApproversListByDocument(int issueID, int currentStep, int documentType)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
return db.Query<LoginModel>("GetApprovedApproversListByDocument", new { @DocumentTypeID = documentType, @IssueID = issueID, @Step = currentStep }, commandType: CommandType.StoredProcedure).ToList();
|
return db.Query<LoginModel>("GetApprovedApproversListByDocument", new { @DocumentTypeID = documentType, @IssueID = issueID, @Step = currentStep }, commandType: CommandType.StoredProcedure).ToList();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -351,7 +350,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<ApproversListViewModel> GetPendingApproversListByDocument(int issueID, byte step, int documentType)
|
public static List<ApproversListViewModel> GetPendingApproversListByDocument(int issueID, byte step, int documentType)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@DocumentTypeID", documentType);
|
parameters.Add("@DocumentTypeID", documentType);
|
||||||
parameters.Add("@IssueID", issueID);
|
parameters.Add("@IssueID", issueID);
|
||||||
@ -368,7 +367,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetEmergencyTECNApprovalNotifyList(int ecnNumber)
|
public static List<string> GetEmergencyTECNApprovalNotifyList(int ecnNumber)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@ECNNumber", ecnNumber);
|
parameters.Add("@ECNNumber", ecnNumber);
|
||||||
var approverList = db.Query<string>("ECNGetETECNApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
var approverList = db.Query<string>("ECNGetETECNApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||||
@ -382,7 +381,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetTECNCancelledApprovalNotifyList(int ecnNumber)
|
public static List<string> GetTECNCancelledApprovalNotifyList(int ecnNumber)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@ECNNumber", ecnNumber);
|
parameters.Add("@ECNNumber", ecnNumber);
|
||||||
var approverList = db.Query<string>("ECN_TECNCancelledApprovalNotifyList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
var approverList = db.Query<string>("ECN_TECNCancelledApprovalNotifyList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||||
@ -397,7 +396,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetFabGroupNotifyList(int workRequestID)
|
public static List<string> GetFabGroupNotifyList(int workRequestID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@WorkRequestID", workRequestID);
|
parameters.Add("@WorkRequestID", workRequestID);
|
||||||
var notifyList = db.Query<string>("LTFabGroupApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
var notifyList = db.Query<string>("LTFabGroupApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||||
@ -412,7 +411,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetWorkRequestRevisionNotifyList(int notificationType, int workRequestID, int userID)
|
public static List<string> GetWorkRequestRevisionNotifyList(int notificationType, int workRequestID, int userID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@NotificationType", notificationType);
|
parameters.Add("@NotificationType", notificationType);
|
||||||
parameters.Add("@UserID", userID);
|
parameters.Add("@UserID", userID);
|
||||||
@ -431,7 +430,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetWorkRequestApprovedNotifyList(int notificationType, int workRequestID, int userID)
|
public static List<string> GetWorkRequestApprovedNotifyList(int notificationType, int workRequestID, int userID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@NotificationType", notificationType);
|
parameters.Add("@NotificationType", notificationType);
|
||||||
parameters.Add("@UserID", userID);
|
parameters.Add("@UserID", userID);
|
||||||
@ -449,7 +448,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> GetLotTravelerCreationAndRevisionNotifyList(int ltLotID, int workRequestID, int userID)
|
public static List<string> GetLotTravelerCreationAndRevisionNotifyList(int ltLotID, int workRequestID, int userID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@LotID", ltLotID);
|
parameters.Add("@LotID", ltLotID);
|
||||||
parameters.Add("@UserID", userID);
|
parameters.Add("@UserID", userID);
|
||||||
@ -470,7 +469,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
public static int EnableOOOStatus(int oooUserID, int delegatedTo, DateTime startDate, DateTime endDate)
|
public static int EnableOOOStatus(int oooUserID, int delegatedTo, DateTime startDate, DateTime endDate)
|
||||||
{
|
{
|
||||||
int returnValue = 0;
|
int returnValue = 0;
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@OOOUserID", oooUserID);
|
parameters.Add("@OOOUserID", oooUserID);
|
||||||
@ -498,7 +497,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <param name="endDate"></param>
|
/// <param name="endDate"></param>
|
||||||
public static void ExpireOOOStatus(int oooUserID)
|
public static void ExpireOOOStatus(int oooUserID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@OOOUserID", oooUserID);
|
parameters.Add("@OOOUserID", oooUserID);
|
||||||
@ -512,7 +511,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<Department> GetDepartments()
|
public static List<Department> GetDepartments()
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var departments = db.Query<Department>("GetDepartments", null, commandType: CommandType.StoredProcedure).ToList();
|
var departments = db.Query<Department>("GetDepartments", null, commandType: CommandType.StoredProcedure).ToList();
|
||||||
return departments;
|
return departments;
|
||||||
|
|
||||||
@ -524,7 +523,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<AffectedModule> GetModules()
|
public static List<AffectedModule> GetModules()
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var modules = db.Query<AffectedModule>("GetModules", null, commandType: CommandType.StoredProcedure).ToList();
|
var modules = db.Query<AffectedModule>("GetModules", null, commandType: CommandType.StoredProcedure).ToList();
|
||||||
return modules;
|
return modules;
|
||||||
@ -537,7 +536,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <param name="lot"></param>
|
/// <param name="lot"></param>
|
||||||
public static void GetLTLotInformation(LTLot lot)
|
public static void GetLTLotInformation(LTLot lot)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
StringBuilder qryLotInfo = new StringBuilder();
|
StringBuilder qryLotInfo = new StringBuilder();
|
||||||
//qryLotInfo.Append("SELECT DISTINCT ");
|
//qryLotInfo.Append("SELECT DISTINCT ");
|
||||||
//qryLotInfo.Append("WP_LOT_NO, WP_CURRENT_QTY, WP.WP_PART_NUMBER, MP_DESCRIPTION, WP_PROCESS, WO_LOCATION, WO_OPER_NO, WP_STATUS ");
|
//qryLotInfo.Append("WP_LOT_NO, WP_CURRENT_QTY, WP.WP_PART_NUMBER, MP_DESCRIPTION, WP_PROCESS, WO_LOCATION, WO_OPER_NO, WP_STATUS ");
|
||||||
@ -591,7 +590,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
public static string GetEmail(int? userID)
|
public static string GetEmail(int? userID)
|
||||||
{
|
{
|
||||||
|
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@UserID", userID);
|
parameters.Add("@UserID", userID);
|
||||||
var email = db.Query<string>("GetEmail", parameters, commandType: CommandType.StoredProcedure).Single();
|
var email = db.Query<string>("GetEmail", parameters, commandType: CommandType.StoredProcedure).Single();
|
||||||
@ -606,7 +605,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> Get8DEmailListForClosureNotification(int issueID)
|
public static List<string> Get8DEmailListForClosureNotification(int issueID)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
|
|
||||||
@ -618,7 +617,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
public static CredentialsStorage GetCredentialsInfo(string serverName, string credentialType) // TODO - need to use an enum for the credentialType
|
public static CredentialsStorage GetCredentialsInfo(string serverName, string credentialType) // TODO - need to use an enum for the credentialType
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@ServerName", serverName);
|
parameters.Add("@ServerName", serverName);
|
||||||
parameters.Add("@CredentialType", credentialType);
|
parameters.Add("@CredentialType", credentialType);
|
||||||
@ -628,13 +627,13 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
|
|
||||||
public List<ApproveListModel> GetApprovalReminderList()
|
public List<ApproveListModel> GetApprovalReminderList()
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var approvals = db.Query<ApproveListModel>("GetApprovalForNotifcation", null, commandType: CommandType.StoredProcedure).ToList();
|
var approvals = db.Query<ApproveListModel>("GetApprovalForNotifcation", null, commandType: CommandType.StoredProcedure).ToList();
|
||||||
return approvals;
|
return approvals;
|
||||||
}
|
}
|
||||||
public void UpdateApprovalNotifyDate(int approvalId)
|
public void UpdateApprovalNotifyDate(int approvalId)
|
||||||
{
|
{
|
||||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
var parameters = new DynamicParameters();
|
var parameters = new DynamicParameters();
|
||||||
parameters.Add("@ApprovalId", approvalId);
|
parameters.Add("@ApprovalId", approvalId);
|
||||||
db.Query<CredentialsStorage>("UpdateApprovalLastNotifyDate", param: parameters, commandType: CommandType.StoredProcedure).Single();
|
db.Query<CredentialsStorage>("UpdateApprovalLastNotifyDate", param: parameters, commandType: CommandType.StoredProcedure).Single();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@ -14,7 +14,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class PartsRequestDMO
|
public class PartsRequestDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||||
|
|
||||||
@ -126,4 +126,4 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,12 +8,13 @@ using System.Web;
|
|||||||
using Dapper;
|
using Dapper;
|
||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
public class TrainingDMO
|
public class TrainingDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
private static FabApprovalTrainingEntities FabApprovalDB = new FabApprovalTrainingEntities();
|
private static FabApprovalTrainingEntities FabApprovalDB = new FabApprovalTrainingEntities();
|
||||||
|
|
||||||
public int Create(int issueId)
|
public int Create(int issueId)
|
||||||
@ -153,6 +154,10 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||||
var TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID select a;
|
var TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID select a;
|
||||||
|
|
||||||
|
RefreshTrainingData(TrainingID, TrainingData);
|
||||||
|
|
||||||
|
TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID select a;
|
||||||
|
|
||||||
return TrainingData.ToList();
|
return TrainingData.ToList();
|
||||||
}
|
}
|
||||||
public List<TrainingAssignment> GetTrainingAssignments(int TrainingID)
|
public List<TrainingAssignment> GetTrainingAssignments(int TrainingID)
|
||||||
@ -160,6 +165,10 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||||
var TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID && a.Deleted != true select a;
|
var TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID && a.Deleted != true select a;
|
||||||
|
|
||||||
|
RefreshTrainingData(TrainingID, TrainingData);
|
||||||
|
|
||||||
|
TrainingData = from a in db.TrainingAssignments where a.TrainingID == TrainingID select a;
|
||||||
|
|
||||||
return TrainingData.ToList();
|
return TrainingData.ToList();
|
||||||
}
|
}
|
||||||
public List<TrainingAssignment> GetTrainingAssignmentsByUser(int TrainingID, int userID)
|
public List<TrainingAssignment> GetTrainingAssignmentsByUser(int TrainingID, int userID)
|
||||||
@ -372,8 +381,11 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||||
Training training = (from a in db.Trainings where a.TrainingID == trainingId select a).FirstOrDefault();
|
Training training = (from a in db.Trainings where a.TrainingID == trainingId select a).FirstOrDefault();
|
||||||
|
|
||||||
training.Deleted = true;
|
if (training != null)
|
||||||
training.DeletedDate = DateTime.Now;
|
{
|
||||||
|
training.Deleted = true;
|
||||||
|
training.DeletedDate = DateTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
List<TrainingAssignment> trainingAssignments = (from a in db.TrainingAssignments where a.TrainingID == trainingId select a).ToList();
|
List<TrainingAssignment> trainingAssignments = (from a in db.TrainingAssignments where a.TrainingID == trainingId select a).ToList();
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
@ -448,5 +460,20 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
return openAssignments;
|
return openAssignments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void RefreshTrainingData(int TrainingID, IQueryable<TrainingAssignment> TrainingData)
|
||||||
|
{
|
||||||
|
bool assignmentIsIncomplete = false;
|
||||||
|
UserAccountDMO userAccountDMO = new UserAccountDMO();
|
||||||
|
foreach (TrainingAssignment assignment in TrainingData)
|
||||||
|
{
|
||||||
|
LoginModel userModel = userAccountDMO.GetUserByID(assignment.UserID);
|
||||||
|
if (!userModel.IsActive) UpdateAssignmentStatus(assignment.ID);
|
||||||
|
if (assignment.Deleted != true && (assignment.DateCompleted is null || assignment.DateCompleted > DateTime.Now))
|
||||||
|
assignmentIsIncomplete = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!assignmentIsIncomplete)
|
||||||
|
UpdateTrainingStatus(TrainingID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,13 @@ using System.Web;
|
|||||||
using Dapper;
|
using Dapper;
|
||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.DMO
|
namespace Fab2ApprovalSystem.DMO
|
||||||
{
|
{
|
||||||
public class UserAccountDMO
|
public class UserAccountDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
|
|
||||||
//public List<LoginModel> GetUser(string loginID)
|
//public List<LoginModel> GetUser(string loginID)
|
||||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
|||||||
{
|
{
|
||||||
public class WorkflowDMO
|
public class WorkflowDMO
|
||||||
{
|
{
|
||||||
private IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
private IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||||
|
|
||||||
//delegate TResult MathFunction<T1, T2, TResult>(T1 var1, T2 var2);
|
//delegate TResult MathFunction<T1, T2, TResult>(T1 var1, T2 var2);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Title: {1}
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
https://messa016ec.ec.local/{0}/Edit?IssueID={2}
|
https://messa016ec.infineon.com/{0}/Edit?IssueID={2}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Please log on to the Approval website to view the assignment and act accordingly
|
Please log on to the Approval website to view the assignment and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={4}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={4}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Corrective Action# {0} is ready for your approval. Please log on to the Approval website and review this item for <strong>FINAL Approval or Rejection</strong>.
|
Corrective Action# {0} is ready for your approval. Please log on to the Approval website and review this item for <strong>FINAL Approval or Rejection</strong>.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -7,7 +7,7 @@ Corrective Action# {0} has been assigned to you.
|
|||||||
Please log on to the Approval website to view the assignment and act accordingly
|
Please log on to the Approval website to view the assignment and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={3}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={3}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
D3 Due Date: {4}
|
D3 Due Date: {4}
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -6,7 +6,7 @@ Corrective Action {0} has been completed
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={2}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={2}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
Thank you for your effort. Follow up date has been set for {3}
|
Thank you for your effort. Follow up date has been set for {3}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
@ -8,7 +8,7 @@ Action needs to be completed by {1}
|
|||||||
Please log on to the Approval website to view the assignment and act accordingly
|
Please log on to the Approval website to view the assignment and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/Audit/Edit?issueID={4}
|
https://messa016ec.infineon.com/Audit/Edit?issueID={4}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Corrective Action# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
Corrective Action# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -9,7 +9,7 @@ Reason For Reject:
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Please log on to the Approval website and review this item for re-submission.
|
Please log on to the Approval website and review this item for re-submission.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -7,7 +7,7 @@ Corrective Action# {0} section {3} has been approved.
|
|||||||
Please log on to the Approval website to view the section and act accordingly
|
Please log on to the Approval website to view the section and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -7,7 +7,7 @@ Corrective Action# {0} section {3} has been assigned to you for approval.
|
|||||||
Please log on to the Approval website to view the assignment and act accordingly
|
Please log on to the Approval website to view the assignment and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
<font size="2" face="verdana">
|
<font size="2" face="verdana">
|
||||||
*****Please DO NOT reply to this email*****
|
*****Please DO NOT reply to this email*****
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
Corrective Action# {0} section {3} has been rejected.
|
Corrective Action# {0} section {3} has been rejected by {4}.
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
|
Rejection reason: {5}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
Please log on to the Approval website to view the section and act accordingly
|
Please log on to the Approval website to view the section and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
{2}/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -7,7 +7,7 @@ Corrective Action# {1} section D5/D6/D7(Corrective/Preventitive Actions) has bee
|
|||||||
Please log on to the Approval website to view the section and act accordingly
|
Please log on to the Approval website to view the section and act accordingly
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={0}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={0}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Corrective Action# {0} section {4} is {3}. Please log on to the Approval website and review this item for <strong>completion</strong>.
|
Corrective Action# {0} section {4} is {3}. Please log on to the Approval website and review this item for <strong>completion</strong>.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
D3 Due Date: {5}
|
D3 Due Date: {5}
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} Delegated to you for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
{3}# {0} Delegated to you for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/{3}/Edit?issueID={1}
|
https://messa016ec.infineon.com/{3}/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Rejection Comment: {5}
|
Rejection Comment: {5}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
ECN# {1} was Approved.
|
ECN# {1} was Approved.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} Re-Assigned to you for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
{3}# {0} Re-Assigned to you for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Comments: {4}
|
Comments: {4}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Rejection Comment: {5}
|
Rejection Comment: {5}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
A new training assignment has been assigned to you for ECN# {1}
|
A new training assignment has been assigned to you for ECN# {1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
Please click here to view: <a href="https://messa016ec.ec.local/Training/ViewMyTrainingAssignment?assignmentID={0}&ECNNumber={1}">Click Here.</a>
|
Please click here to view: <a href="https://messa016ec.infineon.com/Training/ViewMyTrainingAssignment?assignmentID={0}&ECNNumber={1}">Click Here.</a>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{3}# {0} has been Approved. The expiration date is {4}
|
{3}# {0} has been Approved. The expiration date is {4}
|
||||||
Please review the approved ETECN form in the attachment.
|
Please review the approved ETECN form in the attachment.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Lot Disposition# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
Lot Disposition# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Lot Disposition# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
Lot Disposition# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Lot Disposition# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
Lot Disposition# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Lot Traveler for Lot# {3} , Request# {0} has a been created. Please login in to the Fab Approval System to review the change.
|
Lot Traveler for Lot# {3} , Request# {0} has a been created. Please login in to the Fab Approval System to review the change.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact the site administrator.
|
If you have any questions or trouble logging on please contact the site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Lot Traveler for Lot# {3} , Request# {0} has a new Revision. Please login in to the Fab Approval System to review the change.
|
Lot Traveler for Lot# {3} , Request# {0} has a new Revision. Please login in to the Fab Approval System to review the change.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact the site administrator.
|
If you have any questions or trouble logging on please contact the site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
MRB# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval.
|
MRB# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/MRB/Edit?issueID={1}
|
https://messa016ec.infineon.com/MRB/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} has been completed.
|
{3}# {0} has been completed.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
{3}# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} was rejected by {4}. Please log on to the Approval website and review this item for re-submission.
|
{3}# {0} was rejected by {4}. Please log on to the Approval website and review this item for re-submission.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{3}# {0} has been automatically Cancelled, because it has been converted to ECN# {5}. The cancellation date is {4}
|
{3}# {0} has been automatically Cancelled, because it has been converted to ECN# {5}. The cancellation date is {4}
|
||||||
Please review the cancelled TECN and the new ECN in the attachments.
|
Please review the cancelled TECN and the new ECN in the attachments.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} is ready for your Cancellation. Please log on to the Approval website and review this item for Approval of Cancellation.
|
{3}# {0} is ready for your Cancellation. Please log on to the Approval website and review this item for Approval of Cancellation.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<font size="2" face="verdana">
|
<font size="2" face="verdana">
|
||||||
*****Please DO NOT reply to this email*****
|
*****Please DO NOT reply to this email*****
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} has been Cancelled. The cancellation date is {4}
|
{3}# {0} has been Cancelled. Please remove posted TECN from point of use. The cancellation date is {4}
|
||||||
Please review the cancelled TECN form in the attachment.
|
Please review the cancelled TECN form in the attachment.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{3}# {0} is ready for your Expiration Approval. Please log on to the Approval website and review this item for Approval of Expiration
|
{3}# {0} is ready for your Expiration Approval. Please log on to the Approval website and review this item for Approval of Expiration
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{3}# {0} has Expired. The expiration date is {4}
|
{3}# {0} has Expired. The expiration date is {4}
|
||||||
Please review the expired TECN form in the attachment.
|
Please review the expired TECN form in the attachment.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
{4}# {0} Extension was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
{4}# {0} Extension was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Work Request# {0} has been Approved.
|
Work Request# {0} has been Approved.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Work Request# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
Work Request# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Work Request# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
Work Request# {0} Re-Assigned to you for you approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Work Request# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
Work Request# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact a site administrator.
|
If you have any questions or trouble logging on please contact a site administrator.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<br/><br/>
|
<br/><br/>
|
||||||
Work Request# {0} has a new Revision. Please login in to the Fab Approval System to review the change.
|
Work Request# {0} has a new Revision. Please login in to the Fab Approval System to review the change.
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
If you have any questions or trouble logging on please contact the site administrator.
|
If you have any questions or trouble logging on please contact the site administrator.
|
||||||
|
@ -20,10 +20,14 @@
|
|||||||
<IISExpressAnonymousAuthentication />
|
<IISExpressAnonymousAuthentication />
|
||||||
<IISExpressWindowsAuthentication />
|
<IISExpressWindowsAuthentication />
|
||||||
<IISExpressUseClassicPipelineMode />
|
<IISExpressUseClassicPipelineMode />
|
||||||
<SccProjectName>SAK</SccProjectName>
|
<SccProjectName>
|
||||||
<SccLocalPath>SAK</SccLocalPath>
|
</SccProjectName>
|
||||||
<SccAuxPath>SAK</SccAuxPath>
|
<SccLocalPath>
|
||||||
<SccProvider>SAK</SccProvider>
|
</SccLocalPath>
|
||||||
|
<SccAuxPath>
|
||||||
|
</SccAuxPath>
|
||||||
|
<SccProvider>
|
||||||
|
</SccProvider>
|
||||||
<UseGlobalApplicationHostFile />
|
<UseGlobalApplicationHostFile />
|
||||||
<Use64BitIISExpress>true</Use64BitIISExpress>
|
<Use64BitIISExpress>true</Use64BitIISExpress>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
@ -25,14 +25,12 @@ namespace Fab2ApprovalSystem
|
|||||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||||
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||||
|
|
||||||
//string DevAttachmentUrl = ConfigurationManager.AppSettings["DevAttachmentURl"].ToString();
|
string hostName = System.Net.Dns.GetHostEntry("").HostName;
|
||||||
//string ProdAttachmentUrl = ConfigurationManager.AppSettings["ProdAttachmentURL"].ToString();
|
GlobalVars.IS_INFINEON_DOMAIN = hostName.ToLower().Contains("infineon");
|
||||||
string connectionstring = ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString.ToString();
|
|
||||||
|
|
||||||
GlobalVars.hostURL = HttpRuntime.AppDomainAppVirtualPath;
|
string DevWebSiteUrl = ConfigurationManager.AppSettings["DevWebSiteURL"].ToString();
|
||||||
|
string ProdWebSiteUrlEC = ConfigurationManager.AppSettings["ProdWebSiteURLEC"].ToString();
|
||||||
string DevWebSiteUrl = ConfigurationManager.AppSettings["DevWebSiteURL"].ToString();
|
string ProdWebSiteUrlStealth = ConfigurationManager.AppSettings["ProdWebSiteURLStealth"].ToString();
|
||||||
string ProdWebSiteUrl = ConfigurationManager.AppSettings["ProdWebSiteURL"].ToString();
|
|
||||||
|
|
||||||
GlobalVars.SENDER_EMAIL = "FabApprovalSystem@Infineon.com"; // put in the Config File
|
GlobalVars.SENDER_EMAIL = "FabApprovalSystem@Infineon.com"; // put in the Config File
|
||||||
if (ConfigurationManager.AppSettings["Notification Sender"] != null)
|
if (ConfigurationManager.AppSettings["Notification Sender"] != null)
|
||||||
@ -41,15 +39,24 @@ namespace Fab2ApprovalSystem
|
|||||||
GlobalVars.NDriveURL = ConfigurationManager.AppSettings["NDrive"].ToString();
|
GlobalVars.NDriveURL = ConfigurationManager.AppSettings["NDrive"].ToString();
|
||||||
GlobalVars.WSR_URL = ConfigurationManager.AppSettings["WSR_URL"].ToString();
|
GlobalVars.WSR_URL = ConfigurationManager.AppSettings["WSR_URL"].ToString();
|
||||||
GlobalVars.CA_BlankFormsLocation = ConfigurationManager.AppSettings["CA_BlankFormsLocation"].ToString();
|
GlobalVars.CA_BlankFormsLocation = ConfigurationManager.AppSettings["CA_BlankFormsLocation"].ToString();
|
||||||
GlobalVars.DBConnection = connectionstring.ToUpper().Contains("TEST") ? "TEST" : connectionstring.ToUpper().Contains("QUALITY") ? "QUALITY" : "PROD";
|
|
||||||
|
|
||||||
//GlobalVars.AttachmentUrl = connectionstring.ToUpper().Contains("TEST") ? @"http://" + DevAttachmentUrl + "/" : @"http://" + ProdAttachmentUrl + "/"; ;
|
//GlobalVars.AttachmentUrl = connectionstring.ToUpper().Contains("TEST") ? @"http://" + DevAttachmentUrl + "/" : @"http://" + ProdAttachmentUrl + "/"; ;
|
||||||
|
|
||||||
GlobalVars.hostURL = connectionstring.ToUpper().Contains("TEST") ? @"https://" + DevWebSiteUrl : @"https://" + ProdWebSiteUrl ;
|
|
||||||
|
|
||||||
#if (!DEBUG)
|
#if (!DEBUG)
|
||||||
OOOTrainingReportJobSchedule.Start();
|
OOOTrainingReportJobSchedule.Start();
|
||||||
|
|
||||||
|
if (GlobalVars.IS_INFINEON_DOMAIN) {
|
||||||
|
GlobalVars.DB_CONNECTION_STRING = ConfigurationManager.ConnectionStrings["FabApprovalConnectionStealth"].ConnectionString.ToString();
|
||||||
|
GlobalVars.hostURL = @"https://" + ProdWebSiteUrlStealth;
|
||||||
|
} else {
|
||||||
|
GlobalVars.DB_CONNECTION_STRING = ConfigurationManager.ConnectionStrings["FabApprovalConnectionEC"].ConnectionString.ToString();
|
||||||
|
GlobalVars.hostURL = @"https://" + ProdWebSiteUrlEC;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
GlobalVars.DB_CONNECTION_STRING = ConfigurationManager.ConnectionStrings["FabApprovalConnectionDev"].ConnectionString.ToString();
|
||||||
|
GlobalVars.hostURL = @"https://" + DevWebSiteUrl;
|
||||||
#endif
|
#endif
|
||||||
|
GlobalVars.DBConnection = GlobalVars.DB_CONNECTION_STRING.ToUpper().Contains("TEST") ? "TEST" : GlobalVars.DB_CONNECTION_STRING.ToUpper().Contains("QUALITY") ? "QUALITY" : "PROD";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
|
||||||
using Fab2ApprovalSystem.Controllers;
|
|
||||||
using Fab2ApprovalSystem.DMO;
|
using Fab2ApprovalSystem.DMO;
|
||||||
using Fab2ApprovalSystem.Models;
|
using Fab2ApprovalSystem.Models;
|
||||||
using Fab2ApprovalSystem.Utilities;
|
using Fab2ApprovalSystem.Utilities;
|
||||||
|
|
||||||
using Quartz;
|
using Quartz;
|
||||||
|
|
||||||
namespace Fab2ApprovalSystem.Workers
|
namespace Fab2ApprovalSystem.Workers
|
||||||
|
@ -90,7 +90,7 @@ namespace Fab2ApprovalSystem.Misc
|
|||||||
|
|
||||||
|
|
||||||
//create a Smtp Mail which will automatically get the smtp server details from web.config mailSettings section
|
//create a Smtp Mail which will automatically get the smtp server details from web.config mailSettings section
|
||||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-external.infineon.com");
|
SmtpClient SmtpMail = new SmtpClient("mailrelay-internal.infineon.com");
|
||||||
|
|
||||||
// sending the message.
|
// sending the message.
|
||||||
try
|
try
|
||||||
@ -733,4 +733,4 @@ namespace Fab2ApprovalSystem.Misc
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,12 +92,7 @@ namespace Fab2ApprovalSystem.Misc
|
|||||||
public static string GetAttachmentFolder()
|
public static string GetAttachmentFolder()
|
||||||
{
|
{
|
||||||
ConfigurationManager.RefreshSection("appSettings");
|
ConfigurationManager.RefreshSection("appSettings");
|
||||||
if (GlobalVars.DBConnection.ToUpper() == "TEST" || GlobalVars.DBConnection.ToUpper() == "QUALITY")
|
return ConfigurationManager.AppSettings["AttachmentFolder"];
|
||||||
{
|
|
||||||
return ConfigurationManager.AppSettings["AttachmentFolderTest"];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return ConfigurationManager.AppSettings["AttachmentFolder"];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,145 +126,6 @@ namespace Fab2ApprovalSystem.Misc
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="userID"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static bool CheckITARAccess(string userID)
|
|
||||||
{
|
|
||||||
MembershipProvider domainProvider = Membership.Providers["ADMembershipProvider"];
|
|
||||||
MembershipUser mu = domainProvider.GetUser(userID, false);
|
|
||||||
if (mu == null)
|
|
||||||
return false;
|
|
||||||
else
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="userID"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static bool NA_HasITARAccess(string userID, string pwd)
|
|
||||||
{
|
|
||||||
string ECDomain = ConfigurationManager.AppSettings["ECDomain"];
|
|
||||||
string ECADGroup = ConfigurationManager.AppSettings["ECADGroup"];
|
|
||||||
string naContainer = ConfigurationManager.AppSettings["NAContainer"];
|
|
||||||
string naDomain = ConfigurationManager.AppSettings["NADomain"];
|
|
||||||
|
|
||||||
|
|
||||||
//WriteEvent("NA - Before PrincipalContext for EC for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
PrincipalContext contextGroup = new PrincipalContext(ContextType.Domain, ECDomain);
|
|
||||||
//WriteEvent("NA - After PrincipalContext for EC for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("NA - Before PrincipalContext for NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
PrincipalContext contextUser = new PrincipalContext(ContextType.Domain,
|
|
||||||
naDomain,
|
|
||||||
naContainer,
|
|
||||||
ContextOptions.Negotiate, userID, pwd);
|
|
||||||
//WriteEvent("NA - After PrincipalContext for NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("NA - Before check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
GroupPrincipal gp = GroupPrincipal.FindByIdentity(contextGroup, ECADGroup);
|
|
||||||
//WriteEvent("NA - After check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("NA - Before check user in NA group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
UserPrincipal up = UserPrincipal.FindByIdentity(contextUser, userID);
|
|
||||||
//WriteEvent("NA - After check user in NA group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
if (null == up)
|
|
||||||
{
|
|
||||||
//WriteEvent("NA - User not in NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//WriteEvent("NA - Member of EC group is " + up.IsMemberOf(gp).ToString() + " for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
return up.IsMemberOf(gp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//public static bool NA_GetUsers()
|
|
||||||
//{
|
|
||||||
// //string ECDomain = ConfigurationManager.AppSettings["ECDomain"];
|
|
||||||
// //string ECADGroup = ConfigurationManager.AppSettings["ECADGroup"];
|
|
||||||
// string naContainer = ConfigurationManager.AppSettings["NAContainer"];
|
|
||||||
// string naDomain = ConfigurationManager.AppSettings["NADomain"];
|
|
||||||
|
|
||||||
|
|
||||||
// //WriteEvent("NA - Before PrincipalContext for EC for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// //PrincipalContext contextGroup = new PrincipalContext(ContextType.Domain, ECDomain);
|
|
||||||
// //WriteEvent("NA - After PrincipalContext for EC for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
// //WriteEvent("NA - Before PrincipalContext for NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// PrincipalContext contextUser = new PrincipalContext(ContextType.Domain,
|
|
||||||
// naDomain,
|
|
||||||
// naContainer,
|
|
||||||
// ContextOptions.Negotiate, userID, pwd);
|
|
||||||
// //WriteEvent("NA - After PrincipalContext for NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
// //WriteEvent("NA - Before check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// GroupPrincipal gp = GroupPrincipal.FindByIdentity(contextGroup, ECADGroup);
|
|
||||||
// //WriteEvent("NA - After check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
// //WriteEvent("NA - Before check user in NA group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// UserPrincipal up = UserPrincipal.FindByIdentity(contextUser, userID);
|
|
||||||
// //WriteEvent("NA - After check user in NA group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
// if (null == up)
|
|
||||||
// {
|
|
||||||
// //WriteEvent("NA - User not in NA for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// //WriteEvent("NA - Member of EC group is " + up.IsMemberOf(gp).ToString() + " for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
// return up.IsMemberOf(gp);
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
public static bool IFX_HasITARAccess(string userID, string pwd)
|
|
||||||
{
|
|
||||||
string ECDomain = ConfigurationManager.AppSettings["ECDomain"];
|
|
||||||
string ECADGroup = ConfigurationManager.AppSettings["ECADGroup"];
|
|
||||||
|
|
||||||
|
|
||||||
string ifxcontainer = ConfigurationManager.AppSettings["IFXContainer"];
|
|
||||||
string ifxdomain = ConfigurationManager.AppSettings["IFXDomain"];
|
|
||||||
|
|
||||||
//WriteEvent("IFX - Before PrincipalContext for EC for user " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
PrincipalContext contextGroup = new PrincipalContext(ContextType.Domain, ECDomain);
|
|
||||||
//WriteEvent("IFX - After PrincipalContext for EC for user " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("IFX - Before PrincipalContext for IFX for user " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
PrincipalContext contextUser = new PrincipalContext(ContextType.Domain,
|
|
||||||
ifxdomain,
|
|
||||||
ifxcontainer,
|
|
||||||
ContextOptions.Negotiate, userID, pwd);
|
|
||||||
|
|
||||||
//WriteEvent("IFX - After PrincipalContext for IFX for user " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("IFX - Before check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
GroupPrincipal gp = GroupPrincipal.FindByIdentity(contextGroup, ECADGroup);
|
|
||||||
//WriteEvent("IFX - After check user in EC group for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
//WriteEvent("IFX - Before check user in IFX for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
UserPrincipal up = UserPrincipal.FindByIdentity(contextUser, userID);
|
|
||||||
//WriteEvent("IFX - After check user in IFX for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
|
|
||||||
if (null == up)
|
|
||||||
{
|
|
||||||
//WriteEvent("IFX - not a member of IFX for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//WriteEvent("IFX - Member of EC group is " + up.IsMemberOf(gp).ToString() + " for " + userID, System.Diagnostics.EventLogEntryType.Information);
|
|
||||||
return up.IsMemberOf(gp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -20,8 +20,10 @@ namespace Fab2ApprovalSystem.Misc
|
|||||||
public const string CAN_CREATE_PARTS_REQUEST = "CanCreatePartsRequest";
|
public const string CAN_CREATE_PARTS_REQUEST = "CanCreatePartsRequest";
|
||||||
|
|
||||||
public static bool USER_ISADMIN = false;
|
public static bool USER_ISADMIN = false;
|
||||||
|
public static bool IS_INFINEON_DOMAIN = false;
|
||||||
public static string hostURL = "";
|
public static string hostURL = "";
|
||||||
public static string DBConnection = "TEST";
|
public static string DBConnection = "TEST";
|
||||||
|
public static string DB_CONNECTION_STRING = "";
|
||||||
|
|
||||||
public static string AttachmentUrl = "";
|
public static string AttachmentUrl = "";
|
||||||
public static string NDriveURL = "";
|
public static string NDriveURL = "";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated from a template.
|
// This code was generated from a template.
|
||||||
//
|
//
|
||||||
@ -12,9 +12,16 @@ namespace Fab2ApprovalSystem.Models
|
|||||||
using System;
|
using System;
|
||||||
using System.Data.Entity;
|
using System.Data.Entity;
|
||||||
using System.Data.Entity.Infrastructure;
|
using System.Data.Entity.Infrastructure;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
public partial class FabApprovalSystemEntitiesAll : DbContext
|
public partial class FabApprovalSystemEntitiesAll : DbContext
|
||||||
{
|
{
|
||||||
|
#if (DEBUG)
|
||||||
|
private static string ENTITY_NAME = "FabApprovalSystemEntitiesAllDev";
|
||||||
|
#else
|
||||||
|
private static string ENTITY_NAME = GlobalVars.IS_INFINEON_DOMAIN ? "FabApprovalSystemEntitiesAllInfineon" : "FabApprovalSystemEntitiesAllEC";
|
||||||
|
#endif
|
||||||
|
|
||||||
public FabApprovalSystemEntitiesAll()
|
public FabApprovalSystemEntitiesAll()
|
||||||
: base("name=FabApprovalSystemEntitiesAll")
|
: base("name=FabApprovalSystemEntitiesAll")
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated from a template.
|
// This code was generated from a template.
|
||||||
//
|
//
|
||||||
@ -12,11 +12,18 @@ namespace Fab2ApprovalSystem.Models
|
|||||||
using System;
|
using System;
|
||||||
using System.Data.Entity;
|
using System.Data.Entity;
|
||||||
using System.Data.Entity.Infrastructure;
|
using System.Data.Entity.Infrastructure;
|
||||||
|
using Fab2ApprovalSystem.Misc;
|
||||||
|
|
||||||
public partial class FabApprovalTrainingEntities : DbContext
|
public partial class FabApprovalTrainingEntities : DbContext
|
||||||
{
|
{
|
||||||
|
#if (DEBUG)
|
||||||
|
private static string ENTITY_NAME = "FabApprovalTrainingEntitiesDev";
|
||||||
|
#else
|
||||||
|
private static string ENTITY_NAME = GlobalVars.IS_INFINEON_DOMAIN ? "FabApprovalTrainingEntitiesStealth" : "FabApprovalTrainingEntitiesEC";
|
||||||
|
#endif
|
||||||
|
|
||||||
public FabApprovalTrainingEntities()
|
public FabApprovalTrainingEntities()
|
||||||
: base("name=FabApprovalTrainingEntities")
|
: base("name=" + ENTITY_NAME)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace Fab2ApprovalSystem.Utilities
|
|||||||
msg.Subject = email_title;
|
msg.Subject = email_title;
|
||||||
msg.Body = email_body;
|
msg.Body = email_body;
|
||||||
|
|
||||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-external.infineon.com");
|
SmtpClient SmtpMail = new SmtpClient("mailrelay-internal.infineon.com");
|
||||||
|
|
||||||
SmtpMail.Send(msg);
|
SmtpMail.Send(msg);
|
||||||
|
|
||||||
|
@ -3126,7 +3126,7 @@
|
|||||||
$('#D5Completed').prop('checked', false);
|
$('#D5Completed').prop('checked', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TriggerSectionApproval('D5D6D7')
|
TriggerSectionApproval('D5D6D7');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#D5Completed').prop('checked', false);
|
$('#D5Completed').prop('checked', false);
|
||||||
@ -3453,6 +3453,47 @@
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$("#CASubmitted").on('click', function () {
|
||||||
|
var submittedValue = $("#CASubmitted").val();
|
||||||
|
if (submittedValue) {
|
||||||
|
//If checkbox is now selected as true
|
||||||
|
caAssignee = $("#D1AssigneeList").val();
|
||||||
|
caQa = $("#D1QAList").val();
|
||||||
|
title = $("#txtCATitle").val();
|
||||||
|
caSource = $("#CASourceList").val();
|
||||||
|
caDueDate = $("#txtD8DueDate").val();
|
||||||
|
caRequestor = $("#RequestorList").val();
|
||||||
|
var errorMessage = '';
|
||||||
|
if (caAssignee == '') {
|
||||||
|
errorMessage += 'CA Assignee is missing! \n'
|
||||||
|
}
|
||||||
|
if (caQa == '') {
|
||||||
|
errorMessage += 'CA QA is missing! \n'
|
||||||
|
}
|
||||||
|
if (title == '') {
|
||||||
|
errorMessage += 'CA Title is missing! \n'
|
||||||
|
}
|
||||||
|
if (caSource == '') {
|
||||||
|
errorMessage += 'CA Source is missing! \n'
|
||||||
|
}
|
||||||
|
if (caDueDate == '') {
|
||||||
|
errorMessage += 'CA D8 Due Date is missing! \n'
|
||||||
|
}
|
||||||
|
if (caRequestor == '') {
|
||||||
|
errorMessage += 'CA Requestor is missing! \n'
|
||||||
|
}
|
||||||
|
|
||||||
|
if (errorMessage != '') {
|
||||||
|
//Uncheck CA Ready Checkbox
|
||||||
|
//Display reason what's missing'
|
||||||
|
$("#CASubmitted").prop('checked', false);
|
||||||
|
alert('Error! Not able to select CA Ready!\n The following fields must be completed:\n ' + errorMessage);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
$("#SaveCorrectiveAction").on('click', function (e) {
|
$("#SaveCorrectiveAction").on('click', function (e) {
|
||||||
$('#cover-spin').show(0);
|
$('#cover-spin').show(0);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -209,6 +209,12 @@
|
|||||||
<div class="col-sm-6 col-sm-6">
|
<div class="col-sm-6 col-sm-6">
|
||||||
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color: red;">
|
||||||
|
*(DO NOT USE Rev I, O, Q, S, X, and Z)
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color: red;">
|
||||||
|
Revision Y is followed by AA. YY is followed by AAA
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-4">Approvers:</label>
|
<label class="control-label col-sm-4">Approvers:</label>
|
||||||
@ -220,6 +226,9 @@
|
|||||||
.HtmlAttributes(new { disabled = "disabled" })
|
.HtmlAttributes(new { disabled = "disabled" })
|
||||||
)
|
)
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color:red;">
|
||||||
|
ECN: Qualtiy and Dept. Specific<br />MRB: Quality, Production, Engineering, OPC<br />PCRB: Quality, Production, Engineering, Dept. Specific (scope of change)
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-4">Affected Areas:</label>
|
<label class="control-label col-sm-4">Affected Areas:</label>
|
||||||
|
@ -171,7 +171,7 @@
|
|||||||
)
|
)
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 col-sm-offset-4" style="color:red;">
|
<div class="col-sm-6 col-sm-offset-4" style="color:red;">
|
||||||
Add minimum of Quality, Si Production, and Dept Specfic
|
ECN: Qualtiy and Dept. Specific<br />MRB: Quality, Production, Engineering, OPC<br />PCRB: Quality, Production, Engineering, Dept. Specific (scope of change)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -241,6 +241,12 @@
|
|||||||
<div class="col-sm-6 col-sm-6">
|
<div class="col-sm-6 col-sm-6">
|
||||||
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color: red;">
|
||||||
|
*(DO NOT USE Rev I, O, Q, S, X, and Z)
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color: red;">
|
||||||
|
Revision Y is followed by AA. YY is followed by AAA
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-4">Approvers:</label>
|
<label class="control-label col-sm-4">Approvers:</label>
|
||||||
@ -252,7 +258,9 @@
|
|||||||
.HtmlAttributes(new { disabled = "disabled" })
|
.HtmlAttributes(new { disabled = "disabled" })
|
||||||
)
|
)
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-6 col-sm-offset-4" style="color:red;">
|
||||||
|
ECN: Qualtiy and Dept. Specific<br />MRB: Quality, Production, Engineering, OPC<br />PCRB: Quality, Production, Engineering, Dept. Specific (scope of change)
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label col-sm-4">Affected Areas:</label>
|
<label class="control-label col-sm-4">Affected Areas:</label>
|
||||||
|
@ -81,10 +81,10 @@
|
|||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Create New<b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Create New<b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu" style="font-size: 11px">
|
<ul class="dropdown-menu" style="font-size: 11px">
|
||||||
@*<li><a href=@Url.Action("Create", "LotDisposition")>Lot Dispostion</a></li>*@
|
@*<li><a href=@Url.Action("Create", "LotDisposition")>Lot Dispostion</a></li>*@
|
||||||
<li><a href=@Url.Action("Create", "MRB")>MRB</a></li>
|
@*<li><a href=@Url.Action("Create", "MRB")>Create MRB</a></li>*@
|
||||||
<li><a href=@Url.Action("Create", "ECN")>ECN/TECN</a></li>
|
<li><a href=@Url.Action("Create", "ECN")>Create ECN/TECN</a></li>
|
||||||
@*<li><a href=@Url.Action("CreateWorkRequest", "LotTraveler")>Create Special Work Request</a></li>*@
|
@*<li><a href=@Url.Action("CreateWorkRequest", "LotTraveler")>Create Special Work Request</a></li>*@
|
||||||
<li><a href=@Url.Action("Create", "ChangeControl")>Create PCR</a></li>
|
@*<li><a href=@Url.Action("Create", "ChangeControl")>Create PCR</a></li>*@
|
||||||
<li><a href=@Url.Action("Create", "Audit")>Create Audit</a></li>
|
<li><a href=@Url.Action("Create", "Audit")>Create Audit</a></li>
|
||||||
<li><a href=@Url.Action("Create", "CorrectiveAction")>Create Corrective Action</a></li>
|
<li><a href=@Url.Action("Create", "CorrectiveAction")>Create Corrective Action</a></li>
|
||||||
@*@if (Convert.ToBoolean(Session[GlobalVars.CAN_CREATE_PARTS_REQUEST]))
|
@*@if (Convert.ToBoolean(Session[GlobalVars.CAN_CREATE_PARTS_REQUEST]))
|
||||||
@ -126,8 +126,8 @@
|
|||||||
menu.Add().Text("Training Reports").Action("TrainingReports", "Training");
|
menu.Add().Text("Training Reports").Action("TrainingReports", "Training");
|
||||||
menu.Add().Text("All Documents").Action("AllDocuments", "Home");
|
menu.Add().Text("All Documents").Action("AllDocuments", "Home");
|
||||||
//menu.Add().Text("Special Work Requests").Action("SpecialWorkRequestList", "Home");
|
//menu.Add().Text("Special Work Requests").Action("SpecialWorkRequestList", "Home");
|
||||||
menu.Add().Text("PCRB").Action("ChangeControlList", "Home");
|
//menu.Add().Text("PCRB").Action("ChangeControlList", "Home");
|
||||||
menu.Add().Text("MRB").Action("MRBList", "Home");
|
//menu.Add().Text("MRB").Action("MRBList", "Home");
|
||||||
//menu.Add().Text("LotDisposition").Action("LotDispositionList", "Home");
|
//menu.Add().Text("LotDisposition").Action("LotDispositionList", "Home");
|
||||||
menu.Add().Text("ECN").Action("ECNList", "Home");
|
menu.Add().Text("ECN").Action("ECNList", "Home");
|
||||||
menu.Add().Text("Audit").Action("AuditList", "Home");
|
menu.Add().Text("Audit").Action("AuditList", "Home");
|
||||||
|
@ -186,7 +186,7 @@
|
|||||||
var CurrAssignmentID = '';
|
var CurrAssignmentID = '';
|
||||||
var CurrId = '';
|
var CurrId = '';
|
||||||
function documentClick(attachmentID, ecnNumber, trainingDockAckID, assignmentID) {
|
function documentClick(attachmentID, ecnNumber, trainingDockAckID, assignmentID) {
|
||||||
//window.open('http://messa016ec.ec.local:8021/ECN/DownloadFile?attachmentID=' + attachmentID + '&ecnNumber=' + ecnNumber, '_blank');
|
//window.open('http://messa016ec.infineon.com/ECN/DownloadFile?attachmentID=' + attachmentID + '&ecnNumber=' + ecnNumber, '_blank');
|
||||||
window.open('/ECN/DownloadFile?attachmentID=' + attachmentID + '&ecnNumber=' + ecnNumber, '_blank');
|
window.open('/ECN/DownloadFile?attachmentID=' + attachmentID + '&ecnNumber=' + ecnNumber, '_blank');
|
||||||
CurrAssignmentID = assignmentID;
|
CurrAssignmentID = assignmentID;
|
||||||
CurrId = trainingDockAckID;
|
CurrId = trainingDockAckID;
|
||||||
|
@ -15,8 +15,9 @@
|
|||||||
providerName="System.Data.SqlClient" />-->
|
providerName="System.Data.SqlClient" />-->
|
||||||
<!--<add name="FabApprovalConnection" connectionString="Data Source=TEMTSV01EC.ec.local\Test1,49651;Integrated Security=False;Initial Catalog=FabApprovalSystem_Test;User ID=dbreaderwriterFABApproval;Password=90!2017-Tuesday27Vq;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False"
|
<!--<add name="FabApprovalConnection" connectionString="Data Source=TEMTSV01EC.ec.local\Test1,49651;Integrated Security=False;Initial Catalog=FabApprovalSystem_Test;User ID=dbreaderwriterFABApproval;Password=90!2017-Tuesday27Vq;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False"
|
||||||
providerName="System.Data.SqlClient" />-->
|
providerName="System.Data.SqlClient" />-->
|
||||||
<add name="FabApprovalConnection" connectionString="Data Source=Messv01ec.ec.local\PROD1,53959;Integrated Security=False;Initial Catalog=FabApprovalSystem;User ID=MES_FI_DBAdmin;Password=Takeittothelimit1;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
|
<add name="FabApprovalConnectionEC" connectionString="Data Source=Messv01ec.ec.local\PROD1,53959;Integrated Security=False;Initial Catalog=FabApprovalSystem;User ID=MES_FI_DBAdmin;Password=Takeittothelimit1;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
|
||||||
<add name="FabApprovalConnectionDev" connectionString="Data Source=Messv01ec.ec.local\PROD1,53959;Integrated Security=False;Initial Catalog=FabApprovalSystem;User ID=MES_FI_DBAdmin;Password=Takeittothelimit1;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
|
<add name="FabApprovalConnectionStealth" connectionString="Data Source=MESSQLEC1.infineon.com\PROD1,53959;Integrated Security=False;Initial Catalog=FabApprovalSystem;User ID=fab_approval_admin;Password=Fabapprovaladmin2023;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
|
||||||
|
<add name="FabApprovalConnectionDev" connectionString="Data Source=MESTSV02EC.infineon.com\TEST1,50572;Integrated Security=False;Initial Catalog=FabApprovalSystem;User ID=fab_approval_admin_test;Password=Fab_approval_admin_test2023!;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient" />
|
||||||
|
|
||||||
<!--<add name="FabApprovalConnection" connectionString="Data Source=TEMTSV01EC.ec.local\Test1,49651;Integrated Security=False;Initial Catalog=FabApprovalSystem_Quality;User ID=dbreaderwriterFABApproval;Password=90!2017-Tuesday27Vq;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False"
|
<!--<add name="FabApprovalConnection" connectionString="Data Source=TEMTSV01EC.ec.local\Test1,49651;Integrated Security=False;Initial Catalog=FabApprovalSystem_Quality;User ID=dbreaderwriterFABApproval;Password=90!2017-Tuesday27Vq;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False"
|
||||||
providerName="System.Data.SqlClient" />-->
|
providerName="System.Data.SqlClient" />-->
|
||||||
@ -28,8 +29,12 @@
|
|||||||
<!--<add name="SAMDBConnectionString" connectionString="data Source=TEM-CDB02.IRWORLD.IRF.COM\TEMSQL02;Integrated Security=True;Initial Catalog=SAM;Persist Security Info=True"
|
<!--<add name="SAMDBConnectionString" connectionString="data Source=TEM-CDB02.IRWORLD.IRF.COM\TEMSQL02;Integrated Security=True;Initial Catalog=SAM;Persist Security Info=True"
|
||||||
providerName="System.Data.SqlClient" />-->
|
providerName="System.Data.SqlClient" />-->
|
||||||
<add name="FabApprovalSystemEntities" connectionString="metadata=res://*/Models.FabApprovalDB.csdl|res://*/Models.FabApprovalDB.ssdl|res://*/Models.FabApprovalDB.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;persist security info=True;user id=MES_FI_DBAdmin;password=Takeittothelimit1;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
<add name="FabApprovalSystemEntities" connectionString="metadata=res://*/Models.FabApprovalDB.csdl|res://*/Models.FabApprovalDB.ssdl|res://*/Models.FabApprovalDB.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;persist security info=True;user id=MES_FI_DBAdmin;password=Takeittothelimit1;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
<add name="FabApprovalTrainingEntities" connectionString="metadata=res://*/Models.TrainingDB.csdl|res://*/Models.TrainingDB.ssdl|res://*/Models.TrainingDB.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=MES_FI_DBAdmin;password=Takeittothelimit1;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
<add name="FabApprovalTrainingEntitiesEC" connectionString="metadata=res://*/Models.TrainingDB.csdl|res://*/Models.TrainingDB.ssdl|res://*/Models.TrainingDB.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=MES_FI_DBAdmin;password=Takeittothelimit1;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
<add name="FabApprovalSystemEntitiesAll" connectionString="metadata=res://*/Models.FabApproval.csdl|res://*/Models.FabApproval.ssdl|res://*/Models.FabApproval.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=MES_FI_DBAdmin;password=Takeittothelimit1;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
<add name="FabApprovalTrainingEntitiesStealth" connectionString="metadata=res://*/Models.TrainingDB.csdl|res://*/Models.TrainingDB.ssdl|res://*/Models.TrainingDB.msl;provider=System.Data.SqlClient;provider connection string="data source=MESSQLEC1.infineon.com\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=fab_approval_admin;password=Fabapprovaladmin2023;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
|
<add name="FabApprovalTrainingEntitiesDev" connectionString="metadata=res://*/Models.TrainingDB.csdl|res://*/Models.TrainingDB.ssdl|res://*/Models.TrainingDB.msl;provider=System.Data.SqlClient;provider connection string="data source=MESTSV02EC.infineon.com\TEST1,50572;initial catalog=FabApprovalSystem;integrated security=False;user id=fab_approval_admin_test;password=Fab_approval_admin_test2023!;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
|
<add name="FabApprovalSystemEntitiesAllEC" connectionString="metadata=res://*/Models.FabApproval.csdl|res://*/Models.FabApproval.ssdl|res://*/Models.FabApproval.msl;provider=System.Data.SqlClient;provider connection string="data source=Messv01ec.ec.local\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=MES_FI_DBAdmin;password=Takeittothelimit1;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
|
<add name="FabApprovalSystemEntitiesAllInfineon" connectionString="metadata=res://*/Models.FabApproval.csdl|res://*/Models.FabApproval.ssdl|res://*/Models.FabApproval.msl;provider=System.Data.SqlClient;provider connection string="data source=MESSQLEC1.infineon.com\PROD1,53959;initial catalog=FabApprovalSystem;integrated security=False;user id=fab_approval_admin;password=Fabapprovaladmin2023;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
|
<add name="FabApprovalSystemEntitiesAllDev" connectionString="metadata=res://*/Models.FabApproval.csdl|res://*/Models.FabApproval.ssdl|res://*/Models.FabApproval.msl;provider=System.Data.SqlClient;provider connection string="data source=MESTSV02EC.infineon.com\TEST1,50572;initial catalog=FabApprovalSystem;integrated security=False;user id=fab_approval_admin_test;password=Fab_approval_admin_test2023!;connect timeout=15;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="webpages:Version" value="3.0.0.0" />
|
<add key="webpages:Version" value="3.0.0.0" />
|
||||||
@ -57,8 +62,9 @@
|
|||||||
<add key="SPNMRBHoldFlagDirectory" value="D:\Websites\SPNMRBHoldFlag\" />
|
<add key="SPNMRBHoldFlagDirectory" value="D:\Websites\SPNMRBHoldFlag\" />
|
||||||
<add key="SPNMRBHoldFlagFTPLogDirectory" value="D:\Websites\SPNMRBHoldFlagFTPLog\" />
|
<add key="SPNMRBHoldFlagFTPLogDirectory" value="D:\Websites\SPNMRBHoldFlagFTPLog\" />
|
||||||
<add key="LotTempPipeLine" value="D:\Websites\FabApprovalTempPipeLine\" />
|
<add key="LotTempPipeLine" value="D:\Websites\FabApprovalTempPipeLine\" />
|
||||||
<add key="DevWebSiteURL" value="mestsa05ec.ec.local:8065" />
|
<add key="DevWebSiteURL" value="mestsa05ec.infineon.com" />
|
||||||
<add key="ProdWebSiteURL" value="messa016ec.ec.local" />
|
<add key="ProdWebSiteURLEC" value="messa016ec.ec.local" />
|
||||||
|
<add key="ProdWebSiteURLStealth" value="messa016ec.infineon.com" />
|
||||||
<!--<add key="ECDomain" value="TEMSCEC01.ec.local"/>-->
|
<!--<add key="ECDomain" value="TEMSCEC01.ec.local"/>-->
|
||||||
<add key="ECDomain" value="ELSSREC01.ec.local" />
|
<add key="ECDomain" value="ELSSREC01.ec.local" />
|
||||||
<add key="ECADGroup" value="EC-MES-ALL-Users-R-L" />
|
<add key="ECADGroup" value="EC-MES-ALL-Users-R-L" />
|
||||||
@ -74,12 +80,13 @@
|
|||||||
<add key="SSRSPassword" value="" />-->
|
<add key="SSRSPassword" value="" />-->
|
||||||
<add key="SSRSFolder" value="/Fab2Approval/Test/" />
|
<add key="SSRSFolder" value="/Fab2Approval/Test/" />
|
||||||
<add key="SSRSBindingsByConfiguration" value="false" />
|
<add key="SSRSBindingsByConfiguration" value="false" />
|
||||||
|
<add key="Test Email Recipients" value="chase.tucker@infineon.com"/>
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<system.net>
|
<system.net>
|
||||||
<mailSettings>
|
<mailSettings>
|
||||||
<smtp deliveryMethod="Network">
|
<smtp deliveryMethod="Network">
|
||||||
<!--<network host="SMTP.INTRA.INFINEON.COM" port="25" defaultCredentials="true" />-->
|
<!--<network host="SMTP.INTRA.INFINEON.COM" port="25" defaultCredentials="true" />-->
|
||||||
<network host="mailrelay-external.infineon.com" port="25" defaultCredentials="true" />
|
<network host="mailrelay-internal.infineon.com" port="25" defaultCredentials="true" />
|
||||||
</smtp>
|
</smtp>
|
||||||
</mailSettings>
|
</mailSettings>
|
||||||
</system.net>
|
</system.net>
|
||||||
@ -89,7 +96,7 @@
|
|||||||
</authentication>
|
</authentication>
|
||||||
<sessionState mode="InProc" timeout="86400" />
|
<sessionState mode="InProc" timeout="86400" />
|
||||||
<compilation debug="true" targetFramework="4.8" />
|
<compilation debug="true" targetFramework="4.8" />
|
||||||
<httpRuntime targetFramework="4.5" maxRequestLength="1048576" requestValidationMode="2.0" />
|
<httpRuntime targetFramework="4.8" maxRequestLength="1048576" requestValidationMode="2.0" />
|
||||||
<membership>
|
<membership>
|
||||||
<providers>
|
<providers>
|
||||||
<!--<add name="ADMembershipProvider"
|
<!--<add name="ADMembershipProvider"
|
||||||
|
Reference in New Issue
Block a user