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)
|
||||
{
|
||||
UserManager = userManager;
|
||||
@ -78,45 +77,12 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
isLoginValid = Functions.IFX_ADAuthenticate(model.LoginID, model.Password);
|
||||
isIFX = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
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);
|
||||
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");
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -234,7 +199,9 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
|
||||
//
|
||||
// GET: /Account/Manage
|
||||
#pragma warning disable IDE0060 // Remove unused parameter
|
||||
public ActionResult Manage(ManageMessageId? message)
|
||||
#pragma warning restore IDE0060 // Remove unused parameter
|
||||
{
|
||||
//ViewBag.StatusMessage =
|
||||
// message == ManageMessageId.ChangePasswordSuccess ? "Your password has been changed."
|
||||
|
@ -1870,9 +1870,9 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
int assigneeId = ca.D1AssigneeID;
|
||||
int requestorId = ca.RequestorID;
|
||||
int qaId = ca.QAID;
|
||||
NotifySectionRejection(issueID, assigneeId, dSection);
|
||||
NotifySectionRejection(issueID, requestorId, dSection);
|
||||
NotifySectionRejection(issueID, qaId, dSection);
|
||||
NotifySectionRejection(issueID, assigneeId, userID, dSection, comments);
|
||||
NotifySectionRejection(issueID, requestorId, userID, dSection, comments);
|
||||
NotifySectionRejection(issueID, qaId, userID, dSection, comments);
|
||||
|
||||
return Content("Successfully Saved");
|
||||
}
|
||||
@ -1893,11 +1893,14 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
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
|
||||
{
|
||||
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 userEmail = string.Empty;
|
||||
@ -1906,16 +1909,18 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
|
||||
//subject = "Corrective Action Assignment";
|
||||
EmailNotification en = new EmailNotification(subject, ConfigurationManager.AppSettings["EmailTemplatesPath"]);
|
||||
string[] emailparams = new string[4];
|
||||
string[] emailparams = new string[6];
|
||||
emailparams[0] = Functions.ReturnCANoStringFormat(issueID);
|
||||
emailparams[1] = issueID.ToString();
|
||||
emailparams[2] = GlobalVars.hostURL;
|
||||
emailparams[3] = section;
|
||||
emailparams[4] = loggedInUser.FirstName + " " + loggedInUser.LastName;
|
||||
emailparams[5] = comment;
|
||||
//#if(DEBUG)
|
||||
// userEmail = "rkotian1@irf.com";
|
||||
//#endif
|
||||
|
||||
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, userEmail, null, subject, emailparams);
|
||||
en.SendNotificationEmail(emailTemplate, GlobalVars.SENDER_EMAIL, senderName, recipientEmail, null, subject, emailparams);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -31,6 +31,7 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
ECN_DMO ecnDMO = new ECN_DMO();
|
||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||
TrainingDMO trainingDMO = new TrainingDMO();
|
||||
UserAccountDMO userDMO = new UserAccountDMO();
|
||||
|
||||
|
||||
//
|
||||
@ -2115,6 +2116,12 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
string emailSentList = "";
|
||||
|
||||
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 userEmail = string.Empty;
|
||||
|
@ -126,7 +126,7 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
try
|
||||
{
|
||||
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);
|
||||
}
|
||||
catch (Exception ex)
|
||||
@ -141,7 +141,7 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
try
|
||||
{
|
||||
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);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -15,8 +15,6 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Fab2ApprovalSystem.Controllers
|
||||
{
|
||||
|
||||
|
||||
[Authorize]
|
||||
[SessionExpireFilter]
|
||||
public class TrainingController : Controller
|
||||
@ -44,7 +42,6 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
trainingDMO.DeleteTraining(oldTrainingId);
|
||||
}
|
||||
|
||||
|
||||
int trainingId = trainingDMO.Create(ecnId);
|
||||
List<int> TrainingGroups = new List<int>();
|
||||
TrainingGroups = trainingDMO.GetECNAssignedTrainingGroups(ecnId);
|
||||
@ -61,8 +58,6 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
int assignmentId = trainingDMO.CreateAssignment(trainingId, trainee);
|
||||
NotifyTrainee(trainee, assignmentId, ecnId, ECNTitle);
|
||||
}
|
||||
|
||||
|
||||
return trainingId;
|
||||
}
|
||||
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.");
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -135,9 +129,8 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
{
|
||||
return Content("Not Authorized");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public ActionResult AddGroupToTrainingAdHoc(int trainingId, int groupId, int ecnId)
|
||||
{
|
||||
if ((bool)Session[GlobalVars.IS_ADMIN])
|
||||
@ -166,13 +159,11 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
int assignmentId = trainingDMO.CreateAssignment(trainingId, id);
|
||||
NotifyTrainee(id, assignmentId, ecnId, ecn.Title);
|
||||
}
|
||||
|
||||
}
|
||||
if (usersAdded > 0)
|
||||
{
|
||||
trainingDMO.reOpenTraining(trainingId);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -220,8 +211,6 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
{
|
||||
return Content("Not Authorized");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public ActionResult DeleteTrainingByECN(int ECNNumber)
|
||||
{
|
||||
@ -285,9 +274,8 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
detailedException = e.Message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public ActionResult ViewTrainingPartial(int trainingID, int userID)
|
||||
{
|
||||
List<TrainingAssignment> TrainingData = trainingDMO.GetTrainingAssignmentsByUser(trainingID, userID);
|
||||
@ -329,9 +317,6 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
string exception = e.ToString();
|
||||
return Content(exception);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -418,9 +403,6 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
{
|
||||
return PartialView(trainingList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public ActionResult ViewTrainingAssignmentsReportView(int trainingID, string statusFilter, string groupFilter)
|
||||
{
|
||||
@ -445,7 +427,9 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
totalCompleted++;
|
||||
}
|
||||
}
|
||||
#pragma warning disable IDE0047 // Remove unnecessary parentheses
|
||||
percentComplete = (totalCompleted / assignmentCount) * 100;
|
||||
#pragma warning restore IDE0047 // Remove unnecessary parentheses
|
||||
ViewBag.PercentComplete = percentComplete.ToString("0.00") + "%";
|
||||
|
||||
if (groupFilter != "" && groupFilter != null)
|
||||
@ -530,11 +514,8 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
DateAssigned = assignment.DateAssigned,
|
||||
DateCompleted = assignment.DateCompleted,
|
||||
Status = assignment.status
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return View(ViewData);
|
||||
@ -708,7 +689,9 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
try
|
||||
{
|
||||
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>";
|
||||
//Get all users set up to receive the training report email.
|
||||
List<TrainingReportUser> trainingReportUsers = adminDMO.GetTrainingReportUsers();
|
||||
@ -743,7 +726,14 @@ namespace Fab2ApprovalSystem.Controllers
|
||||
|
||||
string DateAssigned = assignmentDate.HasValue ? assignmentDate.Value.ToString("MM/dd/yyyy") : "<not available>";
|
||||
|
||||
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>";
|
||||
}
|
||||
|
@ -8,12 +8,13 @@ using System.Web;
|
||||
using Dapper;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using System.Text;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@ -7,13 +7,14 @@ using System.Data.SqlClient;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using Dapper;
|
||||
using System.Configuration;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
@ -11,12 +11,13 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Transactions;
|
||||
using System.Web;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,5 @@
|
||||
using Dapper;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using Fab2ApprovalSystem.ViewModels;
|
||||
using System;
|
||||
@ -15,7 +16,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
/// <summary>
|
||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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();
|
||||
|
||||
public CorrectiveAction InsertCA(CorrectiveAction ca)
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@ -7,6 +7,7 @@ using System.Data.SqlClient;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using Dapper;
|
||||
using System.Configuration;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
@ -15,7 +16,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// </summary>
|
||||
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>
|
||||
///
|
||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.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();
|
||||
|
||||
|
||||
@ -599,6 +599,13 @@ namespace Fab2ApprovalSystem.DMO
|
||||
return approverList;
|
||||
}
|
||||
|
||||
public IEnumerable<int> GetTECNNotificationUsers()
|
||||
{
|
||||
string sql = "select T.UserId from TECNNotificationsUsers T";
|
||||
var result = this.db.Query<int>(sql).ToList();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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)
|
||||
//{
|
||||
|
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
WorkflowDMO wfDMO = new WorkflowDMO();
|
||||
@ -1355,7 +1355,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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();
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
@ -17,7 +17,7 @@ namespace Fab2ApprovalSystem.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();
|
||||
/// <summary>
|
||||
///
|
||||
|
@ -23,7 +23,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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;
|
||||
|
||||
string sql = "";
|
||||
@ -56,7 +56,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
}
|
||||
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;
|
||||
|
||||
string sql = "";
|
||||
@ -74,7 +74,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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 = "";
|
||||
|
||||
|
||||
@ -96,7 +96,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
sql.Append("SELECT PartNumber + '~' + SiliconPart + '~' + ProcessFlow + '~' + PartDescription AS WIPPartData ");
|
||||
sql.Append("FROM vWIPPartData WHERE PartNumber LIKE '%" + searchText + "%' ORDER BY PartNumber");
|
||||
@ -120,8 +120,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <param name="lot"></param>
|
||||
public static void GetLotInformation(Lot lot)
|
||||
{
|
||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
||||
//IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnectionProd"].ConnectionString);
|
||||
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||
StringBuilder qryLotInfo = new StringBuilder();
|
||||
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 ");
|
||||
@ -260,7 +259,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
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();
|
||||
sql.Append("SELECT FirstName + ' ' + LastName AS FullName, U.UserID AS UserId ");
|
||||
@ -279,7 +278,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@DocumentTypeID", documentType);
|
||||
@ -305,7 +304,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
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();
|
||||
parameters.Add("@DocumentTypeID", documentType);
|
||||
@ -317,7 +316,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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();
|
||||
parameters.Add("@DocumentTypeID", documentType);
|
||||
@ -336,7 +335,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
|
||||
}
|
||||
@ -351,7 +350,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@DocumentTypeID", documentType);
|
||||
parameters.Add("@IssueID", issueID);
|
||||
@ -368,7 +367,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@ECNNumber", ecnNumber);
|
||||
var approverList = db.Query<string>("ECNGetETECNApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||
@ -382,7 +381,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@ECNNumber", ecnNumber);
|
||||
var approverList = db.Query<string>("ECN_TECNCancelledApprovalNotifyList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||
@ -397,7 +396,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@WorkRequestID", workRequestID);
|
||||
var notifyList = db.Query<string>("LTFabGroupApprovalNotificationList", parameters, commandType: CommandType.StoredProcedure).ToList();
|
||||
@ -412,7 +411,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@NotificationType", notificationType);
|
||||
parameters.Add("@UserID", userID);
|
||||
@ -431,7 +430,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@NotificationType", notificationType);
|
||||
parameters.Add("@UserID", userID);
|
||||
@ -449,7 +448,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
parameters.Add("@LotID", ltLotID);
|
||||
parameters.Add("@UserID", userID);
|
||||
@ -470,7 +469,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
public static int EnableOOOStatus(int oooUserID, int delegatedTo, DateTime startDate, DateTime endDate)
|
||||
{
|
||||
int returnValue = 0;
|
||||
IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString);
|
||||
IDbConnection db = new SqlConnection(GlobalVars.DB_CONNECTION_STRING);
|
||||
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@OOOUserID", oooUserID);
|
||||
@ -498,7 +497,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <param name="endDate"></param>
|
||||
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();
|
||||
parameters.Add("@OOOUserID", oooUserID);
|
||||
@ -512,7 +511,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
return departments;
|
||||
|
||||
@ -524,7 +523,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
return modules;
|
||||
@ -537,7 +536,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <param name="lot"></param>
|
||||
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();
|
||||
//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 ");
|
||||
@ -591,7 +590,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
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();
|
||||
parameters.Add("@UserID", userID);
|
||||
var email = db.Query<string>("GetEmail", parameters, commandType: CommandType.StoredProcedure).Single();
|
||||
@ -606,7 +605,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
/// <returns></returns>
|
||||
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();
|
||||
|
||||
@ -618,7 +617,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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();
|
||||
parameters.Add("@ServerName", serverName);
|
||||
parameters.Add("@CredentialType", credentialType);
|
||||
@ -628,13 +627,13 @@ namespace Fab2ApprovalSystem.DMO
|
||||
|
||||
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();
|
||||
return approvals;
|
||||
}
|
||||
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();
|
||||
parameters.Add("@ApprovalId", approvalId);
|
||||
db.Query<CredentialsStorage>("UpdateApprovalLastNotifyDate", param: parameters, commandType: CommandType.StoredProcedure).Single();
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
@ -14,7 +14,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
|
@ -8,12 +8,13 @@ using System.Web;
|
||||
using Dapper;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using System.Text;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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();
|
||||
|
||||
public int Create(int issueId)
|
||||
@ -153,6 +154,10 @@ namespace Fab2ApprovalSystem.DMO
|
||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||
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();
|
||||
}
|
||||
public List<TrainingAssignment> GetTrainingAssignments(int TrainingID)
|
||||
@ -160,6 +165,10 @@ namespace Fab2ApprovalSystem.DMO
|
||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||
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();
|
||||
}
|
||||
public List<TrainingAssignment> GetTrainingAssignmentsByUser(int TrainingID, int userID)
|
||||
@ -372,8 +381,11 @@ namespace Fab2ApprovalSystem.DMO
|
||||
FabApprovalTrainingEntities db = new FabApprovalTrainingEntities();
|
||||
Training training = (from a in db.Trainings where a.TrainingID == trainingId select a).FirstOrDefault();
|
||||
|
||||
if (training != null)
|
||||
{
|
||||
training.Deleted = true;
|
||||
training.DeletedDate = DateTime.Now;
|
||||
}
|
||||
|
||||
List<TrainingAssignment> trainingAssignments = (from a in db.TrainingAssignments where a.TrainingID == trainingId select a).ToList();
|
||||
db.SaveChanges();
|
||||
@ -448,5 +460,20 @@ namespace Fab2ApprovalSystem.DMO
|
||||
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 Fab2ApprovalSystem.Models;
|
||||
using System.Text;
|
||||
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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)
|
||||
|
@ -18,7 +18,7 @@ namespace Fab2ApprovalSystem.DMO
|
||||
{
|
||||
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);
|
||||
|
||||
|
@ -13,7 +13,7 @@ Title: {1}
|
||||
<br/>
|
||||
|
||||
<br/>
|
||||
https://messa016ec.ec.local/{0}/Edit?IssueID={2}
|
||||
https://messa016ec.infineon.com/{0}/Edit?IssueID={2}
|
||||
<br/><br/>
|
||||
|
||||
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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={4}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={4}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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>.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={3}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={3}
|
||||
<br/><br/>
|
||||
D3 Due Date: {4}
|
||||
<br/>
|
||||
|
@ -6,7 +6,7 @@ Corrective Action {0} has been completed
|
||||
<br/><br/>
|
||||
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={2}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={2}
|
||||
<br/><br/>
|
||||
Thank you for your effort. Follow up date has been set for {3}
|
||||
<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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/Audit/Edit?issueID={4}
|
||||
https://messa016ec.infineon.com/Audit/Edit?issueID={4}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -9,7 +9,7 @@ Reason For Reject:
|
||||
<br/><br/>
|
||||
Please log on to the Approval website and review this item for re-submission.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -1,13 +1,16 @@
|
||||
<font size="2" face="verdana">
|
||||
*****Please DO NOT reply to this email*****
|
||||
<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/>
|
||||
|
||||
Please log on to the Approval website to view the section and act accordingly
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
{2}/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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
|
||||
<br/><br/>
|
||||
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={0}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={0}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
Corrective Action# {0} section {4} is {3}. Please log on to the Approval website and review this item for <strong>completion</strong>.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/CorrectiveAction/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/CorrectiveAction/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
D3 Due Date: {5}
|
||||
<br/>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/{3}/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/{3}/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -5,7 +5,7 @@
|
||||
<br/><br/>
|
||||
Rejection Comment: {5}
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
ECN# {1} was Approved.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
Thank you!
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -5,7 +5,7 @@
|
||||
<br/><br/>
|
||||
Comments: {4}
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -5,7 +5,7 @@
|
||||
<br/><br/>
|
||||
Rejection Comment: {5}
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
A new training assignment has been assigned to you for ECN# {1}
|
||||
<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/>
|
||||
|
||||
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}
|
||||
Please review the approved ETECN form in the attachment.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
Lot Disposition# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotDisposition/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotDisposition/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact the site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact the site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
MRB# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/MRB/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/MRB/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{3}# {0} is ready for your approval. Please log on to the Approval website and review this item for Approval or Rejection.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{3}# {0} has been completed.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{3}# {0} was rejected by {4}. Please log on to the Approval website and review this item for re-submission.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/PartsRequest/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/PartsRequest/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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}
|
||||
Please review the cancelled TECN and the new ECN in the attachments.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{3}# {0} is ready for your Cancellation. Please log on to the Approval website and review this item for Approval of Cancellation.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -1,10 +1,10 @@
|
||||
<font size="2" face="verdana">
|
||||
*****Please DO NOT reply to this email*****
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
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}
|
||||
Please review the expired TECN form in the attachment.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
{4}# {0} Extension was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/ECN/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/ECN/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
Work Request# {0} has been Approved.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<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.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
Work Request# {0} was rejected by {3}. Please log on to the Approval website and review this item for re-submission.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact a site administrator.
|
||||
|
@ -3,7 +3,7 @@
|
||||
<br/><br/>
|
||||
Work Request# {0} has a new Revision. Please login in to the Fab Approval System to review the change.
|
||||
<br/><br/>
|
||||
https://messa016ec.ec.local/LotTraveler/Edit?issueID={1}
|
||||
https://messa016ec.infineon.com/LotTraveler/Edit?issueID={1}
|
||||
<br/><br/>
|
||||
|
||||
If you have any questions or trouble logging on please contact the site administrator.
|
||||
|
@ -20,10 +20,14 @@
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
<SccLocalPath>
|
||||
</SccLocalPath>
|
||||
<SccAuxPath>
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
<UseGlobalApplicationHostFile />
|
||||
<Use64BitIISExpress>true</Use64BitIISExpress>
|
||||
<TargetFrameworkProfile />
|
||||
|
@ -25,14 +25,12 @@ namespace Fab2ApprovalSystem
|
||||
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
||||
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
||||
|
||||
//string DevAttachmentUrl = ConfigurationManager.AppSettings["DevAttachmentURl"].ToString();
|
||||
//string ProdAttachmentUrl = ConfigurationManager.AppSettings["ProdAttachmentURL"].ToString();
|
||||
string connectionstring = ConfigurationManager.ConnectionStrings["FabApprovalConnection"].ConnectionString.ToString();
|
||||
|
||||
GlobalVars.hostURL = HttpRuntime.AppDomainAppVirtualPath;
|
||||
string hostName = System.Net.Dns.GetHostEntry("").HostName;
|
||||
GlobalVars.IS_INFINEON_DOMAIN = hostName.ToLower().Contains("infineon");
|
||||
|
||||
string DevWebSiteUrl = ConfigurationManager.AppSettings["DevWebSiteURL"].ToString();
|
||||
string ProdWebSiteUrl = ConfigurationManager.AppSettings["ProdWebSiteURL"].ToString();
|
||||
string ProdWebSiteUrlEC = ConfigurationManager.AppSettings["ProdWebSiteURLEC"].ToString();
|
||||
string ProdWebSiteUrlStealth = ConfigurationManager.AppSettings["ProdWebSiteURLStealth"].ToString();
|
||||
|
||||
GlobalVars.SENDER_EMAIL = "FabApprovalSystem@Infineon.com"; // put in the Config File
|
||||
if (ConfigurationManager.AppSettings["Notification Sender"] != null)
|
||||
@ -41,15 +39,24 @@ namespace Fab2ApprovalSystem
|
||||
GlobalVars.NDriveURL = ConfigurationManager.AppSettings["NDrive"].ToString();
|
||||
GlobalVars.WSR_URL = ConfigurationManager.AppSettings["WSR_URL"].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.hostURL = connectionstring.ToUpper().Contains("TEST") ? @"https://" + DevWebSiteUrl : @"https://" + ProdWebSiteUrl ;
|
||||
|
||||
#if (!DEBUG)
|
||||
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
|
||||
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.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using Fab2ApprovalSystem.Controllers;
|
||||
|
||||
using Fab2ApprovalSystem.DMO;
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using Fab2ApprovalSystem.Utilities;
|
||||
|
||||
using Quartz;
|
||||
|
||||
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
|
||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-external.infineon.com");
|
||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-internal.infineon.com");
|
||||
|
||||
// sending the message.
|
||||
try
|
||||
|
@ -92,11 +92,6 @@ namespace Fab2ApprovalSystem.Misc
|
||||
public static string GetAttachmentFolder()
|
||||
{
|
||||
ConfigurationManager.RefreshSection("appSettings");
|
||||
if (GlobalVars.DBConnection.ToUpper() == "TEST" || GlobalVars.DBConnection.ToUpper() == "QUALITY")
|
||||
{
|
||||
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>
|
||||
|
@ -20,8 +20,10 @@ namespace Fab2ApprovalSystem.Misc
|
||||
public const string CAN_CREATE_PARTS_REQUEST = "CanCreatePartsRequest";
|
||||
|
||||
public static bool USER_ISADMIN = false;
|
||||
public static bool IS_INFINEON_DOMAIN = false;
|
||||
public static string hostURL = "";
|
||||
public static string DBConnection = "TEST";
|
||||
public static string DB_CONNECTION_STRING = "";
|
||||
|
||||
public static string AttachmentUrl = "";
|
||||
public static string NDriveURL = "";
|
||||
|
@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
@ -12,9 +12,16 @@ namespace Fab2ApprovalSystem.Models
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
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()
|
||||
: base("name=FabApprovalSystemEntitiesAll")
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
@ -12,11 +12,18 @@ namespace Fab2ApprovalSystem.Models
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
using Fab2ApprovalSystem.Misc;
|
||||
|
||||
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()
|
||||
: base("name=FabApprovalTrainingEntities")
|
||||
: base("name=" + ENTITY_NAME)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace Fab2ApprovalSystem.Utilities
|
||||
msg.Subject = email_title;
|
||||
msg.Body = email_body;
|
||||
|
||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-external.infineon.com");
|
||||
SmtpClient SmtpMail = new SmtpClient("mailrelay-internal.infineon.com");
|
||||
|
||||
SmtpMail.Send(msg);
|
||||
|
||||
|
@ -3126,7 +3126,7 @@
|
||||
$('#D5Completed').prop('checked', false);
|
||||
return;
|
||||
}
|
||||
TriggerSectionApproval('D5D6D7')
|
||||
TriggerSectionApproval('D5D6D7');
|
||||
}
|
||||
else {
|
||||
$('#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) {
|
||||
$('#cover-spin').show(0);
|
||||
e.preventDefault();
|
||||
|
@ -209,6 +209,12 @@
|
||||
<div class="col-sm-6 col-sm-6">
|
||||
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
||||
</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 class="form-group">
|
||||
<label class="control-label col-sm-4">Approvers:</label>
|
||||
@ -220,6 +226,9 @@
|
||||
.HtmlAttributes(new { disabled = "disabled" })
|
||||
)
|
||||
</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 class="form-group">
|
||||
<label class="control-label col-sm-4">Affected Areas:</label>
|
||||
|
@ -171,7 +171,7 @@
|
||||
)
|
||||
</div>
|
||||
<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 class="form-group">
|
||||
|
@ -241,6 +241,12 @@
|
||||
<div class="col-sm-6 col-sm-6">
|
||||
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
|
||||
</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 class="form-group">
|
||||
<label class="control-label col-sm-4">Approvers:</label>
|
||||
@ -252,7 +258,9 @@
|
||||
.HtmlAttributes(new { disabled = "disabled" })
|
||||
)
|
||||
</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 class="form-group">
|
||||
<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>
|
||||
<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", "MRB")>MRB</a></li>
|
||||
<li><a href=@Url.Action("Create", "ECN")>ECN/TECN</a></li>
|
||||
@*<li><a href=@Url.Action("Create", "MRB")>Create MRB</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("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", "CorrectiveAction")>Create Corrective Action</a></li>
|
||||
@*@if (Convert.ToBoolean(Session[GlobalVars.CAN_CREATE_PARTS_REQUEST]))
|
||||
@ -126,8 +126,8 @@
|
||||
menu.Add().Text("Training Reports").Action("TrainingReports", "Training");
|
||||
menu.Add().Text("All Documents").Action("AllDocuments", "Home");
|
||||
//menu.Add().Text("Special Work Requests").Action("SpecialWorkRequestList", "Home");
|
||||
menu.Add().Text("PCRB").Action("ChangeControlList", "Home");
|
||||
menu.Add().Text("MRB").Action("MRBList", "Home");
|
||||
//menu.Add().Text("PCRB").Action("ChangeControlList", "Home");
|
||||
//menu.Add().Text("MRB").Action("MRBList", "Home");
|
||||
//menu.Add().Text("LotDisposition").Action("LotDispositionList", "Home");
|
||||
menu.Add().Text("ECN").Action("ECNList", "Home");
|
||||
menu.Add().Text("Audit").Action("AuditList", "Home");
|
||||
|
@ -186,7 +186,7 @@
|
||||
var CurrAssignmentID = '';
|
||||
var CurrId = '';
|
||||
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');
|
||||
CurrAssignmentID = assignmentID;
|
||||
CurrId = trainingDockAckID;
|
||||
|
@ -15,8 +15,9 @@
|
||||
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"
|
||||
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="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="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="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"
|
||||
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"
|
||||
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="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="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="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="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>
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
@ -57,8 +62,9 @@
|
||||
<add key="SPNMRBHoldFlagDirectory" value="D:\Websites\SPNMRBHoldFlag\" />
|
||||
<add key="SPNMRBHoldFlagFTPLogDirectory" value="D:\Websites\SPNMRBHoldFlagFTPLog\" />
|
||||
<add key="LotTempPipeLine" value="D:\Websites\FabApprovalTempPipeLine\" />
|
||||
<add key="DevWebSiteURL" value="mestsa05ec.ec.local:8065" />
|
||||
<add key="ProdWebSiteURL" value="messa016ec.ec.local" />
|
||||
<add key="DevWebSiteURL" value="mestsa05ec.infineon.com" />
|
||||
<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="ELSSREC01.ec.local" />
|
||||
<add key="ECADGroup" value="EC-MES-ALL-Users-R-L" />
|
||||
@ -74,12 +80,13 @@
|
||||
<add key="SSRSPassword" value="" />-->
|
||||
<add key="SSRSFolder" value="/Fab2Approval/Test/" />
|
||||
<add key="SSRSBindingsByConfiguration" value="false" />
|
||||
<add key="Test Email Recipients" value="chase.tucker@infineon.com"/>
|
||||
</appSettings>
|
||||
<system.net>
|
||||
<mailSettings>
|
||||
<smtp deliveryMethod="Network">
|
||||
<!--<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>
|
||||
</mailSettings>
|
||||
</system.net>
|
||||
@ -89,7 +96,7 @@
|
||||
</authentication>
|
||||
<sessionState mode="InProc" timeout="86400" />
|
||||
<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>
|
||||
<providers>
|
||||
<!--<add name="ADMembershipProvider"
|
||||
|
Reference in New Issue
Block a user