ФАЙЛЫ СКАЧИВАЮТСЯ ЧЕРЕЗ ИНЕТ!!!!!! 5 МИНУТ АААААААААААААААААААААААААААААААААААААААААААААААААААААААААА

This commit is contained in:
Artyom_Yashin 2024-05-28 22:01:25 +04:00
parent fda82f22ce
commit 3891f325fc
2 changed files with 30 additions and 6 deletions

View File

@ -693,20 +693,32 @@ namespace BankClientApp.Controllers
case "word":
APIClient.PostRequest($"api/report/savetransferstoword", new ReportBindingModel
{
FileName = "C:\\Users\\123\\Desktop\\wordfile.docx",
FileName = "C:\\forpdf\\wordfile.docx",
SelectedCardIds = cards,
});
Response.Redirect("ReportWord");
break;
case "excel":
APIClient.PostRequest($"api/report/savetransferstoexcel", new ReportBindingModel
{
FileName = "C:\\Users\\123\\Desktop\\excelfile.xlsx",
FileName = "C:\\forpdf\\excelfile.xlsx",
SelectedCardIds = cards,
});
Response.Redirect("ReportExcel");
break;
default: break;
}
Response.Redirect("TransferListReport");
}
[HttpGet]
public IActionResult ReportWord()
{
return new PhysicalFileResult("C:\\forpdf\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
}
[HttpGet]
public IActionResult ReportExcel()
{
return new PhysicalFileResult("C:\\forpdf\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}
#endregion

View File

@ -488,20 +488,32 @@ namespace BankManagersClientApp.Controllers
APIClient.PostRequest("/api/report/saverequeststoword", new ReportBindingModel
{
SelectedAccountIds = accounts,
FileName = "C:\\Users\\user\\Downloads\\RequestList.docx",
FileName = "C:\\forpdf\\wordfile.docx",
});
Response.Redirect("ReportWord");
break;
case "excel":
APIClient.PostRequest("/api/report/saverequeststoexcel", new ReportBindingModel
{
SelectedAccountIds = accounts,
FileName = "C:\\Users\\user\\Downloads\\RequestList.xlsx",
FileName = "C:\\forpdf\\excelfile.xlsx",
});
Response.Redirect("ReportExcel");
break;
default:
break;
}
Response.Redirect("Index");
}
[HttpGet]
public IActionResult ReportWord()
{
return new PhysicalFileResult("C:\\forpdf\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
}
[HttpGet]
public IActionResult ReportExcel()
{
return new PhysicalFileResult("C:\\forpdf\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}
[HttpGet]