First commit

Send all results
This commit is contained in:
2020-09-04 12:49:15 +05:00
commit 330a2ccfda
2819 changed files with 226201 additions and 0 deletions

Binary file not shown.

BIN
.vs/Projects/v16/.suo Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>DataClients</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningLevel>0</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SharpZipLib" Version="1.2.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.7.1" />
</ItemGroup>
</Project>

136
DataClients/FileClient.cs Normal file
View File

@ -0,0 +1,136 @@
using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.Tar;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
namespace DataClients
{
public class FileClient
{
private char split = '/';
//private char split = '\\';
//private string dir = @"Y:\data";
//private string dir = @"C:\data";
private string dir = @"/archive_rmt/data";
public FileClient()
{
TempDir.StartCkeckDir();
}
public FileClient(string directory)
{
TempDir.StartCkeckDir();
dir = directory;
}
public byte[] GetFile(DateTime time, ushort vdp, ushort index)
{
var name = time.ToString("yyyyMMdd") + "." + vdp.ToString("D2") + index.ToString("D1");
var tmpFileName = TempDir.GetTempDirectory() + split + name;
if (!TempDir.IsExist(name))
{
if (!CheckArchive(time, vdp)) return new byte[0];
if (!ExtractArchive(time, vdp)) return new byte[0];
}
if (!TempDir.IsExist(name)) return new byte[0];
while (TempDir.IsProtect(name)) Thread.Sleep(1000);
TempDir.AddProtect(name);
Stream fs = File.OpenRead(tmpFileName);
var result = new List<byte>();
try
{
for (var i = 0; i < fs.Length; i++)
result.Add((byte)fs.ReadByte());
return result.ToArray();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return new byte[0];
}
finally
{
TempDir.RemoveProtect(name);
fs.Close();
}
}
private bool CheckArchive(DateTime time, ushort vdp)
{
var tmp =
dir + split +
time.Year.ToString("D4") + split +
time.Month.ToString("D2") + split +
time.Day.ToString("D2") + split +
vdp.ToString("D2");
return (File.Exists(tmp + ".tar") || File.Exists(tmp + ".tar.gz"));
}
private bool ExtractArchive(DateTime time, ushort vdp)
{
var tmp =
dir + split +
time.Year.ToString("D4") + split +
time.Month.ToString("D2") + split +
time.Day.ToString("D2") + split +
vdp.ToString("D2");
if (File.Exists(tmp + ".tar"))
{
ExtractTar(tmp + ".tar", TempDir.GetTempDirectory());
return true;
}
else if (File.Exists(tmp + ".tar.gz"))
{
ExtractTarGZ(tmp + ".tar.gz", TempDir.GetTempDirectory());
return true;
}
return false;
}
private void ExtractTarGZ(String gzArchiveName, String destFolder)
{
Stream inStream = File.OpenRead(gzArchiveName);
Stream gzipStream = new GZipInputStream(inStream);
try
{
TarArchive tarArchive = TarArchive.CreateInputTarArchive(gzipStream);
tarArchive.ExtractContents(destFolder);
tarArchive.Close();
}
catch (Exception e)
{
Console.WriteLine("Can't extract: " + gzArchiveName);
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}
finally
{
gzipStream.Close();
inStream.Close();
}
}
private void ExtractTar(String tarFileName, String destFolder)
{
Stream inStream = File.OpenRead(tarFileName);
try
{
TarArchive tarArchive = TarArchive.CreateInputTarArchive(inStream);
tarArchive.ExtractContents(destFolder);
tarArchive.Close();
}
catch (Exception e)
{
Console.WriteLine("Can't extract: " + tarFileName);
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}
finally
{
inStream.Close();
}
}
}
}

221
DataClients/NetClient.cs Normal file
View File

@ -0,0 +1,221 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace DataClients
{
public class NetClient
{
private string ServerStr = "10.10.45.152";
private int PortStr = 1070;
private IPEndPoint IpPoint;
public enum Cmd : uint
{
check_command = 4294967295,
pasp_download = 4,
download_nh = 21,
dir_browse = 23,
user_flags = 26
}
//constructor
public NetClient()
{
IpPoint = new IPEndPoint(IPAddress.Parse(ServerStr), PortStr);
}
public NetClient(string ipAddr, int port = 1070)
{
ServerStr = ipAddr;
PortStr = port;
IpPoint = new IPEndPoint(IPAddress.Parse(ServerStr), PortStr);
}
//main functions
public byte[] CreateCommand(Cmd cmd, string val = null)
{
List<byte> result = new List<byte>();
result.AddRange(BitConverter.GetBytes((uint)cmd));
if (cmd == Cmd.dir_browse) result.Add(0x00);
if (cmd == Cmd.dir_browse && String.IsNullOrEmpty(val))
result.AddRange(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00 });
if (!String.IsNullOrEmpty(val))
{
result.AddRange(BitConverter.GetBytes((uint)val.Length));
result.AddRange(Encoding.ASCII.GetBytes(val));
result.Add(0x00);
}
return result.ToArray();
}
public byte[][] SocketWork(Cmd code, string val = "")
{
var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
{
ReceiveTimeout = 5000,
SendTimeout = 5000
};
var result = new List<byte[]>();
//Install Params
var check_start_mark = true;
var check_end_mark = true;
uint static_size = 0;
switch (code)
{
case Cmd.check_command:
check_end_mark = false;
static_size = 4;
break;
case Cmd.pasp_download:
check_end_mark = false;
static_size = 1528;
break;
case Cmd.dir_browse:
case Cmd.download_nh:
case Cmd.user_flags:
check_end_mark = true;
static_size = 0;
break;
}
try
{
//Connect
socket.Connect(IpPoint);
//SendRequest
Thread.Sleep(5);
socket.Send(CreateCommand(code, val));
uint? fullSize = null;
byte mark = 0x01;
if (check_start_mark) mark = SocketReadByte(ref socket);
while(mark != 0xff)
{
switch (mark)
{
case 0x01:
var tmpL = new List<byte>();
if (code == Cmd.pasp_download)
{
tmpL.AddRange(SocketReadBytes(ref socket, 16));
if (tmpL.Last() == 0x01)
tmpL.AddRange(SocketReadBytes(ref socket, 1512));
mark = 0xff;
result.Add(tmpL.ToArray());
break;
}
{
uint size = (static_size > 0) ?
static_size : BitConverter.ToUInt32(SocketReadBytes(ref socket, 4), 0);
tmpL.AddRange(SocketReadBytes(ref socket, size));
mark = 0xff;
result.Add(tmpL.ToArray());
break;
}
case 0x02:
var currSize = BitConverter.ToUInt32(SocketReadBytes(ref socket, 4), 0);
fullSize = fullSize.HasValue ? fullSize + currSize : currSize;
break;
case 0x03:
Thread.Sleep(1000);
if (check_start_mark) mark = SocketReadByte(ref socket);
continue;
case 0x00:
if (!check_end_mark)
throw new Exception("Can't catch all packeges.");
if (result.Count == 0)
return result.ToArray();
mark = 0xff;
break;
case 0xff:
if (!check_end_mark || !fullSize.HasValue || fullSize.Value != result.Count)
throw new Exception("Can't catch all packeges.");
return result.ToArray();
default:
throw new Exception("Can't get mark for download.");
}
if (check_end_mark) mark = SocketReadByte(ref socket);
}
return result.ToArray();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result.ToArray();
}
finally
{
socket.Disconnect(false);
}
}
private byte SocketReadByte(ref Socket socket)
{
try
{
byte[] t = new byte[1];
t[0] = 0xff;
Thread.Sleep(5);
int countbyte = socket.Receive(t);
if (countbyte != 1)
throw new Exception("Error get Byte.");
return t[0];
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return 0xff;
}
}
private byte[] SocketReadBytes(ref Socket socket, uint length)
{
try
{
var result = new List<byte>();
var count = 5;
do
{
byte[] t = new byte[length];
Thread.Sleep(5);
int countbyte = socket.Receive(t);
if (countbyte != length)
{
if (countbyte > 0)
{
var c = new byte[countbyte];
Array.Copy(t, c, countbyte);
result.AddRange(t);
length = length - (uint)countbyte;
count = 5;
continue;
}
else
{
count--;
Thread.Sleep(5);
}
}
result.AddRange(t);
return result.ToArray();
} while (count >= 0);
throw new Exception("Error get Bytes.");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return new byte[0];
}
}
}
}

412
DataClients/STPClient.cs Normal file
View File

@ -0,0 +1,412 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace DataClients
{
public class STPClient
{
private NetClient netClient;
private FileClient fileClient;
public STPClient()
{
netClient = new NetClient();
fileClient = new FileClient();
}
public Pasport GetPasport(string link)
{
var result = new Pasport();
var arr = new List<byte>();
{
var tmp = netClient.SocketWork(NetClient.Cmd.pasp_download, link);
foreach (var e in tmp) arr.AddRange(e);
}
result.byteArr = arr.ToArray();
return result;
}
public Tuple<string, string>[] GetListPasport(DateTime date)
{
var result = new List<Tuple<string, string>>();
var str = date.ToString(@"yyyy\/MM\/dd");
var e = netClient.SocketWork(NetClient.Cmd.dir_browse, str);
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var enc = Encoding.GetEncoding(866);
foreach(var t in e)
{
var subres = "";
var r1 = enc.GetString(t);
var r2 = r1.Split('-');
if (r2.Length > 1)
for (var i = 1; i < r2.Length; i++) {
if (subres.Length > 0) subres = subres + "-";
subres = subres + r2[i].Split('.')[0];
}
if (!String.IsNullOrEmpty(subres))
result.Add(new Tuple<string, string>(subres, str + '/' + r1));
}
return result.ToArray();
}
public ADresult GetAnalogDiscret(DateTime start, DateTime end, ushort vdp)
{
var cursor = start;
byte[] subRes = new byte[0];
var resByteMatrix = new List<ByteMatrix>();
while (cursor.AddDays(-1) <= end)
{
subRes = GetFile(cursor, vdp, 1);
var arr = STPConverter.GetADByteMatrix(cursor, subRes);
resByteMatrix.AddRange(arr);
cursor = cursor.AddDays(1);
}
return STPConverter.AnalogDiscret(resByteMatrix,vdp);
}
public List<IshData> GetIshData(DateTime start, DateTime end, ushort vdp)
{
var result = new List<IshData>();
var cursor = start.AddDays(-1);
byte[] subRes = new byte[0];
do
{
cursor = cursor.AddDays(1);
subRes = GetFile(cursor, vdp, 0);
var arr = STPConverter.IshData(subRes);
foreach (var e in arr)
if (start <= e.time && e.time <= end)
result.Add(e);
} while (cursor <= end);
return result;
}
public List<TechCycle> GetTechCycle(DateTime start, DateTime end, ushort vdp)
{
var result = new List<TechCycle>();
var cursor = start;
byte[] subRes = new byte[0];
do
{
cursor = cursor.AddDays(-1);
subRes = GetFile(cursor, vdp, 3);
} while (subRes.Length == 0 && cursor > start.AddDays(-10));
TechCycle a = new TechCycle()
{
start = start,
index = TechCycle.Operation.unloading_loading
};
{
if (subRes.Length > 0)
{
var b = STPConverter.TechCycle(subRes);
if (b.Length > 0) a = b.Last();
}
a.start = start;
}
cursor = start.AddDays(-1);
do
{
cursor = cursor.AddDays(1);
subRes = GetFile(cursor, vdp, 3);
var arr = STPConverter.TechCycle(subRes);
foreach(var e in arr)
{
if (e.start <= start)
{
a = e;
continue;
}
if (e.start >= end)
{
a.end = end;
result.Add(a);
break;
}
if (e.start > start && e.start < end)
{
a.end = e.start;
result.Add(a);
a = e;
}
}
} while (cursor <= end);
return result;
}
public List<Protect> GetProtectData(DateTime start, DateTime end, ushort vdp)
{
var result = new List<Protect>();
var cursor = start.AddDays(-1);
byte[] subRes = new byte[0];
do
{
cursor = cursor.AddDays(1);
subRes = GetFile(cursor, vdp, 4);
var arr = STPConverter.ProtectData(subRes);
foreach (var e in arr)
if (start <= e.time && e.time <= end)
result.Add(e);
} while (cursor <= end);
return result;
}
private byte[] GetFile(DateTime time, ushort vdp, ushort index)
{
var result = new List<byte>();
var name = time.ToString("yyyyMMdd") + "." + vdp.ToString("D2") + index.ToString("D1");
var temp = new List<byte>();
temp.AddRange(fileClient.GetFile(time, vdp, index));
if (temp.Count == 0)
{
var subTemp = netClient.SocketWork(NetClient.Cmd.download_nh, name);
foreach (var e in subTemp)
temp.AddRange(e);
}
return temp.ToArray();
}
}
public static class STPConverter
{
public static IshData[] IshData(byte[] arr)
{
var result = new List<IshData>();
try
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var enc = Encoding.GetEncoding(866);
var strs = enc.GetString(arr).Split('\n');
foreach (var e in strs)
{
var substr = e.Split('\t');
if (substr.Length < 3) continue;
var time = Converter.ConvertUnixTimeToDateTime(Int32.Parse(substr[1]));
for(var i = 2; i < substr.Length; i++)
{
if (String.IsNullOrEmpty(substr[i])) continue;
var tmp = substr[i].Split(' ');
var c = new IshData() { time = time, id = Convert.ToUInt16(tmp[0]) };
var val = "";
for (var j = 1; j < tmp.Length; j++)
val = j < (tmp.Length - 1) ? val + tmp[j] + ' ' : val + tmp[j];
c.value = val;
result.Add(c);
}
}
return result.ToArray();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result.ToArray();
}
}
public static TechCycle[] TechCycle(byte[] arr)
{
var result = new List<TechCycle>();
try
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var enc = Encoding.GetEncoding(866);
var strs = enc.GetString(arr).Split('\n');
foreach(var e in strs)
{
var substr = e.Split('\t');
if (substr.Length != 3) continue;
var cycle = new TechCycle();
cycle.index = (DataClients.TechCycle.Operation)UInt32.Parse(substr[0]);
cycle.start = Converter.ConvertUnixTimeToDateTime(Int32.Parse(substr[2]));
result.Add(cycle);
}
return result.ToArray();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result.ToArray();
}
}
public static Protect[] ProtectData(byte[] arr)
{
var result = new List<Protect>();
try
{
var cursor = 0;
var time = new DateTime();
while (cursor < arr.Length)
{
if (cursor + 4 >= arr.Length) break;
time = Converter.ConvertUnixTimeToDateTime(BitConverter.ToInt32(arr, cursor));
cursor += 4;
if (cursor + 4 >= arr.Length) break;
time = time.AddMilliseconds((double)BitConverter.ToInt32(arr, cursor) / 1000000);
cursor += 4;
while (true)
{
if (cursor >= arr.Length) break;
if (arr[cursor] == 0xff)
{
cursor++;
break;
}
var id = (int)arr[cursor];
cursor++;
if (cursor >= arr.Length) break;
var value = (int)arr[cursor];
cursor++;
result.Add(new Protect()
{
time = time,
id = id,
value = value
});
}
}
return result.ToArray();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result.ToArray();
}
}
public static ADresult AnalogDiscret(List<ByteMatrix> adBytes, int vdp)
{
var result = new ADresult();
try
{
var aMatrix = new AnalogsMatrix(vdp);
foreach(var an in aMatrix.matrix)
{
var subRes = new List<Tuple<DateTime, double?>>();
foreach(var b in adBytes)
{
var c = new byte?[2];
for(var i = 0; i < 2; i++)
c[i] = b.matrix.Length > an.Value.byteId[i] ?
b.matrix[an.Value.byteId[i]] : null;
double? d = c[0].HasValue && c[1].HasValue ?
(double?)BitConverter.ToInt16(new byte[] { c[0].Value, c[1].Value }, 0) * an.Value.mul : null;
d = !d.HasValue ? null : d.Value < an.Value.min ? an.Value.min : d.Value > an.Value.max ? an.Value.max : d;
var e = new Tuple<DateTime, double?>(b.time, d);
if (subRes.Count > 1 && subRes[subRes.Count - 1].Item2 == e.Item2 && subRes[subRes.Count - 2].Item2 == e.Item2)
subRes.RemoveAt(subRes.Count - 1);
subRes.Add(e);
}
result.an.Add(an.Key, subRes.ToArray());
}
var dMatrix = new DiscretsMatrix(vdp);
foreach (var di in dMatrix.matrix)
{
var subRes = new List<Tuple<DateTime, bool?>>();
foreach (var b in adBytes)
{
bool? c = b.matrix.Length <= di.Value.byteId ? null :
!b.matrix[di.Value.byteId].HasValue ? null :
(bool?)((b.matrix[di.Value.byteId] & (1 << di.Value.bitId)) != 0);
c = !c.HasValue ? null : di.Value.invert ? !c : c;
var e = new Tuple<DateTime, bool?>(b.time, c);
if ((subRes.Count == 0) || (subRes.Count > 0 && subRes[subRes.Count - 1].Item2 != e.Item2))
subRes.Add(e);
}
result.di.Add(di.Key, subRes.ToArray());
}
return result;
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result;
}
return result;
}
public static List<ByteMatrix> GetADByteMatrix(DateTime time, byte[] arr)
{
var result = new List<ByteMatrix>();
var byteArr = new List<byte?>();
var currTime = new DateTime(time.Year, time.Month, time.Day, 0, 0, 0);
var halfsec = 0;
var cursor = 0;
try
{
while (cursor < arr.Length)
{
var id = arr[cursor];
cursor++;
switch (id)
{
case 0xfb:
halfsec = BitConverter.ToInt32(arr, cursor);
cursor = cursor + 4;
break;
case 0xfc:
byteArr = new List<byte?>();
result.Add(
new ByteMatrix()
{
time = currTime.AddSeconds((double)(halfsec + 1) / 2),
matrix = byteArr.ToArray()
}
);
halfsec = BitConverter.ToInt32(arr, cursor);
cursor = cursor + 4;
break;
case 0xfe:
halfsec = halfsec + BitConverter.ToInt16(arr, cursor);
break;
case 0xff:
result.Add(
new ByteMatrix()
{
time = currTime.AddSeconds((double)halfsec / 2),
matrix = byteArr.ToArray()
}
);
halfsec++;
break;
default:
var a = Convert.ToInt32(id);
while (byteArr.Count <= a) byteArr.Add(null);
byteArr[a] = arr[cursor];
cursor++;
break;
}
}
return result;
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
return result;
}
}
}
}

79
DataClients/TempDir.cs Normal file
View File

@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace DataClients
{
public static class TempDir
{
private static readonly char split = '/';
private static string dir = Directory.GetCurrentDirectory() + split + "temp";
private static List<string> protect = new List<string>();
private static Task checkTask = null;
private static async Task CheckDir()
{
while (true)
{
Directory.CreateDirectory(dir);
var listFiles = Directory.GetFiles(dir);
foreach (var e in listFiles)
{
var name = e.Split(split).Last();
if (!protect.Contains(name) && File.GetCreationTime(e) < DateTime.Now.AddMinutes(-5))
File.Delete(e);
}
await Task.Delay(5 * 60 * 1000);
}
}
public static void StartCkeckDir()
{
if (checkTask == null)
checkTask = Task.Run(() => CheckDir());
}
public static bool AddProtect(string name)
{
StartCkeckDir();
if (!protect.Contains(name))
{
protect.Add(name);
return true;
}
return false;
}
public static bool RemoveProtect(string name)
{
StartCkeckDir();
if (protect.Contains(name))
{
protect.Remove(name);
return true;
}
return false;
}
public static string GetTempDirectory()
{
StartCkeckDir();
return dir;
}
public static bool IsProtect(string name)
{
StartCkeckDir();
return protect.Contains(name);
}
public static bool IsExist(string name)
{
StartCkeckDir();
if (File.Exists(dir + split + name))
if (File.GetCreationTime(dir + split + name) > DateTime.Now.AddMinutes(-5))
return true;
else
File.Delete(dir + split + name);
return false;
}
}
}

603
DataClients/Variables.cs Normal file
View File

@ -0,0 +1,603 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace DataClients
{
public class IshData
{
public DateTime time;
public ushort id;
public string value;
}
public class TechCycle
{
public enum Operation : ushort
{
end_tech_cycle = 0,
unloading_loading = 1,
vacuum_welding = 2,
welding = 5,
cooling_welding = 6,
looking_welding = 7,
vacuum_melting = 8,
breeding_bathtub = 9,
melting = 10,
VUR = 11,
cooling_ingot = 12,
unloading_kit = 13,
vacuum_reflow = 14,
reflow = 15,
cooling_reflow = 16,
overflow_metal = 17,
check_protection = 25
}
public DateTime start;
public DateTime end;
public Operation index;
}
public class ByteMatrix
{
public DateTime time;
public byte?[] matrix;
}
public static class Converter
{
public static char ConvertByteToChar(byte b)
{
char temp;
switch (b)
{
case 0x00: temp = ' '; break;
case 0x09: temp = '\t'; break;
case 0x0a: temp = '\n'; break;
case 0x80: temp = 'А'; break;
case 0x81: temp = 'Б'; break;
case 0x82: temp = 'В'; break;
case 0x83: temp = 'Г'; break;
case 0x84: temp = 'Д'; break;
case 0x85: temp = 'Е'; break;
case 0x86: temp = 'Ж'; break;
case 0x87: temp = 'З'; break;
case 0x88: temp = 'И'; break;
case 0x89: temp = 'Й'; break;
case 0x8a: temp = 'К'; break;
case 0x8b: temp = 'Л'; break;
case 0x8c: temp = 'М'; break;
case 0x8d: temp = 'Н'; break;
case 0x8e: temp = 'О'; break;
case 0x8f: temp = 'П'; break;
case 0x90: temp = 'Р'; break;
case 0x91: temp = 'С'; break;
case 0x92: temp = 'Т'; break;
case 0x93: temp = 'У'; break;
case 0x94: temp = 'Ф'; break;
case 0x95: temp = 'Х'; break;
case 0x96: temp = 'Ц'; break;
case 0x97: temp = 'Ч'; break;
case 0x98: temp = 'Ш'; break;
case 0x99: temp = 'Щ'; break;
case 0x9a: temp = 'Ъ'; break;
case 0x9b: temp = 'Ы'; break;
case 0x9c: temp = 'Ь'; break;
case 0x9d: temp = 'Э'; break;
case 0x9e: temp = 'Ю'; break;
case 0x9f: temp = 'Я'; break;
case 0xa0: temp = 'а'; break;
case 0xa1: temp = 'б'; break;
case 0xa2: temp = 'в'; break;
case 0xa3: temp = 'г'; break;
case 0xa4: temp = 'д'; break;
case 0xa5: temp = 'е'; break;
case 0xa6: temp = 'ж'; break;
case 0xa7: temp = 'з'; break;
case 0xa8: temp = 'и'; break;
case 0xa9: temp = 'й'; break;
case 0xaa: temp = 'к'; break;
case 0xab: temp = 'л'; break;
case 0xac: temp = 'м'; break;
case 0xad: temp = 'н'; break;
case 0xae: temp = 'о'; break;
case 0xaf: temp = 'п'; break;
case 0xe0: temp = 'р'; break;
case 0xe1: temp = 'c'; break;
case 0xe2: temp = 'т'; break;
case 0xe3: temp = 'у'; break;
case 0xe4: temp = 'ф'; break;
case 0xe5: temp = 'х'; break;
case 0xe6: temp = 'ц'; break;
case 0xe7: temp = 'ч'; break;
case 0xe8: temp = 'ш'; break;
case 0xe9: temp = 'щ'; break;
case 0xea: temp = 'ъ'; break;
case 0xeb: temp = 'ы'; break;
case 0xec: temp = 'ь'; break;
case 0xed: temp = 'э'; break;
case 0xee: temp = 'ю'; break;
case 0xef: temp = 'я'; break;
case 0xf0: temp = 'Ё'; break;
case 0xf1: temp = 'ё'; break;
default: temp = Convert.ToChar(b); break;
}
return temp;
}
public static DateTime ConvertUnixTimeToDateTime(int unixTimeStamp)
{
DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).AddHours(5);
return dtDateTime;
}
}
public static class Names
{
public static List<string> techCycle = new List<string>()
{
"Конец технологического цикла", //00
"Выгрузка-загрузка", //01
"Вакуумирование на приварку", //02
"Цикл 3", //03
"Цикл 4", //04
"Приварка", //05
"Охлаждение приварки", //06
"Осмотр приварки", //07
"Вакуумирование на плавку", //08
"Разведение ванны", //09
"Плавка (основной режим)", //10
"ВУР", //11
"Охлаждение слитка", //12
"Выгрузка комплекта", //13
"Вакуумирование на оплавление", //14
"Оплавление", //15
"Охлаждение оплавыша", //16
"Слив металла", //17
"Цикл 18", //18
"Цикл 19", //19
"Цикл 20", //20
"Цикл 21", //21
"Цикл 22", //22
"Цикл 23", //23
"Цикл 24", //24
"Проверка защит" //25
};
public static List<string> analogFull = new List<string>()
{
"", //000
"", //001
"", //002
"", //003
"", //004
"", //005
"", //006
"", //007
"", //008
"", //009
"", //010
"", //011
"", //012
"Вакуум" //013
};
public static List<string> analogShort = new List<string>()
{
"", //000
"", //001
"", //002
"", //003
"", //004
"", //005
"", //006
"", //007
"", //008
"", //009
"", //010
"", //011
"", //012
"Вакуум" //013
};
public static List<string> analogMeasure = new List<string>()
{
"", //000
"", //001
"", //002
"", //003
"", //004
"", //005
"", //006
"", //007
"", //008
"", //009
"", //010
"", //011
"", //012
"мкм.рт.ст" //013
};
public static List<string> discretFull = new List<string>()
{
"", //000
"", //001
"", //002
"", //003
"", //004
"", //005
"", //006
"", //007
"", //008
"", //009
"", //010
"", //011
"", //012
"", //013
"", //014
"", //015
"", //016
"", //017
"", //018
"", //019
"", //020
"", //021
"SZO включен" //022
};
public static List<string> discretShort = new List<string>()
{
"", //000
"", //001
"", //002
"", //003
"", //004
"", //005
"", //006
"", //007
"", //008
"", //009
"", //010
"", //011
"", //012
"", //013
"", //014
"", //015
"", //016
"", //017
"", //018
"", //019
"", //020
"", //021
"" //022
};
public static List<string[]> dscretMods = new List<string[]>()
{
new string[] { "","" }, //000
new string[] { "","" }, //001
new string[] { "","" }, //002
new string[] { "","" }, //003
new string[] { "","" }, //004
new string[] { "","" }, //005
new string[] { "","" }, //006
new string[] { "","" }, //007
new string[] { "","" }, //008
new string[] { "","" }, //009
new string[] { "","" }, //010
new string[] { "","" }, //011
new string[] { "","" }, //012
new string[] { "","" }, //013
new string[] { "","" }, //014
new string[] { "","" }, //015
new string[] { "","" }, //016
new string[] { "","" }, //017
new string[] { "","" }, //018
new string[] { "","" }, //019
new string[] { "","" }, //020
new string[] { "","" }, //021
new string[] { "Нет","Да" } //022
};
public static List<string> protect = new List<string>()
{
"", //00
"", //01
"", //02
"", //03
"", //04
"", //05
"", //06
"", //07
"", //08
"", //09
"", //10
"", //11
"", //12
"", //13
"", //14
"", //15
"", //16
"", //17
"", //18
"", //19
"", //20
"", //21
"", //22
"", //23
"", //24
"", //25
"", //26
"", //27
"", //28
"", //29
"", //30
"", //31
"", //32
"", //33
"", //34
"", //35
"", //36
"", //37
"", //38
"", //39
"", //40
"", //41
"", //42
"", //43
"", //44
"", //45
"", //46
"", //47
"", //48
"", //49
"", //50
"", //51
"", //52
"", //53
"", //54
"", //55
"", //56
"", //57
"", //58
"", //59
"", //60
"", //61
"", //62
"", //63
"", //64
"", //65
"", //66
"", //67
"", //68
"", //69
"", //70
"", //71
"Алгоритм 31: Низкая скорость плавки!", //72
"", //73
"", //74
"", //75
"", //76
"", //77
"", //78
"", //79
"" //80
};
}
public class Pasport
{
public byte numVDP = 0x00;
public DateTime time_start = DateTime.Now;
public DateTime time_end = DateTime.Now;
public bool have_pasport = false;
public int kod_npl = 0;
public string nplav = "";
public string rm = "";
public string splav = "";
public string _is = "";
public ushort notd = 0;
public ushort vessl = 0;
public ushort diam = 0;
public ushort prpl = 0;
public string tin = "";
public string dzap = "";
public short dlog = 0;
public short last = 0;
public short dlper = 0;
public string nazn = "";
public ushort kompl = 0;
public ushort izl = 0;
public float robm = 0.0f;
public float rizol = 0.0f;
public ushort dkr = 0;
public string nkon = "";
public string pos = "";
public string ukaz = "";
public string zakaz = "";
public string kat = "";
public string pril = "";
public string rezerved = "";
public byte[] time_start_byte { set { time_start = byte_to_date(value); } }
public byte[] time_end_byte { set { time_end = byte_to_date(value); } }
private DateTime byte_to_date(byte[] a) { return (a.Length < 7) ? DateTime.Now : new DateTime(BitConverter.ToUInt16(a, 0), (int)a[2], (int)a[3], (int)a[4], (int)a[5], (int)a[6]); }
public byte[] byteArr
{
set
{
var i = 0;
if (value.Length < i + 1) return;
numVDP = value[i]; i += 1;
if (value.Length < i + 7) return;
var arr = new byte[7];
Array.Copy(value, i, arr, 0, 7);
time_start_byte = arr; i += 7;
if (value.Length < i + 7) return;
arr = new byte[7];
Array.Copy(value, i, arr, 0, 7);
time_end_byte = arr; i += 7;
if (value.Length < i + 1) return;
have_pasport = value[i] == 0x01; i += 1;
if (!have_pasport) return;
if (value.Length < i + 4) return;
kod_npl = BitConverter.ToInt32(value, i); i += 4;
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var enc = Encoding.GetEncoding(866);
if (value.Length < i + 12) return;
nplav = enc.GetString(value, i, 12); i += 12;
if (value.Length < i + 11) return;
rm = enc.GetString(value, i, 11); i += 11;
if (value.Length < i + 101) return;
splav = enc.GetString(value, i, 101); i += 101;
if (value.Length < i + 51) return;
_is = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 2) return;
notd = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 2) return;
vessl = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 2) return;
diam = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 2) return;
prpl = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 9) return;
tin = enc.GetString(value, i, 9); i += 9;
if (value.Length < i + 9) return;
dzap = enc.GetString(value, i, 9); i += 9;
if (value.Length < i + 2) return;
dlog = BitConverter.ToInt16(value, i); i += 2;
if (value.Length < i + 2) return;
last = BitConverter.ToInt16(value, i); i += 2;
if (value.Length < i + 2) return;
dlper = BitConverter.ToInt16(value, i); i += 2;
if (value.Length < i + 51) return;
nazn = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 2) return;
kompl = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 2) return;
izl = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 4) return;
robm = BitConverter.ToSingle(value, i); i += 4;
if (value.Length < i + 4) return;
rizol = BitConverter.ToSingle(value, i); i += 4;
if (value.Length < i + 2) return;
dkr = BitConverter.ToUInt16(value, i); i += 2;
if (value.Length < i + 51) return;
nkon = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 6) return;
pos = enc.GetString(value, i, 6); i += 6;
if (value.Length < i + 51) return;
ukaz = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 51) return;
zakaz = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 51) return;
kat = enc.GetString(value, i, 51); i += 51;
if (value.Length < i + 3) return;
pril = enc.GetString(value, i, 3); i += 3;
if (value.Length < i + 1023) return;
rezerved = enc.GetString(value, i, 1023); i += 1023;
}
}
public string ToString()
{
var r = new StringBuilder();
r.Append("numVDP:\t"); r.Append(numVDP); r.Append('\n');
r.Append("tStart:\t"); r.Append(time_start.ToString()); r.Append('\n');
r.Append("tEnd:\t"); r.Append(time_end.ToString()); r.Append('\n');
r.Append("Check:\t"); r.Append(have_pasport.ToString()); r.Append('\n');
if (!have_pasport) return r.ToString();
r.Append("knpl:\t"); r.Append(kod_npl); r.Append('\n');
r.Append("nplav:\t"); r.Append(nplav); r.Append('\n');
r.Append("rm:\t"); r.Append(rm); r.Append('\n');
r.Append("splav:\t"); r.Append(splav); r.Append('\n');
r.Append("_is:\t"); r.Append(_is); r.Append('\n');
r.Append("notd:\t"); r.Append(notd); r.Append('\n');
r.Append("vessl:\t"); r.Append(vessl); r.Append('\n');
r.Append("diam:\t"); r.Append(diam); r.Append('\n');
r.Append("prpl:\t"); r.Append(prpl); r.Append('\n');
r.Append("tin:\t"); r.Append(tin); r.Append('\n');
r.Append("dzap:\t"); r.Append(dzap); r.Append('\n');
r.Append("dlog:\t"); r.Append(dlog); r.Append('\n');
r.Append("last:\t"); r.Append(last); r.Append('\n');
r.Append("dlper:\t"); r.Append(dlper); r.Append('\n');
r.Append("nazn:\t"); r.Append(nazn); r.Append('\n');
r.Append("kompl:\t"); r.Append(kompl); r.Append('\n');
r.Append("izl:\t"); r.Append(izl); r.Append('\n');
r.Append("robm:\t"); r.Append(robm); r.Append('\n');
r.Append("rizol:\t"); r.Append(rizol); r.Append('\n');
r.Append("dkr:\t"); r.Append(dkr); r.Append('\n');
r.Append("nkon:\t"); r.Append(nkon); r.Append('\n');
r.Append("pos:\t"); r.Append(pos); r.Append('\n');
r.Append("ukaz:\t"); r.Append(ukaz); r.Append('\n');
r.Append("zakaz:\t"); r.Append(zakaz); r.Append('\n');
r.Append("kat:\t"); r.Append(kat); r.Append('\n');
r.Append("pril:\t"); r.Append(pril); r.Append('\n');
r.Append("rezerv:\t"); r.Append(rezerved); r.Append('\n');
return r.ToString();
}
}
public class ADresult
{
public Dictionary<int, Tuple<DateTime, double?>[]> an = new Dictionary<int, Tuple<DateTime, double?>[]>();
public Dictionary<int, Tuple<DateTime, bool?>[]> di = new Dictionary<int, Tuple<DateTime, bool?>[]>();
}
public class AnalogsMatrix
{
public Dictionary<int, Analog> matrix = new Dictionary<int, Analog>();
public AnalogsMatrix(int vdp = 0)
{
matrix.Add(13, new Analog() { min = 0, max = 1000, mul = 0.1, byteId = new ushort[] { 26, 27 } });
}
}
public class Analog
{
public double min = double.MinValue;
public double max = double.MaxValue;
public double mul = 1;
public ushort[] byteId = new ushort[0];
}
public class DiscretsMatrix
{
public Dictionary<int, Discret> matrix = new Dictionary<int, Discret>();
public DiscretsMatrix(int vdp = 0)
{
matrix.Add(22, new Discret() { byteId = 0x30, bitId = 6, invert = false });
}
}
public class Discret
{
public ushort byteId = 0x00;
public ushort bitId = 0x00;
public bool invert = false;
}
public class Protect
{
public DateTime time;
public int id;
public int value;
}
}

View File

@ -0,0 +1,97 @@
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.0/",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"DataClients/1.0.0": {
"dependencies": {
"NETStandard.Library": "2.0.3",
"SharpZipLib": "1.2.0",
"System.Text.Encoding.CodePages": "4.7.1"
},
"runtime": {
"DataClients.dll": {}
}
},
"Microsoft.NETCore.Platforms/1.1.0": {},
"NETStandard.Library/2.0.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"SharpZipLib/1.2.0": {
"runtime": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {
"assemblyVersion": "1.2.0.246",
"fileVersion": "1.2.0.246"
}
}
},
"System.Runtime.CompilerServices.Unsafe/4.7.1": {
"runtime": {
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {
"assemblyVersion": "4.0.6.0",
"fileVersion": "4.700.20.12001"
}
}
},
"System.Text.Encoding.CodePages/4.7.1": {
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.7.1"
},
"runtime": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {
"assemblyVersion": "4.1.3.0",
"fileVersion": "4.700.20.21406"
}
}
}
}
},
"libraries": {
"DataClients/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"path": "microsoft.netcore.platforms/1.1.0",
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
},
"NETStandard.Library/2.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
},
"SharpZipLib/1.2.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zvWa/L02JHNatdtjya6Swpudb2YEHaOLHL1eRrqpjm71iGRNUNONO5adUF/9CHbSJbzhELW1UoH4NGy7n7+3bQ==",
"path": "sharpziplib/1.2.0",
"hashPath": "sharpziplib.1.2.0.nupkg.sha512"
},
"System.Runtime.CompilerServices.Unsafe/4.7.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==",
"path": "system.runtime.compilerservices.unsafe/4.7.1",
"hashPath": "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512"
},
"System.Text.Encoding.CodePages/4.7.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-i2fOvznVVgOOTLUz8FgSap/MsR98I4Iaoz99VXcOW/e7Y2OdY42zhYpBYpZyivk5alYY/UsOWAVswhtjxceodA==",
"path": "system.text.encoding.codepages/4.7.1",
"hashPath": "system.text.encoding.codepages.4.7.1.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,47 @@
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.0/",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"STPClient/1.0.0": {
"dependencies": {
"NETStandard.Library": "2.0.3"
},
"runtime": {
"STPClient.dll": {}
}
},
"Microsoft.NETCore.Platforms/1.1.0": {},
"NETStandard.Library/2.0.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
}
}
},
"libraries": {
"STPClient/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"path": "microsoft.netcore.platforms/1.1.0",
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
},
"NETStandard.Library/2.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,76 @@
{
"format": 1,
"restore": {
"F:\\Projects1\\DataClients\\DataClients.csproj": {}
},
"projects": {
"F:\\Projects1\\DataClients\\DataClients.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\DataClients\\DataClients.csproj",
"projectName": "DataClients",
"projectPath": "F:\\Projects1\\DataClients\\DataClients.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\DataClients\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"SharpZipLib": {
"target": "Package",
"version": "[1.2.0, )"
},
"System.Text.Encoding.CodePages": {
"target": "Package",
"version": "[4.7.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\google\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
</ImportGroup>
</Project>

View File

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

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DataClients")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DataClients")]
[assembly: System.Reflection.AssemblyTitleAttribute("DataClients")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Создано классом WriteCodeFragment MSBuild.

View File

@ -0,0 +1 @@
5b50c6ff4854229e53843d7ef9f5704fbed5215a

View File

@ -0,0 +1 @@
28f25e2c7da5c3cddc132285b76b94739ff791dd

View File

@ -0,0 +1,18 @@
F:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.deps.json
F:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.dll
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.csprojAssemblyReference.cache
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.AssemblyInfoInputs.cache
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.AssemblyInfo.cs
F:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.pdb
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.dll
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.pdb
F:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.csproj.CoreCompileInputs.cache
G:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.deps.json
G:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.dll
G:\Projects1\DataClients\bin\Debug\netstandard2.0\DataClients.pdb
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.csprojAssemblyReference.cache
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.AssemblyInfoInputs.cache
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.AssemblyInfo.cs
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.csproj.CoreCompileInputs.cache
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.dll
G:\Projects1\DataClients\obj\Debug\netstandard2.0\DataClients.pdb

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DataClients")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DataClients")]
[assembly: System.Reflection.AssemblyTitleAttribute("DataClients")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Создано классом WriteCodeFragment MSBuild.

View File

@ -0,0 +1 @@
5b50c6ff4854229e53843d7ef9f5704fbed5215a

View File

@ -0,0 +1 @@
7ee31470a41af845680b94375cd688c73b182d3e

View File

@ -0,0 +1,9 @@
D:\Projects\STPClient\bin\Debug\netstandard2.0\STPClient.deps.json
D:\Projects\STPClient\bin\Debug\netstandard2.0\STPClient.dll
D:\Projects\STPClient\bin\Debug\netstandard2.0\STPClient.pdb
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.csprojAssemblyReference.cache
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.AssemblyInfoInputs.cache
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.AssemblyInfo.cs
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.csproj.CoreCompileInputs.cache
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.dll
D:\Projects\STPClient\obj\Debug\netstandard2.0\STPClient.pdb

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"F:\\Projects1\\STPClient\\STPClient.csproj": {}
},
"projects": {
"F:\\Projects1\\STPClient\\STPClient.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\STPClient\\STPClient.csproj",
"projectName": "DataClients",
"projectPath": "F:\\Projects1\\STPClient\\STPClient.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\STPClient\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\google\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
</ImportGroup>
</Project>

View File

@ -0,0 +1,380 @@
{
"version": 3,
"targets": {
".NETStandard,Version=v2.0": {
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"compile": {
"lib/netstandard1.0/_._": {}
},
"runtime": {
"lib/netstandard1.0/_._": {}
}
},
"NETStandard.Library/2.0.3": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
},
"compile": {
"lib/netstandard1.0/_._": {}
},
"runtime": {
"lib/netstandard1.0/_._": {}
},
"build": {
"build/netstandard2.0/NETStandard.Library.targets": {}
}
},
"SharpZipLib/1.2.0": {
"type": "package",
"compile": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {}
},
"runtime": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {}
}
},
"System.Runtime.CompilerServices.Unsafe/4.7.1": {
"type": "package",
"compile": {
"ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {}
}
},
"System.Text.Encoding.CodePages/4.7.1": {
"type": "package",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.7.1"
},
"compile": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {}
},
"runtimeTargets": {
"runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {
"assetType": "runtime",
"rid": "win"
}
}
}
}
},
"libraries": {
"Microsoft.NETCore.Platforms/1.1.0": {
"sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"type": "package",
"path": "microsoft.netcore.platforms/1.1.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"ThirdPartyNotices.txt",
"dotnet_library_license.txt",
"lib/netstandard1.0/_._",
"microsoft.netcore.platforms.1.1.0.nupkg.sha512",
"microsoft.netcore.platforms.nuspec",
"runtime.json"
]
},
"NETStandard.Library/2.0.3": {
"sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"type": "package",
"path": "netstandard.library/2.0.3",
"files": [
".nupkg.metadata",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"build/netstandard2.0/NETStandard.Library.targets",
"build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll",
"build/netstandard2.0/ref/System.AppContext.dll",
"build/netstandard2.0/ref/System.Collections.Concurrent.dll",
"build/netstandard2.0/ref/System.Collections.NonGeneric.dll",
"build/netstandard2.0/ref/System.Collections.Specialized.dll",
"build/netstandard2.0/ref/System.Collections.dll",
"build/netstandard2.0/ref/System.ComponentModel.Composition.dll",
"build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll",
"build/netstandard2.0/ref/System.ComponentModel.Primitives.dll",
"build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll",
"build/netstandard2.0/ref/System.ComponentModel.dll",
"build/netstandard2.0/ref/System.Console.dll",
"build/netstandard2.0/ref/System.Core.dll",
"build/netstandard2.0/ref/System.Data.Common.dll",
"build/netstandard2.0/ref/System.Data.dll",
"build/netstandard2.0/ref/System.Diagnostics.Contracts.dll",
"build/netstandard2.0/ref/System.Diagnostics.Debug.dll",
"build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll",
"build/netstandard2.0/ref/System.Diagnostics.Process.dll",
"build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll",
"build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll",
"build/netstandard2.0/ref/System.Diagnostics.Tools.dll",
"build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll",
"build/netstandard2.0/ref/System.Diagnostics.Tracing.dll",
"build/netstandard2.0/ref/System.Drawing.Primitives.dll",
"build/netstandard2.0/ref/System.Drawing.dll",
"build/netstandard2.0/ref/System.Dynamic.Runtime.dll",
"build/netstandard2.0/ref/System.Globalization.Calendars.dll",
"build/netstandard2.0/ref/System.Globalization.Extensions.dll",
"build/netstandard2.0/ref/System.Globalization.dll",
"build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll",
"build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll",
"build/netstandard2.0/ref/System.IO.Compression.dll",
"build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll",
"build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll",
"build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll",
"build/netstandard2.0/ref/System.IO.FileSystem.dll",
"build/netstandard2.0/ref/System.IO.IsolatedStorage.dll",
"build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll",
"build/netstandard2.0/ref/System.IO.Pipes.dll",
"build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll",
"build/netstandard2.0/ref/System.IO.dll",
"build/netstandard2.0/ref/System.Linq.Expressions.dll",
"build/netstandard2.0/ref/System.Linq.Parallel.dll",
"build/netstandard2.0/ref/System.Linq.Queryable.dll",
"build/netstandard2.0/ref/System.Linq.dll",
"build/netstandard2.0/ref/System.Net.Http.dll",
"build/netstandard2.0/ref/System.Net.NameResolution.dll",
"build/netstandard2.0/ref/System.Net.NetworkInformation.dll",
"build/netstandard2.0/ref/System.Net.Ping.dll",
"build/netstandard2.0/ref/System.Net.Primitives.dll",
"build/netstandard2.0/ref/System.Net.Requests.dll",
"build/netstandard2.0/ref/System.Net.Security.dll",
"build/netstandard2.0/ref/System.Net.Sockets.dll",
"build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll",
"build/netstandard2.0/ref/System.Net.WebSockets.Client.dll",
"build/netstandard2.0/ref/System.Net.WebSockets.dll",
"build/netstandard2.0/ref/System.Net.dll",
"build/netstandard2.0/ref/System.Numerics.dll",
"build/netstandard2.0/ref/System.ObjectModel.dll",
"build/netstandard2.0/ref/System.Reflection.Extensions.dll",
"build/netstandard2.0/ref/System.Reflection.Primitives.dll",
"build/netstandard2.0/ref/System.Reflection.dll",
"build/netstandard2.0/ref/System.Resources.Reader.dll",
"build/netstandard2.0/ref/System.Resources.ResourceManager.dll",
"build/netstandard2.0/ref/System.Resources.Writer.dll",
"build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll",
"build/netstandard2.0/ref/System.Runtime.Extensions.dll",
"build/netstandard2.0/ref/System.Runtime.Handles.dll",
"build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll",
"build/netstandard2.0/ref/System.Runtime.InteropServices.dll",
"build/netstandard2.0/ref/System.Runtime.Numerics.dll",
"build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll",
"build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll",
"build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll",
"build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll",
"build/netstandard2.0/ref/System.Runtime.Serialization.dll",
"build/netstandard2.0/ref/System.Runtime.dll",
"build/netstandard2.0/ref/System.Security.Claims.dll",
"build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll",
"build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll",
"build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll",
"build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll",
"build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll",
"build/netstandard2.0/ref/System.Security.Principal.dll",
"build/netstandard2.0/ref/System.Security.SecureString.dll",
"build/netstandard2.0/ref/System.ServiceModel.Web.dll",
"build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll",
"build/netstandard2.0/ref/System.Text.Encoding.dll",
"build/netstandard2.0/ref/System.Text.RegularExpressions.dll",
"build/netstandard2.0/ref/System.Threading.Overlapped.dll",
"build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll",
"build/netstandard2.0/ref/System.Threading.Tasks.dll",
"build/netstandard2.0/ref/System.Threading.Thread.dll",
"build/netstandard2.0/ref/System.Threading.ThreadPool.dll",
"build/netstandard2.0/ref/System.Threading.Timer.dll",
"build/netstandard2.0/ref/System.Threading.dll",
"build/netstandard2.0/ref/System.Transactions.dll",
"build/netstandard2.0/ref/System.ValueTuple.dll",
"build/netstandard2.0/ref/System.Web.dll",
"build/netstandard2.0/ref/System.Windows.dll",
"build/netstandard2.0/ref/System.Xml.Linq.dll",
"build/netstandard2.0/ref/System.Xml.ReaderWriter.dll",
"build/netstandard2.0/ref/System.Xml.Serialization.dll",
"build/netstandard2.0/ref/System.Xml.XDocument.dll",
"build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll",
"build/netstandard2.0/ref/System.Xml.XPath.dll",
"build/netstandard2.0/ref/System.Xml.XmlDocument.dll",
"build/netstandard2.0/ref/System.Xml.XmlSerializer.dll",
"build/netstandard2.0/ref/System.Xml.dll",
"build/netstandard2.0/ref/System.dll",
"build/netstandard2.0/ref/mscorlib.dll",
"build/netstandard2.0/ref/netstandard.dll",
"build/netstandard2.0/ref/netstandard.xml",
"lib/netstandard1.0/_._",
"netstandard.library.2.0.3.nupkg.sha512",
"netstandard.library.nuspec"
]
},
"SharpZipLib/1.2.0": {
"sha512": "zvWa/L02JHNatdtjya6Swpudb2YEHaOLHL1eRrqpjm71iGRNUNONO5adUF/9CHbSJbzhELW1UoH4NGy7n7+3bQ==",
"type": "package",
"path": "sharpziplib/1.2.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net45/ICSharpCode.SharpZipLib.dll",
"lib/net45/ICSharpCode.SharpZipLib.pdb",
"lib/net45/ICSharpCode.SharpZipLib.xml",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.pdb",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.xml",
"sharpziplib.1.2.0.nupkg.sha512",
"sharpziplib.nuspec"
]
},
"System.Runtime.CompilerServices.Unsafe/4.7.1": {
"sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==",
"type": "package",
"path": "system.runtime.compilerservices.unsafe/4.7.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net461/System.Runtime.CompilerServices.Unsafe.dll",
"lib/net461/System.Runtime.CompilerServices.Unsafe.xml",
"lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll",
"lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml",
"lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll",
"lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml",
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll",
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml",
"ref/net461/System.Runtime.CompilerServices.Unsafe.dll",
"ref/net461/System.Runtime.CompilerServices.Unsafe.xml",
"ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll",
"ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml",
"ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll",
"ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml",
"system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512",
"system.runtime.compilerservices.unsafe.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Text.Encoding.CodePages/4.7.1": {
"sha512": "i2fOvznVVgOOTLUz8FgSap/MsR98I4Iaoz99VXcOW/e7Y2OdY42zhYpBYpZyivk5alYY/UsOWAVswhtjxceodA==",
"type": "package",
"path": "system.text.encoding.codepages/4.7.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net46/System.Text.Encoding.CodePages.dll",
"lib/net461/System.Text.Encoding.CodePages.dll",
"lib/net461/System.Text.Encoding.CodePages.xml",
"lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll",
"lib/netstandard2.0/System.Text.Encoding.CodePages.xml",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"ref/MonoAndroid10/_._",
"ref/MonoTouch10/_._",
"ref/xamarinios10/_._",
"ref/xamarinmac20/_._",
"ref/xamarintvos10/_._",
"ref/xamarinwatchos10/_._",
"runtimes/win/lib/net461/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/net461/System.Text.Encoding.CodePages.xml",
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.xml",
"runtimes/win/lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.xml",
"system.text.encoding.codepages.4.7.1.nupkg.sha512",
"system.text.encoding.codepages.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
}
},
"projectFileDependencyGroups": {
".NETStandard,Version=v2.0": [
"NETStandard.Library >= 2.0.3",
"SharpZipLib >= 1.2.0",
"System.Text.Encoding.CodePages >= 4.7.1"
]
},
"packageFolders": {
"C:\\Users\\google\\.nuget\\packages\\": {},
"C:\\Microsoft\\Xamarin\\NuGet\\": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\DataClients\\DataClients.csproj",
"projectName": "DataClients",
"projectPath": "F:\\Projects1\\DataClients\\DataClients.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\DataClients\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"SharpZipLib": {
"target": "Package",
"version": "[1.2.0, )"
},
"System.Text.Encoding.CodePages": {
"target": "Package",
"version": "[4.7.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,14 @@
{
"version": 2,
"dgSpecHash": "luIlLkJpphdxn+N0Tej8I3Q8t0JhY6JKvYdSHoGjFRJtuja+iy9Rig0D/ls+i8l95ePrv+iVmnnMZKlk07oDFA==",
"success": true,
"projectFilePath": "F:\\Projects1\\DataClients\\DataClients.csproj",
"expectedPackageFiles": [
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\microsoft.netcore.platforms\\1.1.0\\microsoft.netcore.platforms.1.1.0.nupkg.sha512",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder\\netstandard.library\\2.0.3\\netstandard.library.2.0.3.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\sharpziplib\\1.2.0\\sharpziplib.1.2.0.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\4.7.1\\system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\system.text.encoding.codepages\\4.7.1\\system.text.encoding.codepages.4.7.1.nupkg.sha512"
],
"logs": []
}

19
Mailing/Mailing.csproj Normal file
View File

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SharpZipLib" Version="1.2.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DataClients\DataClients.csproj" />
<ProjectReference Include="..\MigraDoc.DocumentObjectModel\MigraDoc.DocumentObjectModel.csproj" />
<ProjectReference Include="..\MigraDoc.Rendering\MigraDoc.Rendering.csproj" />
<ProjectReference Include="..\PdfSharp\PdfSharp.csproj" />
</ItemGroup>
</Project>

91
Mailing/Program.cs Normal file
View File

@ -0,0 +1,91 @@
using DataClients;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text;
namespace Mailing
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 1)
Console.WriteLine("Need params.");
var mailList = new List<string>();
{
var strings = File.ReadAllLines(args.Last());
foreach (var e in strings)
{
var tmp = e.Split(' ');
foreach (var ee in tmp)
{
try
{
MailAddress m = new MailAddress(ee.ToLower());
if (!mailList.Contains(ee.ToLower()))
mailList.Add(ee.ToLower());
}
catch (Exception) { }
}
}
}
switch (args[0])
{
case "SZO":
if (args.Length != 3)
{
Console.WriteLine("Wrong format");
Console.WriteLine("Example: Maling SZO 2020.07.14 /mail.list");
return;
}
var time = DateTime.Now;
{
try
{
var s = args[1].Split('.');
time = new DateTime(
Convert.ToInt32(s[0]),
Convert.ToInt32(s[1]),
Convert.ToInt32(s[2]));
}
catch
{
Console.WriteLine("Wrong format data");
Console.WriteLine("Example: 2020.07.14");
return;
}
}
GenSZO.GetPDF(time);
var file = Directory.GetCurrentDirectory() + "/" + time.ToString("yyyy-MM-dd") + ".pdf";
foreach (var e in mailList)
Mailing.SendMail(new MailAddress(e), file);
break;
}
}
}
public static class Mailing
{
private static readonly MailAddress From = new MailAddress("no-reply@vsmpo.ru", "ASCKU_32_ROBOT");
private static SmtpClient Smtp = new SmtpClient("mail.vsmpo.ru", 25);
private static string Subject = "Контроль работы SZO";
private static string Body = "Ежедневная рассылка контроля работы " +
"водокольцевых насосов SZO на ВДП в цехе №32";
public static void SendMail(MailAddress to, string file)
{
MailMessage m = new MailMessage(From, to)
{
Subject = Subject,
Body = Body
};
m.Attachments.Add(new Attachment(file));
Smtp.Send(m);
}
}
}

View File

@ -0,0 +1,8 @@
{
"profiles": {
"Mailing": {
"commandName": "Project",
"commandLineArgs": "SZO 2020.08.28 F:\\Projects1\\Mailing\\bin\\Debug\\netcoreapp3.1\\mailing_SZO.list"
}
}
}

379
Mailing/SZO.cs Normal file
View File

@ -0,0 +1,379 @@
using DataClients;
using MigraDoc.DocumentObjectModel;
using MigraDoc.DocumentObjectModel.Tables;
using MigraDoc.Rendering;
using PdfSharp.Drawing;
using PdfSharp.Fonts;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Mailing
{
public static class GenSZO
{
private static DateTime timeStart = DateTime.Now.AddDays(-1);
private static DateTime timeEnd = DateTime.Now;
private static Dictionary<int, List<SZOWork>> resFull = new Dictionary<int, List<SZOWork>>();
public static void GetPDF(DateTime time)
{
timeStart = new DateTime(time.Year, time.Month, time.Day, 0, 0, 0);
timeEnd = new DateTime(time.Year, time.Month, time.Day, 0, 0, 0).AddDays(1);
GetData();
PDFGenSZO.AddHeader("Контроль работы водокольцевых насосов SZO ", timeStart, timeEnd);
foreach (var e in resFull)
PDFGenSZO.AddSZOTable(e.Key, e.Value);
PDFGenSZO.AddTotalTime();
PDFGenSZO.Print(time);
}
private static void GetData()
{
var a = new STPClient();
for (ushort i = 1; i <= 50; i++)
{
var tc = a.GetTechCycle(timeStart, timeEnd, i);
var ad = a.GetAnalogDiscret(timeStart, timeEnd, i);
foreach (var e in tc)
{
int[] chk1 = {
(int)TechCycle.Operation.cooling_ingot,
(int)TechCycle.Operation.cooling_reflow,
(int)TechCycle.Operation.cooling_welding };
int[] chk2 =
{
(int)TechCycle.Operation.end_tech_cycle,
(int)TechCycle.Operation.unloading_loading,
(int)TechCycle.Operation.looking_welding,
(int)TechCycle.Operation.unloading_kit
};
if (!chk1.Contains((int)e.index) && !chk2.Contains((int)e.index))
continue;
if (chk1.Contains((int)e.index))
{
var test =
(from l in ad.an[13]
where l.Item1 >= e.start &&
l.Item1 <= e.end &&
l.Item2 >= 30
select l).ToArray();
if (test.Length == 0)
continue;
}
var currstat = new Tuple<DateTime, bool?>(e.start, null);
foreach (var d in ad.di[22])
{
if (
currstat.Item1 <= e.end &&
d.Item1 >= e.start &&
currstat.Item2.HasValue &&
currstat.Item2.Value
)
{
var t1 = currstat.Item1 > e.start ? currstat.Item1 : e.start;
var t2 = d.Item1 > e.end ? e.end : d.Item1;
var res = t2 - t1;
currstat = d;
if (chk1.Contains((int)e.index) && res.TotalMinutes < 15)
continue;
if (!resFull.ContainsKey(i))
resFull.Add(i, new List<SZOWork>());
resFull[i].Add(new SZOWork()
{
oper = e.index,
techCycleStart = e.start,
WorkTime = res
});
}
currstat = d;
}
}
}
}
public class SZOWork
{
public TechCycle.Operation oper = TechCycle.Operation.unloading_loading;
public DateTime techCycleStart = DateTime.Now;
public TimeSpan WorkTime = new TimeSpan();
}
}
public static class PDFGenSZO
{
private static TimeSpan totalTime = new TimeSpan();
private static Document doc = new Document();
public static void AddHeader(string name, DateTime start, DateTime end)
{
EZFontResolver fontRes = EZFontResolver.Get;
GlobalFontSettings.FontResolver = fontRes;
fontRes.AddFont("TNR", XFontStyle.Regular, @"./times.ttf");
fontRes.AddFont("TNR", XFontStyle.Bold, @"./timesbd.ttf");
fontRes.AddFont("TNR", XFontStyle.BoldItalic, @"./timesbi.ttf");
fontRes.AddFont("TNR", XFontStyle.Italic, @"./timesi.ttf");
Section page = AddPage();
var title = page.AddParagraph();
title.Format.Alignment = ParagraphAlignment.Center;
title.Format.Font.Size = 14;
title.Format.Font.Name = "TNR";
title.Format.SpaceAfter = new Unit(10, UnitType.Millimeter);
title.AddText(name + "\n");
end = end.AddSeconds(-1);
title.AddText("за период с " + start.ToString("dd.MM.yyyy") + " по " + end.ToString("dd.MM.yyyy") + "\n");
}
public static void AddSZOTable(int vdp, List<GenSZO.SZOWork> res)
{
var title = doc.LastSection.AddParagraph();
title.Format.Alignment = ParagraphAlignment.Left;
title.Format.Font.Size = 12;
title.Format.Font.Name = "TNR";
title.Format.SpaceAfter = new Unit(2, UnitType.Millimeter);
title.AddText("Работа SZO печи №" + vdp.ToString("D2") + "\n");
var table = doc.LastSection.AddTable();
table.Format.Alignment = ParagraphAlignment.Center;
table.Format.Font.Size = 12;
table.Format.Font.Name = "TNR";
table.Rows.LeftIndent = 0;
int[] colSize = { 5, 8, 4 };
foreach (var e in colSize)
{
var col = table.AddColumn(new Unit(e, UnitType.Centimeter));
col.Borders.Left.Color = new Color(0, 0, 0);
col.Borders.Left.Width = 0.25;
col.Borders.Right.Color = new Color(0, 0, 0);
col.Borders.Right.Width = 0.25;
}
var row = table.AddRow();
row.Borders.Top.Color = new Color(0, 0, 0);
row.Borders.Top.Width = 0.25;
row.Borders.Bottom.Color = new Color(0, 0, 0);
row.Borders.Bottom.Width = 0.25;
row.HeadingFormat = true;
row.VerticalAlignment = VerticalAlignment.Center;
row.Cells[0].AddParagraph("Время начала операции");
row.Cells[1].AddParagraph("Название операции");
row.Cells[2].AddParagraph("Время работы SZO");
var totalVDP = new TimeSpan();
foreach (var e in res)
{
row = table.AddRow();
row.Borders.Bottom.Color = new Color(0, 0, 0);
row.Borders.Bottom.Width = 0.25;
row.VerticalAlignment = VerticalAlignment.Center;
row.Cells[0].AddParagraph(e.techCycleStart.ToString(@"yyyy.MM.dd HH:mm:ss.ff"));
row.Cells[1].AddParagraph(Names.techCycle[(int)e.oper]);
row.Cells[2].AddParagraph(e.WorkTime.ToString(@"hh\:mm\:ss"));
totalVDP = totalVDP.Add(e.WorkTime);
}
title = doc.LastSection.AddParagraph();
title.Format.Alignment = ParagraphAlignment.Right;
title.Format.Font.Size = 12;
title.Format.Font.Name = "TNR";
title.Format.SpaceAfter = new Unit(10, UnitType.Millimeter);
title.AddText(
"Общее время работы SZO печи №" + vdp.ToString("D2") +
": " + totalVDP.ToString(@"hh\:mm\:ss")
);
totalTime = totalTime.Add(totalVDP);
}
public static void AddTotalTime() { AddTotalTime(totalTime); }
public static void AddTotalTime(TimeSpan time)
{
var title = doc.LastSection.AddParagraph();
title.Format.Alignment = ParagraphAlignment.Left;
title.Format.Font.Size = 12;
title.Format.Font.Name = "TNR";
title.Format.SpaceAfter = new Unit(10, UnitType.Millimeter);
title.AddText("Общее время работы SZO: " + time.ToString(@"%d\.hh\:mm\:ss"));
}
public static void Print(DateTime time)
{
var file = Directory.GetCurrentDirectory() + '/' + time.ToString("yyyy-MM-dd") + ".pdf";
if (File.Exists(file))
File.Delete(file);
var pdfRenderer = new PdfDocumentRenderer(true) { Document = doc };
pdfRenderer.RenderDocument();
pdfRenderer.PdfDocument.Save(file);
}
private static Section AddPage()
{
Section section = doc.AddSection();
section.PageSetup.PageFormat = PageFormat.A4;
section.PageSetup.Orientation = Orientation.Portrait;
section.PageSetup.BottomMargin = new Unit(20, UnitType.Millimeter);
section.PageSetup.TopMargin = new Unit(20, UnitType.Millimeter);
section.PageSetup.LeftMargin = new Unit(30, UnitType.Millimeter);
section.PageSetup.RightMargin = new Unit(15, UnitType.Millimeter);
return section;
}
}
/// <summary>
/// EZFontResolver is a generic font resolver for PDFsharp.
/// It implement IFontResolver internally.
/// To use it, just pass your fonts as filename or byte[]
/// in calls to AddFont.
/// </summary>
public class EZFontResolver : IFontResolver
{
EZFontResolver()
{ }
/// <summary>
/// Gets the one and only EZFontResolver object.
/// </summary>
public static EZFontResolver Get
{
get { return _singleton ?? (_singleton = new EZFontResolver()); }
}
private static EZFontResolver _singleton;
/// <summary>
/// Adds the font passing a filename.
/// </summary>
/// <param name="familyName">Name of the font family.</param>
/// <param name="style">The style.</param>
/// <param name="filename">The filename.</param>
/// <param name="simulateBold">if set to <c>true</c> bold will be simulated.</param>
/// <param name="simulateItalic">if set to <c>true</c> italic will be simulated.</param>
/// <exception cref="Exception">
/// Font file is too big.
/// or
/// Reading font file failed.
/// </exception>
public void AddFont(string familyName, XFontStyle style, string filename,
bool simulateBold = false, bool simulateItalic = false)
{
using (var fs = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read))
{
var size = fs.Length;
if (size > int.MaxValue)
throw new Exception("Font file is too big.");
var length = (int)size;
var data = new byte[length];
var read = fs.Read(data, 0, length);
if (length != read)
throw new Exception("Reading font file failed.");
AddFont(familyName, style, data, simulateBold, simulateItalic);
}
}
/// <summary>
/// Adds the font passing a byte array containing the font.
/// </summary>
/// <param name="familyName">Name of the font family.</param>
/// <param name="style">The style.</param>
/// <param name="data">The data.</param>
/// <param name="simulateBold">if set to <c>true</c> bold will be simulated.</param>
/// <param name="simulateItalic">if set to <c>true</c> italic will be simulated.</param>
public void AddFont(string familyName, XFontStyle style, byte[] data,
bool simulateBold = false, bool simulateItalic = false)
{
// Add the font as we get it.
AddFontHelper(familyName, style, data, false, false);
// If the font is not bold and bold simulation is requested, add that, too.
if (simulateBold && (style & XFontStyle.Bold) == 0)
{
AddFontHelper(familyName, style | XFontStyle.Bold, data, true, false);
}
// Same for italic.
if (simulateItalic && (style & XFontStyle.Italic) == 0)
{
AddFontHelper(familyName, style | XFontStyle.Italic, data, false, true);
}
// Same for bold and italic.
if (simulateBold && (style & XFontStyle.Bold) == 0 &&
simulateItalic && (style & XFontStyle.Italic) == 0)
{
AddFontHelper(familyName, style | XFontStyle.BoldItalic, data, true, true);
}
}
void AddFontHelper(string familyName, XFontStyle style, byte[] data, bool simulateBold, bool simulateItalic)
{
// Currently we do not need FamilyName and Style.
// FaceName is a combination of FamilyName and Style.
var fi = new EZFontInfo
{
//FamilyName = familyName,
FaceName = familyName.ToLower(),
//Style = style,
Data = data,
SimulateBold = simulateBold,
SimulateItalic = simulateItalic
};
if ((style & XFontStyle.Bold) != 0)
{
// TODO Create helper method to prevent having duplicate string literals?
fi.FaceName += "|b";
}
if ((style & XFontStyle.Italic) != 0)
{
fi.FaceName += "|i";
}
// Check if we already have this font.
var test = GetFont(fi.FaceName);
if (test != null)
throw new Exception("Font " + familyName + " with this style was already registered.");
_fonts.Add(fi.FaceName.ToLower(), fi);
}
#region IFontResolver
public FontResolverInfo ResolveTypeface(string familyName, bool isBold, bool isItalic)
{
string faceName = familyName.ToLower() +
(isBold ? "|b" : "") +
(isItalic ? "|i" : "");
EZFontInfo item;
if (_fonts.TryGetValue(faceName, out item))
{
var result = new FontResolverInfo(item.FaceName, item.SimulateBold, item.SimulateItalic);
return result;
}
return null;
}
public byte[] GetFont(string faceName)
{
EZFontInfo item;
if (_fonts.TryGetValue(faceName, out item))
{
return item.Data;
}
return null;
}
#endregion
private readonly Dictionary<string, EZFontInfo> _fonts = new Dictionary<string, EZFontInfo>();
struct EZFontInfo
{
//internal string FamilyName;
internal string FaceName;
//internal XFontStyle Style;
internal byte[] Data;
internal bool SimulateBold;
internal bool SimulateItalic;
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,213 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"Mailing/1.0.0": {
"dependencies": {
"DataClients": "1.0.0",
"MigraDoc.DocumentObjectModel": "3.0.0",
"MigraDoc.Rendering": "3.0.0",
"PdfSharp": "3.0.0",
"SharpZipLib": "1.2.0"
},
"runtime": {
"Mailing.dll": {}
}
},
"Microsoft.NETCore.Platforms/3.1.1": {},
"Microsoft.Win32.SystemEvents/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.1"
},
"runtime": {
"lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "4.6.26515.6"
}
}
},
"SharpZipLib/1.2.0": {
"runtime": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {
"assemblyVersion": "1.2.0.246",
"fileVersion": "1.2.0.246"
}
}
},
"System.Drawing.Common/4.5.0": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.1",
"Microsoft.Win32.SystemEvents": "4.5.0"
},
"runtime": {
"lib/netstandard2.0/System.Drawing.Common.dll": {
"assemblyVersion": "4.0.0.0",
"fileVersion": "4.6.26515.6"
}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.0/System.Drawing.Common.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "4.6.26515.6"
},
"runtimes/win/lib/netcoreapp2.0/System.Drawing.Common.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.0.0.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Text.Encoding.CodePages/4.7.1": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.1"
},
"runtime": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {
"assemblyVersion": "4.1.3.0",
"fileVersion": "4.700.20.21406"
}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.1.3.0",
"fileVersion": "4.700.20.21406"
}
}
},
"DataClients/1.0.0": {
"dependencies": {
"SharpZipLib": "1.2.0",
"System.Text.Encoding.CodePages": "4.7.1"
},
"runtime": {
"DataClients.dll": {}
}
},
"MigraDoc.DocumentObjectModel/3.0.0": {
"dependencies": {
"System.Drawing.Common": "4.5.0"
},
"runtime": {
"MigraDoc.DocumentObjectModel.dll": {}
}
},
"MigraDoc.Rendering/3.0.0": {
"dependencies": {
"MigraDoc.DocumentObjectModel": "3.0.0",
"PdfSharp": "3.0.0",
"PdfSharp.Charting": "3.0.0",
"System.Drawing.Common": "4.5.0"
},
"runtime": {
"MigraDoc.Rendering.dll": {}
},
"resources": {
"de/MigraDoc.Rendering.resources.dll": {
"locale": "de"
}
}
},
"PdfSharp/3.0.0": {
"dependencies": {
"System.Drawing.Common": "4.5.0"
},
"runtime": {
"PdfSharp.dll": {}
}
},
"PdfSharp.Charting/3.0.0": {
"dependencies": {
"PdfSharp": "3.0.0",
"System.Drawing.Common": "4.5.0"
},
"runtime": {
"PdfSharp.Charting.dll": {}
}
}
}
},
"libraries": {
"Mailing/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.NETCore.Platforms/3.1.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-RmINcaqiEkawM9C8oxFMN/CZmn1fGKWVsosbSY/8ARUNdHqV47hqhPVbrG3qUqLaRQI5w4HuqFOqrbhoSWcH6w==",
"path": "microsoft.netcore.platforms/3.1.1",
"hashPath": "microsoft.netcore.platforms.3.1.1.nupkg.sha512"
},
"Microsoft.Win32.SystemEvents/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-LuI1oG+24TUj1ZRQQjM5Ew73BKnZE5NZ/7eAdh1o8ST5dPhUnJvIkiIn2re3MwnkRy6ELRnvEbBxHP8uALKhJw==",
"path": "microsoft.win32.systemevents/4.5.0",
"hashPath": "microsoft.win32.systemevents.4.5.0.nupkg.sha512"
},
"SharpZipLib/1.2.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zvWa/L02JHNatdtjya6Swpudb2YEHaOLHL1eRrqpjm71iGRNUNONO5adUF/9CHbSJbzhELW1UoH4NGy7n7+3bQ==",
"path": "sharpziplib/1.2.0",
"hashPath": "sharpziplib.1.2.0.nupkg.sha512"
},
"System.Drawing.Common/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-AiJFxxVPdeITstiRS5aAu8+8Dpf5NawTMoapZ53Gfirml24p7HIfhjmCRxdXnmmf3IUA3AX3CcW7G73CjWxW/Q==",
"path": "system.drawing.common/4.5.0",
"hashPath": "system.drawing.common.4.5.0.nupkg.sha512"
},
"System.Text.Encoding.CodePages/4.7.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-i2fOvznVVgOOTLUz8FgSap/MsR98I4Iaoz99VXcOW/e7Y2OdY42zhYpBYpZyivk5alYY/UsOWAVswhtjxceodA==",
"path": "system.text.encoding.codepages/4.7.1",
"hashPath": "system.text.encoding.codepages.4.7.1.nupkg.sha512"
},
"DataClients/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"MigraDoc.DocumentObjectModel/3.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"MigraDoc.Rendering/3.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"PdfSharp/3.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"PdfSharp.Charting/3.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\google\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\google\\.nuget\\packages",
"C:\\Microsoft\\Xamarin\\NuGet",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
]
}
}

View File

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}

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.

View File

@ -0,0 +1,3 @@
hatuncev_gd@vsmpo.ru
usov@vsmpo.ru
chervyakov_ds@it.ivc.vsmpo.ru

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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("Mailing")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Mailing")]
[assembly: System.Reflection.AssemblyTitleAttribute("Mailing")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Создано классом WriteCodeFragment MSBuild.

View File

@ -0,0 +1 @@
da822a2b7e37e50e0046e7261fe40de2f5b3ef2f

Binary file not shown.

View File

@ -0,0 +1 @@
ab8cb3630227757ea2e8c0fc8b7e12edbab2074e

View File

@ -0,0 +1,50 @@
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.exe
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.csprojAssemblyReference.cache
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.AssemblyInfoInputs.cache
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.AssemblyInfo.cs
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.deps.json
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.runtimeconfig.json
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.runtimeconfig.dev.json
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.dll
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\Mailing.pdb
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\ICSharpCode.SharpZipLib.dll
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\STPClient.dll
D:\Projects\Mailing\bin\Debug\netcoreapp3.1\STPClient.pdb
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.csproj.CoreCompileInputs.cache
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.csproj.CopyComplete
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.dll
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.pdb
D:\Projects\Mailing\obj\Debug\netcoreapp3.1\Mailing.genruntimeconfig.cache
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.exe
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.deps.json
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.runtimeconfig.json
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.runtimeconfig.dev.json
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Mailing.pdb
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\ICSharpCode.SharpZipLib.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\System.Text.Encoding.CodePages.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Text.Encoding.CodePages.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\DataClients.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\DataClients.pdb
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.csprojAssemblyReference.cache
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.AssemblyInfoInputs.cache
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.AssemblyInfo.cs
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.csproj.CopyComplete
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.dll
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.pdb
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.genruntimeconfig.cache
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\Microsoft.Win32.SystemEvents.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\System.Drawing.Common.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\Microsoft.Win32.SystemEvents.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.0\System.Drawing.Common.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Drawing.Common.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\MigraDoc.DocumentObjectModel.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\MigraDoc.Rendering.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\PdfSharp.Charting.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\PdfSharp.dll
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\MigraDoc.DocumentObjectModel.pdb
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\MigraDoc.Rendering.pdb
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\PdfSharp.pdb
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\PdfSharp.Charting.pdb
F:\Projects1\Mailing\bin\Debug\netcoreapp3.1\de\MigraDoc.Rendering.resources.dll
F:\Projects1\Mailing\obj\Debug\netcoreapp3.1\Mailing.csproj.CoreCompileInputs.cache

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
86c8e15dd33445635927cfaf398408205fd11473

Binary file not shown.

View File

@ -0,0 +1,422 @@
{
"format": 1,
"restore": {
"F:\\Projects1\\Mailing\\Mailing.csproj": {}
},
"projects": {
"F:\\Projects1\\DataClients\\DataClients.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\DataClients\\DataClients.csproj",
"projectName": "DataClients",
"projectPath": "F:\\Projects1\\DataClients\\DataClients.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\DataClients\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"SharpZipLib": {
"target": "Package",
"version": "[1.2.0, )"
},
"System.Text.Encoding.CodePages": {
"target": "Package",
"version": "[4.7.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
},
"F:\\Projects1\\Mailing\\Mailing.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\Mailing\\Mailing.csproj",
"projectName": "Mailing",
"projectPath": "F:\\Projects1\\Mailing\\Mailing.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\Mailing\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"projectReferences": {
"F:\\Projects1\\DataClients\\DataClients.csproj": {
"projectPath": "F:\\Projects1\\DataClients\\DataClients.csproj"
},
"F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj": {
"projectPath": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj"
},
"F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj": {
"projectPath": "F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj"
},
"F:\\Projects1\\PdfSharp\\PdfSharp.csproj": {
"projectPath": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"dependencies": {
"SharpZipLib": {
"target": "Package",
"version": "[1.2.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
},
"F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj": {
"version": "3.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj",
"projectName": "MigraDoc.DocumentObjectModel",
"projectPath": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"System.Drawing.Common": {
"target": "Package",
"version": "[4.5.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
},
"F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj": {
"version": "3.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj",
"projectName": "MigraDoc.Rendering",
"projectPath": "F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\MigraDoc.Rendering\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {
"F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj": {
"projectPath": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj"
},
"F:\\Projects1\\PdfSharp.Charting\\PdfSharp.Charting.csproj": {
"projectPath": "F:\\Projects1\\PdfSharp.Charting\\PdfSharp.Charting.csproj"
},
"F:\\Projects1\\PdfSharp\\PdfSharp.csproj": {
"projectPath": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"System.Drawing.Common": {
"target": "Package",
"version": "[4.5.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
},
"F:\\Projects1\\PdfSharp.Charting\\PdfSharp.Charting.csproj": {
"version": "3.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\PdfSharp.Charting\\PdfSharp.Charting.csproj",
"projectName": "PdfSharp.Charting",
"projectPath": "F:\\Projects1\\PdfSharp.Charting\\PdfSharp.Charting.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\PdfSharp.Charting\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {
"F:\\Projects1\\PdfSharp\\PdfSharp.csproj": {
"projectPath": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"System.Drawing.Common": {
"target": "Package",
"version": "[4.5.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
},
"F:\\Projects1\\PdfSharp\\PdfSharp.csproj": {
"version": "3.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj",
"projectName": "PdfSharp",
"projectPath": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\PdfSharp\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netstandard2.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netstandard2.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netstandard2.0": {
"dependencies": {
"NETStandard.Library": {
"suppressParent": "All",
"target": "Package",
"version": "[2.0.3, )",
"autoReferenced": true
},
"System.Drawing.Common": {
"target": "Package",
"version": "[4.5.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\google\.nuget\packages\;C:\Microsoft\Xamarin\NuGet\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,400 @@
{
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {
"Microsoft.NETCore.Platforms/3.1.1": {
"type": "package",
"compile": {
"lib/netstandard1.0/_._": {}
},
"runtime": {
"lib/netstandard1.0/_._": {}
}
},
"Microsoft.Win32.SystemEvents/4.5.0": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0"
},
"compile": {
"ref/netstandard2.0/_._": {}
},
"runtime": {
"lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll": {}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"SharpZipLib/1.2.0": {
"type": "package",
"compile": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {}
},
"runtime": {
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll": {}
}
},
"System.Drawing.Common/4.5.0": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "2.0.0",
"Microsoft.Win32.SystemEvents": "4.5.0"
},
"compile": {
"ref/netstandard2.0/System.Drawing.Common.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Drawing.Common.dll": {}
},
"runtimeTargets": {
"runtimes/unix/lib/netcoreapp2.0/System.Drawing.Common.dll": {
"assetType": "runtime",
"rid": "unix"
},
"runtimes/win/lib/netcoreapp2.0/System.Drawing.Common.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Text.Encoding.CodePages/4.7.1": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.1"
},
"compile": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll": {}
},
"runtimeTargets": {
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"DataClients/1.0.0": {
"type": "project",
"framework": ".NETStandard,Version=v2.0",
"dependencies": {
"SharpZipLib": "1.2.0",
"System.Text.Encoding.CodePages": "4.7.1"
},
"compile": {
"bin/placeholder/DataClients.dll": {}
},
"runtime": {
"bin/placeholder/DataClients.dll": {}
}
},
"MigraDoc.DocumentObjectModel/3.0.0": {
"type": "project",
"framework": ".NETStandard,Version=v2.0",
"dependencies": {
"System.Drawing.Common": "4.5.0"
},
"compile": {
"bin/placeholder/MigraDoc.DocumentObjectModel.dll": {}
},
"runtime": {
"bin/placeholder/MigraDoc.DocumentObjectModel.dll": {}
}
},
"MigraDoc.Rendering/3.0.0": {
"type": "project",
"framework": ".NETStandard,Version=v2.0",
"dependencies": {
"MigraDoc.DocumentObjectModel": "3.0.0",
"PdfSharp": "3.0.0",
"PdfSharp.Charting": "3.0.0",
"System.Drawing.Common": "4.5.0"
},
"compile": {
"bin/placeholder/MigraDoc.Rendering.dll": {}
},
"runtime": {
"bin/placeholder/MigraDoc.Rendering.dll": {}
}
},
"PdfSharp/3.0.0": {
"type": "project",
"framework": ".NETStandard,Version=v2.0",
"dependencies": {
"System.Drawing.Common": "4.5.0"
},
"compile": {
"bin/placeholder/PdfSharp.dll": {}
},
"runtime": {
"bin/placeholder/PdfSharp.dll": {}
}
},
"PdfSharp.Charting/3.0.0": {
"type": "project",
"framework": ".NETStandard,Version=v2.0",
"dependencies": {
"PdfSharp": "3.0.0",
"System.Drawing.Common": "4.5.0"
},
"compile": {
"bin/placeholder/PdfSharp.Charting.dll": {}
},
"runtime": {
"bin/placeholder/PdfSharp.Charting.dll": {}
}
}
}
},
"libraries": {
"Microsoft.NETCore.Platforms/3.1.1": {
"sha512": "RmINcaqiEkawM9C8oxFMN/CZmn1fGKWVsosbSY/8ARUNdHqV47hqhPVbrG3qUqLaRQI5w4HuqFOqrbhoSWcH6w==",
"type": "package",
"path": "microsoft.netcore.platforms/3.1.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/netstandard1.0/_._",
"microsoft.netcore.platforms.3.1.1.nupkg.sha512",
"microsoft.netcore.platforms.nuspec",
"runtime.json",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"Microsoft.Win32.SystemEvents/4.5.0": {
"sha512": "LuI1oG+24TUj1ZRQQjM5Ew73BKnZE5NZ/7eAdh1o8ST5dPhUnJvIkiIn2re3MwnkRy6ELRnvEbBxHP8uALKhJw==",
"type": "package",
"path": "microsoft.win32.systemevents/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/net461/Microsoft.Win32.SystemEvents.dll",
"lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll",
"microsoft.win32.systemevents.4.5.0.nupkg.sha512",
"microsoft.win32.systemevents.nuspec",
"ref/net461/Microsoft.Win32.SystemEvents.dll",
"ref/netstandard2.0/Microsoft.Win32.SystemEvents.dll",
"runtimes/win/lib/netcoreapp2.0/Microsoft.Win32.SystemEvents.dll",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"SharpZipLib/1.2.0": {
"sha512": "zvWa/L02JHNatdtjya6Swpudb2YEHaOLHL1eRrqpjm71iGRNUNONO5adUF/9CHbSJbzhELW1UoH4NGy7n7+3bQ==",
"type": "package",
"path": "sharpziplib/1.2.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net45/ICSharpCode.SharpZipLib.dll",
"lib/net45/ICSharpCode.SharpZipLib.pdb",
"lib/net45/ICSharpCode.SharpZipLib.xml",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.pdb",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.xml",
"sharpziplib.1.2.0.nupkg.sha512",
"sharpziplib.nuspec"
]
},
"System.Drawing.Common/4.5.0": {
"sha512": "AiJFxxVPdeITstiRS5aAu8+8Dpf5NawTMoapZ53Gfirml24p7HIfhjmCRxdXnmmf3IUA3AX3CcW7G73CjWxW/Q==",
"type": "package",
"path": "system.drawing.common/4.5.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net461/System.Drawing.Common.dll",
"lib/netstandard2.0/System.Drawing.Common.dll",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"ref/MonoAndroid10/_._",
"ref/MonoTouch10/_._",
"ref/net461/System.Drawing.Common.dll",
"ref/netstandard2.0/System.Drawing.Common.dll",
"ref/xamarinios10/_._",
"ref/xamarinmac20/_._",
"ref/xamarintvos10/_._",
"ref/xamarinwatchos10/_._",
"runtimes/unix/lib/netcoreapp2.0/System.Drawing.Common.dll",
"runtimes/win/lib/netcoreapp2.0/System.Drawing.Common.dll",
"system.drawing.common.4.5.0.nupkg.sha512",
"system.drawing.common.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"System.Text.Encoding.CodePages/4.7.1": {
"sha512": "i2fOvznVVgOOTLUz8FgSap/MsR98I4Iaoz99VXcOW/e7Y2OdY42zhYpBYpZyivk5alYY/UsOWAVswhtjxceodA==",
"type": "package",
"path": "system.text.encoding.codepages/4.7.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"THIRD-PARTY-NOTICES.TXT",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net46/System.Text.Encoding.CodePages.dll",
"lib/net461/System.Text.Encoding.CodePages.dll",
"lib/net461/System.Text.Encoding.CodePages.xml",
"lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
"lib/netstandard2.0/System.Text.Encoding.CodePages.dll",
"lib/netstandard2.0/System.Text.Encoding.CodePages.xml",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"ref/MonoAndroid10/_._",
"ref/MonoTouch10/_._",
"ref/xamarinios10/_._",
"ref/xamarinmac20/_._",
"ref/xamarintvos10/_._",
"ref/xamarinwatchos10/_._",
"runtimes/win/lib/net461/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/net461/System.Text.Encoding.CodePages.xml",
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netcoreapp2.0/System.Text.Encoding.CodePages.xml",
"runtimes/win/lib/netstandard1.3/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.dll",
"runtimes/win/lib/netstandard2.0/System.Text.Encoding.CodePages.xml",
"system.text.encoding.codepages.4.7.1.nupkg.sha512",
"system.text.encoding.codepages.nuspec",
"useSharedDesignerContext.txt",
"version.txt"
]
},
"DataClients/1.0.0": {
"type": "project",
"path": "../DataClients/DataClients.csproj",
"msbuildProject": "../DataClients/DataClients.csproj"
},
"MigraDoc.DocumentObjectModel/3.0.0": {
"type": "project",
"path": "../MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.csproj",
"msbuildProject": "../MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.csproj"
},
"MigraDoc.Rendering/3.0.0": {
"type": "project",
"path": "../MigraDoc.Rendering/MigraDoc.Rendering.csproj",
"msbuildProject": "../MigraDoc.Rendering/MigraDoc.Rendering.csproj"
},
"PdfSharp/3.0.0": {
"type": "project",
"path": "../PdfSharp/PdfSharp.csproj",
"msbuildProject": "../PdfSharp/PdfSharp.csproj"
},
"PdfSharp.Charting/3.0.0": {
"type": "project",
"path": "../PdfSharp.Charting/PdfSharp.Charting.csproj",
"msbuildProject": "../PdfSharp.Charting/PdfSharp.Charting.csproj"
}
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"DataClients >= 1.0.0",
"MigraDoc.DocumentObjectModel >= 3.0.0",
"MigraDoc.Rendering >= 3.0.0",
"PdfSharp >= 3.0.0",
"SharpZipLib >= 1.2.0"
]
},
"packageFolders": {
"C:\\Users\\google\\.nuget\\packages\\": {},
"C:\\Microsoft\\Xamarin\\NuGet\\": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "F:\\Projects1\\Mailing\\Mailing.csproj",
"projectName": "Mailing",
"projectPath": "F:\\Projects1\\Mailing\\Mailing.csproj",
"packagesPath": "C:\\Users\\google\\.nuget\\packages\\",
"outputPath": "F:\\Projects1\\Mailing\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Microsoft\\Xamarin\\NuGet\\",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\google\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"projectReferences": {
"F:\\Projects1\\DataClients\\DataClients.csproj": {
"projectPath": "F:\\Projects1\\DataClients\\DataClients.csproj"
},
"F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj": {
"projectPath": "F:\\Projects1\\MigraDoc.DocumentObjectModel\\MigraDoc.DocumentObjectModel.csproj"
},
"F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj": {
"projectPath": "F:\\Projects1\\MigraDoc.Rendering\\MigraDoc.Rendering.csproj"
},
"F:\\Projects1\\PdfSharp\\PdfSharp.csproj": {
"projectPath": "F:\\Projects1\\PdfSharp\\PdfSharp.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"dependencies": {
"SharpZipLib": {
"target": "Package",
"version": "[1.2.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,14 @@
{
"version": 2,
"dgSpecHash": "mYZ0+lgFNvjdtstd498fzqCueb79WJUPV7cKbZiNr7U5DOvhqaxanZo4lE1YNRKjI9hSd7/W0qrifHxA/A4ftg==",
"success": true,
"projectFilePath": "F:\\Projects1\\Mailing\\Mailing.csproj",
"expectedPackageFiles": [
"C:\\Users\\google\\.nuget\\packages\\microsoft.netcore.platforms\\3.1.1\\microsoft.netcore.platforms.3.1.1.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\microsoft.win32.systemevents\\4.5.0\\microsoft.win32.systemevents.4.5.0.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\sharpziplib\\1.2.0\\sharpziplib.1.2.0.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\system.drawing.common\\4.5.0\\system.drawing.common.4.5.0.nupkg.sha512",
"C:\\Users\\google\\.nuget\\packages\\system.text.encoding.codepages\\4.7.1\\system.text.encoding.codepages.4.7.1.nupkg.sha512"
],
"logs": []
}

BIN
Mailing/times.ttf Normal file

Binary file not shown.

BIN
Mailing/timesbd.ttf Normal file

Binary file not shown.

BIN
Mailing/timesbi.ttf Normal file

Binary file not shown.

BIN
Mailing/timesi.ttf Normal file

Binary file not shown.

View File

@ -0,0 +1,117 @@
#region MigraDoc - Creating Documents on the Fly
//
// Authors:
// Stefan Lange
// Klaus Potzesny
// David Stephensen
//
// Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://www.migradoc.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;
using MigraDoc.DocumentObjectModel.publics;
namespace MigraDoc.DocumentObjectModel.Fields
{
/// <summary>
/// BookmarkField is used as target for Hyperlinks or PageRefs.
/// </summary>
public class BookmarkField : DocumentObject
{
/// <summary>
/// Initializes a new instance of the BookmarkField class.
/// </summary>
public BookmarkField()
{ }
/// <summary>
/// Initializes a new instance of the BookmarkField class with the specified parent.
/// </summary>
public BookmarkField(DocumentObject parent) : base(parent) { }
/// <summary>
/// Initializes a new instance of the BookmarkField class with the necessary bookmark name.
/// </summary>
public BookmarkField(string name)
: this()
{
Name = name;
}
#region Methods
/// <summary>
/// Creates a deep copy of this object.
/// </summary>
public new BookmarkField Clone()
{
return (BookmarkField)DeepCopy();
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the name of the bookmark.
/// Used to reference the bookmark from a Hyperlink or PageRef.
/// </summary>
public string Name
{
get { return _name.Value; }
set { _name.Value = value; }
}
[DV]
public NString _name = NString.NullValue;
#endregion
#region public
/// <summary>
/// Converts BookmarkField into DDL.
/// </summary>
public override void Serialize(Serializer serializer)
{
if (_name.Value == string.Empty)
throw new InvalidOperationException(DomSR.MissingObligatoryProperty("Name", "BookmarkField"));
serializer.Write("\\field(Bookmark)[Name = \"" + Name.Replace("\\", "\\\\").Replace("\"", "\\\"") + "\"]");
}
/// <summary>
/// Determines whether this instance is null (not set).
/// </summary>
public override bool IsNull()
{
return false;
}
/// <summary>
/// Returns the meta object of this instance.
/// </summary>
public override Meta Meta
{
get { return _meta ?? (_meta = new Meta(typeof(BookmarkField))); }
}
static Meta _meta;
#endregion
}
}

View File

@ -0,0 +1,109 @@
#region MigraDoc - Creating Documents on the Fly
//
// Authors:
// Stefan Lange
// Klaus Potzesny
// David Stephensen
//
// Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://www.migradoc.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using MigraDoc.DocumentObjectModel.publics;
namespace MigraDoc.DocumentObjectModel.Fields
{
/// <summary>
/// DateField is used to reference the date and time the printing starts.
/// </summary>
public class DateField : DocumentObject
{
/// <summary>
/// Initializes a new instance of the DateField class.
/// </summary>
public DateField()
{ }
/// <summary>
/// Initializes a new instance of the DateField class with the specified parent.
/// </summary>
public DateField(DocumentObject parent) : base(parent) { }
#region Methods
/// <summary>
/// Creates a deep copy of this object.
/// </summary>
public new DateField Clone()
{
return (DateField)DeepCopy();
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the format of the date.
/// </summary>
public string Format
{
get { return _format.Value; }
set { _format.Value = value; }
}
[DV]
public NString _format = NString.NullValue;
#endregion
#region public
/// <summary>
/// Converts DateField into DDL.
/// </summary>
public override void Serialize(Serializer serializer)
{
string str = "\\field(Date)";
if (_format.Value != string.Empty)
str += "[Format = \"" + Format + "\"]";
else
str += "[]"; //Has to be appended to avoid confusion with '[' in immediatly following text.
serializer.Write(str);
}
/// <summary>
/// Determines whether this instance is null (not set).
/// </summary>
public override bool IsNull()
{
return false;
}
/// <summary>
/// Returns the meta object of this instance.
/// </summary>
public override Meta Meta
{
get { return _meta ?? (_meta = new Meta(typeof(DateField))); }
}
static Meta _meta;
#endregion
}
}

View File

@ -0,0 +1,145 @@
#region MigraDoc - Creating Documents on the Fly
//
// Authors:
// Stefan Lange
// Klaus Potzesny
// David Stephensen
//
// Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://www.migradoc.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;
using MigraDoc.DocumentObjectModel.publics;
namespace MigraDoc.DocumentObjectModel.Fields
{
/// <summary>
/// InfoField is used to reference one of the DocumentInfo fields in the document.
/// </summary>
public class InfoField : DocumentObject
{
/// <summary>
/// Initializes a new instance of the InfoField class.
/// </summary>
public InfoField()
{ }
/// <summary>
/// Initializes a new instance of the InfoField class with the specified parent.
/// </summary>
public InfoField(DocumentObject parent) : base(parent) { }
#region Methods
/// <summary>
/// Creates a deep copy of this object.
/// </summary>
public new InfoField Clone()
{
return (InfoField)DeepCopy();
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the name of the information to be shown in the field.
/// </summary>
public string Name
{
get { return _name.Value; }
set
{
if (IsValidName(value))
_name.Value = value;
else
throw new ArgumentException(DomSR.InvalidInfoFieldName(value));
}
}
[DV]
public NString _name = NString.NullValue;
#endregion
/// <summary>
/// Determines whether the name is a valid InfoFieldType.
/// </summary>
private bool IsValidName(string name)
{
// Check using a way that never throws an exception
#if SILVERLIGHT
if (validNames == null)
{
validNames = new string[4];
validNames[0] = "Title";
validNames[1] = "Author";
validNames[2] = "Keywords";
validNames[3] = "Subject";
}
#endif
foreach (string validName in validNames)
{
if (String.Compare(validName, name, StringComparison.OrdinalIgnoreCase) == 0)
return true;
}
return false;
}
#if SILVERLIGHT
private static string[] validNames;
#else
private static string[] validNames = Enum.GetNames(typeof(InfoFieldType));
#endif
/// <summary>
/// Determines whether this instance is null (not set).
/// </summary>
public override bool IsNull()
{
return false;
}
#region public
/// <summary>
/// Converts InfoField into DDL.
/// </summary>
public override void Serialize(Serializer serializer)
{
string str = "\\field(Info)";
if (Name == "")
throw new InvalidOperationException(DomSR.MissingObligatoryProperty("Name", "InfoField"));
str += "[Name = \"" + Name + "\"]";
serializer.Write(str);
}
/// <summary>
/// Returns the meta object of this instance.
/// </summary>
public override Meta Meta
{
get { return _meta ?? (_meta = new Meta(typeof(InfoField))); }
}
static Meta _meta;
#endregion
}
}

View File

@ -0,0 +1,89 @@
#region MigraDoc - Creating Documents on the Fly
//
// Authors:
// Stefan Lange
// Klaus Potzesny
// David Stephensen
//
// Copyright (c) 2001-2017 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://www.migradoc.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using MigraDoc.DocumentObjectModel.publics;
namespace MigraDoc.DocumentObjectModel.Fields
{
/// <summary>
/// NumPagesField is used to reference the number of all pages in the document.
/// </summary>
public class NumPagesField : NumericFieldBase
{
/// <summary>
/// Initializes a new instance of the NumPagesField class.
/// </summary>
public NumPagesField()
{ }
/// <summary>
/// Initializes a new instance of the NumPagesField class with the specified parent.
/// </summary>
public NumPagesField(DocumentObject parent) : base(parent) { }
#region Methods
/// <summary>
/// Creates a deep copy of this object.
/// </summary>
public new NumPagesField Clone()
{
return (NumPagesField)DeepCopy();
}
#endregion
#region public
/// <summary>
/// Converts NumPagesField into DDL.
/// </summary>
public override void Serialize(Serializer serializer)
{
string str = "\\field(NumPages)";
if (_format.Value != "")
str += "[Format = \"" + Format + "\"]";
else
str += "[]"; // Has to be appended to avoid confusion with '[' in directly following text.
serializer.Write(str);
}
/// <summary>
/// Returns the meta object of this instance.
/// </summary>
public override Meta Meta
{
get { return _meta ?? (_meta = new Meta(typeof(NumPagesField))); }
}
static Meta _meta;
#endregion
}
}

Some files were not shown because too many files have changed in this diff Show More