From 01d9ce397e2c119e8dabfa22f814397d21a0a63e Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 15 Sep 2025 15:35:00 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=A7=E0=B8=B1=E0=B8=99?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=20(1=20=E0=B8=A1.=E0=B8=84.=20544)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Controllers/DisableController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/DisableController.cs b/Controllers/DisableController.cs index 21883db..73f98f2 100644 --- a/Controllers/DisableController.cs +++ b/Controllers/DisableController.cs @@ -1909,19 +1909,19 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers profileID = dr["profileID"].ToString(), prefix = dr["prefix"].ToString(), fullName = dr["fullName"].ToString(), - dateOfBirth = dr["dateofbirth"] == null ? "" : Convert.ToDateTime(dr["dateofbirth"]).ToThaiShortDate(), + dateOfBirth = dr["dateofbirth"] == null || Convert.ToDateTime(dr["dateofbirth"]) == DateTime.MinValue ? "" : Convert.ToDateTime(dr["dateofbirth"]).ToThaiShortDate(), gender = dr["gender"].ToString(), degree = dr["degree"].ToString(), major = dr["major"].ToString(), majorgroup = dr["majorgroup"].ToString(), certificateNo = dr["certificateno"].ToString(), - certificateIssueDate = dr["certificateIssueDate"] == null ? "" : Convert.ToDateTime(dr["certificateIssueDate"]).ToThaiShortDate(), + certificateIssueDate = dr["certificateIssueDate"] == null || Convert.ToDateTime(dr["certificateIssueDate"]) == DateTime.MinValue ? "" : Convert.ToDateTime(dr["certificateIssueDate"]).ToThaiShortDate(), ExamScore = dr["score"] == null ? 0 : dr["score"].ToString().ToInteger(), ExamResult = dr["result"].ToString(), ExamAttribute = dr["examAttribute"].ToString(), Remark = dr["remark"].ToString(), IsSpecial = dr["isspecial"].ToString(), - applyDate = dr["applydate"] == null ? "" : Convert.ToDateTime(dr["applydate"]).ToThaiShortDate(), + applyDate = dr["applydate"] == null || Convert.ToDateTime(dr["applydate"]) == DateTime.MinValue ? "" : Convert.ToDateTime(dr["applydate"]).ToThaiShortDate(), university = dr["university"].ToString(), position_name = dr["position_name"].ToString(), hddPosition = dr["hddPosition"].ToString(),