diff --git a/Zurnal/UI/conver.cs b/Zurnal/UI/conver.cs index 317b9f0..04ee953 100644 --- a/Zurnal/UI/conver.cs +++ b/Zurnal/UI/conver.cs @@ -10,8 +10,8 @@ class Conver { var attendanceData = new Dictionary> { - { " 1", new Dictionary { { new DateTime(2023, 10, 1), true }, { new DateTime(2023, 10, 2), false } } }, - { " 2", new Dictionary { { new DateTime(2023, 10, 1), true }, { new DateTime(2023, 10, 2), true } } } + { "Студент 1", new Dictionary { { new DateTime(2023, 10, 1), true }, { new DateTime(2023, 10, 2), false } } }, + { "Студент 2", new Dictionary { { new DateTime(2023, 10, 1), true }, { new DateTime(2023, 10, 2), true } } } }; using (ExcelPackage excel = new ExcelPackage()) @@ -19,7 +19,7 @@ class Conver foreach (var group in attendanceData) { var worksheet = excel.Workbook.Worksheets.Add(group.Key); - worksheet.Cells[1, 1].Value = ""; + worksheet.Cells[1, 1].Value = "Студент"; int column = 2; foreach (var date in group.Value.Keys) @@ -36,14 +36,14 @@ class Conver foreach (var date in group.Value.Keys) { - worksheet.Cells[row, column].Value = group.Value[date] ? "" : ""; + worksheet.Cells[row, column].Value = group.Value[date] ? "Присутствует" : "Отсутствует"; column++; } row++; } } - FileInfo excelFile = new FileInfo(@"C:\Users\profi\source\Musor\Xcel"); + FileInfo excelFile = new FileInfo(@"C:\Users\profi\source\Musor\Xcel\Pametka.xlsx"); excel.SaveAs(excelFile); } } diff --git a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs index 7770847..176964f 100644 --- a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs +++ b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Zurnal")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3eca2dd8f1df208f96109526c9875abc4489d29a")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d8c07ebb08166eee30eac561a7fa77aefe53881a")] [assembly: System.Reflection.AssemblyProductAttribute("Zurnal")] [assembly: System.Reflection.AssemblyTitleAttribute("Zurnal")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache index 079bb32..bfc11be 100644 --- a/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache +++ b/Zurnal/obj/Debug/net8.0/Zurnal.AssemblyInfoInputs.cache @@ -1 +1 @@ -9c3e3ee686f577fa9c55e66a2d48d2d7111068749ef9b45e0429435fd7bbbb78 +2754838fa838fa1622a1d28241e8741e2e14cd8f1431a3835aa8fe78997d910b