แก้สถ่นะออกคำสั่ง
Some checks failed
release-dev / release-dev (push) Failing after 12s

This commit is contained in:
moss 2025-04-03 11:13:25 +07:00
parent e160e1e552
commit e947f08f8e
14 changed files with 60 additions and 39 deletions

View file

@ -294,7 +294,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
// continue;
// uppdated.CommandTypeId = commandTypeId;
// uppdated.Status = "REPORT";
// uppdated.Status = req.status.Trim().ToUpper();
// uppdated.LastUpdateFullName = FullName ?? "System Administrator";
// uppdated.LastUpdateUserId = UserId ?? "";
// uppdated.LastUpdatedAt = DateTime.Now;
@ -769,7 +769,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -898,7 +898,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1029,7 +1029,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineReport_Profiles
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1209,7 +1209,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineReport_Profiles
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1327,7 +1327,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1443,7 +1443,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1559,7 +1559,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1675,7 +1675,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1791,7 +1791,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data.ForEach(profile => profile.Status = "REPORT");
data.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}
@ -1908,12 +1908,12 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data1.ForEach(profile => profile.IsReport = "REPORT");
data1.ForEach(profile => profile.IsReport = req.status.Trim().ToUpper());
var data2 = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
data2.ForEach(profile => profile.IsReport = "REPORT");
data2.ForEach(profile => profile.IsReport = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();