Merge branch 'develop' into develop-tee
This commit is contained in:
commit
c9ac388249
30 changed files with 12329 additions and 469 deletions
|
|
@ -36,6 +36,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BMA.EHR.API.Command\BMA.EHR.API.Command.csproj" />
|
||||
<ProjectReference Include="..\BMA.EHR.Infrastructure\BMA.EHR.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,10 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Application.Repositories;
|
||||
using BMA.EHR.Application.Repositories;
|
||||
using BMA.EHR.Domain.Common;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Placement;
|
||||
using BMA.EHR.Domain.Shared;
|
||||
using BMA.EHR.Infrastructure.Persistence;
|
||||
using BMA.EHR.Placement.Service.Requests;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Sentry;
|
||||
using Swashbuckle.AspNetCore.Annotations;
|
||||
using System.Security.Claims;
|
||||
|
||||
|
|
@ -26,14 +19,17 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
{
|
||||
private readonly PlacementRepository _repository;
|
||||
private readonly ApplicationDBContext _context;
|
||||
private readonly MinIOService _documentService;
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
|
||||
public PlacementController(PlacementRepository repository,
|
||||
ApplicationDBContext context,
|
||||
MinIOService documentService,
|
||||
IHttpContextAccessor httpContextAccessor)
|
||||
{
|
||||
_repository = repository;
|
||||
_context = context;
|
||||
_documentService = documentService;
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
}
|
||||
|
||||
|
|
@ -100,8 +96,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
FullName = x.Prefix == null ? null : x.Prefix.Name + $"{x.Firstname} {x.Lastname}",
|
||||
IdCard = x.CitizenId,
|
||||
ProfilePhoto = x.Id,
|
||||
OrganizationName = x.OrganizationPosition == null ? null : x.OrganizationPosition.OrganizationId,////
|
||||
OrganizationShortName = x.OrganizationPosition == null ? null : x.OrganizationPosition.OrganizationId,////
|
||||
OrganizationName = x.OrganizationPosition == null ? null : (x.OrganizationPosition.Organization == null ? null : (x.OrganizationPosition.Organization.OrganizationOrganization == null ? null : x.OrganizationPosition.Organization.OrganizationOrganization.Name)),////
|
||||
OrganizationShortName = x.OrganizationPosition == null ? null : (x.OrganizationPosition.Organization == null ? null : (x.OrganizationPosition.Organization.OrganizationShortName == null ? null : x.OrganizationPosition.Organization.OrganizationShortName.Name)),////
|
||||
PositionNumber = x.PositionNumber == null ? null : x.PositionNumber.Name,
|
||||
PositionPath = x.PositionPath == null ? null : x.PositionPath.Name,
|
||||
ReportingDate = x.ReportingDate,
|
||||
|
|
@ -206,17 +202,24 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
return Success(placement);
|
||||
}
|
||||
|
||||
[HttpPost("pass/deferment")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePersonDeferment([FromBody] PersonDefermentRequest req)
|
||||
[HttpPost("pass/deferment"), DisableRequestSizeLimit]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePersonDeferment()
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(req.PersonalId);
|
||||
var person = await _context.PlacementProfiles.FindAsync(Request.Form.ContainsKey("personalId") ? Guid.Parse(Request.Form["personalId"]) : Guid.Parse("00000000-0000-0000-0000-000000000000"));
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
person.IsRelief = true;
|
||||
person.ReliefReason = req.Note;
|
||||
person.ReliefReason = Request.Form.ContainsKey("note") ? Request.Form["note"] : "";
|
||||
person.PlacementStatus = "UN-CONTAIN";
|
||||
//person.ReliefDoc = req.UploadFile;xxxxxxxxxxxxxx
|
||||
if (Request.Form.Files != null && Request.Form.Files.Count != 0)
|
||||
{
|
||||
var file = Request.Form.Files[0];
|
||||
var fileExtension = Path.GetExtension(file.FileName);
|
||||
|
||||
var doc = await _documentService.UploadFileAsync(file, file.FileName);
|
||||
person.ReliefDoc = doc;
|
||||
}
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
|
|
@ -245,14 +248,13 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
[HttpGet("pass/deferment/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> GetPersonDeferment(Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
var person = await _context.PlacementProfiles.Include(x => x.ReliefDoc).FirstOrDefaultAsync(x => x.Id == personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
var data = new
|
||||
{
|
||||
ReliefReason = person.ReliefReason,
|
||||
ReliefDoc = person.ReliefReason,
|
||||
//ReliefDoc = person.ReliefDoc == null ? null : await _documentService.ImagesPath(person.ReliefDoc.Id),xxxxxxxxxxxxxx
|
||||
ReliefDoc = person.ReliefDoc == null ? null : await _documentService.ImagesPath(person.ReliefDoc.Id),
|
||||
};
|
||||
|
||||
return Success(data);
|
||||
|
|
@ -272,14 +274,302 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
return Success(data);
|
||||
}
|
||||
|
||||
[HttpPost("pass/stat/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePositionByPerson(Guid personalId)
|
||||
[HttpPost("pass")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePositionByPerson([FromBody] PersonSelectPositionRequest req)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(req.PersonalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
if (req.PosNoId != null)
|
||||
{
|
||||
var save_posNo = await _context.PositionNumbers.FindAsync(req.PosNoId);
|
||||
if (save_posNo == null)
|
||||
return Error(GlobalMessages.PositionPosNoNotFound, 404);
|
||||
person.PositionNumber = save_posNo;
|
||||
|
||||
var save_orgPosition = await _context.OrganizationPositions.FirstOrDefaultAsync(x => x.PositionNumber == save_posNo);
|
||||
if (save_orgPosition == null)
|
||||
return Error(GlobalMessages.PositionPosNoNotFound, 404);
|
||||
person.OrganizationPosition = save_orgPosition;
|
||||
}
|
||||
|
||||
if (req.PositionId != null)
|
||||
{
|
||||
var save = await _context.PositionPaths.FindAsync(req.PositionId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PositionPathNotFound, 404);
|
||||
person.PositionPath = save;
|
||||
}
|
||||
|
||||
if (req.PositionLevelId != null)
|
||||
{
|
||||
var save = await _context.PositionLevels.FindAsync(req.PositionLevelId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PositionLevelNotFound, 404);
|
||||
person.PositionLevel = save;
|
||||
}
|
||||
|
||||
if (req.PositionLineId != null)
|
||||
{
|
||||
var save = await _context.PositionLines.FindAsync(req.PositionLineId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PositionLineNotFound, 404);
|
||||
person.PositionLine = save;
|
||||
}
|
||||
|
||||
if (req.PositionPathSideId != null)
|
||||
{
|
||||
var save = await _context.PositionPathSides.FindAsync(req.PositionPathSideId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PositionPathSideNotFound, 404);
|
||||
person.PositionPathSide = save;
|
||||
}
|
||||
|
||||
if (req.PositionTypeId != null)
|
||||
{
|
||||
var save = await _context.PositionTypes.FindAsync(req.PositionTypeId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PositionTypeNotFound, 404);
|
||||
person.PositionType = save;
|
||||
}
|
||||
person.Amount = req.SalaryAmount;
|
||||
person.MouthSalaryAmount = req.MouthSalaryAmount;
|
||||
person.PositionSalaryAmount = req.PositionSalaryAmount;
|
||||
person.RecruitDate = req.ContainDate;
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("information/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateInformation([FromBody] PersonInformationRequest req, Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
if (req.PrefixId != null)
|
||||
{
|
||||
var save = await _context.Prefixes
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.PrefixId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.PrefixNotFound, 404);
|
||||
person.Prefix = save;
|
||||
}
|
||||
if (req.GenderId != null)
|
||||
{
|
||||
var save = await _context.Genders
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.GenderId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.GenderNotFound, 404);
|
||||
person.Gender = save;
|
||||
}
|
||||
if (req.RelationshipId != null)
|
||||
{
|
||||
var save = await _context.Relationships
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.RelationshipId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.RelationshipNotFound, 404);
|
||||
person.Relationship = save;
|
||||
}
|
||||
if (req.BloodGroupId != null)
|
||||
{
|
||||
var save = await _context.BloodGroups
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.BloodGroupId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.BloodGroupNotFound, 404);
|
||||
person.BloodGroup = save;
|
||||
}
|
||||
if (req.ReligionId != null)
|
||||
{
|
||||
var save = await _context.Religions
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.ReligionId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.ReligionNotFound, 404);
|
||||
person.Religion = save;
|
||||
}
|
||||
|
||||
person.CitizenId = req.CitizenId;
|
||||
person.Firstname = req.FirstName;
|
||||
person.Lastname = req.LastName;
|
||||
person.Nationality = req.Nationality;
|
||||
person.Race = req.Race;
|
||||
person.DateOfBirth = req.BirthDate;
|
||||
person.Telephone = req.TelephoneNumber;
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("address/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateAddress([FromBody] PersonAddressRequest req, Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
if (req.RegistrationSubDistrictId != null)
|
||||
{
|
||||
var save = await _context.SubDistricts.FindAsync(req.RegistrationSubDistrictId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.SubDistrictNotFound, 404);
|
||||
person.RegistSubDistrict = save;
|
||||
person.RegistZipCode = save.ZipCode;
|
||||
}
|
||||
|
||||
if (req.RegistrationDistrictId != null)
|
||||
{
|
||||
var save = await _context.Districts.FindAsync(req.RegistrationDistrictId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.DistrictNotFound, 404);
|
||||
person.RegistDistrict = save;
|
||||
}
|
||||
|
||||
if (req.RegistrationProvinceId != null)
|
||||
{
|
||||
var save = await _context.Provinces.FindAsync(req.RegistrationProvinceId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.ProvinceNotFound, 404);
|
||||
person.RegistProvince = save;
|
||||
}
|
||||
|
||||
if (req.CurrentSubDistrictId != null)
|
||||
{
|
||||
var save = await _context.SubDistricts.FindAsync(req.CurrentSubDistrictId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.SubDistrictNotFound, 404);
|
||||
person.CurrentSubDistrict = save;
|
||||
person.CurrentZipCode = save.ZipCode;
|
||||
}
|
||||
|
||||
if (req.CurrentDistrictId != null)
|
||||
{
|
||||
var save = await _context.Districts.FindAsync(req.CurrentDistrictId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.DistrictNotFound, 404);
|
||||
person.CurrentDistrict = save;
|
||||
}
|
||||
|
||||
if (req.CurrentProvinceId != null)
|
||||
{
|
||||
var save = await _context.Provinces.FindAsync(req.CurrentProvinceId);
|
||||
if (save == null)
|
||||
return Error(GlobalMessages.ProvinceNotFound, 404);
|
||||
person.CurrentProvince = save;
|
||||
}
|
||||
|
||||
person.RegistSame = req.RegistrationSame;
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("family/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateFamily([FromBody] PersonFamilyRequest req, Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
if (req.Couple == true && req.CouplePrefixId != null)
|
||||
{
|
||||
var save_prefix = await _context.Prefixes
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.CouplePrefixId);
|
||||
if (save_prefix == null)
|
||||
return Error(GlobalMessages.PrefixNotFound, 404);
|
||||
person.MarryPrefix = save_prefix;
|
||||
}
|
||||
|
||||
if (req.FatherPrefixId != null)
|
||||
{
|
||||
var save_prefix = await _context.Prefixes
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.FatherPrefixId);
|
||||
if (save_prefix == null)
|
||||
return Error(GlobalMessages.PrefixNotFound, 404);
|
||||
person.FatherPrefix = save_prefix;
|
||||
}
|
||||
|
||||
if (req.MotherPrefixId != null)
|
||||
{
|
||||
var save_prefix = await _context.Prefixes
|
||||
.AsQueryable()
|
||||
.FirstOrDefaultAsync(x => x.Id == req.MotherPrefixId);
|
||||
if (save_prefix == null)
|
||||
return Error(GlobalMessages.PrefixNotFound, 404);
|
||||
person.MotherPrefix = save_prefix;
|
||||
}
|
||||
|
||||
person.Marry = req.Couple;
|
||||
person.MarryFirstName = req.CoupleFirstName;
|
||||
person.MarryLastName = req.CoupleLastName;
|
||||
// person.MarryLastNameOld = req.CoupleLastNameOld;
|
||||
person.MarryOccupation = req.CoupleCareer;
|
||||
// person.MarryCitizenId = req.CoupleCitizenId;
|
||||
// person.MarryLive = req.CoupleLive;
|
||||
person.FatherFirstName = req.FatherFirstName;
|
||||
person.FatherLastName = req.FatherLastName;
|
||||
person.FatherOccupation = req.FatherCareer;
|
||||
// person.FatherCitizenId = req.FatherCitizenId;
|
||||
// person.FatherLive = req.FatherLive;
|
||||
person.MotherFirstName = req.MotherFirstName;
|
||||
person.MotherLastName = req.MotherLastName;
|
||||
person.MotherOccupation = req.MotherCareer;
|
||||
// person.MotherCitizenId = req.MotherCitizenId;
|
||||
// person.MotherLive = req.MotherLive;
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("certificate/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateCertificate([FromBody] PersonCertificateRequest req, Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
[HttpGet("education/{personalId:length(36)}")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdateEducation([FromBody] PersonEducationRequest req, Guid personalId)
|
||||
{
|
||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
||||
if (person == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
||||
person.LastUpdateUserId = UserId ?? "";
|
||||
person.LastUpdatedAt = DateTime.Now;
|
||||
_context.SaveChanges();
|
||||
|
||||
return Success();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
20
BMA.EHR.Placement.Service/Requests/PersonAddressRequest.cs
Normal file
20
BMA.EHR.Placement.Service/Requests/PersonAddressRequest.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonAddressRequest
|
||||
{
|
||||
public bool? RegistrationSame { get; set; }
|
||||
public string? RegistrationAddress { get; set; }
|
||||
public Guid? RegistrationSubDistrictId { get; set; }
|
||||
public Guid? RegistrationDistrictId { get; set; }
|
||||
public Guid? RegistrationProvinceId { get; set; }
|
||||
public string? RegistrationZipCode { get; set; }
|
||||
public string? CurrentAddress { get; set; }
|
||||
public Guid? CurrentSubDistrictId { get; set; }
|
||||
public Guid? CurrentDistrictId { get; set; }
|
||||
public Guid? CurrentProvinceId { get; set; }
|
||||
public string? CurrentZipCode { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonCertificateRequest
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool Value { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonDefermentRequest
|
||||
{
|
||||
public Guid PersonalId { get; set; }
|
||||
public string Note { get; set; }
|
||||
public bool UploadFile { get; set; }
|
||||
}
|
||||
}
|
||||
11
BMA.EHR.Placement.Service/Requests/PersonEducationRequest.cs
Normal file
11
BMA.EHR.Placement.Service/Requests/PersonEducationRequest.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonEducationRequest
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public bool Value { get; set; }
|
||||
}
|
||||
}
|
||||
41
BMA.EHR.Placement.Service/Requests/PersonFamilyRequest.cs
Normal file
41
BMA.EHR.Placement.Service/Requests/PersonFamilyRequest.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonFamilyRequest
|
||||
{
|
||||
public bool? Couple { get; set; }
|
||||
public Guid? CouplePrefixId { get; set; }
|
||||
public string? CoupleFirstName { get; set; }
|
||||
public string? CoupleLastName { get; set; }
|
||||
public string? CoupleLastNameOld { get; set; }
|
||||
public string? CoupleCareer { get; set; }
|
||||
public string? CoupleCitizenId { get; set; }
|
||||
public bool CoupleLive { get; set; }
|
||||
|
||||
public Guid? FatherPrefixId { get; set; }
|
||||
public string? FatherFirstName { get; set; }
|
||||
public string? FatherLastName { get; set; }
|
||||
public string? FatherCareer { get; set; }
|
||||
public string? FatherCitizenId { get; set; }
|
||||
public bool FatherLive { get; set; }
|
||||
|
||||
public Guid? MotherPrefixId { get; set; }
|
||||
public string? MotherFirstName { get; set; }
|
||||
public string? MotherLastName { get; set; }
|
||||
public string? MotherCareer { get; set; }
|
||||
public string? MotherCitizenId { get; set; }
|
||||
public bool MotherLive { get; set; }
|
||||
public virtual List<ProfileChildrenRequest> Childrens { get; set; } = new List<ProfileChildrenRequest>();
|
||||
}
|
||||
public class ProfileChildrenRequest
|
||||
{
|
||||
public Guid? ChildrenPrefixId { get; set; }
|
||||
public string? ChildrenFirstName { get; set; }
|
||||
public string? ChildrenLastName { get; set; }
|
||||
public string? ChildrenCareer { get; set; }
|
||||
public string? ChildrenCitizenId { get; set; }
|
||||
public string ChildrenLive { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonInformationRequest
|
||||
{
|
||||
public string? CitizenId { get; set; }
|
||||
public Guid? PrefixId { get; set; }
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
public Guid? GenderId { get; set; }
|
||||
public string? Nationality { get; set; }
|
||||
public string? Race { get; set; }
|
||||
public Guid? ReligionId { get; set; }
|
||||
public DateTime? BirthDate { get; set; }
|
||||
public Guid? BloodGroupId { get; set; }
|
||||
public Guid? RelationshipId { get; set; }
|
||||
public string? TelephoneNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Placement.Service.Requests
|
||||
{
|
||||
public class PersonSelectPositionRequest
|
||||
{
|
||||
public Guid? PersonalId { get; set; }
|
||||
public DateTime? ContainDate { get; set; }
|
||||
public Guid? PosNoId { get; set; }
|
||||
public Guid? PositionId { get; set; }
|
||||
public Guid? PositionLevelId { get; set; }
|
||||
public Guid? PositionLineId { get; set; }
|
||||
public Guid? PositionPathSideId { get; set; }
|
||||
public Guid? PositionTypeId { get; set; }
|
||||
public double? SalaryAmount { get; set; }
|
||||
public double? MouthSalaryAmount { get; set; }
|
||||
public double? PositionSalaryAmount { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -31,5 +31,6 @@
|
|||
"AccessKey": "frappet",
|
||||
"SecretKey": "P@ssw0rd",
|
||||
"BucketName": "bma-recruit"
|
||||
}
|
||||
},
|
||||
"Protocol": "HTTPS"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue