Готовая курсовая(почти)
This commit is contained in:
parent
ad24e2c38c
commit
a73d638b0e
@ -10,7 +10,7 @@ namespace UniversityBusinessLogic.OfficePackage
|
|||||||
CreatePdf(info);
|
CreatePdf(info);
|
||||||
CreateParagraph(new PdfParagraph { Text = info.Title, Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center });
|
CreateParagraph(new PdfParagraph { Text = info.Title, Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center });
|
||||||
|
|
||||||
CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm", "4 cm" });
|
CreateTable(new List<string> { "6cm", "6cm", "6cm", "3cm", "4 cm" });
|
||||||
|
|
||||||
CreateRow(new PdfRowParameters
|
CreateRow(new PdfRowParameters
|
||||||
{
|
{
|
||||||
|
@ -197,8 +197,8 @@ namespace UniversityClientApp.Controllers
|
|||||||
{
|
{
|
||||||
APIStorekeeper.PostRequest("api/teacher/loadreporttoword", new ReportBindingModel
|
APIStorekeeper.PostRequest("api/teacher/loadreporttoword", new ReportBindingModel
|
||||||
{
|
{
|
||||||
FileName = "C:\\ÂðåìåííûåÎò÷¸òû\\TeachersAndStudents.docx"
|
FileName = $"C:\\ÂðåìåííûåÎò÷¸òû\\TeachersAndStudents.docx"
|
||||||
});
|
});
|
||||||
return GetWordFile();
|
return GetWordFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ namespace UniversityClientApp.Controllers
|
|||||||
{
|
{
|
||||||
APIStorekeeper.PostRequest("api/teacher/loadreporttoexcel", new ReportBindingModel
|
APIStorekeeper.PostRequest("api/teacher/loadreporttoexcel", new ReportBindingModel
|
||||||
{
|
{
|
||||||
FileName = "C:\\ÂðåìåííûåÎò÷¸òû\\TeachersAndStudents.xlsx"
|
FileName = $"C:\\ÂðåìåííûåÎò÷¸òû\\TeachersAndStudents.xlsx"
|
||||||
});
|
});
|
||||||
return GetExcelFile();
|
return GetExcelFile();
|
||||||
}
|
}
|
||||||
|
@ -372,13 +372,13 @@ namespace UniversityClientAppWorker.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult GetWordFile()
|
public IActionResult GetWordFile()
|
||||||
{
|
{
|
||||||
return PhysicalFile($"C:\\Users\\{Environment.UserName}\\Downloads\\Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.docx",
|
return PhysicalFile($"C:\\ВременныеОтчёты\\Планы обучений по дисциплинам.docx",
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
"Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.docx");
|
"Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.docx");
|
||||||
}
|
}
|
||||||
public IActionResult GetExcelFile()
|
public IActionResult GetExcelFile()
|
||||||
{
|
{
|
||||||
return PhysicalFile($"C:\\Users\\{Environment.UserName}\\Downloads\\Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.xlsx",
|
return PhysicalFile($"C:\\ВременныеОтчёты\\Планы обучений по дисциплинам.xlsx",
|
||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
"Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.xlsx");
|
"Ïëàíû îáó÷åíèé ïî äèñöèïëèíàì.xlsx");
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ namespace UniversityDatabaseImplement
|
|||||||
if (optionsBuilder.IsConfigured == false)
|
if (optionsBuilder.IsConfigured == false)
|
||||||
{
|
{
|
||||||
//Возможно понадобится писать вместо (localdb) название пк, вот пк Егора: DESKTOP-N8BRIPR; other-name: LAPTOP-DYCTATOR; other-name: DyCTaTOR
|
//Возможно понадобится писать вместо (localdb) название пк, вот пк Егора: DESKTOP-N8BRIPR; other-name: LAPTOP-DYCTATOR; other-name: DyCTaTOR
|
||||||
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-N8BRIPR\SQLEXPRESS;Initial Catalog=UniversityDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-DYCTATOR\SQLEXPRESS;Initial Catalog=UniversityDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||||
}
|
}
|
||||||
base.OnConfiguring(optionsBuilder);
|
base.OnConfiguring(optionsBuilder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user