ปรับปรุงหลายข้อ
This commit is contained in:
@@ -16,7 +16,7 @@ namespace TodoAPI2.Models
|
||||
rep_eva02WithSelectionViewModel GetWithSelection(Guid id);
|
||||
rep_eva02WithSelectionViewModel GetBlankItem();
|
||||
|
||||
|
||||
void SetEvaDate(rep_eva02ReportRequestModel model);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace TodoAPI2.Models
|
||||
|
||||
public int? round_id { get; set; }
|
||||
public string round_text { get; set; }
|
||||
|
||||
public string eva_date { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,13 @@ namespace TodoAPI2.Models
|
||||
return i;
|
||||
}
|
||||
|
||||
public void SetEvaDate(rep_eva02ReportRequestModel model)
|
||||
{
|
||||
model.eva_date = (from i in _repository.Context.eva_adjust_postponement
|
||||
where i.id == model.round_id
|
||||
select MyHelper.GetDateStringForReport(i.theDate)).FirstOrDefault();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user