Merged PR 12625: Fix: Incorrectly creating new training records when canceling a TECN
Fix: Incorrectly creating new training records when canceling a TECN IDE0100 Updated pipelines to build package .zip for msdeploy.exe Related work items: #239935
This commit is contained in:
@ -37,7 +37,7 @@ public class AdminDMO {
|
||||
foreach (SubRole sr in r.SubRoles) {
|
||||
if (sr.Inactive) {
|
||||
// hide inactive roles unless parameter says otherwise
|
||||
if (showInactiveRoles.Equals("true") == false)
|
||||
if (!showInactiveRoles.Equals("true"))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -414,7 +414,7 @@ public class AuditDMO {
|
||||
if (audit.OriginatorID == userId) {
|
||||
result.IsSubmitter = true;
|
||||
}
|
||||
if (isAdmin != true) {
|
||||
if (!isAdmin) {
|
||||
result.IsAdmin = false;
|
||||
} else {
|
||||
result.IsAdmin = true;
|
||||
@ -424,7 +424,7 @@ public class AuditDMO {
|
||||
{
|
||||
result.RedirectToAction = true;
|
||||
}
|
||||
if (result.IsAdmin == false && result.IsSubmitter == false) {
|
||||
if (!result.IsAdmin && !result.IsSubmitter) {
|
||||
result.RedirectToAction = true;
|
||||
} else {
|
||||
result.UserList = GetUserList();
|
||||
|
@ -324,7 +324,7 @@ public class CorrectiveActionDMO {
|
||||
bool isAssignee = false;
|
||||
int aiIndex = 0;
|
||||
List<D5D6CorrectivetAction> actionItems = GetD5D6CorrectivetActions(caId).ToList();
|
||||
while (isAssignee == false && aiIndex < actionItems.Count) {
|
||||
while (!isAssignee && aiIndex < actionItems.Count) {
|
||||
D5D6CorrectivetAction actionItem = actionItems[aiIndex];
|
||||
if (actionItem.ResponsibilityOwnerID == userId && actionItem.ImplementedDate == null && actionItem.Approved) {
|
||||
isAssignee = true;
|
||||
|
@ -266,9 +266,9 @@ public class MRB_DMO {
|
||||
DateTime? issueStartDate = tempMRBInfo.IssueStartDate;
|
||||
DateTime? issueEndDate = tempMRBInfo.IssueEndDate;
|
||||
|
||||
if (issueStartDate.HasValue == false)
|
||||
if (!issueStartDate.HasValue)
|
||||
throw new Exception("MRB Issue Start Date cannot be blank");
|
||||
if (issueEndDate.HasValue == false)
|
||||
if (!issueEndDate.HasValue)
|
||||
throw new Exception("MRB Issue End Date cannot be blank");
|
||||
|
||||
MRB mrbData = new() { MRBNumber = mrbNumber, ToolCSV = tempMRBInfo.ToolCSV, IssueStartDate = tempMRBInfo.IssueStartDate, IssueEndDate = tempMRBInfo.IssueEndDate };
|
||||
|
@ -166,7 +166,7 @@ public class WorkflowDMO {
|
||||
sqlString.Append("SELECT COUNT(*) FROM LotDisposition LD INNER JOIN Lot L ON LD.IssueID = L.IssueID ");
|
||||
sqlString.Append("WHERE (PERequired = 1 OR Location = 'QDB' OR Location = 'EDB' ) AND LD.IssueID = @IssueID ");
|
||||
recordCount = db.Query<int>(sqlString.ToString(), new { IssueID = issueID }).Single();
|
||||
if ((recordCount > 0) && (allLotsAreScrap == false)) {
|
||||
if ((recordCount > 0) && (!allLotsAreScrap)) {
|
||||
// check if there any IG Medical products
|
||||
if (recordCountForIG_MA > 0) {
|
||||
sqlString = new StringBuilder();
|
||||
|
Reference in New Issue
Block a user