Finish SZO
Create SZO everyday mailing
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Tests
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
test9();
|
||||
test11();
|
||||
}
|
||||
static void test1()
|
||||
{
|
||||
@@ -173,7 +173,6 @@ namespace Tests
|
||||
Console.WriteLine(t.time.ToString(@"yyyy.MM.dd HH:mm:ss.ff") + '\t' + t.id.ToString("D2") + '\t' + t.value);
|
||||
}
|
||||
}
|
||||
|
||||
static void test7()
|
||||
{
|
||||
var w = new STPClient();
|
||||
@@ -237,7 +236,6 @@ namespace Tests
|
||||
}
|
||||
fs.Close();
|
||||
}
|
||||
|
||||
static void test8()
|
||||
{
|
||||
var w = new STPClient();
|
||||
@@ -269,7 +267,6 @@ namespace Tests
|
||||
fs.Close();
|
||||
}
|
||||
}
|
||||
|
||||
static void test9()
|
||||
{
|
||||
var w = new STPClient();
|
||||
@@ -286,5 +283,54 @@ namespace Tests
|
||||
foreach (var b in a)
|
||||
Console.WriteLine(b.id.ToString("D3") + " " + b.time.ToString(@"yyyy.MM.dd HH:mm:ss.ff") + " " + b.value);
|
||||
}
|
||||
|
||||
static void test10()
|
||||
{
|
||||
var a = new List<List<SZOWork>>();
|
||||
a.Add(new List<SZOWork>());
|
||||
|
||||
var tc = new TechCycle()
|
||||
{
|
||||
index = TechCycle.Operation.unloading_loading,
|
||||
start = DateTime.Now.AddHours(-2),
|
||||
end = DateTime.Now
|
||||
};
|
||||
|
||||
var b = new SZOWork()
|
||||
{
|
||||
tc = tc,
|
||||
tStart = DateTime.Now.AddHours(-2),
|
||||
tEnd = DateTime.Now.AddHours(-1.3)
|
||||
};
|
||||
a[0].Add(b);
|
||||
|
||||
b= new SZOWork()
|
||||
{
|
||||
tc = tc,
|
||||
tStart = DateTime.Now.AddHours(-1.3),
|
||||
tEnd = DateTime.Now.AddHours(-0.7)
|
||||
};
|
||||
a[0].Add(b);
|
||||
|
||||
b = new SZOWork()
|
||||
{
|
||||
tc = tc,
|
||||
tStart = DateTime.Now.AddHours(-0.7),
|
||||
tEnd = DateTime.Now.AddHours(-0.2)
|
||||
};
|
||||
a[0].Add(b);
|
||||
|
||||
CreatePDF.PDFSZO(a, DateTime.Now);
|
||||
}
|
||||
|
||||
static void test11()
|
||||
{
|
||||
var tStart = new DateTime(2020, 11, 17, 0, 0, 0);
|
||||
var tEnd = new DateTime(2020, 11, 17, 23, 59, 59, 999);
|
||||
var r = new List<List<SZOWork>>();
|
||||
for (var i = 1; i <= 50; i++)
|
||||
r.Add(CollectData.GetSZOWorks(tStart, tEnd, (ushort)i));
|
||||
CreatePDF.PDFSZO(r, tStart);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2914
Tests/bin/Debug/netcoreapp3.1/SZO/2020-11-17.pdf
Normal file
2914
Tests/bin/Debug/netcoreapp3.1/SZO/2020-11-17.pdf
Normal file
File diff suppressed because it is too large
Load Diff
2532
Tests/bin/Debug/netcoreapp3.1/SZO/2020-11-18.pdf
Normal file
2532
Tests/bin/Debug/netcoreapp3.1/SZO/2020-11-18.pdf
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Tests/bin/Debug/netcoreapp3.1/SupportClasses.dll
Normal file
BIN
Tests/bin/Debug/netcoreapp3.1/SupportClasses.dll
Normal file
Binary file not shown.
BIN
Tests/bin/Debug/netcoreapp3.1/SupportClasses.pdb
Normal file
BIN
Tests/bin/Debug/netcoreapp3.1/SupportClasses.pdb
Normal file
Binary file not shown.
@@ -93,6 +93,7 @@
|
||||
"DataClients/1.0.0": {
|
||||
"dependencies": {
|
||||
"SharpZipLib": "1.2.0",
|
||||
"SupportClasses": "1.0.0",
|
||||
"System.Text.Encoding.CodePages": "4.7.1"
|
||||
},
|
||||
"runtime": {
|
||||
@@ -151,6 +152,11 @@
|
||||
"runtime": {
|
||||
"PdfSharp.Charting.dll": {}
|
||||
}
|
||||
},
|
||||
"SupportClasses/1.0.0": {
|
||||
"runtime": {
|
||||
"SupportClasses.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -224,6 +230,11 @@
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SupportClasses/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
26a3817a2b08aed9a070b87a4c10ce848f0ff117
|
||||
baef780e70a12bd4fcaf7134f5308d293405f906
|
||||
|
@@ -107,3 +107,5 @@ D:\GIT\ASCKU_PC\Tests\obj\Debug\netcoreapp3.1\Tests.csproj.CopyComplete
|
||||
D:\GIT\ASCKU_PC\Tests\obj\Debug\netcoreapp3.1\Tests.dll
|
||||
D:\GIT\ASCKU_PC\Tests\obj\Debug\netcoreapp3.1\Tests.pdb
|
||||
D:\GIT\ASCKU_PC\Tests\obj\Debug\netcoreapp3.1\Tests.genruntimeconfig.cache
|
||||
D:\GIT\ASCKU_PC\Tests\bin\Debug\netcoreapp3.1\SupportClasses.dll
|
||||
D:\GIT\ASCKU_PC\Tests\bin\Debug\netcoreapp3.1\SupportClasses.pdb
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
|
23
Tests/obj/Release/netcoreapp3.1/Tests.AssemblyInfo.cs
Normal file
23
Tests/obj/Release/netcoreapp3.1/Tests.AssemblyInfo.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Tests")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Tests")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Tests")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Создано классом WriteCodeFragment MSBuild.
|
||||
|
@@ -0,0 +1 @@
|
||||
e1b6ed2f0373398028dfd026593df26438fcf919
|
BIN
Tests/obj/Release/netcoreapp3.1/Tests.assets.cache
Normal file
BIN
Tests/obj/Release/netcoreapp3.1/Tests.assets.cache
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user