47 lines
2.6 KiB
C#
47 lines
2.6 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BMA.EHR.Domain.Models.HR
|
|
{
|
|
public class ProfileAddressHistory : EntityBase
|
|
{
|
|
[Comment("ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่")]
|
|
public bool? RegistrationSame { get; set; }
|
|
[MaxLength(200), Comment("ที่อยู่ตามทะเบียนบ้าน")]
|
|
public string? RegistrationAddress { get; set; }
|
|
[Comment("Id แขวงตามทะเบียนบ้าน")]
|
|
public Guid? RegistrationSubDistrictId { get; set; }
|
|
[Comment("แขวงตามทะเบียนบ้าน")]
|
|
public string? RegistrationSubDistrict { get; set; }
|
|
[Comment("Id เขตตามทะเบียนบ้าน")]
|
|
public Guid? RegistrationDistrictId { get; set; }
|
|
[Comment("เขตตามทะเบียนบ้าน")]
|
|
public string? RegistrationDistrict { get; set; }
|
|
[Comment("Id จังหวัดตามทะเบียนบ้าน")]
|
|
public Guid? RegistrationProvinceId { get; set; }
|
|
[Comment("จังหวัดตามทะเบียนบ้าน")]
|
|
public string? RegistrationProvince { get; set; }
|
|
[MaxLength(5), Comment("รหัสไปรษณีย์ตามทะเบียนบ้าน")]
|
|
public string? RegistrationZipCode { get; set; }
|
|
[MaxLength(200), Comment("ที่อยู่ปัจจุบัน")]
|
|
public string? CurrentAddress { get; set; }
|
|
[Comment("Id แขวงปัจจุบัน")]
|
|
public Guid? CurrentSubDistrictId { get; set; }
|
|
[Comment("แขวงปัจจุบัน")]
|
|
public string? CurrentSubDistrict { get; set; }
|
|
[Comment("Id เขตปัจจุบัน")]
|
|
public Guid? CurrentDistrictId { get; set; }
|
|
[Comment("เขตปัจจุบัน")]
|
|
public string? CurrentDistrict { get; set; }
|
|
[Comment("Id จังหวัดปัจจุบัน")]
|
|
public Guid? CurrentProvinceId { get; set; }
|
|
[Comment("จังหวัดปัจจุบัน")]
|
|
public string? CurrentProvince { get; set; }
|
|
[MaxLength(5), Comment("รหัสไปรษณีย์ปัจจุบัน")]
|
|
public string? CurrentZipCode { get; set; }
|
|
public virtual Profile? Profile { get; set; }
|
|
}
|
|
}
|
|
|