Compare commits

...

2 Commits

Author SHA1 Message Date
Stefan Hutter c7a4e24e3f update 20250501
8 months ago
Stefan Hutter eb5c908f0c update 20250424
8 months ago

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -12298,3 +12298,7 @@ done
2025-04-21 12:31:19.1871|DEBUG|OnDoc|
2025-04-21 12:31:19.2156|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal
2025-04-21 12:31:19.2181|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal
2025-04-30 16:35:21.0998|DEBUG|OnDoc|
2025-04-30 16:35:21.1521|DEBUG|OnDoc|
2025-04-30 16:35:21.1797|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: Stefan Hutter lokal
2025-04-30 16:35:21.1797|INFO|OnDoc|Unterschrift-Bezug: Stefan Hutter lokal

Binary file not shown.

Binary file not shown.

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>ondoc://%3ffunktion=createdoc&amp;partnernr=1032777&amp;vorlagenr=27&amp;id=OFFEDK0082024002461933</StartArguments>
<StartArguments>
</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>

@ -150,7 +150,6 @@
this.lblmessage.Name = "lblmessage";
this.lblmessage.Size = new System.Drawing.Size(529, 34);
this.lblmessage.TabIndex = 10;
this.lblmessage.Text = "label3";
//
// FrmExternalDocEdit
//

@ -60,11 +60,12 @@
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(150, 330);
this.label2.Location = new System.Drawing.Point(161, 330);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(146, 26);
this.label2.Size = new System.Drawing.Size(125, 26);
this.label2.TabIndex = 2;
this.label2.Text = "23. April 2025";
this.label2.Text = "1. Mai 2025";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// SplashScreen
//

@ -36,5 +36,10 @@ namespace OnDoc.Diverses
tmr.Stop();
this.Hide();
}
private void label2_Click(object sender, EventArgs e)
{
}
}
}

@ -13,6 +13,7 @@ using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Windows.Devices.Bluetooth.Advertisement;
using Windows.Media.Streaming.Adaptive;
using static System.Net.WebRequestMethods;
namespace OnDoc.Klassen
@ -61,6 +62,8 @@ namespace OnDoc.Klassen
public static string SignaturePassword { get; set; } = "";
public static string Environment { get; set; } = "";
public static bool versandstrassewindows_open { get; set; } = false;
static AppParams()
{
@ -98,6 +101,7 @@ namespace OnDoc.Klassen
SignatureWidth = db.dsdaten.Tables[0].Rows[0][18].ToString();
SignatureColor = db.dsdaten.Tables[0].Rows[0][19].ToString();
SignaturePassword = db.dsdaten.Tables[0].Rows[0][20].ToString();
Environment = db.dsdaten.Tables[0].Rows[0][21].ToString();
}
else
{

@ -182,25 +182,25 @@ namespace OnDoc.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("5000")]
public string OfficeWatchTimerIntervall {
[global::System.Configuration.DefaultSettingValueAttribute("E:\\Software-Projekte\\OnDoc\\TKB-Vorlagen\\")]
public string NativVorlagen {
get {
return ((string)(this["OfficeWatchTimerIntervall"]));
return ((string)(this["NativVorlagen"]));
}
set {
this["OfficeWatchTimerIntervall"] = value;
this["NativVorlagen"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("E:\\Software-Projekte\\OnDoc\\TKB-Vorlagen\\")]
public string NativVorlagen {
[global::System.Configuration.DefaultSettingValueAttribute("20000")]
public string OfficeWatchTimerIntervall {
get {
return ((string)(this["NativVorlagen"]));
return ((string)(this["OfficeWatchTimerIntervall"]));
}
set {
this["NativVorlagen"] = value;
this["OfficeWatchTimerIntervall"] = value;
}
}
}

@ -118,9 +118,9 @@ namespace OnDoc
this.labelTest.ForeColor = System.Drawing.Color.IndianRed;
this.labelTest.Location = new System.Drawing.Point(3, 3);
this.labelTest.Name = "labelTest";
this.labelTest.Size = new System.Drawing.Size(35, 13);
this.labelTest.Size = new System.Drawing.Size(96, 15);
this.labelTest.TabIndex = 0;
this.labelTest.Text = "label1";
this.labelTest.Text = "Test-Umgebung";
//
// openFileDialog1
//
@ -134,6 +134,7 @@ namespace OnDoc
//
// menuStrip1
//
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.dateiToolStripMenuItem,
this.nativVorlagenToolStripMenuItem});
@ -150,13 +151,13 @@ namespace OnDoc
this.profilEinstellungenToolStripMenuItem,
this.beendenToolStripMenuItem});
this.dateiToolStripMenuItem.Name = "dateiToolStripMenuItem";
this.dateiToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
this.dateiToolStripMenuItem.Size = new System.Drawing.Size(59, 20);
this.dateiToolStripMenuItem.Text = "&Datei";
//
// profilEinstellungenToolStripMenuItem
//
this.profilEinstellungenToolStripMenuItem.Name = "profilEinstellungenToolStripMenuItem";
this.profilEinstellungenToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.profilEinstellungenToolStripMenuItem.Size = new System.Drawing.Size(221, 26);
this.profilEinstellungenToolStripMenuItem.Text = "Profil-Einstellungen";
this.profilEinstellungenToolStripMenuItem.ToolTipText = "Anpassungen von Profilen";
this.profilEinstellungenToolStripMenuItem.Visible = false;
@ -165,7 +166,7 @@ namespace OnDoc
// beendenToolStripMenuItem
//
this.beendenToolStripMenuItem.Name = "beendenToolStripMenuItem";
this.beendenToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.beendenToolStripMenuItem.Size = new System.Drawing.Size(221, 26);
this.beendenToolStripMenuItem.Text = "&Beenden";
this.beendenToolStripMenuItem.ToolTipText = "Anwendung beenden";
this.beendenToolStripMenuItem.Click += new System.EventHandler(this.beendenToolStripMenuItem_Click);
@ -173,13 +174,14 @@ namespace OnDoc
// nativVorlagenToolStripMenuItem
//
this.nativVorlagenToolStripMenuItem.Name = "nativVorlagenToolStripMenuItem";
this.nativVorlagenToolStripMenuItem.Size = new System.Drawing.Size(98, 20);
this.nativVorlagenToolStripMenuItem.Size = new System.Drawing.Size(123, 20);
this.nativVorlagenToolStripMenuItem.Text = "&Nativ-Vorlagen";
this.nativVorlagenToolStripMenuItem.Visible = false;
this.nativVorlagenToolStripMenuItem.Click += new System.EventHandler(this.nativVorlagenToolStripMenuItem_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
//
@ -194,6 +196,8 @@ namespace OnDoc
this.dokList1.mitarbeiternr = 0;
this.dokList1.Name = "dokList1";
this.dokList1.partnernr = 0;
this.dokList1.personbezeichnung = "";
this.dokList1.personnr = 0;
this.dokList1.profilnr = 0;
this.dokList1.runmacros = false;
this.dokList1.Search_Docid = "";

@ -136,6 +136,7 @@ namespace OnDoc
}
else { System.Environment.Exit(1); }
}
if (AppParams.Environment != "PROD") { this.panel1.Visible = true; }
Logging.Logging.Debug("Mitarbeiter", "OnDoc", AppParams.CurrentMitarbeiter.ToString());
//partnerTree1.OnStrukturClicked += new PartnerTree.StrukturHandler(testhandler1);
@ -279,7 +280,7 @@ namespace OnDoc
if (ExternalCall.app == "onbase")
{
if (ExternalCall.dokumentid != "")
if (ExternalCall.dokumentid != "" || ExternalCall.dokumentid=="")
{
FrmExternalDocEdit fe = new FrmExternalDocEdit(ExternalCall.dokumentid);
fe.ShowDialog();

@ -2961,7 +2961,15 @@ namespace OnDoc.UICintrols
private void ctxMenuDokList_Opening(object sender, CancelEventArgs e)
{
if (AppParams.versandstrassewindows_open) { this.zumVersandpaketHinzufügenToolStripMenuItem.Visible = true; } else { this.zumVersandpaketHinzufügenToolStripMenuItem.Visible = false; }
if (AppParams.versandstrassewindows_open) {
this.zumVersandpaketHinzufügenToolStripMenuItem.Visible = true;
if (ribbonButtonVersandstrasse.Enabled==true) { this.zumVersandpaketHinzufügenToolStripMenuItem.Enabled = true; }
else
{
this.zumVersandpaketHinzufügenToolStripMenuItem.Enabled = false;
}
}
else { this.zumVersandpaketHinzufügenToolStripMenuItem.Visible = false; }
if (this.sfDataGrid1.GroupColumnDescriptions.Count > 0)
{

@ -190,7 +190,7 @@
<data name="tsbtnpreviewno.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
@ -205,7 +205,7 @@
<data name="tsbtnpreviewbottom.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
@ -220,7 +220,7 @@
<data name="tsbtnpreviewright.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM

@ -30,15 +30,15 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Versandstrasse));
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings3 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings3 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings3 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo4 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings4 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings4 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings4 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo2 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings2 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings2 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings2 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo3 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.löschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
@ -117,6 +117,7 @@
this.lblprieveiwbezeichnung = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.lblerror = new System.Windows.Forms.Label();
this.pnlpostkorb = new System.Windows.Forms.Panel();
this.lblpostausgang = new System.Windows.Forms.Label();
@ -128,6 +129,8 @@
this.label2 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.ribbonButton3 = new System.Windows.Forms.RibbonButton();
this.lblserienbrief = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.contextMenuStrip1.SuspendLayout();
this.panelPrepare.SuspendLayout();
this.GrpPaketDetails.SuspendLayout();
@ -156,14 +159,14 @@
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.löschenToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(119, 26);
this.contextMenuStrip1.Size = new System.Drawing.Size(132, 28);
this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
this.contextMenuStrip1.Click += new System.EventHandler(this.contextMenuStrip1_Click);
//
// löschenToolStripMenuItem
//
this.löschenToolStripMenuItem.Name = "löschenToolStripMenuItem";
this.löschenToolStripMenuItem.Size = new System.Drawing.Size(118, 22);
this.löschenToolStripMenuItem.Size = new System.Drawing.Size(131, 24);
this.löschenToolStripMenuItem.Text = "Löschen";
this.löschenToolStripMenuItem.Click += new System.EventHandler(this.löschenToolStripMenuItem_Click);
//
@ -192,7 +195,7 @@
//
this.panelPrepare.BackColor = System.Drawing.Color.Silver;
this.panelPrepare.Controls.Add(this.label4);
this.panelPrepare.Location = new System.Drawing.Point(665, 34);
this.panelPrepare.Location = new System.Drawing.Point(308, 284);
this.panelPrepare.Name = "panelPrepare";
this.panelPrepare.Size = new System.Drawing.Size(832, 69);
this.panelPrepare.TabIndex = 14;
@ -204,7 +207,7 @@
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(198, 28);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(437, 20);
this.label4.Size = new System.Drawing.Size(525, 25);
this.label4.TabIndex = 0;
this.label4.Text = "Versand wird vorbereit - bitte einen Moment warten....";
this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
@ -219,31 +222,31 @@
this.pdfViewerControl1.IsBookmarkEnabled = true;
this.pdfViewerControl1.IsTextSearchEnabled = true;
this.pdfViewerControl1.IsTextSelectionEnabled = true;
this.pdfViewerControl1.Location = new System.Drawing.Point(848, 54);
messageBoxSettings1.EnableNotification = true;
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings1;
this.pdfViewerControl1.Location = new System.Drawing.Point(908, 54);
messageBoxSettings3.EnableNotification = true;
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings3;
this.pdfViewerControl1.MinimumZoomPercentage = 50;
this.pdfViewerControl1.Name = "pdfViewerControl1";
this.pdfViewerControl1.PageBorderThickness = 1;
pdfViewerPrinterSettings1.Copies = 1;
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation")));
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings1;
pdfViewerPrinterSettings3.Copies = 1;
pdfViewerPrinterSettings3.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings3.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings3.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings3.PrintLocation")));
pdfViewerPrinterSettings3.ShowPrintStatusDialog = true;
this.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings3;
this.pdfViewerControl1.ReferencePath = null;
this.pdfViewerControl1.ScrollDisplacementValue = 0;
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
this.pdfViewerControl1.ShowToolBar = true;
this.pdfViewerControl1.ShowVerticalScrollBar = true;
this.pdfViewerControl1.Size = new System.Drawing.Size(313, 614);
this.pdfViewerControl1.Size = new System.Drawing.Size(253, 614);
this.pdfViewerControl1.SpaceBetweenPages = 8;
this.pdfViewerControl1.TabIndex = 10;
this.pdfViewerControl1.Text = "pdfViewerControl1";
textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings1.HighlightAllInstance = true;
textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl1.TextSearchSettings = textSearchSettings1;
textSearchSettings3.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings3.HighlightAllInstance = true;
textSearchSettings3.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl1.TextSearchSettings = textSearchSettings3;
this.pdfViewerControl1.ThemeName = "Default";
this.pdfViewerControl1.VerticalScrollOffset = 0;
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
@ -258,7 +261,7 @@
this.GrpPaketDetails.Controls.Add(this.groupBox1);
this.GrpPaketDetails.Controls.Add(this.button1);
this.GrpPaketDetails.Dock = System.Windows.Forms.DockStyle.Left;
this.GrpPaketDetails.Location = new System.Drawing.Point(402, 0);
this.GrpPaketDetails.Location = new System.Drawing.Point(462, 0);
this.GrpPaketDetails.Name = "GrpPaketDetails";
this.GrpPaketDetails.Size = new System.Drawing.Size(446, 668);
this.GrpPaketDetails.TabIndex = 9;
@ -280,6 +283,7 @@
//
// groupBox3
//
this.groupBox3.Controls.Add(this.label5);
this.groupBox3.Controls.Add(this.label6);
this.groupBox3.Controls.Add(this.txtadresse);
this.groupBox3.Controls.Add(this.treeViewAdvAdresse);
@ -294,34 +298,34 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(266, 25);
this.label6.Location = new System.Drawing.Point(267, 41);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(93, 13);
this.label6.Size = new System.Drawing.Size(106, 15);
this.label6.TabIndex = 10;
this.label6.Text = "Gewählte Adresse";
//
// txtadresse
//
this.txtadresse.Location = new System.Drawing.Point(268, 44);
this.txtadresse.Location = new System.Drawing.Point(270, 59);
this.txtadresse.Multiline = true;
this.txtadresse.Name = "txtadresse";
this.txtadresse.ReadOnly = true;
this.txtadresse.Size = new System.Drawing.Size(163, 97);
this.txtadresse.Size = new System.Drawing.Size(164, 97);
this.txtadresse.TabIndex = 12;
//
// treeViewAdvAdresse
//
this.treeViewAdvAdresse.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);
treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo1.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo1.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo1.TextColor = System.Drawing.Color.Black;
treeNodeAdvStyleInfo4.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo4.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo4.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo4.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo4.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo4.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo4.TextColor = System.Drawing.Color.Black;
this.treeViewAdvAdresse.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)});
this.treeViewAdvAdresse.BeforeTouchSize = new System.Drawing.Size(259, 193);
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo4)});
this.treeViewAdvAdresse.BeforeTouchSize = new System.Drawing.Size(259, 174);
//
//
//
@ -333,11 +337,11 @@
this.treeViewAdvAdresse.HelpTextControl.Visible = true;
this.treeViewAdvAdresse.HideSelection = false;
this.treeViewAdvAdresse.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
this.treeViewAdvAdresse.Location = new System.Drawing.Point(6, 44);
this.treeViewAdvAdresse.Location = new System.Drawing.Point(5, 59);
this.treeViewAdvAdresse.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220)))));
this.treeViewAdvAdresse.Name = "treeViewAdvAdresse";
this.treeViewAdvAdresse.SelectedNodeForeColor = System.Drawing.SystemColors.HighlightText;
this.treeViewAdvAdresse.Size = new System.Drawing.Size(259, 193);
this.treeViewAdvAdresse.Size = new System.Drawing.Size(259, 174);
this.treeViewAdvAdresse.TabIndex = 3;
this.treeViewAdvAdresse.Text = "treeViewAdv2";
this.treeViewAdvAdresse.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 0;
@ -357,11 +361,11 @@
// chkGAS
//
this.chkGAS.AutoSize = true;
this.chkGAS.Location = new System.Drawing.Point(3, 21);
this.chkGAS.Location = new System.Drawing.Point(6, 21);
this.chkGAS.Name = "chkGAS";
this.chkGAS.Size = new System.Drawing.Size(178, 17);
this.chkGAS.Size = new System.Drawing.Size(203, 19);
this.chkGAS.TabIndex = 0;
this.chkGAS.Text = "Frankiertes Rückantwortcouvert";
this.chkGAS.Text = "Frankiertes Rückantwortcouvert ";
this.chkGAS.UseVisualStyleBackColor = true;
this.chkGAS.CheckedChanged += new System.EventHandler(this.chkGAS_CheckedChanged);
//
@ -380,7 +384,7 @@
this.panelVerify.Controls.Add(this.txtVersandoption);
this.panelVerify.Controls.Add(this.lblprueftext);
this.panelVerify.Controls.Add(this.btnSendFinal);
this.panelVerify.Location = new System.Drawing.Point(3, 366);
this.panelVerify.Location = new System.Drawing.Point(3, 387);
this.panelVerify.Name = "panelVerify";
this.panelVerify.Size = new System.Drawing.Size(443, 278);
this.panelVerify.TabIndex = 6;
@ -393,7 +397,7 @@
this.txtAnzahlSeiten.Location = new System.Drawing.Point(151, 152);
this.txtAnzahlSeiten.Name = "txtAnzahlSeiten";
this.txtAnzahlSeiten.ReadOnly = true;
this.txtAnzahlSeiten.Size = new System.Drawing.Size(265, 13);
this.txtAnzahlSeiten.Size = new System.Drawing.Size(265, 16);
this.txtAnzahlSeiten.TabIndex = 17;
//
// txtAnzahlDokumente
@ -403,7 +407,7 @@
this.txtAnzahlDokumente.Location = new System.Drawing.Point(151, 133);
this.txtAnzahlDokumente.Name = "txtAnzahlDokumente";
this.txtAnzahlDokumente.ReadOnly = true;
this.txtAnzahlDokumente.Size = new System.Drawing.Size(265, 13);
this.txtAnzahlDokumente.Size = new System.Drawing.Size(265, 16);
this.txtAnzahlDokumente.TabIndex = 16;
//
// label15
@ -412,7 +416,7 @@
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label15.Location = new System.Drawing.Point(10, 152);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(89, 13);
this.label15.Size = new System.Drawing.Size(113, 17);
this.label15.TabIndex = 15;
this.label15.Text = "Anzahl Seiten:";
//
@ -422,7 +426,7 @@
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.Location = new System.Drawing.Point(9, 133);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(117, 13);
this.label14.Size = new System.Drawing.Size(148, 17);
this.label14.TabIndex = 14;
this.label14.Text = "Anzahl Dokumente:";
//
@ -456,7 +460,7 @@
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(5, 14);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 13);
this.label7.Size = new System.Drawing.Size(93, 17);
this.label7.TabIndex = 10;
this.label7.Text = "Versandart:";
//
@ -476,7 +480,7 @@
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(5, 40);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(132, 13);
this.label8.Size = new System.Drawing.Size(167, 17);
this.label8.TabIndex = 11;
this.label8.Text = "Rückantwort-Adresse:";
//
@ -487,7 +491,7 @@
this.txtVersandoption.Location = new System.Drawing.Point(151, 14);
this.txtVersandoption.Name = "txtVersandoption";
this.txtVersandoption.ReadOnly = true;
this.txtVersandoption.Size = new System.Drawing.Size(265, 13);
this.txtVersandoption.Size = new System.Drawing.Size(265, 16);
this.txtVersandoption.TabIndex = 12;
//
// lblprueftext
@ -495,7 +499,7 @@
this.lblprueftext.AutoSize = true;
this.lblprueftext.Location = new System.Drawing.Point(10, 174);
this.lblprueftext.Name = "lblprueftext";
this.lblprueftext.Size = new System.Drawing.Size(43, 13);
this.lblprueftext.Size = new System.Drawing.Size(48, 15);
this.lblprueftext.TabIndex = 6;
this.lblprueftext.Text = "Prüftext";
//
@ -539,7 +543,7 @@
this.lblprueftextsb2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblprueftextsb2.Location = new System.Drawing.Point(9, 184);
this.lblprueftextsb2.Name = "lblprueftextsb2";
this.lblprueftextsb2.Size = new System.Drawing.Size(51, 13);
this.lblprueftextsb2.Size = new System.Drawing.Size(64, 17);
this.lblprueftextsb2.TabIndex = 20;
this.lblprueftextsb2.Text = "Prüftext";
//
@ -550,7 +554,7 @@
this.txtAnzahlDokumetneSB.Location = new System.Drawing.Point(151, 126);
this.txtAnzahlDokumetneSB.Name = "txtAnzahlDokumetneSB";
this.txtAnzahlDokumetneSB.ReadOnly = true;
this.txtAnzahlDokumetneSB.Size = new System.Drawing.Size(265, 13);
this.txtAnzahlDokumetneSB.Size = new System.Drawing.Size(265, 16);
this.txtAnzahlDokumetneSB.TabIndex = 19;
//
// txtRückantwortSB
@ -570,7 +574,7 @@
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(9, 126);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(117, 13);
this.label16.Size = new System.Drawing.Size(148, 17);
this.label16.TabIndex = 18;
this.label16.Text = "Anzahl Dokumente:";
//
@ -580,7 +584,7 @@
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(6, 7);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(72, 13);
this.label9.Size = new System.Drawing.Size(93, 17);
this.label9.TabIndex = 14;
this.label9.Text = "Versandart:";
//
@ -590,7 +594,7 @@
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(6, 33);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(132, 13);
this.label10.Size = new System.Drawing.Size(167, 17);
this.label10.TabIndex = 15;
this.label10.Text = "Rückantwort-Adresse:";
//
@ -601,7 +605,7 @@
this.txtversandartsb.Location = new System.Drawing.Point(152, 7);
this.txtversandartsb.Name = "txtversandartsb";
this.txtversandartsb.ReadOnly = true;
this.txtversandartsb.Size = new System.Drawing.Size(265, 13);
this.txtversandartsb.Size = new System.Drawing.Size(265, 16);
this.txtversandartsb.TabIndex = 16;
//
// btnsendserienbrief
@ -634,7 +638,7 @@
this.lblprueftextSB.AutoSize = true;
this.lblprueftextSB.Location = new System.Drawing.Point(9, 154);
this.lblprueftextSB.Name = "lblprueftextSB";
this.lblprueftextSB.Size = new System.Drawing.Size(43, 13);
this.lblprueftextSB.Size = new System.Drawing.Size(48, 15);
this.lblprueftextSB.TabIndex = 6;
this.lblprueftextSB.Text = "Prüftext";
//
@ -660,7 +664,7 @@
this.rbb1post.Checked = true;
this.rbb1post.Location = new System.Drawing.Point(74, 21);
this.rbb1post.Name = "rbb1post";
this.rbb1post.Size = new System.Drawing.Size(62, 17);
this.rbb1post.Size = new System.Drawing.Size(71, 19);
this.rbb1post.TabIndex = 5;
this.rbb1post.TabStop = true;
this.rbb1post.Text = "B1-Post";
@ -672,7 +676,7 @@
this.rbb2post.AutoSize = true;
this.rbb2post.Location = new System.Drawing.Point(6, 21);
this.rbb2post.Name = "rbb2post";
this.rbb2post.Size = new System.Drawing.Size(62, 17);
this.rbb2post.Size = new System.Drawing.Size(71, 19);
this.rbb2post.TabIndex = 4;
this.rbb2post.Text = "B2-Post";
this.rbb2post.UseVisualStyleBackColor = true;
@ -683,7 +687,7 @@
this.rbversandoption3.AutoSize = true;
this.rbversandoption3.Location = new System.Drawing.Point(222, 21);
this.rbversandoption3.Name = "rbversandoption3";
this.rbversandoption3.Size = new System.Drawing.Size(207, 17);
this.rbversandoption3.Size = new System.Drawing.Size(238, 19);
this.rbversandoption3.TabIndex = 2;
this.rbversandoption3.Text = "Hauptadresse, Postversand erzwingen";
this.rbversandoption3.UseVisualStyleBackColor = true;
@ -694,7 +698,7 @@
this.rbapost.AutoSize = true;
this.rbapost.Location = new System.Drawing.Point(142, 21);
this.rbapost.Name = "rbapost";
this.rbapost.Size = new System.Drawing.Size(56, 17);
this.rbapost.Size = new System.Drawing.Size(63, 19);
this.rbapost.TabIndex = 3;
this.rbapost.Text = "A-Post";
this.rbapost.UseVisualStyleBackColor = true;
@ -705,7 +709,7 @@
this.rbversandoption2.AutoSize = true;
this.rbversandoption2.Location = new System.Drawing.Point(222, 21);
this.rbversandoption2.Name = "rbversandoption2";
this.rbversandoption2.Size = new System.Drawing.Size(197, 17);
this.rbversandoption2.Size = new System.Drawing.Size(228, 19);
this.rbversandoption2.TabIndex = 1;
this.rbversandoption2.Text = "Hauptadresse, E-Banking erzwingen";
this.rbversandoption2.UseVisualStyleBackColor = true;
@ -716,7 +720,7 @@
this.rbversandoption1.AutoSize = true;
this.rbversandoption1.Location = new System.Drawing.Point(222, 21);
this.rbversandoption1.Name = "rbversandoption1";
this.rbversandoption1.Size = new System.Drawing.Size(166, 17);
this.rbversandoption1.Size = new System.Drawing.Size(191, 19);
this.rbversandoption1.TabIndex = 0;
this.rbversandoption1.Text = "Hauptadresse und Versandart";
this.rbversandoption1.UseVisualStyleBackColor = true;
@ -738,17 +742,17 @@
this.treeViewAdv1.AllowDrop = true;
this.treeViewAdv1.BackColor = System.Drawing.Color.White;
this.treeViewAdv1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
treeNodeAdvStyleInfo1.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo1.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo1.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
treeNodeAdvStyleInfo1.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo1.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
this.treeViewAdv1.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
this.treeViewAdv1.BeforeTouchSize = new System.Drawing.Size(402, 568);
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)});
this.treeViewAdv1.BeforeTouchSize = new System.Drawing.Size(462, 530);
this.treeViewAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.Flat;
this.treeViewAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.treeViewAdv1.ContextMenuStrip = this.contextMenuStrip1;
@ -762,7 +766,7 @@
this.treeViewAdv1.HelpTextControl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.treeViewAdv1.HelpTextControl.Location = new System.Drawing.Point(732, 0);
this.treeViewAdv1.HelpTextControl.Name = "helpText";
this.treeViewAdv1.HelpTextControl.Size = new System.Drawing.Size(49, 15);
this.treeViewAdv1.HelpTextControl.Size = new System.Drawing.Size(55, 17);
this.treeViewAdv1.HelpTextControl.TabIndex = 0;
this.treeViewAdv1.HelpTextControl.Text = "help text";
this.treeViewAdv1.HideSelection = false;
@ -779,7 +783,7 @@
this.treeViewAdv1.SelectedNodeBackground = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))));
this.treeViewAdv1.SelectedNodeForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
this.treeViewAdv1.ShowFocusRect = false;
this.treeViewAdv1.Size = new System.Drawing.Size(402, 568);
this.treeViewAdv1.Size = new System.Drawing.Size(462, 530);
this.treeViewAdv1.Style = Syncfusion.Windows.Forms.Tools.TreeStyle.Office2016Colorful;
this.treeViewAdv1.TabIndex = 7;
this.treeViewAdv1.Text = "treeViewAdv2";
@ -799,7 +803,7 @@
this.treeViewAdv1.ToolTipControl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.treeViewAdv1.ToolTipControl.Location = new System.Drawing.Point(642, 0);
this.treeViewAdv1.ToolTipControl.Name = "toolTip";
this.treeViewAdv1.ToolTipControl.Size = new System.Drawing.Size(41, 15);
this.treeViewAdv1.ToolTipControl.Size = new System.Drawing.Size(46, 17);
this.treeViewAdv1.ToolTipControl.TabIndex = 1;
this.treeViewAdv1.ToolTipControl.Text = "toolTip";
this.treeViewAdv1.TransparentControls = true;
@ -821,17 +825,17 @@
this.pdfViewerControl2.IsTextSearchEnabled = true;
this.pdfViewerControl2.IsTextSelectionEnabled = true;
this.pdfViewerControl2.Location = new System.Drawing.Point(482, 0);
messageBoxSettings2.EnableNotification = true;
this.pdfViewerControl2.MessageBoxSettings = messageBoxSettings2;
messageBoxSettings4.EnableNotification = true;
this.pdfViewerControl2.MessageBoxSettings = messageBoxSettings4;
this.pdfViewerControl2.MinimumZoomPercentage = 50;
this.pdfViewerControl2.Name = "pdfViewerControl2";
this.pdfViewerControl2.PageBorderThickness = 1;
pdfViewerPrinterSettings2.Copies = 1;
pdfViewerPrinterSettings2.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings2.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings2.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings2.PrintLocation")));
pdfViewerPrinterSettings2.ShowPrintStatusDialog = true;
this.pdfViewerControl2.PrinterSettings = pdfViewerPrinterSettings2;
pdfViewerPrinterSettings4.Copies = 1;
pdfViewerPrinterSettings4.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
pdfViewerPrinterSettings4.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
pdfViewerPrinterSettings4.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings4.PrintLocation")));
pdfViewerPrinterSettings4.ShowPrintStatusDialog = true;
this.pdfViewerControl2.PrinterSettings = pdfViewerPrinterSettings4;
this.pdfViewerControl2.ReferencePath = null;
this.pdfViewerControl2.ScrollDisplacementValue = 0;
this.pdfViewerControl2.ShowHorizontalScrollBar = true;
@ -841,10 +845,10 @@
this.pdfViewerControl2.SpaceBetweenPages = 8;
this.pdfViewerControl2.TabIndex = 11;
this.pdfViewerControl2.Text = "pdfViewerControl2";
textSearchSettings2.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings2.HighlightAllInstance = true;
textSearchSettings2.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl2.TextSearchSettings = textSearchSettings2;
textSearchSettings4.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
textSearchSettings4.HighlightAllInstance = true;
textSearchSettings4.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
this.pdfViewerControl2.TextSearchSettings = textSearchSettings4;
this.pdfViewerControl2.ThemeName = "Default";
this.pdfViewerControl2.VerticalScrollOffset = 0;
this.pdfViewerControl2.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
@ -888,7 +892,7 @@
this.textBox4.Location = new System.Drawing.Point(156, 165);
this.textBox4.Name = "textBox4";
this.textBox4.ReadOnly = true;
this.textBox4.Size = new System.Drawing.Size(265, 13);
this.textBox4.Size = new System.Drawing.Size(265, 16);
this.textBox4.TabIndex = 25;
//
// label17
@ -897,7 +901,7 @@
this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label17.Location = new System.Drawing.Point(12, 165);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(89, 13);
this.label17.Size = new System.Drawing.Size(113, 17);
this.label17.TabIndex = 24;
this.label17.Text = "Anzahl Seiten:";
//
@ -908,7 +912,7 @@
this.textBox3.Location = new System.Drawing.Point(156, 141);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(265, 13);
this.textBox3.Size = new System.Drawing.Size(265, 16);
this.textBox3.TabIndex = 23;
//
// label13
@ -917,7 +921,7 @@
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.Location = new System.Drawing.Point(12, 141);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(117, 13);
this.label13.Size = new System.Drawing.Size(148, 17);
this.label13.TabIndex = 22;
this.label13.Text = "Anzahl Dokumente:";
//
@ -938,7 +942,7 @@
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(10, 19);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(72, 13);
this.label11.Size = new System.Drawing.Size(93, 17);
this.label11.TabIndex = 18;
this.label11.Text = "Versandart:";
//
@ -948,7 +952,7 @@
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.Location = new System.Drawing.Point(10, 45);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(132, 13);
this.label12.Size = new System.Drawing.Size(167, 17);
this.label12.TabIndex = 19;
this.label12.Text = "Rückantwort-Adresse:";
//
@ -959,7 +963,7 @@
this.textBox2.Location = new System.Drawing.Point(156, 19);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(265, 13);
this.textBox2.Size = new System.Drawing.Size(265, 16);
this.textBox2.TabIndex = 20;
//
// treeViewAdvCouverts
@ -968,16 +972,16 @@
this.treeViewAdvCouverts.AllowMouseBasedSelection = true;
this.treeViewAdvCouverts.BackColor = System.Drawing.Color.White;
this.treeViewAdvCouverts.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));
treeNodeAdvStyleInfo3.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo3.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo3.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo3.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
treeNodeAdvStyleInfo3.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo3.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo3.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo3.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
treeNodeAdvStyleInfo2.CheckBoxTickThickness = 1;
treeNodeAdvStyleInfo2.CheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.EnsureDefaultOptionedChild = true;
treeNodeAdvStyleInfo2.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
treeNodeAdvStyleInfo2.IntermediateCheckColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.OptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
treeNodeAdvStyleInfo2.SelectedOptionButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(210)))), ((int)(((byte)(210)))));
treeNodeAdvStyleInfo2.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(43)))), ((int)(((byte)(43)))));
this.treeViewAdvCouverts.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo3)});
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo2)});
this.treeViewAdvCouverts.BeforeTouchSize = new System.Drawing.Size(476, 397);
this.treeViewAdvCouverts.Border3DStyle = System.Windows.Forms.Border3DStyle.Flat;
this.treeViewAdvCouverts.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@ -992,7 +996,7 @@
this.treeViewAdvCouverts.HelpTextControl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.treeViewAdvCouverts.HelpTextControl.Location = new System.Drawing.Point(732, 0);
this.treeViewAdvCouverts.HelpTextControl.Name = "helpText";
this.treeViewAdvCouverts.HelpTextControl.Size = new System.Drawing.Size(49, 15);
this.treeViewAdvCouverts.HelpTextControl.Size = new System.Drawing.Size(55, 17);
this.treeViewAdvCouverts.HelpTextControl.TabIndex = 0;
this.treeViewAdvCouverts.HelpTextControl.Text = "help text";
this.treeViewAdvCouverts.HideSelection = false;
@ -1029,7 +1033,7 @@
this.treeViewAdvCouverts.ToolTipControl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.treeViewAdvCouverts.ToolTipControl.Location = new System.Drawing.Point(642, 0);
this.treeViewAdvCouverts.ToolTipControl.Name = "toolTip";
this.treeViewAdvCouverts.ToolTipControl.Size = new System.Drawing.Size(41, 15);
this.treeViewAdvCouverts.ToolTipControl.Size = new System.Drawing.Size(46, 17);
this.treeViewAdvCouverts.ToolTipControl.TabIndex = 1;
this.treeViewAdvCouverts.ToolTipControl.Text = "toolTip";
this.treeViewAdvCouverts.TransparentControls = true;
@ -1042,19 +1046,19 @@
this.versandCouvertLöschenToolStripMenuItem,
this.versandCouvertÖffnenbearbeitenToolStripMenuItem});
this.contextMenuStrip2.Name = "contextMenuStrip2";
this.contextMenuStrip2.Size = new System.Drawing.Size(262, 48);
this.contextMenuStrip2.Size = new System.Drawing.Size(313, 52);
//
// versandCouvertLöschenToolStripMenuItem
//
this.versandCouvertLöschenToolStripMenuItem.Name = "versandCouvertLöschenToolStripMenuItem";
this.versandCouvertLöschenToolStripMenuItem.Size = new System.Drawing.Size(261, 22);
this.versandCouvertLöschenToolStripMenuItem.Size = new System.Drawing.Size(312, 24);
this.versandCouvertLöschenToolStripMenuItem.Text = "Versand-Couvert löschen";
this.versandCouvertLöschenToolStripMenuItem.Click += new System.EventHandler(this.versandCouvertLöschenToolStripMenuItem_Click);
//
// versandCouvertÖffnenbearbeitenToolStripMenuItem
//
this.versandCouvertÖffnenbearbeitenToolStripMenuItem.Name = "versandCouvertÖffnenbearbeitenToolStripMenuItem";
this.versandCouvertÖffnenbearbeitenToolStripMenuItem.Size = new System.Drawing.Size(261, 22);
this.versandCouvertÖffnenbearbeitenToolStripMenuItem.Size = new System.Drawing.Size(312, 24);
this.versandCouvertÖffnenbearbeitenToolStripMenuItem.Text = "Versand-Couvert öffnen/bearbeiten";
this.versandCouvertÖffnenbearbeitenToolStripMenuItem.Click += new System.EventHandler(this.versandCouvertÖffnenbearbeitenToolStripMenuItem_Click);
//
@ -1180,9 +1184,9 @@
this.panel1.BackColor = System.Drawing.Color.LightGray;
this.panel1.Controls.Add(this.lblprieveiwbezeichnung);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(848, 0);
this.panel1.Location = new System.Drawing.Point(908, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(313, 54);
this.panel1.Size = new System.Drawing.Size(253, 54);
this.panel1.TabIndex = 10;
//
// lblprieveiwbezeichnung
@ -1191,7 +1195,7 @@
this.lblprieveiwbezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblprieveiwbezeichnung.Location = new System.Drawing.Point(7, 16);
this.lblprieveiwbezeichnung.Name = "lblprieveiwbezeichnung";
this.lblprieveiwbezeichnung.Size = new System.Drawing.Size(0, 20);
this.lblprieveiwbezeichnung.Size = new System.Drawing.Size(0, 25);
this.lblprieveiwbezeichnung.TabIndex = 0;
//
// panel2
@ -1201,25 +1205,37 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(402, 668);
this.panel2.Size = new System.Drawing.Size(462, 668);
this.panel2.TabIndex = 11;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.LightGray;
this.panel3.Controls.Add(this.richTextBox1);
this.panel3.Controls.Add(this.lblerror);
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel3.Location = new System.Drawing.Point(0, 568);
this.panel3.Location = new System.Drawing.Point(0, 530);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(402, 100);
this.panel3.Size = new System.Drawing.Size(462, 138);
this.panel3.TabIndex = 8;
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.LightGray;
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.richTextBox1.Location = new System.Drawing.Point(3, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(453, 132);
this.richTextBox1.TabIndex = 1;
this.richTextBox1.Text = "";
//
// lblerror
//
this.lblerror.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblerror.Location = new System.Drawing.Point(3, 8);
this.lblerror.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblerror.Location = new System.Drawing.Point(0, 3);
this.lblerror.Name = "lblerror";
this.lblerror.Size = new System.Drawing.Size(396, 87);
this.lblerror.Size = new System.Drawing.Size(396, 130);
this.lblerror.TabIndex = 0;
//
// pnlpostkorb
@ -1235,9 +1251,9 @@
//
this.lblpostausgang.AutoSize = true;
this.lblpostausgang.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblpostausgang.Location = new System.Drawing.Point(1223, 46);
this.lblpostausgang.Location = new System.Drawing.Point(1238, 49);
this.lblpostausgang.Name = "lblpostausgang";
this.lblpostausgang.Size = new System.Drawing.Size(135, 20);
this.lblpostausgang.Size = new System.Drawing.Size(166, 25);
this.lblpostausgang.TabIndex = 24;
this.lblpostausgang.Text = "labelpostausgang";
this.lblpostausgang.Visible = false;
@ -1262,7 +1278,7 @@
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(143, 13);
this.label1.Size = new System.Drawing.Size(163, 15);
this.label1.TabIndex = 21;
this.label1.Text = "Fortschritt Dokumentversand";
//
@ -1296,7 +1312,7 @@
this.lblProgressTitel.AutoSize = true;
this.lblProgressTitel.Location = new System.Drawing.Point(12, 9);
this.lblProgressTitel.Name = "lblProgressTitel";
this.lblProgressTitel.Size = new System.Drawing.Size(0, 13);
this.lblProgressTitel.Size = new System.Drawing.Size(0, 15);
this.lblProgressTitel.TabIndex = 19;
//
// label3
@ -1304,7 +1320,7 @@
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(435, 78);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(25, 13);
this.label3.Size = new System.Drawing.Size(28, 15);
this.label3.TabIndex = 18;
this.label3.Text = "100";
//
@ -1313,7 +1329,7 @@
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 78);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(13, 13);
this.label2.Size = new System.Drawing.Size(14, 15);
this.label2.TabIndex = 17;
this.label2.Text = "0";
//
@ -1332,14 +1348,35 @@
this.ribbonButton3.SmallImage = ((System.Drawing.Image)(resources.GetObject("ribbonButton3.SmallImage")));
this.ribbonButton3.Text = "Anzeige Adressposition";
//
// lblserienbrief
//
this.lblserienbrief.AutoSize = true;
this.lblserienbrief.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblserienbrief.Location = new System.Drawing.Point(1236, 48);
this.lblserienbrief.Name = "lblserienbrief";
this.lblserienbrief.Size = new System.Drawing.Size(125, 25);
this.lblserienbrief.TabIndex = 26;
this.lblserienbrief.Text = "lblSerienbrief";
this.lblserienbrief.Visible = false;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(24, 41);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(167, 15);
this.label5.TabIndex = 13;
this.label5.Text = "(Rückversand: max. 5 Blätter)";
//
// Versandstrasse
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1593, 813);
this.Controls.Add(this.pnlprogress);
this.Controls.Add(this.lblpostausgang);
this.Controls.Add(this.panelPrepare);
this.Controls.Add(this.lblpostausgang);
this.Controls.Add(this.lblserienbrief);
this.Controls.Add(this.pnlprogress);
this.Controls.Add(this.pnlpostkorb);
this.Controls.Add(this.pnlcouvert);
this.Controls.Add(this.ribbon1);
@ -1476,5 +1513,9 @@
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label lblerror;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Label lblserienbrief;
private System.Windows.Forms.Label label5;
}
}

@ -27,6 +27,8 @@ using Windows.Media.Streaming.Adaptive;
using System.Data.SqlTypes;
using NLog.LayoutRenderers.Wrappers;
using System.Security.Cryptography;
using Microsoft.SqlServer.Server;
using System.Windows.Interop;
namespace OnDoc.Versandstrasse
{
@ -107,7 +109,7 @@ namespace OnDoc.Versandstrasse
treeViewAdvAdresse.Nodes.Add(node);
}
treeViewAdvAdresse.SelectedNode = treeViewAdvAdresse.Nodes[0];
//treeViewAdvAdresse.SelectedNode = 0;
treeViewAdvAdresse.Enabled = false;
db = null;
@ -126,6 +128,7 @@ namespace OnDoc.Versandstrasse
lblprueftextSB.Text = db.dsdaten.Tables[0].Rows[1]["textblock"].ToString();
lblprueftextsb2.Text = db.dsdaten.Tables[0].Rows[2]["textblock"].ToString();
lblpostausgang.Text = db.dsdaten.Tables[0].Rows[3]["textblock"].ToString();
lblserienbrief.Text = db.dsdaten.Tables[0].Rows[4]["textblock"].ToString();
lblpostausgang.MaximumSize = new Size(500, 60);
db = null;
@ -138,6 +141,16 @@ namespace OnDoc.Versandstrasse
this.pnlpostkorb.Visible = false;
this.pnlpostkorb.Dock = DockStyle.Fill;
this.pnlcouvert.Dock = DockStyle.Fill;
if (!serienbrief)
{
lblpostausgang.Visible = true;
this.lblpostausgang.Left = this.Width - lblpostausgang.Width;
}
else
{
lblserienbrief.Visible = true;
this.lblserienbrief.Left = this.Width - lblserienbrief.Width;
}
}
else
{
@ -188,9 +201,9 @@ namespace OnDoc.Versandstrasse
DB db = new DB(AppParams.connectionstring);
for (int i = 0; i < pakete.Count; i++)
{
db.Get_Tabledata("Select bkpar00 from partner where nrpar00=" + pakete[i].partnernr.ToString(), false, true);
db.Get_Tabledata("Select nrpar00, bkpar00 from partner where nrpar00=" + pakete[i].partnernr.ToString(), false, true);
DruckJob = new TreeNodeAdv();
DruckJob.Text = "Versand-Couvert - " + db.dsdaten.Tables[0].Rows[0][0].ToString();
DruckJob.Text = "Versand-Couvert - " + db.dsdaten.Tables[0].Rows[0][0].ToString()+ ", " + db.dsdaten.Tables[0].Rows[0][1].ToString();
DruckJob.Tag = "Druckpaket";
//pakete[i].partnernr = i;
DruckJob.TagObject = pakete[i];
@ -211,6 +224,11 @@ namespace OnDoc.Versandstrasse
{
if (node.Level == 1) { Verify_Couvert(node); }
}
try
{
treeViewAdv1.SelectedNode = treeViewAdv1.Nodes[0];
}
catch { }
}
private void set_nodeimage(TreeNodeAdv node, int img)
@ -228,15 +246,37 @@ namespace OnDoc.Versandstrasse
}
string errormessage = "";
private void add_errormessage(string message)
System.Data.DataTable errormessages = new System.Data.DataTable();
public class errormsg
{
public int number = 0;
public string message = "";
public errormsg(int nr, string message)
{
this.number = nr;
this.message = message;
}
}
List<errormsg> errors = new List<errormsg>();
private void add_errormessage(int nr, string message)
{
if (errormessage.Trim() != "")
bool found = false;
foreach (errormsg ermsg in errors) {
if (ermsg.number == nr) { found = true; break; }
}
if (!found)
{
errormessage = errormessage + Environment.NewLine +"- "+ message;
}else { errormessage = "- "+message; }
errors.Add(new errormsg(nr, message));
}
}
private bool Verify_Couvert(TreeNodeAdv node)
{
errors.Clear();
errormessage = "";
lblerror.Visible = false;
@ -246,20 +286,30 @@ namespace OnDoc.Versandstrasse
set_nodeimage(node, 1);
return true;
}
DB db = new DB(AppParams.connectionstring);
if (node.Nodes.Count > 0)
{
Versanddokument vd = node.Nodes[0].TagObject as Versanddokument;
if (vd.Partnernr.ToString() != vp.partnernr.ToString())
{
db.Get_Tabledata("SELECT dbo.Partner.NRPAR00, dbo.Partner.BKPAR00 FROM partner where nrpar00="+vd.Partnernr, false, true);
node.Text = "Versand-Couvert" + " - " + db.dsdaten.Tables[0].Rows[0][0].ToString() + " " + db.dsdaten.Tables[0].Rows[0][1].ToString();
vp.partnernr = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]);
}
}
if (vp.partnernr == 0 && node.Nodes.Count==1)
{
TreeNodeAdv tn = node.Nodes[0];
db.Get_Tabledata("SELECT dbo.Partner.NRPAR00, dbo.Partner.BKPAR00 FROM dbo.dokument INNER JOIN dbo.Partner ON dbo.dokument.nrpar00 = dbo.Partner.NRPAR00 WHERE dbo.dokument.dokumentid='" + tn.Tag + "'", false, true);
node.Text = node.Text + " - " + db.dsdaten.Tables[0].Rows[0][0].ToString() + " " + db.dsdaten.Tables[0].Rows[0][0].ToString();
node.Text = node.Text + " - " + db.dsdaten.Tables[0].Rows[0][0].ToString() + " " + db.dsdaten.Tables[0].Rows[0][1].ToString();
vp.partnernr = Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]);
}
if (chkGAS.Checked && txtadresse.Text == "")
{
add_errormessage("Keine Rückantowrtadresse gewählt");
add_errormessage(7, "Für das Rückantwortcouvert wurde keine Adresse gewählt.");
return false;
}
int currentbp = vp.partnernr;
@ -270,8 +320,7 @@ namespace OnDoc.Versandstrasse
bool versandbereit = true;
if (vp.partnernr > 99999999) {
versandbereit = false;
add_errormessage("Couvert muss für ein BP sein");
add_errormessage(6,"Im Versand-Couvert liegen ausschliesslich Personen-Dokumente. Der Versand braucht technisch ein BP-Dokument.");
}
string kdenummern = "";
@ -289,7 +338,8 @@ namespace OnDoc.Versandstrasse
db.Get_Tabledata("ondoc_versandstrasse_check_kdenr", true, false);
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0])!=0) {
versandbereit = false;
add_errormessage(db.dsdaten.Tables[0].Rows[0][1].ToString());
add_errormessage(Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0].ToString()), db.dsdaten.Tables[0].Rows[0][1].ToString());
}
}
@ -311,30 +361,50 @@ namespace OnDoc.Versandstrasse
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["vsm"]) == 0)
{
set_nodeimage(dokumentnode, 0);
add_errormessage("Nicht versandfähige Dokumente im Couvert");
add_errormessage(4,"Im Versand-Couvert liegt ein Dokument, welches nicht via Versandstrasse verschickt werden kann");
versandbereit = false;
}
else
{
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0]["firstdoc"]) == 0)
{
if (nodecounter == 0) { set_nodeimage(dokumentnode, 4);versandbereit = false; add_errormessage("Versandfähiges Dokument Position 1 fehlt"); }
if (nodecounter == 0) { set_nodeimage(dokumentnode, 4);versandbereit = false; add_errormessage(2,"Im Versand-Couvert liegt an erster Position ein Dokument, welches nicht als vorderstes Dokument tauglich ist"); }
else
{
set_nodeimage(dokumentnode, 5);
}
db.Get_Tabledata("Select unterschriftlinks, unterschriftrechts, signiert from dokument where dokumentid='" + dokumentnode.Tag + "'", false, true);
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) != 0 || Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][1]) != 0){
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][2]) == 0)
{
set_nodeimage(dokumentnode, 4);
versandbereit = false;
add_errormessage(7, "Im Versand-Couvert sind Dokumente mit fehlender faksimiler Unterschrift");
}
}
}
else
{
db.Get_Tabledata("Select isnull(unterschriftlinks,0), isnull(unterschriftrechts,0), signiert from dokument where dokumentid='"+dokumentnode.Tag + "'", false, true);
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][0]) >1 || Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][1]) >1 ){
if (Convert.ToInt32(db.dsdaten.Tables[0].Rows[0][2]) == 0){
set_nodeimage(dokumentnode, 2);
versandbereit = false;
add_errormessage(7, "Im Versand-Couvert sind Dokumente mit fehlender faksimiler Unterschrift");
}
}
}
}
if (node.Nodes.Count == 0)
{
add_errormessage("Kene Dokumente im Couvert");
add_errormessage(1, "Im Versand-Couvert liegen keine Dokumente");
versandbereit = false;
}
nodecounter++;
}
if (node.Nodes.Count < 1) { versandbereit = false;add_errormessage("Keine Dokumetne im Couvert"); }
if (node.Nodes.Count < 1) { versandbereit = false;add_errormessage(1, "Im Versand-Couvert liegen keine Dokumente"); }
if (anzbp > 1) { versandbereit = false; }
if (versandbereit == true)
{
@ -344,6 +414,26 @@ namespace OnDoc.Versandstrasse
}
else
{
if (errors.Count > 0)
{
richTextBox1.Clear();
richTextBox1.BulletIndent = 20;
richTextBox1.SelectionBullet = true;
//errors.Sort();
errors.Sort((s1, s2) => s1.number.CompareTo(s2.number));
errormessage = "";
foreach (errormsg emsg in errors)
{
if (!errormessage.Contains(emsg.message))
{
//if (errormessage != "") { errormessage = errormessage + Environment.NewLine; }
errormessage = errormessage + emsg.message+"\n";
}
}
richTextBox1.SelectedText = errormessage.Substring(0,errormessage.Length-1);
}
lblerror.Visible = true;
lblerror.Text = errormessage;
set_nodeimage(node, 0);
@ -410,6 +500,10 @@ namespace OnDoc.Versandstrasse
TreeViewDropPositions dropPosition = this.treeViewDragHighlightTracker.DropPosition;
this.treeViewDragHighlightTracker.ClearHighlightNode();
this.currentSourceNode = null;
if (sourceNode.Level == 0) {
return;
}
if (destinationNode != null)
{
switch (dropPosition)
@ -421,11 +515,11 @@ namespace OnDoc.Versandstrasse
sourceNode.Move(destinationNode, NodePositions.Next);
break;
case TreeViewDropPositions.OnNode:
Versandpaket sourcepaket = sourceNode.Parent.TagObject as Versandpaket;
TreeNodeAdv savenode = sourceNode.Parent;
sourceNode.Move(destinationNode.Nodes);
//gaga
//Versanddokument dem neuen Versandpaket zuordnen
Versandpaket paket = destinationNode.TagObject as Versandpaket;
Versanddokument vd = sourceNode.TagObject as Versanddokument;
@ -487,6 +581,8 @@ namespace OnDoc.Versandstrasse
TreeNodeAdv xdestinationNode = this.treeViewDragHighlightTracker.HighlightNode;
TreeViewDropPositions dropPosition = this.treeViewDragHighlightTracker.DropPosition;
if (sourceNode.Level==1) { return false; }
if (destinationNode == null || destinationNode == sourceNode)
return false;
@ -619,6 +715,7 @@ namespace OnDoc.Versandstrasse
}
panelPrepare.Visible = true;
panelPrepare.Left = (this.Width - panelPrepare.Width) / 2;
panelverifysb.Visible = false;
@ -678,6 +775,7 @@ namespace OnDoc.Versandstrasse
paket.finaldoc = stapel;
var finalestream = new MemoryStream(Convert.FromBase64String(stapel));
this.pdfViewerControl1.Load(finalestream);
@ -696,12 +794,13 @@ namespace OnDoc.Versandstrasse
this.txtAnzahlDokumente.Text = paket.Dokument.Count().ToString();
lblprieveiwbezeichnung.Text = "Aufbereitetes PDF";
}
catch { }
catch (Exception ex) { MessageBox.Show(ex.Message);
}
panelPrepare.Visible = false;
Cursor = Cursors.Default;
Application.DoEvents();
}
}
private string save_stapel(ref Stream[] streams)
{
@ -1075,7 +1174,7 @@ namespace OnDoc.Versandstrasse
GrpPaketDetails.Enabled = false;
}
}
catch { }
catch (Exception ex) { }
finally { Cursor.Current=Cursors.Default; }
}
@ -1239,6 +1338,8 @@ namespace OnDoc.Versandstrasse
Versandpaket vp = treeViewAdv1.SelectedNode.TagObject as Versandpaket;
pakete.Remove(vp);
treeViewAdv1.SelectedNode.Remove();
this.pdfViewerControl1.Unload();
}
}

@ -128,7 +128,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDA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B8wH/Ab0CFwG9Af8B8wKP
ARcB/wGKBtMCzQbTAYoBAAG9DEcBvQIAAcIMVQHCAgABvQKPARcB4wSPAeMBFwKPAb0BAAGKDtMBigIA
Ab0KRwG9AwAB/wHAClUBwAH/AgAB/wG3Co8BtwH/AQABsw7TAbMDAAG9CEcBvQUAAf8BwghVAcIB/wQA
Af8BvQEXBo8BFwG9Af8CAAHwDtMB8AQAAb0GFgG9CAAB9AHCAcACVQHAAcIB9AgAAf8BvQEWAhcBFgG9
Af8FAAHwAbMKigGzAfABAAFCAU0BPgcAAT4DAAEoAwABQAMAASADAAEBAQABAQYAAQEWAAP/AQABgAED
BwABAx8AAeAGAAEBBwABAQgAAYAWAAEBARAHAAEgDgABwAcAAcAHAAHwAQ8B8AEPAfABDwGAAQEB4AEH
AcABAwHAAQMCAAHAAQMBgAEBAYABAQIAAYABAQGAAQEBgAEBQgABgAEBAYABAQGAAQECAAHAAQMBgAEB
AYABAQIAAeABBwHAAQMBwAEDAgAB8AEPAfABDwHwAQ8BgAEBCw==
</value>
</data>
<data name="pdfViewerPrinterSettings1.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<data name="pdfViewerPrinterSettings3.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
@ -337,7 +337,7 @@
/wM19F1wo1uqCAAAAABJRU5ErkJggg==
</value>
</data>
<data name="pdfViewerPrinterSettings2.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<data name="pdfViewerPrinterSettings4.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
@ -355,7 +355,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAq
CQAAAk1TRnQBSQFMAgEBAwEAAcABAAHAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CQAAAk1TRnQBSQFMAgEBAwEAAeABAAHgAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

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.

@ -269,7 +269,6 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.Tools.Windows.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.TreeMap.Windows.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Syncfusion.XlsIO.Base.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\VBFileManagement.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Versandstrasse.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\WinSign.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\FastReport.dll
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\VBOffice.dll
@ -379,3 +378,4 @@ E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.exe
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.pdb
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.DocMgmt.FrmDokumentwerte.resources
E:\Software-Projekte\OnDoc\OnDoc\Client\obj\Debug\OnDoc.Diverses.FrmExternalDocEdit.resources
E:\Software-Projekte\OnDoc\OnDoc\Client\bin\Debug\Versandstrasse.dll

Binary file not shown.

Binary file not shown.

@ -546,8 +546,14 @@ namespace DOCGEN.Klassen
if (document.ProtectionType == ProtectionType.NoProtection)
{
WParagraph paragraph = document.Sections[0].Paragraphs[0] as WParagraph;
//BookmarkStart bookmarkStart = new BookmarkStart(document, dm.BookMark);
//paragraph.Items.Insert(0, bookmarkStart);
BookmarkStart bookmarkStart = new BookmarkStart(document, dm.BookMark);
BookmarkEnd bookmarkEnd = new BookmarkEnd(document, dm.BookMark);
paragraph.Items.Insert(0, bookmarkStart);
paragraph.Items.Insert(2, bookmarkEnd);
}
else
{
@ -901,11 +907,13 @@ namespace DOCGEN.Klassen
if (docData.barcode_horizontal == 0)
{
barcodeimage = barbarcode.GetBarI25(Color.Black, Color.White, docData.Dokumentid.Substring(6, 16), "Bar 25i c HR", 33, 300, 50, docData.barcode_zusatz, "Futur Book", 8,270);
//barcodeimage = barbarcode.GetBarI25(Color.Black, Color.White, docData.Dokumentid.Substring(6, 16), "Bar 25i c HR", 33, 429, 52, docData.barcode_zusatz, "Futur Book", 8, 270);
}
else
{
barcodeimage = barbarcode.GetBarI25(Color.Black, Color.White, docData.Dokumentid.Substring(6, 16), "Bar 25i c HR", 33, 300, 50, docData.barcode_zusatz, "Futur Book", 8, 0);
//barcodeimage = barbarcode.GetBarI25(Color.Black, Color.White, docData.Dokumentid.Substring(6, 16), "Bar 25i c HR", 33, 429, 52, docData.barcode_zusatz, "Futur Book", 8, 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.

Binary file not shown.

Binary file not shown.

@ -191,4 +191,101 @@ namespace Logging
return false;
}
}
public class VersandstrasseLog
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetLogger("Versandstrasse");
public static string connectionstring { get; set; } = "";
public static string IntLogLevel { get; set; } = "";
public static string IntUserID { get; set; } = "*";
public static void init_logger()
{
var dbTarget = LogManager.Configuration.FindTargetByName<DatabaseTarget>("Versandstrasse");
dbTarget.ConnectionString = connectionstring;
}
public static void Info(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Info") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Info(message);
}
public static void Warning(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Warning") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Warn(message);
}
public static void Error(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Error") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paektid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Error(message);
}
public static void Fatal(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Fatal") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Fatal(message);
}
public static void Trance(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Trace") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Trace(message);
}
public static void Debug(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Debug") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Debug(message);
}
private static Boolean DoLogging(string Loglevel)
{
if (IntUserID != "*")
{
if (IntUserID.Contains(System.Security.Principal.WindowsIdentity.GetCurrent().Name))
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
}
else
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
return false;
}
}
}

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.

@ -1988,19 +1988,37 @@ namespace OnDocOffice
clsFileHelper fh = new clsFileHelper();
string filename=tempdir+ DateTime.Now.ToString("yyyyMMddhhmmss")+"_"+dokumentid+dok.extension;
string outputfile = filename + ".pdf";
fh.SaveBase64ToFile(dok.dokument, filename);
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document worddoc = new Microsoft.Office.Interop.Word.Document();
worddoc= word.Documents.Open(filename);
word.ActiveDocument.EmbedTrueTypeFonts = true;
worddoc.EmbedTrueTypeFonts= true;
worddoc.ExportAsFixedFormat(outputfile.ToString(), Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF, false, Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, Microsoft.Office.Interop.Word.WdExportRange.wdExportAllDocument,0,99, Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, true, true, Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true, false);
try
{
fh.SaveBase64ToFile(dok.dokument, filename);
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document worddoc = new Microsoft.Office.Interop.Word.Document();
worddoc = word.Documents.Open(filename);
word.ActiveDocument.EmbedTrueTypeFonts = true;
worddoc.EmbedTrueTypeFonts = true;
worddoc.ExportAsFixedFormat(outputfile.ToString(), Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF, false, Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint, Microsoft.Office.Interop.Word.WdExportRange.wdExportAllDocument, 0, 99, Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent, true, true, Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true, false);
worddoc.Close(false);
word.Quit(false);
worddoc = null;
word = null;
return fh.Base64FromFile(outputfile);
}
catch { return ""; }
finally
{
try
{
System.IO.File.Delete(filename);
}
catch { }
try
{
System.IO.File.Delete(outputfile.ToString());
}
catch { };
}
worddoc.Close(false);
word.Quit(false);
worddoc = null;
word = null;
return fh.Base64FromFile(outputfile);
}

@ -19,6 +19,15 @@
<setting name="APIKey" serializeAs="String">
<value>pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98=</value>
</setting>
<setting name="LogConnectionstring" serializeAs="String">
<value>Data source=shu01\shu00;initial catalog=edoka_journale;;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29</value>
</setting>
<setting name="adminmail" serializeAs="String">
<value>dm@tkb.ch</value>
</setting>
<setting name="prefix_betreff" serializeAs="String">
<value>INT: </value>
</setting>
</OnDoc_Paketversand.Properties.Settings>
</userSettings>
</configuration>

@ -0,0 +1,291 @@
using NLog;
using NLog.Targets;
using NLog.Time;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Logging
{
public class Logging
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetLogger("OnDoc");
public static string connectionstring { get; set; } = "";
public static string IntLogLevel { get; set; } = "";
public static string IntUserID { get; set; } = "*";
public static void init_logger()
{
var dbTarget = LogManager.Configuration.FindTargetByName<DatabaseTarget>("OnDoc");
dbTarget.ConnectionString = connectionstring;
}
public static void Info(string message, string herkunft, string zusatz)
{
if (DoLogging("Info") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Info(message);
}
public static void Warning(string message, string herkunft, string zusatz)
{
if (DoLogging("Warning") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Warn(message);
}
public static void Error(string message, string herkunft, string zusatz)
{
if (DoLogging("Error") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Error(message);
}
public static void Fatal(string message, string herkunft, string zusatz)
{
if (DoLogging("Fatal") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Fatal(message);
}
public static void Trance(string message, string herkunft, string zusatz)
{
if (DoLogging("Trace") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Trace(message);
}
public static void Debug(string message, string herkunft, string zusatz)
{
if (DoLogging("Debug") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Zusatz", zusatz);
Logger.Debug(message);
}
private static Boolean DoLogging(string Loglevel)
{
if (IntUserID != "*")
{
if (IntUserID.Contains(System.Security.Principal.WindowsIdentity.GetCurrent().Name))
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
}
else
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
return false;
}
}
public class DocLog
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetLogger("DocLog");
public static string connectionstring { get; set; } = "";
public static string IntLogLevel { get; set; } = "";
public static string IntUserID { get; set; } = "*";
public static void init_logger()
{
var dbTarget = LogManager.Configuration.FindTargetByName<DatabaseTarget>("DocLog");
dbTarget.ConnectionString = connectionstring;
}
public static void Info(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Info") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Info(message);
}
public static void Warning(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Warning") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Warn(message);
}
public static void Error(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Error") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Error(message);
}
public static void Fatal(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Fatal") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Fatal(message);
}
public static void Trance(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Trace") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Trace(message);
}
public static void Debug(string message, string herkunft, string dokumentid, string partnernr, string aktion)
{
if (DoLogging("Debug") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Dokumentid", dokumentid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Debug(message);
}
private static Boolean DoLogging(string Loglevel)
{
if (IntUserID != "*")
{
if (IntUserID.Contains(System.Security.Principal.WindowsIdentity.GetCurrent().Name))
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
}
else
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
return false;
}
}
public class VersandstrasseLog
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetLogger("Versandstrasse");
public static string connectionstring { get; set; } = "";
public static string IntLogLevel { get; set; } = "";
public static string IntUserID { get; set; } = "*";
public static void init_logger()
{
var dbTarget = LogManager.Configuration.FindTargetByName<DatabaseTarget>("Versandstrasse");
dbTarget.ConnectionString = connectionstring;
}
public static void Info(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Info") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Info(message);
}
public static void Warning(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Warning") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Warn(message);
}
public static void Error(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Error") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paektid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Error(message);
}
public static void Fatal(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Fatal") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Fatal(message);
}
public static void Trance(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Trace") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Trace(message);
}
public static void Debug(string message, string herkunft, string paketid, string partnernr, string aktion)
{
if (DoLogging("Debug") != true) { return; }
GlobalDiagnosticsContext.Set("Herkunft", herkunft);
GlobalDiagnosticsContext.Set("Paketid", paketid);
GlobalDiagnosticsContext.Set("Partnernr", partnernr);
GlobalDiagnosticsContext.Set("Aktion", aktion);
Logger.Debug(message);
}
private static Boolean DoLogging(string Loglevel)
{
if (IntUserID != "*")
{
if (IntUserID.Contains(System.Security.Principal.WindowsIdentity.GetCurrent().Name))
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
}
else
{
if (IntLogLevel.Contains(Loglevel))
{
return true;
}
}
return false;
}
}
}

@ -34,6 +34,19 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="EDOKA_Logger">
<HintPath>..\Logger\bin\Debug\EDOKA_Logger.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Client\bin\Debug\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NLog">
<HintPath>..\Logger\bin\Debug\NLog.dll</HintPath>
</Reference>
<Reference Include="NLog.Database">
<HintPath>..\Logger\bin\Debug\NLog.Database.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
@ -44,6 +57,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="clsSerienbrief.cs" />
<Compile Include="Logging.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
@ -51,6 +66,7 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="VersandstrassePaket.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />

@ -9,10 +9,15 @@ using System.IO;
using System.Data.SqlClient;
using System.Data;
using System.Security.Cryptography;
using Newtonsoft.Json;
using System.Net.Mail;
using System.Net.Http;
namespace OnDoc_Paketversand
{
internal class Program
{
private static string connectionstring { get; set; } = "";
@ -23,18 +28,42 @@ namespace OnDoc_Paketversand
{
run();
}
private static void run(){
public static void InitLogging()
{
Get_Tabledata("Select * from nlog_parameter WHERE ID=4", false, true);
Logging.VersandstrasseLog.IntLogLevel = dsdaten.Tables[0].Rows[0]["LogLevel"].ToString();
Logging.VersandstrasseLog.IntUserID = dsdaten.Tables[0].Rows[0]["LogUserID"].ToString();
Logging.VersandstrasseLog.connectionstring = Properties.Settings.Default.LogConnectionstring;
Logging.VersandstrasseLog.init_logger();
}
private static void run()
{
connectionstring = Properties.Settings.Default.Connectionstring;
Console.WriteLine(connectionstring);
InitLogging();
Logging.VersandstrasseLog.Info("Start OnDocPaketversand", "OnDoc-Paketversand", "", "", "");
string URLBase = Properties.Settings.Default.RESTURI + "api/Send_Versandstrasse?paketid=";
Console.WriteLine(URLBase);
Get_Tabledata("Select id,paket from ondoc_versandstrasse_paket where versendet=0 and geloescht=0 and aktiv=1 order by versandoption", false, true);
string sql = "SELECT dbo.Ondoc_Versandstrasse_Paket.id, dbo.Ondoc_Versandstrasse_Paket.paket, dbo.Ondoc_Versandstrasse_Paket.ersteller, dbo.mitarbeiter.email";
sql = sql + " FROM dbo.Ondoc_Versandstrasse_Paket INNER JOIN dbo.mitarbeiter ON dbo.Ondoc_Versandstrasse_Paket.ersteller = dbo.mitarbeiter.mitarbeiternr";
sql = sql + " where (dbo.Ondoc_Versandstrasse_Paket.versendet = 0) AND (dbo.Ondoc_Versandstrasse_Paket.geloescht = 0) AND (dbo.Ondoc_Versandstrasse_Paket.aktiv = 1)";
sql = sql + " ORDER BY dbo.Ondoc_Versandstrasse_Paket.Versandoption";
Get_Tabledata(sql, false, true);
int total = 0;
int ok = 0;
int error = 0;
foreach (System.Data.DataRow dr in dsdaten.Tables[0].Rows)
{
Console.WriteLine("PaketID:"+ dr[0].ToString());
string paketid = "";
string ersteller = "";
ersteller = dr[3].ToString();
paketid = dr[0].ToString();
Model.Versandpaket vp = JsonConvert.DeserializeObject<Model.Versandpaket>(dr[1].ToString());
Logging.VersandstrasseLog.Info("Paket-Verarbeitung", "OnDoc-Paketversand", paketid, vp.partnernr.ToString(), "Start Versand");
string jsonstring = dr[1].ToString();
string URL = URLBase+ dr[0].ToString();
string URL = URLBase + dr[0].ToString();
WebRequest request;
var data = Encoding.UTF8.GetBytes(jsonstring);
request = WebRequest.Create(URL);
@ -43,6 +72,7 @@ namespace OnDoc_Paketversand
request.Method = "POST";
request.Headers["Authorization"] = "Bearer " + Properties.Settings.Default.APIKey;
string response;
total = total + 1;
try
{
@ -59,24 +89,41 @@ namespace OnDoc_Paketversand
}
if (response.ToString().Contains("archiviert"))
{
Logging.VersandstrasseLog.Info("Paket-Verarbeitung", "OnDoc-Paketversand", paketid, vp.partnernr.ToString(), "Ende Versand");
ok = ok + 1;
}
else
{
string message = "Das Versand-Couvert Nr. " + paketid + " / Partner-Nr " + vp.partnernr + " konnte nicht versendet werden.";
sendmail(Properties.Settings.Default.adminmail, "OnDoc-Paketversand Fehler", message);
sendmail(ersteller, "OnDoc-Paketversand: Dokument nicht Versandcouvert nicht versendet", message);
Logging.VersandstrasseLog.Error("Paket-Verarbeitung", "OnDoc-Paketversand", paketid, vp.partnernr.ToString(), "Ende Versand");
error = error + 1;
}
}
}
return;
}
catch { }
catch (Exception ex)
{
Logging.VersandstrasseLog.Error("Paket-Verarbeitung", "OnDoc-Paketversand", dr[0].ToString(), vp.partnernr.ToString(), "Ende Versand - " + ex.Message);
sendmail(Properties.Settings.Default.adminmail, "OnDoc-Paketversand Fehler", ex.Message);
error = error + 1;
}
}
Logging.VersandstrasseLog.Info("Ende OnDocPaketversand", "OnDoc-Paketversand", "", "", "");
string msg = "OnDok Paketversand durchgeführt" + Environment.NewLine + "Total Pakete:" + total.ToString() + Environment.NewLine + "OK: " + ok.ToString() + Environment.NewLine + "Fehler: " + error.ToString();
sendmail(Properties.Settings.Default.adminmail, "OnDoc-Paketversand abgeschlossen", msg);
}
private static DataTable Get_Tabledata(string Tablename, bool StoredProc = false, bool is_SQL_String = false, DataTable sp_params = null)
private static DataTable Get_Tabledata(string Tablename, bool StoredProc = false, bool is_SQL_String = false, DataTable sp_params = null)
{
try
{
if (sp_params == null && SP_Parameters.Rows.Count > 0)
{
sp_params = SP_Parameters.Copy();
@ -123,15 +170,41 @@ namespace OnDoc_Paketversand
sqlconnect.Open();
da.Fill(dsdaten, "Daten1");
sqlconnect.Close();
return dsdaten.Tables[0];
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return null;
}
}
private static void sendmail(string empfaenger, string betreff, string message)
{
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient();
mail.To.Add(empfaenger);
mail.From = new MailAddress("OnDoc@tkb.ch");
mail.Subject = Properties.Settings.Default.prefix_betreff + betreff;
mail.IsBodyHtml = true;
mail.Body = message;
SmtpServer.Host = "smtp.tgcorp.ch";
SmtpServer.Port = 25;
SmtpServer.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
try
{
SmtpServer.Send(mail);
Logging.VersandstrasseLog.Info("Mailversand and " + empfaenger + " erfolgt", "OnDoc-Paketversand", "", "", "");
}
catch (Exception ex)
{
Logging.VersandstrasseLog.Error("Mailversand and " + empfaenger + " nicht erfolgt", "OnDoc-Paketversand", "", "", "");
}
mail = null;
SmtpServer = null;
}
}
}

@ -61,5 +61,42 @@ namespace OnDoc_Paketversand.Properties {
this["APIKey"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Data source=shu01\\shu00;initial catalog=edoka_journale;;persist security info=fal" +
"se;workstation id=;packet size=4096;user id=sa;password=*shu29")]
public string LogConnectionstring {
get {
return ((string)(this["LogConnectionstring"]));
}
set {
this["LogConnectionstring"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("dm@tkb.ch")]
public string adminmail {
get {
return ((string)(this["adminmail"]));
}
set {
this["adminmail"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("INT: ")]
public string prefix_betreff {
get {
return ((string)(this["prefix_betreff"]));
}
set {
this["prefix_betreff"] = value;
}
}
}
}

@ -11,5 +11,14 @@
<Setting Name="APIKey" Type="System.String" Scope="User">
<Value Profile="(Default)">pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98=</Value>
</Setting>
<Setting Name="LogConnectionstring" Type="System.String" Scope="User">
<Value Profile="(Default)">Data source=shu01\shu00;initial catalog=edoka_journale;;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29</Value>
</Setting>
<Setting Name="adminmail" Type="System.String" Scope="User">
<Value Profile="(Default)">dm@tkb.ch</Value>
</Setting>
<Setting Name="prefix_betreff" Type="System.String" Scope="User">
<Value Profile="(Default)">INT: </Value>
</Setting>
</Settings>
</SettingsFile>

@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Versandpaket
{
public string bezeichnung { get; set; }
public string PaketNr { get; set; }
public string Versandoption { get; set; }
public string Mitteilung { get; set; }
public string GAS { get; set; }
public string GASAdresse { get; set; }
public bool verified { get; set; } = false;
public int partnernr { get; set; } = 0;
public bool send_onbase_doc { get; set; }
public string handle { get; set; } = "";
public string finaldoc { get; set; } = "";
public serienbrief sb { get; set; } = null;
public bool isSerienbrief { get; set; } = false;
public int protokollid { get; set; } = 0;
public string bemerkung { get; set; } = "";
public List<Versanddokument> Dokument { get; set; }
}
public class Versanddokument
{
public string DokumentID { get; set; }
public string Bezeichnung { get; set; }
public string Partnernr { get; set; }
public string dokument { get; set; } = "";
public int inteintragnr = 0;
public Versanddokument(string dokumentID, string bezeichnung, string partnernr)
{
DokumentID = dokumentID;
Bezeichnung = bezeichnung;
Partnernr = partnernr;
}
}
public class OnBase_Attributes
{
public string Dokumenttyp { get; set; } = "TECH Versandstrasse SendDoc";
public string BPNummer { get; set; } = "";
public string DocumentHandle { get; set; } = "";
public string DistributionOption { get; set; } = "";
public string GASCouvert { get; set; } = "";
public string Returnaddress { get; set; } = "";
public string O2ODochandle { get; set; } = "";
public string Status { get; set; } = "";
}
}

@ -0,0 +1,461 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>NLog.Database</name>
</assembly>
<members>
<member name="T:NLog.Targets.DatabaseCommandInfo">
<summary>
Information about database command + parameters.
</summary>
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.CommandType">
<summary>
Gets or sets the type of the command.
</summary>
<value>The type of the command.</value>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.ConnectionString">
<summary>
Gets or sets the connection string to run the command against. If not provided, connection string from the target is used.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.Text">
<summary>
Gets or sets the command text.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.IgnoreFailures">
<summary>
Gets or sets a value indicating whether to ignore failures.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseCommandInfo.Parameters">
<summary>
Gets the collection of parameters. Each parameter contains a mapping
between NLog layout and a database named or positional parameter.
</summary>
<docgen category='Command Options' order='10' />
</member>
<member name="T:NLog.Targets.DatabaseObjectPropertyInfo">
<summary>
Information about object-property for the database-connection-object
</summary>
</member>
<member name="M:NLog.Targets.DatabaseObjectPropertyInfo.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseObjectPropertyInfo"/> class.
</summary>
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Name">
<summary>
Gets or sets the name for the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Layout">
<summary>
Gets or sets the value to assign on the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.PropertyType">
<summary>
Gets or sets the type of the object-property
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Format">
<summary>
Gets or sets convert format of the property value
</summary>
<docgen category='Connection Options' order='8' />
</member>
<member name="P:NLog.Targets.DatabaseObjectPropertyInfo.Culture">
<summary>
Gets or sets the culture used for parsing property string-value for type-conversion
</summary>
<docgen category='Connection Options' order='9' />
</member>
<member name="M:NLog.Targets.DatabaseObjectPropertyInfo.RenderValue(NLog.LogEventInfo)">
<summary>
Render Result Value
</summary>
<param name="logEvent">Log event for rendering</param>
<returns>Result value when available, else fallback to defaultValue</returns>
</member>
<member name="T:NLog.Targets.DatabaseParameterInfo">
<summary>
Represents a parameter to a Database target.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseParameterInfo" /> class.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.#ctor(System.String,NLog.Layouts.Layout)">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseParameterInfo" /> class.
</summary>
<param name="parameterName">Name of the parameter.</param>
<param name="parameterLayout">The parameter layout.</param>
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Name">
<summary>
Gets or sets the database parameter name.
</summary>
<docgen category='Parameter Options' order='0' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Layout">
<summary>
Gets or sets the layout that should be use to calculate the value for the parameter.
</summary>
<docgen category='Parameter Options' order='1' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.DbType">
<summary>
Gets or sets the database parameter DbType.
</summary>
<docgen category='Parameter Options' order='2' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Size">
<summary>
Gets or sets the database parameter size.
</summary>
<docgen category='Parameter Options' order='3' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Precision">
<summary>
Gets or sets the database parameter precision.
</summary>
<docgen category='Parameter Options' order='4' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Scale">
<summary>
Gets or sets the database parameter scale.
</summary>
<docgen category='Parameter Options' order='5' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.ParameterType">
<summary>
Gets or sets the type of the parameter.
</summary>
<docgen category='Parameter Options' order='6' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.DefaultValue">
<summary>
Gets or sets the fallback value when result value is not available
</summary>
<docgen category='Parameter Options' order='7' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Format">
<summary>
Gets or sets convert format of the database parameter value.
</summary>
<docgen category='Parameter Options' order='8' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.Culture">
<summary>
Gets or sets the culture used for parsing parameter string-value for type-conversion
</summary>
<docgen category='Parameter Options' order='9' />
</member>
<member name="P:NLog.Targets.DatabaseParameterInfo.AllowDbNull">
<summary>
Gets or sets whether empty value should translate into DbNull. Requires database column to allow NULL values.
</summary>
<docgen category='Parameter Options' order='10' />
</member>
<member name="M:NLog.Targets.DatabaseParameterInfo.RenderValue(NLog.LogEventInfo)">
<summary>
Render Result Value
</summary>
<param name="logEvent">Log event for rendering</param>
<returns>Result value when available, else fallback to defaultValue</returns>
</member>
<member name="T:NLog.Targets.DatabaseTarget">
<summary>
Writes log messages to the database using an ADO.NET provider.
</summary>
<remarks>
<para>
Note .NET Core application cannot load connectionstrings from app.config / web.config. Instead use ${configsetting}
</para>
<a href="https://github.com/nlog/nlog/wiki/Database-target">See NLog Wiki</a>
</remarks>
<seealso href="https://github.com/nlog/nlog/wiki/Database-target">Documentation on NLog Wiki</seealso>
<example>
<para>
The configuration is dependent on the database type, because
there are different methods of specifying connection string, SQL
command and command parameters.
</para>
<para>MS SQL Server using System.Data.SqlClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/MSSQL/NLog.config" height="450" />
<para>Oracle using System.Data.OracleClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/Oracle.Native/NLog.config" height="350" />
<para>Oracle using System.Data.OleDBClient:</para>
<code lang="XML" source="examples/targets/Configuration File/Database/Oracle.OleDB/NLog.config" height="350" />
<para>To set up the log target programmatically use code like this (an equivalent of MSSQL configuration):</para>
<code lang="C#" source="examples/targets/Configuration API/Database/MSSQL/Example.cs" height="630" />
</example>
</member>
<member name="M:NLog.Targets.DatabaseTarget.#ctor">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseTarget" /> class.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.#ctor(System.String)">
<summary>
Initializes a new instance of the <see cref="T:NLog.Targets.DatabaseTarget" /> class.
</summary>
<param name="name">Name of the target.</param>
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBProvider">
<summary>
Gets or sets the name of the database provider.
</summary>
<remarks>
<para>
The parameter name should be a provider invariant name as registered in machine.config or app.config. Common values are:
</para>
<ul>
<li><c>System.Data.SqlClient</c> - <see href="https://msdn.microsoft.com/en-us/library/system.data.sqlclient.aspx">SQL Sever Client</see></li>
<li><c>System.Data.SqlServerCe.3.5</c> - <see href="https://www.microsoft.com/sqlserver/2005/en/us/compact.aspx">SQL Sever Compact 3.5</see></li>
<li><c>System.Data.OracleClient</c> - <see href="https://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx">Oracle Client from Microsoft</see> (deprecated in .NET Framework 4)</li>
<li><c>Oracle.DataAccess.Client</c> - <see href="https://www.oracle.com/technology/tech/windows/odpnet/index.html">ODP.NET provider from Oracle</see></li>
<li><c>System.Data.SQLite</c> - <see href="http://sqlite.phxsoftware.com/">System.Data.SQLite driver for SQLite</see></li>
<li><c>Npgsql</c> - <see href="https://www.npgsql.org/">Npgsql driver for PostgreSQL</see></li>
<li><c>MySql.Data.MySqlClient</c> - <see href="https://www.mysql.com/downloads/connector/net/">MySQL Connector/Net</see></li>
</ul>
<para>(Note that provider invariant names are not supported on .NET Compact Framework).</para>
<para>
Alternatively the parameter value can be be a fully qualified name of the provider
connection type (class implementing <see cref="T:System.Data.IDbConnection" />) or one of the following tokens:
</para>
<ul>
<li><c>sqlserver</c>, <c>mssql</c>, <c>microsoft</c> or <c>msde</c> - SQL Server Data Provider</li>
<li><c>oledb</c> - OLEDB Data Provider</li>
<li><c>odbc</c> - ODBC Data Provider</li>
</ul>
</remarks>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionStringName">
<summary>
Gets or sets the name of the connection string (as specified in <see href="https://msdn.microsoft.com/en-us/library/bf7sd233.aspx">&lt;connectionStrings&gt; configuration section</see>.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionString">
<summary>
Gets or sets the connection string. When provided, it overrides the values
specified in DBHost, DBUserName, DBPassword, DBDatabase.
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.InstallConnectionString">
<summary>
Gets or sets the connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.InstallDdlCommands">
<summary>
Gets the installation DDL commands.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.UninstallDdlCommands">
<summary>
Gets the uninstallation DDL commands.
</summary>
<docgen category='Installation Options' order='100' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.KeepConnection">
<summary>
Gets or sets a value indicating whether to keep the
database connection open between the log events.
</summary>
<docgen category='Connection Options' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBHost">
<summary>
Gets or sets the database host name. If the ConnectionString is not provided
this value will be used to construct the "Server=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBUserName">
<summary>
Gets or sets the database user name. If the ConnectionString is not provided
this value will be used to construct the "User ID=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBPassword">
<summary>
Gets or sets the database password. If the ConnectionString is not provided
this value will be used to construct the "Password=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.DBDatabase">
<summary>
Gets or sets the database name. If the ConnectionString is not provided
this value will be used to construct the "Database=" part of the
connection string.
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandText">
<summary>
Gets or sets the text of the SQL command to be run on each log level.
</summary>
<remarks>
Typically this is a SQL INSERT statement or a stored procedure call.
It should use the database-specific parameters (marked as <c>@parameter</c>
for SQL server or <c>:parameter</c> for Oracle, other data providers
have their own notation) and not the layout renderers,
because the latter is prone to SQL injection attacks.
The layout renderers should be specified as &lt;parameter /&gt; elements instead.
</remarks>
<docgen category='SQL Statement' order='10' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandType">
<summary>
Gets or sets the type of the SQL command to be run on each log level.
</summary>
<remarks>
This specifies how the command text is interpreted, as "Text" (default) or as "StoredProcedure".
When using the value StoredProcedure, the commandText-property would
normally be the name of the stored procedure. TableDirect method is not supported in this context.
</remarks>
<docgen category='SQL Statement' order='11' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.Parameters">
<summary>
Gets the collection of parameters. Each item contains a mapping
between NLog layout and a database named or positional parameter.
</summary>
<docgen category='SQL Statement' order='14' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.ConnectionProperties">
<summary>
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbConnection instance
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.CommandProperties">
<summary>
Gets the collection of properties. Each item contains a mapping
between NLog layout and a property on the DbCommand instance
</summary>
<docgen category='Connection Options' order='50' />
</member>
<member name="P:NLog.Targets.DatabaseTarget.IsolationLevel">
<summary>
Configures isolated transaction batch writing. If supported by the database, then it will improve insert performance.
</summary>
<docgen category='Performance Tuning Options' order='10' />
</member>
<member name="M:NLog.Targets.DatabaseTarget.Install(NLog.Config.InstallationContext)">
<summary>
Performs installation which requires administrative permissions.
</summary>
<param name="installationContext">The installation context.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Uninstall(NLog.Config.InstallationContext)">
<summary>
Performs uninstallation which requires administrative permissions.
</summary>
<param name="installationContext">The installation context.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.IsInstalled(NLog.Config.InstallationContext)">
<summary>
Determines whether the item is installed.
</summary>
<param name="installationContext">The installation context.</param>
<returns>
Value indicating whether the item is installed or null if it is not possible to determine.
</returns>
</member>
<member name="M:NLog.Targets.DatabaseTarget.InitializeTarget">
<inheritdoc/>
</member>
<member name="M:NLog.Targets.DatabaseTarget.SetConnectionType">
<summary>
Set the <see cref="P:NLog.Targets.DatabaseTarget.ConnectionType"/> to use it for opening connections to the database.
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.CloseTarget">
<inheritdoc/>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Write(NLog.LogEventInfo)">
<summary>
Writes the specified logging event to the database. It creates
a new database command, prepares parameters for it by calculating
layouts and executes the command.
</summary>
<param name="logEvent">The logging event.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.Write(System.Collections.Generic.IList{NLog.Common.AsyncLogEventInfo})">
<summary>
Writes an array of logging events to the log target. By default it iterates on all
events and passes them to "Write" method. Inheriting classes can use this method to
optimize batch writes.
</summary>
<param name="logEvents">Logging events to be written out.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.ExecuteDbCommandWithParameters(NLog.LogEventInfo,System.Data.IDbConnection,System.Data.IDbTransaction)">
<summary>
Write logEvent to database
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.BuildConnectionString(NLog.LogEventInfo)">
<summary>
Build the connectionstring from the properties.
</summary>
<remarks>
Using <see cref="P:NLog.Targets.DatabaseTarget.ConnectionString"/> at first, and falls back to the properties <see cref="P:NLog.Targets.DatabaseTarget.DBHost"/>,
<see cref="P:NLog.Targets.DatabaseTarget.DBUserName"/>, <see cref="P:NLog.Targets.DatabaseTarget.DBPassword"/> and <see cref="P:NLog.Targets.DatabaseTarget.DBDatabase"/>
</remarks>
<param name="logEvent">Event to render the layout inside the properties.</param>
<returns></returns>
</member>
<member name="M:NLog.Targets.DatabaseTarget.EscapeValueForConnectionString(System.String)">
<summary>
Escape quotes and semicolons.
See https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms722656(v=vs.85)#setting-values-that-use-reserved-characters
</summary>
</member>
<member name="M:NLog.Targets.DatabaseTarget.CreateDatabaseParameter(System.Data.IDbCommand,NLog.Targets.DatabaseParameterInfo)">
<summary>
Create database parameter
</summary>
<param name="command">Current command.</param>
<param name="parameterInfo">Parameter configuration info.</param>
</member>
<member name="M:NLog.Targets.DatabaseTarget.GetDatabaseParameterValue(NLog.LogEventInfo,NLog.Targets.DatabaseParameterInfo)">
<summary>
Extract parameter value from the logevent
</summary>
<param name="logEvent">Current logevent.</param>
<param name="parameterInfo">Parameter configuration info.</param>
</member>
<member name="T:NLog.Internal.ReflectionHelpers">
<summary>
Reflection helpers.
</summary>
</member>
</members>
</doc>

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="console" xsi:type="Console" />
<target name="file" xsi:type="File" fileName="${basedir}/log.txt" />
<target name="email" xsi:type="Mail"
smtpServer="smtp.DomainName.com"
smtpAuthentication="Basic"
smtpUsername="Username@DomainName.com"
smtpPassword =""
enableSsl="true"
subject="NLog message from system X on ${machinename}"
to="Username@DomainName.com"
from="Username@DomainName.com" />
<target type="Database" name="Versandstrasse" connectionstring="">
<commandText>
sp_insert_nlog_Versandstrasse @Origin,@Message,@LogLevel, @UserID, @paketid,@partnernr,@aktion
</commandText>
<parameter name="@Origin" layout="${gdc:Herkunft}"/>
<parameter name="@LogLevel" layout="${level}"/>
<parameter name="@message" layout="${message}"/>
<parameter name="@UserID" layout="${environment-user}"/>
<parameter name="@Paketid" layout="${gdc:Paketid}"/>
<parameter name="@partnernr" layout="${gdc:Partnernr}"/>
<parameter name="@aktion" layout="${gdc:Aktion}"/>
</target>
</targets>
<rules>
<logger name="Versandstrasse" levels="Info,Debug,Error,Warning,Trace" writeTo="Versandstrasse" />
<!-- <logger name="*" levels="Error" writeTo="email" /> -->
</rules>
</nlog>

File diff suppressed because it is too large Load Diff

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

Loading…
Cancel
Save