ย้ายมาออกรายงานผ่านระบบ
This commit is contained in:
parent
4987f7c5ad
commit
b817b781d2
144 changed files with 5573 additions and 63 deletions
|
|
@ -1,4 +1,7 @@
|
|||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using BMA.EHR.MetaData.Service.Models;
|
||||
using BMA.EHR.Profile.Service.Models;
|
||||
using BMA.EHR.Profile.Service.Models.HR;
|
||||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using BMA.EHR.Recruit.Service.Models.Recruits;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
|
|
@ -52,5 +55,7 @@ namespace BMA.EHR.Report.Service.Data
|
|||
public DbSet<RecruitDocument> RecruitDocuments { get; set; }
|
||||
|
||||
public DbSet<RecruitImportHistory> RecruitImportHistories { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
225
Data/EHRDbContext.cs
Normal file
225
Data/EHRDbContext.cs
Normal file
|
|
@ -0,0 +1,225 @@
|
|||
using BMA.EHR.MetaData.Service.Models;
|
||||
using BMA.EHR.Profile.Service.Models;
|
||||
using BMA.EHR.Profile.Service.Models.HR;
|
||||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using BMA.EHR.Recruit.Service.Models.Recruits;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Report.Service.Data
|
||||
{
|
||||
public class EHRDbContext : DbContext
|
||||
{
|
||||
public EHRDbContext(DbContextOptions<EHRDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
//base.OnModelCreating(modelBuilder);
|
||||
|
||||
//modelBuilder.Ignore<Document>();
|
||||
//modelBuilder.Ignore<RecruitImport>();
|
||||
//modelBuilder.Ignore<Recruit.Service.Models.Recruits.Recruit>();
|
||||
//modelBuilder.Ignore<RecruitAddress>();
|
||||
//modelBuilder.Ignore<RecruitOccupation>();
|
||||
//modelBuilder.Ignore<RecruitCertificate>();
|
||||
//modelBuilder.Ignore<RecruitEducation>();
|
||||
//modelBuilder.Ignore<ScoreImport>();
|
||||
//modelBuilder.Ignore<RecruitScore>();
|
||||
//modelBuilder.Ignore<RecruitPayment>();
|
||||
//modelBuilder.Ignore<RecruitDocument>();
|
||||
//modelBuilder.Ignore<RecruitImportHistory>();
|
||||
}
|
||||
|
||||
public DbSet<Document> Documents { get; set; }
|
||||
|
||||
#region " From Existing DB "
|
||||
|
||||
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<Prefix> Prefixes { get; set; }
|
||||
|
||||
public DbSet<BloodGroup> BloodGroups { get; set; }
|
||||
|
||||
public DbSet<Gender> Genders { get; set; }
|
||||
|
||||
public DbSet<PhysicalStatus> PhysicalStatuses { get; set; }
|
||||
|
||||
public DbSet<Religion> Religions { get; set; }
|
||||
|
||||
public DbSet<EducationLevel> EducationLevels { get; set; }
|
||||
|
||||
public DbSet<PositionPath> PositionPaths { get; set; }
|
||||
|
||||
public DbSet<PositionType> PositionTypes { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeePosition> PositionEmployeePositions { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeePositionSide> PositionEmployeePositionSides { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeeGroup> PositionEmployeeGroups { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeeLine> PositionEmployeeLines { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeeLevel> PositionEmployeeLevels { get; set; }
|
||||
|
||||
public DbSet<PositionEmployeeStatus> PositionEmployeeStatuses { get; set; }
|
||||
|
||||
public DbSet<PositionLine> PositionLines { get; set; }
|
||||
|
||||
public DbSet<PositionExecutive> PositionExecutives { get; set; }
|
||||
|
||||
public DbSet<PositionStatus> PositionStatuss { get; set; }
|
||||
|
||||
public DbSet<PositionLevel> PositionLevels { get; set; }
|
||||
|
||||
public DbSet<Relationship> Relationships { get; set; }
|
||||
|
||||
public DbSet<Position> Positions { get; set; }
|
||||
|
||||
public DbSet<PositionPathSide> PositionPathSides { get; set; }
|
||||
|
||||
public DbSet<PositionExecutiveSide> PositionExecutiveSides { get; set; }
|
||||
|
||||
public DbSet<InsigniaType> InsigniaTypes { get; set; }
|
||||
|
||||
public DbSet<Insignia> Insignias { get; set; }
|
||||
|
||||
public DbSet<Province> Provinces { get; set; }
|
||||
|
||||
public DbSet<District> Districts { get; set; }
|
||||
|
||||
public DbSet<SubDistrict> SubDistricts { get; set; }
|
||||
|
||||
public DbSet<Holiday> Holidays { get; set; }
|
||||
|
||||
public DbSet<OrganizationType> OrganizationTypes { get; set; }
|
||||
|
||||
public DbSet<OrganizationLevel> OrganizationLevels { get; set; }
|
||||
|
||||
public DbSet<OrganizationOrganization> OrganizationOrganizations { get; set; }
|
||||
|
||||
public DbSet<OrganizationShortName> OrganizationShortNames { get; set; }
|
||||
|
||||
public DbSet<OrganizationStatus> OrganizationStatuses { get; set; }
|
||||
|
||||
public DbSet<OrganizationAgency> OrganizationAgencys { get; set; }
|
||||
|
||||
public DbSet<OrganizationGovernmentAgency> OrganizationGovernmentAgencys { get; set; }
|
||||
|
||||
public DbSet<OrganizationTelExternal> OrganizationTelExternals { get; set; }
|
||||
|
||||
public DbSet<OrganizationTelInternal> OrganizationTelInternals { get; set; }
|
||||
|
||||
public DbSet<OrganizationFax> OrganizationFaxs { get; set; }
|
||||
|
||||
public DbSet<RoyalHierarchy> RoyalHierarchys { get; set; }
|
||||
|
||||
public DbSet<RoyalType> RoyalTypes { get; set; }
|
||||
|
||||
public DbSet<Royal> Royals { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
public DbSet<Profile.Service.Models.HR.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<ProfilePosition> ProfilePositions { get; set; }
|
||||
}
|
||||
}
|
||||
79
Data/ExamDbContext.cs
Normal file
79
Data/ExamDbContext.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using BMA.EHR.Recruit.Service.Models.Documents;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models.Disables;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Report.Service.Data
|
||||
{
|
||||
public class ExamDbContext : DbContext
|
||||
{
|
||||
public ExamDbContext(DbContextOptions<ExamDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
//base.OnModelCreating(modelBuilder);
|
||||
|
||||
//modelBuilder.Ignore<Document>();
|
||||
//modelBuilder.Ignore<RecruitImport>();
|
||||
//modelBuilder.Ignore<Recruit.Service.Models.Recruits.Recruit>();
|
||||
//modelBuilder.Ignore<RecruitAddress>();
|
||||
//modelBuilder.Ignore<RecruitOccupation>();
|
||||
//modelBuilder.Ignore<RecruitCertificate>();
|
||||
//modelBuilder.Ignore<RecruitEducation>();
|
||||
//modelBuilder.Ignore<ScoreImport>();
|
||||
//modelBuilder.Ignore<RecruitScore>();
|
||||
//modelBuilder.Ignore<RecruitPayment>();
|
||||
//modelBuilder.Ignore<RecruitDocument>();
|
||||
//modelBuilder.Ignore<RecruitImportHistory>();
|
||||
}
|
||||
|
||||
public DbSet<PeriodExam> PeriodExams { get; set; }
|
||||
|
||||
public DbSet<Candidate> Candidates { get; set; }
|
||||
|
||||
public DbSet<Career> Careers { get; set; }
|
||||
|
||||
public DbSet<Education> Educations { get; set; }
|
||||
|
||||
public DbSet<Document> Documents { get; set; }
|
||||
|
||||
public DbSet<CandidateDocument> CandidateDocuments { get; set; }
|
||||
|
||||
public DbSet<PositionExam> PositionExams { get; set; }
|
||||
|
||||
public DbSet<BankExam> BankExams { get; set; }
|
||||
|
||||
public DbSet<PeriodExamDocument> PeriodExamDocuments { get; set; }
|
||||
|
||||
public DbSet<PeriodExamImage> PeriodExamImages { get; set; }
|
||||
|
||||
public DbSet<CMSCandidate> CMSCandidates { get; set; }
|
||||
|
||||
public DbSet<CMSAgency> CMSAgencys { get; set; }
|
||||
|
||||
public DbSet<CMSGovernment> CMSGovernments { get; set; }
|
||||
|
||||
public DbSet<Disable> Disables { get; set; }
|
||||
|
||||
public DbSet<DisableAddress> DisableAddresses { get; set; }
|
||||
|
||||
public DbSet<DisableOccupation> DisableOccupations { get; set; }
|
||||
|
||||
public DbSet<DisableCertificate> DisableCertificates { get; set; }
|
||||
|
||||
public DbSet<DisableEducation> DisableEducations { get; set; }
|
||||
|
||||
public DbSet<ScoreImport> ScoreImports { get; set; }
|
||||
|
||||
public DbSet<DisableScore> DisableScores { get; set; }
|
||||
|
||||
public DbSet<DisablePayment> DisablePayments { get; set; }
|
||||
|
||||
public DbSet<DisableDocument> DisableDocuments { get; set; }
|
||||
|
||||
public DbSet<DisableImportHistory> DisableImportHistories { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue