Files
Backend-Api/CompanyManagment.App.Contracts/RollCall/RollCallViewModel.cs
2025-05-12 21:14:26 +03:30

68 lines
2.4 KiB
C#

using System;
using System.Collections.Generic;
namespace CompanyManagment.App.Contracts.RollCall;
public class RollCallViewModel
{
public long Id { get; set; }
public long WorkshopId { get; set; }
public string Reason { get; set; }
public long EmployeeId { get; set; }
public string PersonnelCode { get; set; }
public string EmployeeFullName { get; set; }
public string DateFa { get; set; }
public DateTime DateGr { get; set; }
public string StartDayOfWeekFa { get; set; }
public string EndDayOfWeekFa { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public DateTime ShiftDate { get; set; }
public TimeSpan ShiftSpan { get; set; }
public DateTime CreationDate { get; set; }
public string StartDateFa { get; set; }
public string EndDateFa { get; set; }
public IEnumerable<RollCallTimeViewModel> RollCallTimesList { get; set; }
public TimeSpan TotalWorkingHoursSpan { get; set; }
public string TotalWorkingHours { get; set; }
public int Year { get; set; }
public int Month { get; set; }
public bool IsAbsent { get; set; }
public bool HasLeave { get; set; }
public string DayOfWeekFa { get; set; }
public bool IsHoliday { get; set; }
public string EndTimeString { get; set; }
public string StartTimeString { get; set; }
/// <summary>
/// تاخیر در ورود (مدت زمانی که کارمند با تأخیر وارد شده است)
/// </summary>
public TimeSpan LateEntryDuration { get; set; }
/// <summary>
/// تعجیل در ورود (مدت زمانی که کارمند زودتر از زمان مشخص وارد شده است)
/// </summary>
public TimeSpan EarlyEntryDuration { get; set; }
/// <summary>
/// تاخیر در خروج (مدت زمانی که کارمند با تأخیر از کار خارج شده است)
/// </summary>
public TimeSpan LateExitDuration { get; set; }
/// <summary>
/// تعجیل در خروج (مدت زمانی که کارمند زودتر از زمان مشخص از کار خارج شده است)
/// </summary>
public TimeSpan EarlyExitDuration { get; set; }
/// <summary>
/// مقدار تایم شیفت (مدت زمان شیفت کاری)
/// </summary>
public TimeSpan ShiftDurationTimeSpan { get; set; }
/// <summary>
/// مدت زمان استراحت
/// </summary>
public TimeSpan BreakTimeSpan { get; set; }
}