คำสั่งวินัย

This commit is contained in:
Kittapath 2024-07-08 08:55:52 +07:00
parent 0b6ba817f6
commit 6614e3a2fb
2 changed files with 15 additions and 2 deletions

View file

@ -7487,6 +7487,8 @@ namespace BMA.EHR.Application.Repositories.Commands
{ {
PersonId = x.RefPlacementProfileId, PersonId = x.RefPlacementProfileId,
Id = x.RefDisciplineId, Id = x.RefDisciplineId,
refCommandNo = $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()}",
templateDoc = "คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่ง" + command.IssuerOrganizationName + "ที่ " + $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate!.Value.ToThaiFullDate3()}",
}); });
var baseAPI = _configuration["API"]; var baseAPI = _configuration["API"];
@ -7603,6 +7605,8 @@ namespace BMA.EHR.Application.Repositories.Commands
{ {
PersonId = x.RefPlacementProfileId, PersonId = x.RefPlacementProfileId,
Id = x.RefDisciplineId, Id = x.RefDisciplineId,
refCommandNo = $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()}",
templateDoc = "คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่ง" + command.IssuerOrganizationName + "ที่ " + $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate!.Value.ToThaiFullDate3()}",
}); });
var baseAPI = _configuration["API"]; var baseAPI = _configuration["API"];
@ -7719,6 +7723,8 @@ namespace BMA.EHR.Application.Repositories.Commands
{ {
PersonId = x.RefPlacementProfileId, PersonId = x.RefPlacementProfileId,
Id = x.RefDisciplineId, Id = x.RefDisciplineId,
refCommandNo = $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()}",
templateDoc = "คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่ง" + command.IssuerOrganizationName + "ที่ " + $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate!.Value.ToThaiFullDate3()}",
}); });
var baseAPI = _configuration["API"]; var baseAPI = _configuration["API"];
@ -7834,6 +7840,8 @@ namespace BMA.EHR.Application.Repositories.Commands
{ {
PersonId = x.RefPlacementProfileId, PersonId = x.RefPlacementProfileId,
Id = x.RefDisciplineId, Id = x.RefDisciplineId,
refCommandNo = $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()}",
templateDoc = "คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่ง" + command.IssuerOrganizationName + "ที่ " + $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate!.Value.ToThaiFullDate3()}",
}); });
var baseAPI = _configuration["API"]; var baseAPI = _configuration["API"];
@ -7950,6 +7958,8 @@ namespace BMA.EHR.Application.Repositories.Commands
{ {
PersonId = x.RefPlacementProfileId, PersonId = x.RefPlacementProfileId,
Id = x.RefDisciplineId, Id = x.RefDisciplineId,
refCommandNo = $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()}",
templateDoc = "คำสั่งแต่งตั้งลูกจ้างประจำ(ปรับระดับชั้นงาน) คำสั่ง" + command.IssuerOrganizationName + "ที่ " + $"{command.CommandNo}/{command.CommandYear.ToInteger().ToThaiYear()} ลงวันที่ {command.CommandExcecuteDate!.Value.ToThaiFullDate3()}",
}); });
var baseAPI = _configuration["API"]; var baseAPI = _configuration["API"];
@ -9158,7 +9168,7 @@ namespace BMA.EHR.Application.Repositories.Commands
var raw = JsonConvert.DeserializeObject<dynamic>(apiResult.Result); var raw = JsonConvert.DeserializeObject<dynamic>(apiResult.Result);
if (raw != null) if (raw != null)
{ {
if(raw.result!.rootId != null && raw.result!.root != null) if (raw.result!.rootId != null && raw.result!.root != null)
{ {
ret.Add(new KeyValueItemResponse ret.Add(new KeyValueItemResponse
{ {

View file

@ -1176,6 +1176,9 @@ namespace BMA.EHR.Placement.Service.Controllers
profile.nodeId = null; profile.nodeId = null;
profile.posmasterId = null; profile.posmasterId = null;
profile.positionId = null; profile.positionId = null;
profile.Draft = false;
profile.typeCommand = null;
profile.PlacementStatus = "UN-CONTAIN";
_context.SaveChanges(); _context.SaveChanges();
return Success(); return Success();