namespace PERMDAL.DTOs; public class AppraisalTypeDTO { public int AppraisalTypeId { get; set; } public string AppraisalTypeCode { get; set; } = string.Empty; public string AppraisalTypeName { get; set; } = string.Empty; public string? Description { get; set; } public decimal MeasureWeightage { get; set; } public decimal GoalWeightage { get; set; } public string? Remarks { get; set; } public int CreatedById { get; set; } public DateTime? CreatedOn { get; set; } public int ModifiedById { get; set; } public DateTime? ModifiedOn { get; set; } public int SortOrder { get; set; } public short Status { get; set; } // 0=Inactive 1=Active public int Version { get; set; } public short SourceType { get; set; } public int TenantId { get; set; } public short Nature { get; set; } // 0=Self 1=ReportingTo 2=360 3=Peer public List KRAs { get; set; } = new(); } public class AppraisalTypeKRADTO { public int AppraisalTypeKRAId { get; set; } public int AppraisalTypeId { get; set; } public int SlNo { get; set; } public int KRAId { get; set; } public string KRAName { get; set; } = string.Empty; public decimal KRAMeasureWeightage { get; set; } public decimal KRAGoalWeightage { get; set; } public List Measures { get; set; } = new(); } public class AppraisalTypeMeasureDTO { public int AppraisalTypeMeasureId { get; set; } public int AppraisalTypeKRAId { get; set; } public int SlNo { get; set; } public int MeasureId { get; set; } public string MeasureName { get; set; } = string.Empty; public decimal Weightage { get; set; } } public sealed class AppraisalTypeListDTO { public int AppraisalTypeId { get; set; } public string AppraisalTypeCode { get; set; } = string.Empty; public string AppraisalTypeName { get; set; } = string.Empty; public short Nature { get; set; } public short Status { get; set; } public int KRACount { get; set; } public int TotalCount { get; set; } } public sealed class AppraisalTypeSelectDTO { public int AppraisalTypeId { get; set; } public string AppraisalTypeCode { get; set; } = string.Empty; public string AppraisalTypeName { get; set; } = string.Empty; public short Nature { get; set; } }