Finish SZO

Create SZO everyday mailing
This commit is contained in:
2020-11-19 16:30:38 +05:00
parent 00c55b8a63
commit e2fcfed44c
231 changed files with 7320 additions and 409 deletions

View File

@@ -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);
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@@ -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": ""
}
}
}

View File

@@ -1 +1 @@
26a3817a2b08aed9a070b87a4c10ce848f0ff117
baef780e70a12bd4fcaf7134f5308d293405f906

View File

@@ -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

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

View 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.

View File

@@ -0,0 +1 @@
e1b6ed2f0373398028dfd026593df26438fcf919

Binary file not shown.