Add Profile Table
This commit is contained in:
parent
aa691fe65f
commit
68dab7a727
69 changed files with 18537 additions and 84 deletions
|
|
@ -1,12 +1,10 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Security.AccessControl;
|
||||
|
||||
namespace BMA.EHR.Application.Repositories
|
||||
{
|
||||
public class PrefixRepository : GenericRepository<Guid, Document>
|
||||
public class PrefixRepository : GenericRepository<Guid, Prefix>
|
||||
{
|
||||
private readonly IApplicationDBContext _dbContext;
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
|
|
@ -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
|
||||
{
|
||||
9164
BMA.EHR.Infrastructure/Migrations/20230626081723_Add Exist Db to Project.Designer.cs
generated
Normal file
9164
BMA.EHR.Infrastructure/Migrations/20230626081723_Add Exist Db to Project.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddExistDbtoProject : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,9 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.Organizations.Report2;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Persistence
|
||||
|
|
@ -101,6 +104,136 @@ namespace BMA.EHR.Infrastructure.Persistence
|
|||
|
||||
#endregion
|
||||
|
||||
#region " Organizations "
|
||||
|
||||
public DbSet<AvailablePositionLevelEntity> AvailablePositionLevels { get; set; }
|
||||
|
||||
public DbSet<PositionMasterEntity> PositionMasters { get; set; }
|
||||
|
||||
public DbSet<OrganizationEntity> Organizations { get; set; }
|
||||
|
||||
public DbSet<PositionNumberEntity> PositionNumbers { get; set; }
|
||||
|
||||
public DbSet<OrganizationPositionEntity> OrganizationPositions { get; set; }
|
||||
|
||||
public DbSet<ProfilePosition> ProfilePositions { get; set; }
|
||||
|
||||
public DbSet<Report2> Report2s { get; set; }
|
||||
|
||||
public DbSet<Report2History> Report2Histories { get; set; }
|
||||
|
||||
public DbSet<Report2DetailHistory> Report2DetailHistories { get; set; }
|
||||
|
||||
public DbSet<OrganizationPublishHistoryEntity> OrganizationPublishHistories { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region " HR "
|
||||
|
||||
public DbSet<Profile> Profiles { get; set; }
|
||||
|
||||
public DbSet<ProfileEducation> ProfileEducations { get; set; }
|
||||
|
||||
public DbSet<ProfileEducationHistory> ProfileEducationHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileHonor> ProfileHonors { get; set; }
|
||||
|
||||
public DbSet<ProfileHonorHistory> ProfileHonorHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileAssessment> ProfileAssessments { get; set; }
|
||||
|
||||
public DbSet<ProfileAssessmentHistory> ProfileAssessmentHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileDiscipline> ProfileDisciplines { get; set; }
|
||||
|
||||
public DbSet<ProfileDisciplineHistory> ProfileDisciplineHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileCertificate> ProfileCertificates { get; set; }
|
||||
|
||||
public DbSet<ProfileCertificateHistory> ProfileCertificateHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileTraining> ProfileTrainings { get; set; }
|
||||
|
||||
public DbSet<ProfileTrainingHistory> ProfileTrainingHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileInsignia> ProfileInsignias { get; set; }
|
||||
|
||||
public DbSet<ProfileInsigniaHistory> ProfileInsigniaHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileSalary> ProfileSalaries { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryHistory> ProfileSalaryHistories { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryOrganization> ProfileSalaryOrganizations { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryPosition> ProfileSalaryPositions { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryPositionNumber> ProfileSalaryPositionsNumbers { get; set; }
|
||||
|
||||
public DbSet<ProfileHistory> ProfileHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileCoupleHistory> ProfileCoupleHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileFatherHistory> ProfileFatherHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileMotherHistory> ProfileMotherHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileFamilyHistory> ProfileFamilyHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileGovernmentHistory> ProfileGovernmentHistory { get; set; }
|
||||
|
||||
public DbSet<ProfileLeave> ProfileLeaves { get; set; }
|
||||
|
||||
public DbSet<ProfileLeaveHistory> ProfileLeaveHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryPositionLevel> ProfileSalaryPositionLevels { get; set; }
|
||||
|
||||
public DbSet<ProfileSalaryPositionType> ProfileSalaryPositionTypes { get; set; }
|
||||
|
||||
public DbSet<ProfileChildren> ProfileChildrens { get; set; }
|
||||
|
||||
public DbSet<ProfileChildrenHistory> ProfileChildrenHistories { get; set; }
|
||||
|
||||
public DbSet<ProfilePaper> ProfilePapers { get; set; }
|
||||
|
||||
public DbSet<ProfileCurrentAddressHistory> ProfileCurrentAddressHistories { get; set; }
|
||||
|
||||
public DbSet<ProfileRegistrationAddressHistory> ProfileRegistrationAddressHistories { get; set; }
|
||||
|
||||
public DbSet<ProfileAddressHistory> ProfileAddressHistories { get; set; }
|
||||
|
||||
public DbSet<ProfileOther> ProfileOthers { get; set; }
|
||||
|
||||
public DbSet<ProfileOtherHistory> ProfileOtherHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileAbility> ProfileAbilitys { get; set; }
|
||||
|
||||
public DbSet<ProfileAbilityHistory> ProfileAbilityHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileDuty> ProfileDutys { get; set; }
|
||||
|
||||
public DbSet<ProfileDutyHistory> ProfileDutyHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileNopaid> ProfileNopaids { get; set; }
|
||||
|
||||
public DbSet<ProfileNopaidHistory> ProfileNopaidHistorys { get; set; }
|
||||
|
||||
public DbSet<ProfileAvatarHistory> ProfileAvatarHistories { get; set; }
|
||||
|
||||
public DbSet<ProfileOrganization> ProfileOrganizations { get; set; }
|
||||
|
||||
public DbSet<ProfileChangeName> ProfileChangeNames { get; set; }
|
||||
|
||||
public DbSet<ProfileChangeNameHistory> ProfileChangeNameHistorys { get; set; }
|
||||
|
||||
public DbSet<TypeLeave> TypeLeaves { get; set; }
|
||||
|
||||
public DbSet<LimitLeave> LimitLeaves { get; set; }
|
||||
|
||||
public DbSet<LimitTypeLeave> LimitTypeLeaves { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options) : base(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue