report ใบสมัครสอบ

This commit is contained in:
Kittapath 2023-10-13 06:19:30 +07:00
parent 4d634413d0
commit 05a06e6431
7 changed files with 474 additions and 79 deletions

View file

@ -330,10 +330,10 @@ namespace BMA.EHR.Domain.Extensions
sb.Append(days == 0 ? "" : $"{days} วัน ");
return sb.ToString();
}
public static CalculateBetweenDateV2ValueObj? CalculateBetweenDateV2Value(this DateTime startDate, DateTime endDate)
public static CalculateBetweenDateV2ValueObj CalculateBetweenDateV2Value(this DateTime startDate, DateTime endDate)
{
if (startDate == null || endDate == null)
return null;
// if (startDate == null || endDate == null)
// return null;
DateTime today = endDate;
DateTime birthDate = Convert.ToDateTime(startDate).AddDays(-1);
var years1 = birthDate;