Files
Backend-Api/CompanyManagment.App.Contracts/Checkout/CheckoutViewModel.cs

251 lines
7.5 KiB
C#

using System;
using System.Collections.Generic;
using CompanyManagment.App.Contracts.Employer;
using CompanyManagment.App.Contracts.Loan;
using CompanyManagment.App.Contracts.RollCall;
using CompanyManagment.App.Contracts.SalaryAid;
using CompanyManagment.App.Contracts.WorkingHoursTemp;
namespace CompanyManagment.App.Contracts.Checkout;
public class CheckoutViewModel
{
public long Id { get; set; }
public string EmployeeFullName { get; set; }
public string FathersName { get; set; }
public string NationalCode { get; set; }
public string DateOfBirth { get; set; }
public long EmployeeId { get; set; }
public string WorkshopName { get; set; }
public long WorkshopId { get; set; }
public string ContractNo { get; set; }
public DateTime ContractStartGr { get; set; }
public DateTime ContractEndGr { get; set; }
public string ContractStart { get; set; }
public string ContractEnd { get; set; }
public DateTime CreationDate { get; set; }
public string Month { get; set; }
public string Year { get; set; }
public long ContractId { get; set; }
public string LastDayOfWork { get; set; }
public string LeftWorkDate { get; set; }
public bool IsLeft { get; set; }
public long WorkingHoursId { get; set; }
public string MonthlySalary { get; set; }
public string BaseYearsPay { get; set; }
public string ConsumableItems { get; set; }
public string HousingAllowance { get; set; }
public string MarriedAllowance { get; set; }
public string OvertimePay { get; set; }
public string NightworkPay { get; set; }
public string FridayPay { get; set; }
public string MissionPay { get; set; }
public string ShiftPay { get; set; }
public string FamilyAllowance { get; set; }
public string BonusesPay { get; set; }
public string YearsPay { get; set; }
public string LeavePay { get; set; }
public string RewardPay { get; set; }
public string InsuranceDeduction { get; set; }
public string TaxDeducation { get; set; }
public string InstallmentDeduction { get; set; }
public string SalaryAidDeduction { get; set; }
public string AbsenceDeduction { get; set; }
public string SumOfWorkingDays { get; set; }
public string ArchiveCode { get; set; }
public string PersonnelCode { get; set; }
public int PersonnelCodeInt { get; set; }
public string TotalClaims { get; set; }
public string TotalDeductions { get; set; }
public string TotalPayment { get; set; }
public string IsActiveString { get; set; }
public string Signature { get; set; }
public long EmployerId { get; set; }
public string EmployerName { get; set; }
public int PrintCounter { get; set; }
public List<EmprViewModel> EmployerList { get; set; }
public WhoursViewModel WhoursViwModel { get; set; }
public CreateWorkingHoursTemp CreateWorkingHoursTemp { get; set; }
public string EmployeeFName { get; set; }
public string EmployeeLName { get; set; }
public bool TotalPaymentHide { get; set; }
public string IsBlockCantracingParty { get; set; }
public bool HasRollCall { get; set; }
public string TotalWorkingTimeStr { get; set; }
public string TotalPresentTimeStr { get; set; }
public string TotalBreakTimeStr { get; set; }
public string TotalMandatoryTimeStr { get; set; }
public string MaritalStatus { get; set; }
/// <summary>
/// مقدار اضافه کار
/// </summary>
public string OverTimeWorkValue { get; set; }
/// <summary>
/// مقدار شبکاری
/// </summary>
public string OverNightWorkValue { get; set; }
/// <summary>
/// مقدار جمعه کاری
/// </summary>
public string FridayWorkValue { get; set; }
/// <summary>
/// درصد نوبت کاری
/// </summary>
public string RotatingShiftValue { get; set; }
/// <summary>
/// مقدار غیبت
/// </summary>
public string AbsenceValue { get; set; }
/// <summary>
/// تعداد روزهای محاسبه شده برای مزد مرخصی
/// </summary>
public string TotalDayOfLeaveCompute { get; set; }
/// <summary>
/// تعداد روزهای محاسبه شده برای سنوات
/// </summary>
public string TotalDayOfYearsCompute { get; set; }
/// <summary>
/// تعداد روزهای محاسبه شده برای عیدی و پاداش
/// </summary>
public string TotalDayOfBunosesCompute { get; set; }
/// <summary>
/// مدت مرخصی استعلاجی
/// </summary>
public string TotalSickLeave { get; set; }
/// <summary>
/// مدت مرخصی استحقاقی
/// </summary>
public string TotalPaidLeave { get; set; }
public bool HasSignCheckout { get; set; }
public TimeSpan TotalHourlyLeave { get; set; }
public List<CheckoutDailyRollCallViewModel> MonthlyRollCall { get; set; }
public List<LoanInstallmentViewModel> InstallmentViewModels { get; set; }
public List<SalaryAidViewModel> SalaryAidViewModels { get; set; }
public CheckoutRollCallViewModel CheckoutRollCall { get; set; }
public bool HasAmountConflict { get; set; }
public string EmployeeMandatoryHoursStr { get; set; }
public TimeSpan EmployeeMandatoryHoursTimeSpan { get; set; }
}
public class CheckoutRollCallViewModel
{
/// <summary>
/// مجموع ساعت موظفی
/// </summary>
public TimeSpan TotalMandatoryTimeSpan { get; set; }
/// <summary>
/// مجموع ساعت حضور
/// </summary>
public TimeSpan TotalPresentTimeSpan { get; set; }
/// <summary>
/// مجموع ساعت استراحت
/// </summary>
public TimeSpan TotalBreakTimeSpan { get; set; }
/// <summary>
/// مجموع ساعت کارکرد
/// </summary>
public TimeSpan TotalWorkingTimeSpan { get; set; }
/// <summary>
/// مجموع ساعت مرخصی استحقاقی
/// </summary>
public TimeSpan TotalPaidLeaveTmeSpan { get; set; }
/// <summary>
/// مجموع ساعت مرخصی استعلاجی
/// </summary>
public TimeSpan TotalSickLeaveTimeSpan { get; set; }
/// <summary>
/// روز های حضور غیاب
/// </summary>
public ICollection<CheckoutRollCallDayViewModel> RollCallDaysCollection { get; set; }
}
public class CheckoutRollCallDayViewModel
{
public long Id { get; set; }
/// <summary>
/// تاریخ
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// ورود اول
/// </summary>
public string FirstStartDate { get; set; }
/// <summary>
/// خروج اول
/// </summary>
public string FirstEndDate { get; set; }
/// <summary>
/// ورود دوم
/// </summary>
public string SecondStartDate { get; set; }
/// <summary>
/// خروج دوم
/// </summary>
public string SecondEndDate { get; set; }
/// <summary>
/// ساعت استراحت
/// </summary>
public TimeSpan BreakTimeSpan { get; set; }
/// <summary>
/// مقدار زمان کارکرد
/// </summary>
public TimeSpan WorkingTimeSpan { get; set; }
/// <summary>
/// آیا منقطع است؟
/// </summary>
public bool IsSliced { get; set; }
/// <summary>
/// آیا غیبت است
/// </summary>
public bool IsAbsent { get; set; }
/// <summary>
/// آیا جمعه است
/// </summary>
public bool IsFriday { get; set; }
/// <summary>
/// آیا تعطیل رسمی است
/// </summary>
public bool IsHoliday { get; set; }
/// <summary>
/// نوع مرخصی - درصورت نداشتن مرخصی مقدارش null میباشد
/// </summary>
public string LeaveType { get; set; }
public long CheckoutId { get; set; }
}