Merge branch 'Feature/program-manager/set-user-time' into Main
This commit is contained in:
@@ -6,7 +6,7 @@ namespace GozareshgirProgramManager.Application.Modules.Projects.Queries.Project
|
||||
public record ProjectSetTimeDetailsQuery(Guid TaskId)
|
||||
: IBaseQuery<ProjectSetTimeResponse>;
|
||||
public record ProjectSetTimeResponse(
|
||||
List<ProjectSetTimeResponseSkill> SectionItems,
|
||||
List<ProjectSetTimeResponseSkill> SkillItems,
|
||||
Guid Id,
|
||||
ProjectHierarchyLevel Level);
|
||||
|
||||
@@ -29,4 +29,5 @@ public class ProjectSetTimeResponseSectionAdditionalTime
|
||||
public int Hours { get; init; }
|
||||
public int Minutes { get; init; }
|
||||
public string Description { get; init; }
|
||||
public string CreationDate { get; set; }
|
||||
}
|
||||
|
||||
@@ -60,7 +60,9 @@ public class ProjectSetTimeDetailsQueryHandler
|
||||
{
|
||||
Description = x.Reason ?? "",
|
||||
Hours = (int)x.Hours.TotalHours,
|
||||
Minutes = x.Hours.Minutes
|
||||
Minutes = x.Hours.Minutes,
|
||||
CreationDate = x.CreationDate.ToFarsi()
|
||||
|
||||
}).ToList(),
|
||||
InitCreationTime = ts.CreationDate.ToFarsi(),
|
||||
SkillName = skill?.Name ?? "",
|
||||
@@ -70,7 +72,7 @@ public class ProjectSetTimeDetailsQueryHandler
|
||||
InitialHours = (int)ts.InitialEstimatedHours.TotalHours,
|
||||
InitialMinutes = ts.InitialEstimatedHours.Minutes,
|
||||
};
|
||||
}).ToList(),
|
||||
}).OrderBy(x=>x.SkillId).ToList(),
|
||||
task.Id,
|
||||
ProjectHierarchyLevel.Task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user