без комментариев
This commit is contained in:
parent
259259e165
commit
4da00e2360
Binary file not shown.
Binary file not shown.
BIN
WinFormUchetLab/PluginsApp/plugins/System.Text.Encodings.Web.dll
Normal file
BIN
WinFormUchetLab/PluginsApp/plugins/System.Text.Encodings.Web.dll
Normal file
Binary file not shown.
BIN
WinFormUchetLab/PluginsApp/plugins/System.Text.Json.dll
Normal file
BIN
WinFormUchetLab/PluginsApp/plugins/System.Text.Json.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1414
WinFormUchetLab/PluginsApp/plugins/WinFormUchetLab.deps.json
Normal file
1414
WinFormUchetLab/PluginsApp/plugins/WinFormUchetLab.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
WinFormUchetLab/PluginsApp/plugins/WinFormUchetLab.exe
Normal file
BIN
WinFormUchetLab/PluginsApp/plugins/WinFormUchetLab.exe
Normal file
Binary file not shown.
@ -0,0 +1,18 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.Reflection.NullabilityInfoContext.IsSupported": true
|
||||
}
|
||||
}
|
||||
}
|
@ -7,6 +7,7 @@ using CustomComponents.NonVisualComponents;
|
||||
using DocumentFormat.OpenXml.Spreadsheet;
|
||||
using Non_visual_components_Kouvshinoff;
|
||||
using Non_visual_components_Kouvshinoff.InfoModels;
|
||||
using PdfSharp.Pdf.Advanced;
|
||||
using PluginsConventionLibrary;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -28,7 +29,7 @@ namespace WinFormUchetLab
|
||||
private readonly ControlDataTableRow controlDataTableRow1 = new();
|
||||
private readonly CustomComponents.NonVisualComponents.PdfImage _pdfImage = new();
|
||||
private readonly Non_visual_components_Kouvshinoff.CustomComponentExcelTableWithHeader _customComponentExcelTableWithHeader = new();
|
||||
private readonly ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartPieWord _componentDocumentWithChartPieWord = new();
|
||||
private readonly ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartBarWord _componentDocumentWithChartBarWord = new();
|
||||
public PluginsConvention()
|
||||
{
|
||||
_labLogic = new LabLogic(new LabStorage());
|
||||
@ -161,7 +162,6 @@ namespace WinFormUchetLab
|
||||
}
|
||||
public bool CreateSimpleDocument(PluginsConventionSaveDocument saveDocument)
|
||||
{
|
||||
|
||||
List<string> images = new List<string>();
|
||||
var list = _labLogic.ReadList(null);
|
||||
|
||||
@ -174,10 +174,10 @@ namespace WinFormUchetLab
|
||||
images.Add(item.TaskImage);
|
||||
}
|
||||
string[] imagesArray = images.ToArray();
|
||||
_pdfImage.CreatePdfDoc(new DataForImage(saveDocument.FileName, "Картинки для лаб", imagesArray));
|
||||
return true;
|
||||
|
||||
_pdfImage.CreatePdfDoc(new DataForImage(saveDocument.FileName, "Изображения к лабораторным", imagesArray));
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -214,7 +214,7 @@ namespace WinFormUchetLab
|
||||
}
|
||||
public bool CreateChartDocument(PluginsConventionSaveDocument saveDocument)
|
||||
{
|
||||
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
|
||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||
|
||||
var data = new Dictionary<string, List<(int Date, double Value)>>();
|
||||
|
||||
@ -241,7 +241,7 @@ namespace WinFormUchetLab
|
||||
|
||||
try
|
||||
{
|
||||
_componentDocumentWithChartPieWord.CreateDoc(new ComponentDocumentWithChartConfig
|
||||
_componentDocumentWithChartBarWord.CreateDoc(new ComponentDocumentWithChartConfig
|
||||
{
|
||||
Header = "Проверки",
|
||||
FilePath = saveDocument.FileName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user