แก้คำสั่งวินัย

This commit is contained in:
Kittapath 2024-01-09 12:45:17 +07:00
parent 6d7aebaeb5
commit 1c939f6ffc
5 changed files with 784 additions and 91 deletions

View file

@ -426,7 +426,10 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
.Where(x => x.Id == d.id)
.FirstOrDefaultAsync();
if (data != null)
{
data.Status = "NEW";
data.CommandTypeId = null;
}
await _context.SaveChangesAsync();
}
return Success();
@ -450,7 +453,10 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
.Where(x => x.Id == d.id)
.FirstOrDefaultAsync();
if (data != null)
{
data.StatusDiscard = "NEW";
data.CommandTypeDiscardId = null;
}
await _context.SaveChangesAsync();
}
return Success();
@ -504,7 +510,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
.Where(x => x.Id == d.id)
.FirstOrDefaultAsync();
if (data != null)
data.Status = "NEW";
data.Status = "DONE";
await _context.SaveChangesAsync();
}
return Success();