Merge branch 'develop' into working
# Conflicts: # BMA.EHR.Discipline.Service/Controllers/DisciplineInvestigateController.cs
This commit is contained in:
commit
37d9a5d7f5
61 changed files with 74888 additions and 80 deletions
|
|
@ -4,6 +4,7 @@ using BMA.EHR.Domain.Models.Base;
|
|||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.Leave.TimeAttendants;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.HR
|
||||
{
|
||||
|
|
@ -326,5 +327,13 @@ namespace BMA.EHR.Domain.Models.HR
|
|||
public virtual List<ProfileChildren> Childrens { get; set; } = new List<ProfileChildren>();
|
||||
public virtual List<ProfileChangeName> ChangeNames { get; set; } = new List<ProfileChangeName>();
|
||||
public virtual List<ProfileEmployment> Employments { get; set; } = new List<ProfileEmployment>();
|
||||
|
||||
// รอบการลงเวลา
|
||||
[Comment("รอบการลงเวลาเข้างาน")]
|
||||
public Guid? DutyTimeId { get; set; }
|
||||
|
||||
[Comment("วันที่รอบการลงเวลามีผล")]
|
||||
public DateTime? DutyTimeEffectiveDate { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
||||
{
|
||||
public class AdditionalCheckRequest: EntityBase
|
||||
{
|
||||
[Required,Comment("*วันที่ลงเวลา")]
|
||||
public DateTime CheckDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Comment("*ขอลงเวลาช่วงเช้า")]
|
||||
public bool CheckInEdit { get; set; } = false;
|
||||
|
||||
[Required, Comment("*ขอลงเวลาช่วงบ่าย")]
|
||||
public bool CheckOutEdit { get; set; } = false;
|
||||
|
||||
[Required, Comment("*หมายเหตุขอลงเวลาพิเศษ")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Comment("สถานะการอนุมัติ")]
|
||||
public string Status { get; set; } = "PENDING"; // APPROVE,REJECT
|
||||
|
||||
[Comment("หมายเหตุในการการอนุมัติ/ไม่อนุมัติ")]
|
||||
public string? Comment { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รหัส User ของ Keycloak ที่ร้องขอ")]
|
||||
public Guid KeycloakUserId { get; set; } = Guid.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
||||
{
|
||||
public class ProcessUserTimeStamp : EntityBase
|
||||
{
|
||||
[Required, Comment("รหัส User ของ Keycloak")]
|
||||
public Guid KeycloakUserId { get; set; } = Guid.Empty;
|
||||
|
||||
[Required, Comment("วัน เวลา เข้างาน")]
|
||||
public DateTime CheckIn { get; set; } = DateTime.MinValue;
|
||||
|
||||
[Comment("วัน เวลา ออกงาน")]
|
||||
public DateTime? CheckOut { get; set; }
|
||||
|
||||
[Required, Comment("นำไปประมวลผลแล้วหรือยัง")]
|
||||
public bool IsProcess { get; set; } = false;
|
||||
|
||||
[Required, Comment("พิกัดละติจูด Check-In")]
|
||||
public double CheckInLat { get; set; } = 0;
|
||||
|
||||
[Required, Comment("พิกัดลองจิจูด Check-In")]
|
||||
public double CheckInLon { get; set; } = 0;
|
||||
|
||||
[Required, Comment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-In")]
|
||||
public string CheckInPOI { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-In")]
|
||||
public bool IsLocationCheckIn { get; set; } = true;
|
||||
|
||||
[Comment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-In")]
|
||||
public string? CheckInLocationName { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รูปถ่ายสถานที่ Check-In")]
|
||||
public string CheckInImageUrl { get; set; } = string.Empty;
|
||||
|
||||
[Comment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-In")]
|
||||
public string? CheckInRemark { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("สถานะ Check-In")]
|
||||
public string? CheckInStatus { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("พิกัดละติจูด Check-Out")]
|
||||
public double CheckOutLat { get; set; } = 0;
|
||||
|
||||
[Required, Comment("พิกัดลองจิจูด Check-Out")]
|
||||
public double CheckOutLon { get; set; } = 0;
|
||||
|
||||
[Required, Comment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์ Check-Out")]
|
||||
public string CheckOutPOI { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง Check-Out")]
|
||||
public bool IsLocationCheckOut { get; set; } = true;
|
||||
|
||||
[Comment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่ Check-Out")]
|
||||
public string? CheckOutLocationName { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รูปถ่ายสถานที่ Check-Out")]
|
||||
public string CheckOutImageUrl { get; set; } = string.Empty;
|
||||
|
||||
[Comment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-Out")]
|
||||
public string? CheckOutRemark { get; set; } = string.Empty;
|
||||
|
||||
[Comment("สถานะ Check-Out")]
|
||||
public string? CheckOutStatus { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
26
BMA.EHR.Domain/Models/Leave/TimeAttendants/UserDutyTime.cs
Normal file
26
BMA.EHR.Domain/Models/Leave/TimeAttendants/UserDutyTime.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
||||
{
|
||||
public class UserDutyTime : EntityBase
|
||||
{
|
||||
[Required, Comment("รหัส Profile ในระบบทะเบียนประวัติ")]
|
||||
public Guid ProfileId { get; set; } = Guid.Empty;
|
||||
|
||||
[Required, Comment("รหัสรอบการลงเวลา")]
|
||||
public Guid DutyTimeId { get; set; } = Guid.Empty;
|
||||
|
||||
public DutyTime DutyTime { get; set; }
|
||||
|
||||
[Comment("วันที่มีผล")]
|
||||
public DateTime? EffectiveDate { get; set; }
|
||||
|
||||
[Comment("ทำการประมวลผลแล้วหรือยัง")]
|
||||
public bool IsProcess { get; set; } = false;
|
||||
|
||||
[Comment("หมายเหตุ")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -59,7 +59,5 @@ namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
|||
|
||||
[Comment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้) Check-Out")]
|
||||
public string? CheckOutRemark { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue