api ตำแหน่ง draft
This commit is contained in:
parent
6b7fcaaba2
commit
6a572144ab
42 changed files with 32604 additions and 1 deletions
27
BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs
Normal file
27
BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Insignias
|
||||
{
|
||||
public class InsigniaPeriod : EntityBase
|
||||
{
|
||||
[Required, MaxLength(200)]
|
||||
public string Name { get; set; }
|
||||
|
||||
public int Year { get; set; }
|
||||
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string Amount { get; set; }
|
||||
|
||||
[MaxLength(10)]
|
||||
public string Type { get; set; }
|
||||
|
||||
public virtual List<InsigniaRequest> InsigniaRequests { get; set; }
|
||||
}
|
||||
}
|
||||
23
BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs
Normal file
23
BMA.EHR.Domain/Models/Insignias/InsigniaRequest.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Insignias
|
||||
{
|
||||
public class InsigniaRequest : EntityBase
|
||||
{
|
||||
[Required, MaxLength(50)]
|
||||
public string RequestStatus { get; set; }
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
public string RequestNote { get; set; }
|
||||
|
||||
public InsigniaPeriod Period { get; set; }
|
||||
|
||||
public OrganizationOrganization OrganizationOrganization { get; set; }
|
||||
|
||||
public virtual List<InsigniaRequestProfile> RequestProfiles { get; set; } = new List<InsigniaRequestProfile>();
|
||||
}
|
||||
}
|
||||
40
BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs
Normal file
40
BMA.EHR.Domain/Models/Insignias/InsigniaRequestProfile.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Insignias
|
||||
{
|
||||
public class InsigniaRequestProfile : EntityBase
|
||||
{
|
||||
[Required]
|
||||
public DateTime RequestDate { get; set; }
|
||||
|
||||
public decimal? Salary { get; set; }
|
||||
|
||||
public bool IsApprove { get; set; } = false;
|
||||
|
||||
[MaxLength(50)]
|
||||
public string QualificationStatus { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string DocumentStatus { get; set; }
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
public string Note { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string Special { get; set; }
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
public string MatchingConditions { get; set; }
|
||||
|
||||
public Profile Profile { get; set; }
|
||||
|
||||
public Insignia RequestInsignia { get; set; }
|
||||
|
||||
public InsigniaRequest Request { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,9 @@ namespace BMA.EHR.Domain.Models.Placement
|
|||
public Gender? Gender { get; set; }
|
||||
[Comment("ลำดับที่สอบได้")]
|
||||
public int? Number { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่งที่สอบได้")]
|
||||
public PositionPath? PositionCandidate { get; set; }
|
||||
[Comment("Id เลขที่ตำแหน่ง")]
|
||||
public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
[Comment("วันที่บรรจุ")]
|
||||
|
|
@ -236,6 +239,9 @@ namespace BMA.EHR.Domain.Models.Placement
|
|||
|
||||
[Comment("ผลสมัครสอบ")]
|
||||
public string? Pass { get; set; }
|
||||
|
||||
[Comment("ข้อมูลตำแหน่ง Draft")]
|
||||
public bool? Draft { get; set; }
|
||||
public virtual List<PlacementCertificate> PlacementCertificates { get; set; } = new List<PlacementCertificate>();
|
||||
public virtual List<PlacementEducation> PlacementEducations { get; set; } = new List<PlacementEducation>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue