Add Profile Table

This commit is contained in:
Suphonchai Phoonsawat 2023-06-26 15:18:39 +07:00
parent aa691fe65f
commit 68dab7a727
69 changed files with 18537 additions and 84 deletions

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Base
{
public class EntityLinkBase
{

View file

@ -1,7 +1,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class LimitLeave : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class LimitTypeLeave : EntityBase
{

View file

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Documents;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class Profile : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAbility : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAbilityHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAddressHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAssessment : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAssessmentHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Documents;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileAvatarHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileCertificate : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileCertificateHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using BMA.EHR.Domain.Models.Documents;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileChangeName : EntityBase
{

View file

@ -3,7 +3,7 @@ using BMA.EHR.Domain.Models.Documents;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileChangeNameHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileChildren : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileChildrenHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileCoupleHistory
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileCurrentAddressHistory
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileDiscipline : EntityBase
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileDisciplineHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileDuty : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileDutyHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileEducation : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileEducationHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileFamilyHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileFatherHistory
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileGovernmentHistory : EntityBase
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileHonor : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileHonorHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileInsignia : EntityBase
{

View file

@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileInsigniaHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileLeave : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileLeaveHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileMotherHistory
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileNopaid : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileNopaidHistory : EntityBase
{

View file

@ -1,7 +1,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileOrganization : EntityBase
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileOther : EntityBase
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileOtherHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using BMA.EHR.Domain.Models.Documents;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfilePaper : EntityBase
{

View file

@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileRegistrationAddressHistory
{

View file

@ -1,7 +1,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalary : EntityBase
{

View file

@ -1,7 +1,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryHistory : EntityBase
{

View file

@ -1,9 +1,8 @@
using BMA.EHR.Profile.Service.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryOrganization
{

View file

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryPosition
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryPositionLevel
{

View file

@ -1,9 +1,8 @@
using BMA.EHR.Profile.Service.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryPositionNumber
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileSalaryPositionType
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileTraining : EntityBase
{

View file

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class ProfileTrainingHistory : EntityBase
{

View file

@ -2,7 +2,7 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Profile.Service.Models.HR
namespace BMA.EHR.Domain.Models.HR
{
public class TypeLeave : EntityBase
{

View file

@ -1,15 +0,0 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Organization.Service.Models
{
public class OrganizationPublishHistoryEntity : EntityBase
{
[Column(Order = 1), Comment("รายละเอียดการแก้ไข")]
public string Detail { get; set; } = string.Empty;
[Column(Order = 2), Comment("เก็บ Object ที่มีการอัพเดตในระบบ")]
public string ObjectValue { get; set; } = string.Empty;
}
}

View file

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class AvailablePositionLevelEntity : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class OrganizationEntity : EntityBase
{

View file

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class OrganizationPositionEntity : EntityBase
{

View file

@ -0,0 +1,15 @@
using BMA.EHR.Domain.Models.Base;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Domain.Models.Organizations
{
public class OrganizationPublishHistoryEntity : EntityBase
{
[Column(Order = 1), Comment("รายละเอียดการแก้ไข")]
public string Detail { get; set; } = string.Empty;
[Column(Order = 2), Comment("เก็บ Object ที่มีการอัพเดตในระบบ")]
public string ObjectValue { get; set; } = string.Empty;
}
}

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class PositionMasterEntity : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class PositionMasterHistoryEntity : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
public class PositionNumberEntity : EntityBase
{

View file

@ -1,6 +1,6 @@
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models
namespace BMA.EHR.Domain.Models.Organizations
{
/// <summary>
/// Link Profile กับ OrganizationPosition

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models.Report2
namespace BMA.EHR.Domain.Models.Organizations.Report2
{
public class Report2 : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models.Report2
namespace BMA.EHR.Domain.Models.Organizations.Report2
{
public class Report2DetailHistory : EntityBase
{

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Organization.Service.Models.Report2
namespace BMA.EHR.Domain.Models.Organizations.Report2
{
public class Report2History : EntityBase
{