From f07b4037f6edf7135e5647cb5924d040d7fa55c3 Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Fri, 4 Aug 2023 15:17:17 +0700 Subject: [PATCH] fix bugs create and update command - :Add OrderDate Parameter --- BMA.EHR.Command.Service/Controllers/OrderController.cs | 4 +++- BMA.EHR.Command.Service/Requests/CreateCommandRequest.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/BMA.EHR.Command.Service/Controllers/OrderController.cs b/BMA.EHR.Command.Service/Controllers/OrderController.cs index d89d1b8c..264926fa 100644 --- a/BMA.EHR.Command.Service/Controllers/OrderController.cs +++ b/BMA.EHR.Command.Service/Controllers/OrderController.cs @@ -382,7 +382,8 @@ namespace BMA.EHR.Command.Service.Controllers ConclusionRegisterNo = req.conclusionRegisterNo, ConclusionRegisterDate = req.conclusionRegisterDate, ConclusionResultNo = req.conclusionResultNo, - ConclusionResultDate = req.conclusionResultDate + ConclusionResultDate = req.conclusionResultDate, + CommandAffectDate = req.orderDate }; var result = await _repository.AddAsync(inserted); @@ -433,6 +434,7 @@ namespace BMA.EHR.Command.Service.Controllers order.ConclusionResultNo = req.conclusionResultNo; order.ConclusionResultDate = req.conclusionResultDate; order.CommandStatus = status!; + order.CommandAffectDate = req.orderDate; var result = await _repository.UpdateAsync(order); diff --git a/BMA.EHR.Command.Service/Requests/CreateCommandRequest.cs b/BMA.EHR.Command.Service/Requests/CreateCommandRequest.cs index 336cd3c4..c14accfd 100644 --- a/BMA.EHR.Command.Service/Requests/CreateCommandRequest.cs +++ b/BMA.EHR.Command.Service/Requests/CreateCommandRequest.cs @@ -10,6 +10,8 @@ public int orderYear { get; set; } + public DateTime orderDate { get; set; } + public Guid orderBy { get; set; } public string signatoryBy { get; set; }