LV1_006 - เช็คเวลาต้องลงเวลาเข้าหรือออกงาน (USER)
This commit is contained in:
parent
c9f68b045b
commit
065314fd6c
20 changed files with 967 additions and 258 deletions
|
|
@ -2,7 +2,7 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave
|
||||
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
||||
{
|
||||
public class DutyTime : EntityBase
|
||||
{
|
||||
44
BMA.EHR.Domain/Models/Leave/TimeAttendants/UserTimeStamp.cs
Normal file
44
BMA.EHR.Domain/Models/Leave/TimeAttendants/UserTimeStamp.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.TimeAttendants
|
||||
{
|
||||
public class UserTimeStamp : 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("พิกัดละติจูด")]
|
||||
public double Lat { get; set; } = 0;
|
||||
|
||||
[Required, Comment("พิกัดลองจิจูด")]
|
||||
public double Lon { get; set; } = 0;
|
||||
|
||||
[Required, Comment("ชื่อสถานที่ ได้มาจากระบบ ArcGis ของกองสารสนเทศภูมิศาสตร์")]
|
||||
public string POI { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("true คือ ณ สถานที่ตั้ง, false คือ นอกสถานที่ตั้ง")]
|
||||
public bool IsLocation { get; set; } = true;
|
||||
|
||||
[Comment("กรณีเลือกนอกสถานที่ตั้ง ต้องระบุข้อมูลชื่อสถานะที่")]
|
||||
public string? LocationName { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รูปถ่ายสถานที่ checkin/checkout")]
|
||||
public string ImageUrl { get; set; } = string.Empty;
|
||||
|
||||
[Comment("ข้อความหมายเหตุที่ต้องการระบุเพิ่ม(มีเผื่อไว้อาจไม่ได้ใช้)")]
|
||||
public string? Remark { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue