|
|
|
@ -16,6 +16,20 @@ public class Ghra_StaffServices : BaseServices<Ghra_Staff, Ghra_StaffDto, Insert |
|
|
|
|
base._caching = caching; |
|
|
|
|
_ghra_StaffLicenceServices = ghra_StaffLicenceServices; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override async Task<ServicePageResult<Ghra_StaffDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true) |
|
|
|
|
{ |
|
|
|
|
var result = await base.QueryFilterPage(filter, condition, IsEnable); |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < result.result.DT_TableDataT1.Count; i++) |
|
|
|
|
{ |
|
|
|
|
result.result.DT_TableDataT1[i].GenderLabel = await GetParaLabel("Gender", result.result.DT_TableDataT1[i].Gender); |
|
|
|
|
result.result.DT_TableDataT1[i].IndateLabel = DateTimeHelper.ConvertToDayString(result.result.DT_TableDataT1[i].Indate); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public async Task<ServiceResult<Ghra_StaffDto>> QuerySimple(int id) |
|
|
|
|
{ |
|
|
|
|
var entity = await Db.Ado.SqlQuerySingleAsync<Ghra_StaffDto>($"SELECT * FROM Ghra_Staff WHERE StaffID='{id}' "); |
|
|
|
|