api บันทึก และ แสดง ข้อมูลผู้สมัคร
This commit is contained in:
parent
ffeab6a127
commit
a781c375d7
40 changed files with 10433 additions and 2 deletions
19
Core/GlobalMessages.cs
Normal file
19
Core/GlobalMessages.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace BMA.EHR.Recurit.Exam.Service.Core
|
||||
{
|
||||
public class GlobalMessages
|
||||
{
|
||||
public const string DataExist = "มีข้อมูลดังกล่าวอยู่ในระบบแล้ว";
|
||||
public const string NameDupicate = "ชื่อวันหยุดนี้มีอยู่ในระบบอยู่แล้ว";
|
||||
public const string ExamNotFound = "ไม่พบข้อมูลการรับสมัครสอบ";
|
||||
public const string CandidateNotFound = "ไม่พบข้อมูลผู้สมัครสอบ";
|
||||
public const string CareerNotFound = "ไม่พบข้อมูลประวัติการทำงาน/ฝึกงาน";
|
||||
public const string EducationNotFound = "ไม่พบข้อมูลประวัติการศีกษา";
|
||||
public const string DistrictNotFound = "ไม่พบข้อมูลเขต/อำเภอ";
|
||||
public const string EducationLevelNotFound = "ไม่พบข้อมูลวุฒิการศีกษา";
|
||||
public const string PrefixNotFound = "ไม่พบข้อมูลคำนำหน้า";
|
||||
public const string ProvinceNotFound = "ไม่พบข้อมูลจังหวัด";
|
||||
public const string RelationshipNotFound = "ไม่พบข้อมูลสถานะภาพ";
|
||||
public const string ReligionNotFound = "ไม่พบข้อมูลศาสนา";
|
||||
public const string SubDistrictNotFound = "ไม่พบข้อมูลตำบล/แขวง";
|
||||
}
|
||||
}
|
||||
39
Core/HolidayHelper.cs
Normal file
39
Core/HolidayHelper.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
namespace BMA.EHR.Recurit.Exam.Service.Core
|
||||
{
|
||||
public static class HolidayHelper
|
||||
{
|
||||
public static bool IsHoliday(DateTime date, List<DateTime> holidays)
|
||||
{
|
||||
return holidays.Contains(date);
|
||||
}
|
||||
|
||||
public static bool IsWeekend(DateTime date)
|
||||
{
|
||||
return date.DayOfWeek == DayOfWeek.Saturday
|
||||
|| date.DayOfWeek == DayOfWeek.Sunday;
|
||||
}
|
||||
|
||||
public static bool IsWeekend6Days(DateTime date)
|
||||
{
|
||||
return date.DayOfWeek == DayOfWeek.Sunday;
|
||||
}
|
||||
|
||||
public static DateTime GetNextWorkingDay(DateTime date, List<DateTime> holidays)
|
||||
{
|
||||
do
|
||||
{
|
||||
date = date.AddDays(1);
|
||||
} while (IsHoliday(date, holidays) || IsWeekend(date));
|
||||
return date;
|
||||
}
|
||||
|
||||
public static DateTime GetNextWorkingDay6Days(DateTime date, List<DateTime> holidays)
|
||||
{
|
||||
do
|
||||
{
|
||||
date = date.AddDays(1);
|
||||
} while (IsHoliday(date, holidays) || IsWeekend6Days(date));
|
||||
return date;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue