This commit is contained in:
parent
8566987275
commit
ad70e8164c
2 changed files with 7 additions and 1 deletions
|
|
@ -259,6 +259,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
Oc = x.Oc,
|
||||
Position = x.Position,
|
||||
LastUpdatedAt = x.LastUpdatedAt,
|
||||
profileType = x.profileType,
|
||||
HistoryStatus = x.DisciplineComplaint_Appeal_Historys.Select(p => new
|
||||
{
|
||||
Status = p.Status,
|
||||
|
|
@ -298,6 +299,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
_data.Oc,
|
||||
_data.Position,
|
||||
_data.LastUpdatedAt,
|
||||
_data.profileType,
|
||||
_data.HistoryStatus,
|
||||
disciplineComplaint_Appeal_Docs,
|
||||
};
|
||||
|
|
@ -432,6 +434,7 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
ProfileId = req.ProfileId,
|
||||
Position = req.Position,
|
||||
Oc = req.Oc,
|
||||
profileType = req.profileType,
|
||||
CreatedFullName = FullName ?? "System Administrator",
|
||||
CreatedUserId = UserId ?? "",
|
||||
CreatedAt = DateTime.Now,
|
||||
|
|
@ -631,8 +634,10 @@ namespace BMA.EHR.DisciplineComplaint_Appeal.Service.Controllers
|
|||
CitizenId = x.CitizenId,
|
||||
ProfileId = x.ProfileId,
|
||||
LastUpdatedAt = x.LastUpdatedAt,
|
||||
profileType = x.profileType
|
||||
})
|
||||
.OrderByDescending(x => x.LastUpdatedAt)
|
||||
.OrderByDescending(x => x.profileType)
|
||||
.ThenByDescending(x => x.LastUpdatedAt)
|
||||
.Skip((page - 1) * pageSize)
|
||||
.Take(pageSize)
|
||||
.ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue