no message
This commit is contained in:
parent
edd5bfe0c2
commit
ab4fb64f83
2 changed files with 17 additions and 10 deletions
|
|
@ -1625,7 +1625,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
|
||||||
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
|
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||||
.Where(x => req.refIds.Contains(x.Id.ToString()))
|
.Where(x => req.refIds.Contains(x.Id.ToString()))
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
data.ForEach(profile => profile.StatusDiscard = "REPORT");
|
data.ForEach(profile => profile.Status = "REPORT");
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
|
@ -1650,9 +1650,9 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
|
||||||
{
|
{
|
||||||
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
|
var data = await _context.DisciplineDisciplinary_ProfileComplaintInvestigates
|
||||||
.Where(x => req.refIds.Contains(x.Id.ToString()))
|
.Where(x => req.refIds.Contains(x.Id.ToString()))
|
||||||
// .Where(x => x.StatusDiscard.ToUpper() == "REPORT")
|
// .Where(x => x.Status.ToUpper() == "REPORT")
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
data.ForEach(profile => profile.StatusDiscard = "NEW");
|
data.ForEach(profile => profile.Status = "NEW");
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
|
@ -1709,7 +1709,7 @@ namespace BMA.EHR.DisciplineResult.Service.Controllers
|
||||||
var _result = await _res.Content.ReadAsStringAsync();
|
var _result = await _res.Content.ReadAsStringAsync();
|
||||||
if (_res.IsSuccessStatusCode)
|
if (_res.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
data.ForEach(profile => { profile.StatusDiscard = "NEW"; profile.CommandTypeId = null; });
|
data.ForEach(profile => { profile.Status = "NEW"; profile.CommandTypeId = null; });
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1710,11 +1710,13 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
data = resultData
|
data = resultData
|
||||||
});
|
});
|
||||||
var _result = await _res.Content.ReadAsStringAsync();
|
var _result = await _res.Content.ReadAsStringAsync();
|
||||||
|
if (_res.IsSuccessStatusCode)
|
||||||
|
{
|
||||||
|
placementProfile.ForEach(profile => profile.PlacementStatus = "DONE");
|
||||||
|
await _context.SaveChangesAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// update placementstatus
|
|
||||||
placementProfile.ForEach(profile => profile.PlacementStatus = "DONE");
|
|
||||||
await _context.SaveChangesAsync();
|
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
@ -1966,11 +1968,16 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
data = resultData
|
data = resultData
|
||||||
});
|
});
|
||||||
var _result = await _res.Content.ReadAsStringAsync();
|
var _result = await _res.Content.ReadAsStringAsync();
|
||||||
|
if (_res.IsSuccessStatusCode)
|
||||||
|
{
|
||||||
|
placementProfile.ForEach(profile => profile.PlacementStatus = "DONE");
|
||||||
|
await _context.SaveChangesAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// update placementstatus
|
// // update placementstatus
|
||||||
placementProfile.ForEach(profile => profile.PlacementStatus = "DONE");
|
// placementProfile.ForEach(profile => profile.PlacementStatus = "DONE");
|
||||||
await _context.SaveChangesAsync();
|
// await _context.SaveChangesAsync();
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue