แก้ไขใบเสร็จใบกำกับเครื่องราช

This commit is contained in:
Kittapath 2023-09-19 19:33:02 +07:00
parent 48ace11503
commit c3cc2d0b94
3 changed files with 17 additions and 12 deletions

View file

@ -124,7 +124,8 @@ namespace BMA.EHR.Insignia.Service.Controllers
ret = oc + "/" + ret;
}
ret = ret.Substring(0, ret.Length - 1);
if (ret.Length > 2)
ret = ret.Substring(0, ret.Length - 1);
return ret;
}
@ -1462,6 +1463,9 @@ namespace BMA.EHR.Insignia.Service.Controllers
}
else
{
profileInsignia.DatePayment = req.DatePayment;
profileInsignia.TypePayment = req.TypePayment;
profileInsignia.Address = req.Address;
if (profileInsignia.Status != "DONE")
{
profileInsignia.Issue = req.Issue;
@ -1472,9 +1476,9 @@ namespace BMA.EHR.Insignia.Service.Controllers
profileInsignia.Section = req.Section;
profileInsignia.Page = req.Page;
profileInsignia.No = req.No;
profileInsignia.DatePayment = req.DatePayment;
profileInsignia.TypePayment = req.TypePayment;
profileInsignia.Address = req.Address;
// profileInsignia.DatePayment = req.DatePayment;
// profileInsignia.TypePayment = req.TypePayment;
// profileInsignia.Address = req.Address;
profileInsignia.RequestInsignia = insignia;
profileInsignia.LastUpdateFullName = FullName ?? "System Administrator";
profileInsignia.LastUpdateUserId = UserId ?? "";