คำสั่ง 22 เพิ่มครั้งที่
This commit is contained in:
parent
cc711146c5
commit
6cfe02a2e0
8 changed files with 17021 additions and 2 deletions
|
|
@ -2850,7 +2850,7 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> PostType24Async([FromBody] CreateCommandGroup0Request req)
|
||||
public async Task<ActionResult<ResponseObject>> PostType24Async([FromBody] CreateCommandGroup12Request req)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -2869,6 +2869,9 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
|
||||
CommandAffectDate = req.orderDate,
|
||||
OwnerGovId = OcId,
|
||||
|
||||
ConclusionTranferNo = req.conclusionTranferNo,
|
||||
ConclusionTranferDate = req.conclusionTranferDate,
|
||||
};
|
||||
|
||||
var result = await _repository.AddAsync(inserted);
|
||||
|
|
@ -2893,7 +2896,7 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
|
||||
public async Task<ActionResult<ResponseObject>> PutType24Async(Guid orderId, [FromBody] CreateCommandGroup0Request req)
|
||||
public async Task<ActionResult<ResponseObject>> PutType24Async(Guid orderId, [FromBody] CreateCommandGroup12Request req)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -2915,6 +2918,8 @@ namespace BMA.EHR.Command.Service.Controllers
|
|||
order.AuthorizedPosition = req.signatoryPosition;
|
||||
order.CommandStatus = status!;
|
||||
order.CommandAffectDate = req.orderDate;
|
||||
order.ConclusionTranferNo = req.conclusionTranferNo;
|
||||
order.ConclusionTranferDate = req.conclusionTranferDate;
|
||||
|
||||
var result = await _repository.UpdateAsync(order);
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
namespace BMA.EHR.Command.Service.Requests
|
||||
{
|
||||
public class CreateCommandGroup12Request
|
||||
{
|
||||
public Guid orderTypeValue { get; set; }
|
||||
|
||||
public string orderTitle { get; set; } = string.Empty;
|
||||
|
||||
public string orderNo { get; set; } = string.Empty;
|
||||
|
||||
public int orderYear { get; set; }
|
||||
|
||||
public DateTime orderDate { get; set; }
|
||||
|
||||
public Guid orderBy { get; set; }
|
||||
|
||||
public string orderByOrganizationName { get; set; } = string.Empty;
|
||||
|
||||
public string signatoryBy { get; set; } = string.Empty;
|
||||
|
||||
public string signatoryPosition { get; set; } = string.Empty;
|
||||
|
||||
public string? conclusionTranferNo { get; set; }
|
||||
|
||||
public DateTime? conclusionTranferDate { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue