comment excel data

This commit is contained in:
2026-01-18 14:17:23 +03:30
parent 90fa0ac8f8
commit 355ec72140

View File

@@ -51,16 +51,16 @@ public class CaseHistoryController : ClientBaseController
return await _rollCallApplication.GetCaseHistoryDetails(_workshopId, titleId, searchModel);
}
[HttpGet("excel")]
public async Task<IActionResult> GetDownload(string titleId,RollCallCaseHistorySearchModel searchModel)
{
var data = await _rollCallApplication.GetCaseHistoryDetails(_workshopId, titleId, searchModel);
byte[] excelBytes = RollCallExcelGenerator.CaseHistoryExcelForOneDay(data);
return File(excelBytes,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
$"{workshopFullName} - {caseHistoryRollCallExcelForOneDay.DayOfWeekFa}،{caseHistoryRollCallExcelForOneDay.DateFa}.xlsx");
}
// [HttpGet("excel")]
// public async Task<IActionResult> GetDownload(string titleId,RollCallCaseHistorySearchModel searchModel)
// {
// var data = await _rollCallApplication.GetCaseHistoryDetails(_workshopId, titleId, searchModel);
// byte[] excelBytes = RollCallExcelGenerator.CaseHistoryExcelForOneDay(data);
// return File(excelBytes,
// "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
// $"{workshopFullName} - {caseHistoryRollCallExcelForOneDay.DayOfWeekFa}،{caseHistoryRollCallExcelForOneDay.DateFa}.xlsx");
//
// }
// [HttpGet("edit")]
// public ActionResult<> GetEditDetails(string date,long employeeId)