โอนคนสรรหาไปบรรจุ
This commit is contained in:
parent
49d6f1eb41
commit
1a832061a9
49 changed files with 1725 additions and 765 deletions
16
Models/MetaData/BloodGroup.cs
Normal file
16
Models/MetaData/BloodGroup.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class BloodGroup : EntityBase
|
||||
{
|
||||
[Required, MaxLength(2), Column(Order = 1), Comment("ชื่อหมู่โลหิต")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
21
Models/MetaData/District.cs
Normal file
21
Models/MetaData/District.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Org.BouncyCastle.Asn1.X509;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class District : EntityBase
|
||||
{
|
||||
[Required, MaxLength(150), Column(Order = 1), Comment("เขต/อำเภอ")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public virtual List<SubDistrict> SubDistricts { get; set; } = new();
|
||||
|
||||
public virtual Province? Province { get; set; }
|
||||
}
|
||||
}
|
||||
16
Models/MetaData/EducationLevel.cs
Normal file
16
Models/MetaData/EducationLevel.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class EducationLevel : EntityBase
|
||||
{
|
||||
[Required, MaxLength(100), Column(Order = 1), Comment("ระดับการศึกษา")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
16
Models/MetaData/Gendor.cs
Normal file
16
Models/MetaData/Gendor.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class Gender : EntityBase
|
||||
{
|
||||
[Required, MaxLength(20), Column(Order = 1), Comment("เพศ")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
16
Models/MetaData/PositionPath.cs
Normal file
16
Models/MetaData/PositionPath.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class PositionPath : EntityBase
|
||||
{
|
||||
[Required, MaxLength(100), Column(Order = 1), Comment("ชื่อสายงาน")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
16
Models/MetaData/Prefix.cs
Normal file
16
Models/MetaData/Prefix.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class Prefix : EntityBase
|
||||
{
|
||||
[Required, MaxLength(50), Column(Order = 2), Comment("รายละเอียดคำนำหน้า")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 3), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
18
Models/MetaData/Province.cs
Normal file
18
Models/MetaData/Province.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class Province : EntityBase
|
||||
{
|
||||
[Required, MaxLength(150), Column(Order = 1), Comment("จังหวัด")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public virtual List<District> Districts { get; set; } = new();
|
||||
}
|
||||
}
|
||||
15
Models/MetaData/Relationship.cs
Normal file
15
Models/MetaData/Relationship.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models;
|
||||
|
||||
public class Relationship: EntityBase
|
||||
{
|
||||
[Required, MaxLength(50), Column(Order = 1), Comment("ชื่อความสัมพันธ์")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
17
Models/MetaData/Religion.cs
Normal file
17
Models/MetaData/Religion.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Org.BouncyCastle.Asn1.X509;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class Religion : EntityBase
|
||||
{
|
||||
[Required, MaxLength(100), Column(Order = 1), Comment("ศาสนา")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 2), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
22
Models/MetaData/SubDistrict.cs
Normal file
22
Models/MetaData/SubDistrict.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using BMA.EHR.Recruit.Service.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Org.BouncyCastle.Asn1.X509;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.MetaData.Service.Models
|
||||
{
|
||||
public class SubDistrict : EntityBase
|
||||
{
|
||||
[Required, MaxLength(150), Column(Order = 1), Comment("เขต/อำเภอ")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, MaxLength(10), Column(Order = 2), Comment("รหัสไปรษณีย์")]
|
||||
public string ZipCode { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 3), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public virtual District? District { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue