using System; using System.Collections.Generic; using _0_Framework.Application.Enums; 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 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; } /// /// مقدار اضافه کار /// public string OverTimeWorkValue { get; set; } /// /// مقدار شبکاری /// public string OverNightWorkValue { get; set; } /// /// مقدار جمعه کاری /// public string FridayWorkValue { get; set; } /// /// درصد نوبت کاری /// public string RotatingShiftValue { get; set; } /// /// مقدار غیبت /// public string AbsenceValue { get; set; } /// /// تعداد روزهای محاسبه شده برای مزد مرخصی /// public string TotalDayOfLeaveCompute { get; set; } /// /// تعداد روزهای محاسبه شده برای سنوات /// public string TotalDayOfYearsCompute { get; set; } /// /// تعداد روزهای محاسبه شده برای عیدی و پاداش /// public string TotalDayOfBunosesCompute { get; set; } /// /// مدت مرخصی استعلاجی /// public string TotalSickLeave { get; set; } /// /// مدت مرخصی استحقاقی /// public string TotalPaidLeave { get; set; } /// /// آیا فیش نیاز به بروزرسانی دارد /// public bool IsUpdateNeeded { get; set; } /// /// لیست پیام های هشدار فیش حقوقی /// public List CheckoutWarningMessageList { get; set; } public bool HasSignCheckout { get; set; } public TimeSpan TotalHourlyLeave { get; set; } public List MonthlyRollCall { get; set; } public List InstallmentViewModels { get; set; } public List 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 { /// /// مجموع ساعت موظفی /// public TimeSpan TotalMandatoryTimeSpan { get; set; } /// /// مجموع ساعت حضور /// public TimeSpan TotalPresentTimeSpan { get; set; } /// /// مجموع ساعت استراحت /// public TimeSpan TotalBreakTimeSpan { get; set; } /// /// مجموع ساعت کارکرد /// public TimeSpan TotalWorkingTimeSpan { get; set; } /// /// مجموع ساعت مرخصی استحقاقی /// public TimeSpan TotalPaidLeaveTmeSpan { get; set; } /// /// مجموع ساعت مرخصی استعلاجی /// public TimeSpan TotalSickLeaveTimeSpan { get; set; } /// /// روز های حضور غیاب /// public ICollection RollCallDaysCollection { get; set; } } public class CheckoutRollCallDayViewModel { public long Id { get; set; } /// /// تاریخ /// public DateTime Date { get; set; } /// /// ورود اول /// public string FirstStartDate { get; set; } /// /// خروج اول /// public string FirstEndDate { get; set; } /// /// ورود دوم /// public string SecondStartDate { get; set; } /// /// خروج دوم /// public string SecondEndDate { get; set; } /// /// ساعت استراحت /// public TimeSpan BreakTimeSpan { get; set; } /// /// مقدار زمان کارکرد /// public TimeSpan WorkingTimeSpan { get; set; } /// /// آیا منقطع است؟ /// public bool IsSliced { get; set; } /// /// آیا غیبت است /// public bool IsAbsent { get; set; } /// /// آیا جمعه است /// public bool IsFriday { get; set; } /// /// آیا تعطیل رسمی است /// public bool IsHoliday { get; set; } /// /// نوع مرخصی - درصورت نداشتن مرخصی مقدارش null میباشد /// public string LeaveType { get; set; } public long CheckoutId { get; set; } }