เพิ่ม api วันที่จ้างลูกจ้าง

This commit is contained in:
Kittapath 2023-10-24 18:22:20 +07:00
parent 929d9d5c96
commit 97b85a34e7
8 changed files with 17220 additions and 3 deletions

View file

@ -325,5 +325,6 @@ namespace BMA.EHR.Domain.Models.HR
public virtual List<ProfileChildren> Childrens { get; set; } = new List<ProfileChildren>();
public virtual List<ProfileChangeName> ChangeNames { get; set; } = new List<ProfileChangeName>();
public virtual List<ProfileEmployment> Employments { get; set; } = new List<ProfileEmployment>();
}
}

View file

@ -0,0 +1,16 @@
using System;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileEmployment : EntityBase
{
[Comment("คำสั่ง")]
public string? Command { get; set; }
[Comment("วันที่จ้าง")]
public DateTime? Date { get; set; }
public virtual Profile? Profile { get; set; }
}
}

View file

@ -0,0 +1,16 @@
using System;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileEmploymentHistory : EntityBase
{
[Comment("คำสั่ง")]
public string? Command { get; set; }
[Comment("วันที่จ้าง")]
public DateTime? Date { get; set; }
public virtual ProfileEmployment? ProfileEmployment { get; set; }
}
}