70 lines
2.0 KiB
C#
70 lines
2.0 KiB
C#
using DevExpress.XtraCharts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Common;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ReportViewer
|
|
{
|
|
public class Config
|
|
{
|
|
public string ConnectionString { get; set; }
|
|
public bool Debug { get; set; }
|
|
public List<ServiceProvider> Providers { get; set; } = new()
|
|
{
|
|
new ServiceProvider()
|
|
{
|
|
Type = ServiceProviderType.Sample,
|
|
Title = "Sample Document",
|
|
Name = "Sample Provider GmbH",
|
|
Street = "Sample Street 123",
|
|
ZipCode = "12345",
|
|
City = "Sample City",
|
|
TransportMethod = 0
|
|
},
|
|
new ServiceProvider()
|
|
{
|
|
Type = ServiceProviderType.GLS,
|
|
Title = "GLS Tagesprotokoll",
|
|
Name = "GLS Germany",
|
|
Street = "",
|
|
ZipCode = "",
|
|
City = "",
|
|
TransportMethod = 3
|
|
},
|
|
new ServiceProvider()
|
|
{
|
|
Type = ServiceProviderType.HellmoldPlank,
|
|
Title = "Übernahmebestätigung",
|
|
Name = "Hellmold & Plank GmbH & Co KG",
|
|
Street = "Europastr. 9-11",
|
|
ZipCode = "35394",
|
|
City = "Gießen",
|
|
TransportMethod = 2
|
|
},
|
|
};
|
|
|
|
public enum ServiceProviderType
|
|
{
|
|
None = 0,
|
|
HellmoldPlank = 1,
|
|
GLS = 2,
|
|
Sample = 3
|
|
}
|
|
|
|
public class ServiceProvider
|
|
{
|
|
public ServiceProviderType Type { get; set; }
|
|
public string Title { get; set; }
|
|
public string Identifier { get; set; }
|
|
public string Name { get; set; }
|
|
public string Street { get; set; }
|
|
public string ZipCode { get; set; }
|
|
public string City { get; set; }
|
|
public int TransportMethod { get; set; }
|
|
}
|
|
}
|
|
}
|