update 20250324
This commit is contained in:
270
Client/Versandstrasse/Versandstrasse.Designer.cs
generated
270
Client/Versandstrasse/Versandstrasse.Designer.cs
generated
@@ -28,21 +28,25 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo3 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
|
||||
Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo treeNodeAdvStyleInfo1 = new Syncfusion.Windows.Forms.Tools.TreeNodeAdvStyleInfo();
|
||||
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.MessageBoxSettings messageBoxSettings2 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
|
||||
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings2 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Versandstrasse));
|
||||
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings2 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||
this.treeViewAdv1 = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.tsbtnDruckPaketNew = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbtnVersenden = new System.Windows.Forms.ToolStripButton();
|
||||
this.tscheckboxpreview = new Syncfusion.Windows.Forms.Tools.ToolStripCheckBox();
|
||||
this.GrpPaketDetails = new System.Windows.Forms.GroupBox();
|
||||
this.btnPrepare = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.treeViewAdvAdresse = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lbgasadresse = new System.Windows.Forms.ListBox();
|
||||
this.chkGAS = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.radioButton3 = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
||||
this.rbversandoption3 = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton1 = new System.Windows.Forms.RadioButton();
|
||||
@@ -53,17 +57,23 @@
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.radioButton3 = new System.Windows.Forms.RadioButton();
|
||||
this.tscheckboxpreview = new Syncfusion.Windows.Forms.Tools.ToolStripCheckBox();
|
||||
this.btnSend = new System.Windows.Forms.Button();
|
||||
this.panelPrepare = new System.Windows.Forms.Panel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btnSendFinal = new System.Windows.Forms.Button();
|
||||
this.panelVerify = new System.Windows.Forms.Panel();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.GrpPaketDetails.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeViewAdvAdresse)).BeginInit();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panelPrepare.SuspendLayout();
|
||||
this.panelVerify.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// treeViewAdv1
|
||||
@@ -71,16 +81,16 @@
|
||||
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))))));
|
||||
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)))));
|
||||
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)))));
|
||||
this.treeViewAdv1.BaseStylePairs.AddRange(new Syncfusion.Windows.Forms.Tools.StyleNamePair[] {
|
||||
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo1)});
|
||||
new Syncfusion.Windows.Forms.Tools.StyleNamePair("Standard", treeNodeAdvStyleInfo3)});
|
||||
this.treeViewAdv1.BeforeTouchSize = new System.Drawing.Size(438, 502);
|
||||
this.treeViewAdv1.Border3DStyle = System.Windows.Forms.Border3DStyle.Flat;
|
||||
this.treeViewAdv1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -170,9 +180,16 @@
|
||||
this.tsbtnVersenden.Size = new System.Drawing.Size(244, 34);
|
||||
this.tsbtnVersenden.Text = "Dokumente an Versandstrasse übergeben";
|
||||
//
|
||||
// tscheckboxpreview
|
||||
//
|
||||
this.tscheckboxpreview.Name = "tscheckboxpreview";
|
||||
this.tscheckboxpreview.Size = new System.Drawing.Size(205, 34);
|
||||
this.tscheckboxpreview.Text = "Vorschau aufbereitete Dokumente";
|
||||
//
|
||||
// GrpPaketDetails
|
||||
//
|
||||
this.GrpPaketDetails.Controls.Add(this.btnSend);
|
||||
this.GrpPaketDetails.Controls.Add(this.panelVerify);
|
||||
this.GrpPaketDetails.Controls.Add(this.btnPrepare);
|
||||
this.GrpPaketDetails.Controls.Add(this.groupBox3);
|
||||
this.GrpPaketDetails.Controls.Add(this.groupBox1);
|
||||
this.GrpPaketDetails.Controls.Add(this.button1);
|
||||
@@ -184,49 +201,90 @@
|
||||
this.GrpPaketDetails.TabStop = false;
|
||||
this.GrpPaketDetails.Text = "Details zum Druckpaket";
|
||||
//
|
||||
// btnPrepare
|
||||
//
|
||||
this.btnPrepare.Location = new System.Drawing.Point(325, 337);
|
||||
this.btnPrepare.Name = "btnPrepare";
|
||||
this.btnPrepare.Size = new System.Drawing.Size(112, 23);
|
||||
this.btnPrepare.TabIndex = 4;
|
||||
this.btnPrepare.Text = "Prüfen";
|
||||
this.btnPrepare.UseVisualStyleBackColor = true;
|
||||
this.btnPrepare.Click += new System.EventHandler(this.btnSend_Click);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.treeViewAdvAdresse);
|
||||
this.groupBox3.Controls.Add(this.label1);
|
||||
this.groupBox3.Controls.Add(this.lbgasadresse);
|
||||
this.groupBox3.Controls.Add(this.chkGAS);
|
||||
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox3.Location = new System.Drawing.Point(3, 130);
|
||||
this.groupBox3.Location = new System.Drawing.Point(3, 77);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(447, 192);
|
||||
this.groupBox3.Size = new System.Drawing.Size(447, 254);
|
||||
this.groupBox3.TabIndex = 2;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Rückantwort";
|
||||
//
|
||||
// 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;
|
||||
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(417, 193);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.treeViewAdvAdresse.HelpTextControl.BaseThemeName = null;
|
||||
this.treeViewAdvAdresse.HelpTextControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.treeViewAdvAdresse.HelpTextControl.Name = "";
|
||||
this.treeViewAdvAdresse.HelpTextControl.Size = new System.Drawing.Size(392, 112);
|
||||
this.treeViewAdvAdresse.HelpTextControl.TabIndex = 0;
|
||||
this.treeViewAdvAdresse.HelpTextControl.Visible = true;
|
||||
this.treeViewAdvAdresse.InactiveSelectedNodeForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.treeViewAdvAdresse.Location = new System.Drawing.Point(17, 55);
|
||||
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(417, 193);
|
||||
this.treeViewAdvAdresse.TabIndex = 3;
|
||||
this.treeViewAdvAdresse.Text = "treeViewAdv2";
|
||||
this.treeViewAdvAdresse.ThemeStyle.TreeNodeAdvStyle.CheckBoxTickThickness = 0;
|
||||
this.treeViewAdvAdresse.ThemeStyle.TreeNodeAdvStyle.EnsureDefaultOptionedChild = true;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.treeViewAdvAdresse.ToolTipControl.BaseThemeName = null;
|
||||
this.treeViewAdvAdresse.ToolTipControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.treeViewAdvAdresse.ToolTipControl.Name = "";
|
||||
this.treeViewAdvAdresse.ToolTipControl.Size = new System.Drawing.Size(392, 112);
|
||||
this.treeViewAdvAdresse.ToolTipControl.TabIndex = 0;
|
||||
this.treeViewAdvAdresse.ToolTipControl.Visible = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(24, 63);
|
||||
this.label1.Location = new System.Drawing.Point(14, 39);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(105, 13);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Rückantwortadresse";
|
||||
//
|
||||
// lbgasadresse
|
||||
//
|
||||
this.lbgasadresse.FormattingEnabled = true;
|
||||
this.lbgasadresse.Items.AddRange(new object[] {
|
||||
"Adresse 1",
|
||||
"Adresse 2",
|
||||
"Adresse 3"});
|
||||
this.lbgasadresse.Location = new System.Drawing.Point(24, 82);
|
||||
this.lbgasadresse.Name = "lbgasadresse";
|
||||
this.lbgasadresse.Size = new System.Drawing.Size(332, 95);
|
||||
this.lbgasadresse.TabIndex = 1;
|
||||
//
|
||||
// chkGAS
|
||||
//
|
||||
this.chkGAS.AutoSize = true;
|
||||
this.chkGAS.Location = new System.Drawing.Point(24, 34);
|
||||
this.chkGAS.Location = new System.Drawing.Point(17, 19);
|
||||
this.chkGAS.Name = "chkGAS";
|
||||
this.chkGAS.Size = new System.Drawing.Size(112, 17);
|
||||
this.chkGAS.TabIndex = 0;
|
||||
this.chkGAS.Text = "GAS-Rückantwort";
|
||||
this.chkGAS.UseVisualStyleBackColor = true;
|
||||
this.chkGAS.CheckedChanged += new System.EventHandler(this.chkGAS_CheckedChanged);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
@@ -239,15 +297,27 @@
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new System.Drawing.Point(3, 16);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(447, 114);
|
||||
this.groupBox1.Size = new System.Drawing.Size(447, 61);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Versandoptionen";
|
||||
//
|
||||
// radioButton3
|
||||
//
|
||||
this.radioButton3.AutoSize = true;
|
||||
this.radioButton3.Checked = true;
|
||||
this.radioButton3.Location = new System.Drawing.Point(86, 19);
|
||||
this.radioButton3.Name = "radioButton3";
|
||||
this.radioButton3.Size = new System.Drawing.Size(62, 17);
|
||||
this.radioButton3.TabIndex = 5;
|
||||
this.radioButton3.TabStop = true;
|
||||
this.radioButton3.Text = "B1-Post";
|
||||
this.radioButton3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radioButton2
|
||||
//
|
||||
this.radioButton2.AutoSize = true;
|
||||
this.radioButton2.Location = new System.Drawing.Point(332, 74);
|
||||
this.radioButton2.Location = new System.Drawing.Point(154, 19);
|
||||
this.radioButton2.Name = "radioButton2";
|
||||
this.radioButton2.Size = new System.Drawing.Size(62, 17);
|
||||
this.radioButton2.TabIndex = 4;
|
||||
@@ -257,17 +327,18 @@
|
||||
// rbversandoption3
|
||||
//
|
||||
this.rbversandoption3.AutoSize = true;
|
||||
this.rbversandoption3.Location = new System.Drawing.Point(24, 75);
|
||||
this.rbversandoption3.Location = new System.Drawing.Point(222, 19);
|
||||
this.rbversandoption3.Name = "rbversandoption3";
|
||||
this.rbversandoption3.Size = new System.Drawing.Size(207, 17);
|
||||
this.rbversandoption3.TabIndex = 2;
|
||||
this.rbversandoption3.Text = "Hauptadresse, Postversand erzwingen";
|
||||
this.rbversandoption3.UseVisualStyleBackColor = true;
|
||||
this.rbversandoption3.Visible = false;
|
||||
//
|
||||
// radioButton1
|
||||
//
|
||||
this.radioButton1.AutoSize = true;
|
||||
this.radioButton1.Location = new System.Drawing.Point(332, 29);
|
||||
this.radioButton1.Location = new System.Drawing.Point(24, 19);
|
||||
this.radioButton1.Name = "radioButton1";
|
||||
this.radioButton1.Size = new System.Drawing.Size(56, 17);
|
||||
this.radioButton1.TabIndex = 3;
|
||||
@@ -277,22 +348,24 @@
|
||||
// rbversandoption2
|
||||
//
|
||||
this.rbversandoption2.AutoSize = true;
|
||||
this.rbversandoption2.Location = new System.Drawing.Point(24, 52);
|
||||
this.rbversandoption2.Location = new System.Drawing.Point(222, 19);
|
||||
this.rbversandoption2.Name = "rbversandoption2";
|
||||
this.rbversandoption2.Size = new System.Drawing.Size(197, 17);
|
||||
this.rbversandoption2.TabIndex = 1;
|
||||
this.rbversandoption2.Text = "Hauptadresse, E-Banking erzwingen";
|
||||
this.rbversandoption2.UseVisualStyleBackColor = true;
|
||||
this.rbversandoption2.Visible = false;
|
||||
//
|
||||
// rbversandoption1
|
||||
//
|
||||
this.rbversandoption1.AutoSize = true;
|
||||
this.rbversandoption1.Location = new System.Drawing.Point(24, 29);
|
||||
this.rbversandoption1.Location = new System.Drawing.Point(222, 19);
|
||||
this.rbversandoption1.Name = "rbversandoption1";
|
||||
this.rbversandoption1.Size = new System.Drawing.Size(166, 17);
|
||||
this.rbversandoption1.TabIndex = 0;
|
||||
this.rbversandoption1.Text = "Hauptadresse und Versandart";
|
||||
this.rbversandoption1.UseVisualStyleBackColor = true;
|
||||
this.rbversandoption1.Visible = false;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
@@ -315,17 +388,17 @@
|
||||
this.pdfViewerControl1.IsTextSearchEnabled = true;
|
||||
this.pdfViewerControl1.IsTextSelectionEnabled = true;
|
||||
this.pdfViewerControl1.Location = new System.Drawing.Point(0, 0);
|
||||
messageBoxSettings1.EnableNotification = true;
|
||||
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings1;
|
||||
messageBoxSettings2.EnableNotification = true;
|
||||
this.pdfViewerControl1.MessageBoxSettings = messageBoxSettings2;
|
||||
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;
|
||||
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.pdfViewerControl1.PrinterSettings = pdfViewerPrinterSettings2;
|
||||
this.pdfViewerControl1.ReferencePath = null;
|
||||
this.pdfViewerControl1.ScrollDisplacementValue = 0;
|
||||
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
|
||||
@@ -335,10 +408,11 @@
|
||||
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;
|
||||
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.pdfViewerControl1.TextSearchSettings = textSearchSettings2;
|
||||
this.pdfViewerControl1.ThemeName = "Default";
|
||||
this.pdfViewerControl1.VerticalScrollOffset = 0;
|
||||
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
|
||||
this.pdfViewerControl1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default;
|
||||
@@ -370,38 +444,73 @@
|
||||
this.panel3.Size = new System.Drawing.Size(660, 502);
|
||||
this.panel3.TabIndex = 13;
|
||||
//
|
||||
// radioButton3
|
||||
// panelPrepare
|
||||
//
|
||||
this.radioButton3.AutoSize = true;
|
||||
this.radioButton3.Checked = true;
|
||||
this.radioButton3.Location = new System.Drawing.Point(332, 52);
|
||||
this.radioButton3.Name = "radioButton3";
|
||||
this.radioButton3.Size = new System.Drawing.Size(62, 17);
|
||||
this.radioButton3.TabIndex = 5;
|
||||
this.radioButton3.Text = "B1-Post";
|
||||
this.radioButton3.UseVisualStyleBackColor = true;
|
||||
this.panelPrepare.BackColor = System.Drawing.Color.Silver;
|
||||
this.panelPrepare.Controls.Add(this.label4);
|
||||
this.panelPrepare.Location = new System.Drawing.Point(360, 155);
|
||||
this.panelPrepare.Name = "panelPrepare";
|
||||
this.panelPrepare.Size = new System.Drawing.Size(832, 94);
|
||||
this.panelPrepare.TabIndex = 14;
|
||||
this.panelPrepare.Visible = false;
|
||||
//
|
||||
// tscheckboxpreview
|
||||
// label4
|
||||
//
|
||||
this.tscheckboxpreview.Name = "tscheckboxpreview";
|
||||
this.tscheckboxpreview.Size = new System.Drawing.Size(205, 34);
|
||||
this.tscheckboxpreview.Text = "Vorschau aufbereitete Dokumente";
|
||||
this.label4.AutoSize = true;
|
||||
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(19, 34);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(437, 20);
|
||||
this.label4.TabIndex = 0;
|
||||
this.label4.Text = "Versand wird vorbereit - bitte einen Moment warten....";
|
||||
//
|
||||
// btnSend
|
||||
// btnSendFinal
|
||||
//
|
||||
this.btnSend.Location = new System.Drawing.Point(284, 337);
|
||||
this.btnSend.Name = "btnSend";
|
||||
this.btnSend.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnSend.TabIndex = 4;
|
||||
this.btnSend.Text = "Versenden";
|
||||
this.btnSend.UseVisualStyleBackColor = true;
|
||||
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
|
||||
this.btnSendFinal.BackColor = System.Drawing.Color.YellowGreen;
|
||||
this.btnSendFinal.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSendFinal.Location = new System.Drawing.Point(106, 62);
|
||||
this.btnSendFinal.Name = "btnSendFinal";
|
||||
this.btnSendFinal.Size = new System.Drawing.Size(196, 35);
|
||||
this.btnSendFinal.TabIndex = 5;
|
||||
this.btnSendFinal.Text = " geprüft";
|
||||
this.btnSendFinal.UseVisualStyleBackColor = false;
|
||||
this.btnSendFinal.Click += new System.EventHandler(this.btnSendFinal_Click);
|
||||
//
|
||||
// panelVerify
|
||||
//
|
||||
this.panelVerify.Controls.Add(this.label3);
|
||||
this.panelVerify.Controls.Add(this.label2);
|
||||
this.panelVerify.Controls.Add(this.btnSendFinal);
|
||||
this.panelVerify.Location = new System.Drawing.Point(27, 386);
|
||||
this.panelVerify.Name = "panelVerify";
|
||||
this.panelVerify.Size = new System.Drawing.Size(405, 100);
|
||||
this.panelVerify.TabIndex = 6;
|
||||
this.panelVerify.Visible = false;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(4, 4);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(310, 13);
|
||||
this.label2.TabIndex = 6;
|
||||
this.label2.Text = "Das aufbereitete PDF prüfen. Sofern \"geprüft\" betätigt wird, wird";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(4, 17);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(141, 13);
|
||||
this.label3.TabIndex = 7;
|
||||
this.label3.Text = "der Druckaufgrag ausgelöst.";
|
||||
//
|
||||
// Versandstrasse
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1555, 543);
|
||||
this.Controls.Add(this.panelPrepare);
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
@@ -419,11 +528,16 @@
|
||||
this.GrpPaketDetails.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.treeViewAdvAdresse)).EndInit();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panelPrepare.ResumeLayout(false);
|
||||
this.panelPrepare.PerformLayout();
|
||||
this.panelVerify.ResumeLayout(false);
|
||||
this.panelVerify.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -440,7 +554,6 @@
|
||||
private System.Windows.Forms.RadioButton rbversandoption1;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ListBox lbgasadresse;
|
||||
private System.Windows.Forms.CheckBox chkGAS;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.RadioButton radioButton2;
|
||||
@@ -451,6 +564,13 @@
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.RadioButton radioButton3;
|
||||
private Syncfusion.Windows.Forms.Tools.ToolStripCheckBox tscheckboxpreview;
|
||||
private System.Windows.Forms.Button btnSend;
|
||||
private System.Windows.Forms.Button btnPrepare;
|
||||
private Syncfusion.Windows.Forms.Tools.TreeViewAdv treeViewAdvAdresse;
|
||||
private System.Windows.Forms.Panel panelPrepare;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Button btnSendFinal;
|
||||
private System.Windows.Forms.Panel panelVerify;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
}
|
||||
}
|
||||
@@ -19,16 +19,18 @@ using Versandstrasse;
|
||||
using System.IO;
|
||||
using Syncfusion.Pdf;
|
||||
using Database;
|
||||
using System.Net;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace OnDoc.Versandstrasse
|
||||
{
|
||||
public partial class Versandstrasse : SfForm
|
||||
{
|
||||
private Versandpakete pakete = new Versandpakete();
|
||||
private List<Versandpaket> pakete = new List<Versandpaket>();
|
||||
private TreeViewAdvDragHighlightTracker treeViewDragHighlightTracker = null;
|
||||
private TreeNodeAdv currentSourceNode;
|
||||
|
||||
public Versandstrasse(Versandpakete pakete)
|
||||
|
||||
public Versandstrasse(List<Versandpaket> pakete)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.treeViewAdv1.AutoScrolling = ScrollBars.Both;
|
||||
@@ -44,24 +46,43 @@ namespace OnDoc.Versandstrasse
|
||||
this.pakete = pakete;
|
||||
}
|
||||
|
||||
private void load_adressen()
|
||||
{
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select * from Antwortadresse order by bezeichnung", false, true);
|
||||
foreach (System.Data.DataRow dr in db.dsdaten.Tables[0].Rows)
|
||||
{
|
||||
TreeNodeAdv node = new TreeNodeAdv();
|
||||
node.Text = dr["bezeichnung"].ToString();
|
||||
node.TagObject = dr;
|
||||
treeViewAdvAdresse.Nodes.Add(node);
|
||||
|
||||
}
|
||||
treeViewAdvAdresse.Enabled = false;
|
||||
treeViewAdvAdresse.SelectedNode = treeViewAdvAdresse.Nodes[0];
|
||||
}
|
||||
private void Versandstrasse_Load(object sender, EventArgs e)
|
||||
{
|
||||
load_adressen();
|
||||
Reload_Tree();
|
||||
}
|
||||
private void Reload_Tree() {
|
||||
treeViewAdv1.Nodes.Clear();
|
||||
|
||||
TreeNodeAdv DruckJob;
|
||||
for (int i = 0; i < pakete.paket.Count; i++)
|
||||
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);
|
||||
DruckJob = new TreeNodeAdv();
|
||||
DruckJob.Text = "Druckpaket " + pakete.paket[i].PaketNr;
|
||||
DruckJob.Text = "Druckpaket " + pakete[i].PaketNr.ToString()+" - " + db.dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
DruckJob.Tag = "Druckpaket";
|
||||
DruckJob.TagObject = pakete.paket[i];
|
||||
DruckJob.TagObject = pakete[i];
|
||||
treeViewAdv1.Nodes.Add(DruckJob);
|
||||
|
||||
PopulateDocs(pakete.paket[i], ref DruckJob);
|
||||
PopulateDocs(pakete[i], ref DruckJob);
|
||||
}
|
||||
db = null;
|
||||
treeViewAdv1.ExpandAll();
|
||||
}
|
||||
|
||||
@@ -241,10 +262,10 @@ namespace OnDoc.Versandstrasse
|
||||
break;
|
||||
}
|
||||
|
||||
if (paket.GAS.ToString() == "1"){
|
||||
chkGAS.Checked= true;
|
||||
lbgasadresse.SelectedIndex = Convert.ToInt32(paket.GASAdresse.ToString());
|
||||
} else { chkGAS.Checked= false; }
|
||||
//if (paket.GAS.ToString() == "1"){
|
||||
// chkGAS.Checked= true;
|
||||
// lbgasadresse.SelectedIndex = Convert.ToInt32(paket.GASAdresse.ToString());
|
||||
//} else { chkGAS.Checked= false; }
|
||||
}
|
||||
else {
|
||||
if (tscheckboxpreview.Checked)
|
||||
@@ -266,7 +287,7 @@ namespace OnDoc.Versandstrasse
|
||||
if (rbversandoption3.Checked) { paket.Versandoption = "3"; }
|
||||
|
||||
if (chkGAS.Checked) { paket.GAS = "1"; } else { paket.GAS = "0"; }
|
||||
try { paket.GASAdresse = lbgasadresse.SelectedIndex.ToString(); } catch { paket.GASAdresse= "0"; }
|
||||
//try { paket.GASAdresse = lbgasadresse.SelectedIndex.ToString(); } catch { paket.GASAdresse= "0"; }
|
||||
paket.verified = true;
|
||||
treeViewAdv1.SelectedNode.TagObject = paket;
|
||||
//pakete.paket.Add(paket);
|
||||
@@ -277,36 +298,50 @@ namespace OnDoc.Versandstrasse
|
||||
|
||||
private void btnSend_Click(object sender, EventArgs e)
|
||||
{
|
||||
Versandpaket paket = treeViewAdv1.SelectedNode.TagObject as Versandpaket;
|
||||
foreach (Versanddokument vsdok in paket.Dokument)
|
||||
panelPrepare.Visible = true;
|
||||
Application.DoEvents();
|
||||
Cursor = Cursors.WaitCursor;
|
||||
try
|
||||
{
|
||||
clsVersandstrasse vs = new clsVersandstrasse();
|
||||
vsdok.dokument = vs.Prepare_PDF(vsdok.DokumentID.ToString(), AppParams.tempdir, AppParams.connectionstring);
|
||||
//string dok = vs.Prepare_PDF(vsdok.DokumentID.ToString(), AppParams.tempdir, AppParams.connectionstring);
|
||||
}
|
||||
Stream[] streams = new Stream[paket.Dokument.Count];
|
||||
int i = 0;
|
||||
foreach (Versanddokument vsdok in paket.Dokument)
|
||||
{
|
||||
var stream = new MemoryStream(Convert.FromBase64String(vsdok.dokument));
|
||||
streams[i] = stream;
|
||||
i++;
|
||||
Versandpaket paket = treeViewAdv1.SelectedNode.TagObject as Versandpaket;
|
||||
foreach (Versanddokument vsdok in paket.Dokument)
|
||||
{
|
||||
clsVersandstrasse vs = new clsVersandstrasse();
|
||||
vsdok.dokument = vs.Prepare_PDF(vsdok.DokumentID.ToString(), AppParams.tempdir, AppParams.connectionstring);
|
||||
//string dok = vs.Prepare_PDF(vsdok.DokumentID.ToString(), AppParams.tempdir, AppParams.connectionstring);
|
||||
}
|
||||
Stream[] streams = new Stream[paket.Dokument.Count];
|
||||
int i = 0;
|
||||
foreach (Versanddokument vsdok in paket.Dokument)
|
||||
{
|
||||
var stream = new MemoryStream(Convert.FromBase64String(vsdok.dokument));
|
||||
streams[i] = stream;
|
||||
i++;
|
||||
}
|
||||
|
||||
string stapel = save_stapel(ref streams);
|
||||
var finalestream = new MemoryStream(Convert.FromBase64String(stapel));
|
||||
this.pdfViewerControl1.Load(finalestream);
|
||||
|
||||
|
||||
for (int i1 = 0; i1 < streams.Length; i1++)
|
||||
{
|
||||
streams[i1].Close();
|
||||
|
||||
streams[i1].Dispose();
|
||||
streams[i1] = null;
|
||||
}
|
||||
streams = null;
|
||||
treeViewAdv1.SelectedNode.TagObject = paket;
|
||||
panelVerify.Visible = true;
|
||||
}
|
||||
catch { }
|
||||
panelPrepare.Visible = false;
|
||||
Cursor = Cursors.Default;
|
||||
Application.DoEvents();
|
||||
|
||||
string stapel = save_stapel(ref streams);
|
||||
var finalestream = new MemoryStream(Convert.FromBase64String(stapel));
|
||||
this.pdfViewerControl1.Load(finalestream);
|
||||
|
||||
|
||||
for (int i1 = 0; i1 < streams.Length; i1++)
|
||||
{
|
||||
streams[i1].Close();
|
||||
|
||||
streams[i1].Dispose();
|
||||
streams[i1] = null;
|
||||
}
|
||||
streams = null;
|
||||
}
|
||||
|
||||
private string save_stapel(ref Stream[] streams)
|
||||
{
|
||||
try
|
||||
@@ -323,5 +358,88 @@ namespace OnDoc.Versandstrasse
|
||||
}
|
||||
catch { return ""; }
|
||||
}
|
||||
|
||||
private void chkGAS_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkGAS.Checked)
|
||||
{
|
||||
treeViewAdvAdresse.Enabled= true;
|
||||
}
|
||||
else
|
||||
{
|
||||
treeViewAdvAdresse.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnSendFinal_Click(object sender, EventArgs e)
|
||||
{
|
||||
panelVerify.Visible = false;
|
||||
SendTo_Versandstrasse();
|
||||
|
||||
}
|
||||
private void SendTo_Versandstrasse()
|
||||
{
|
||||
Versandpaket versandpaket = new Versandpaket();
|
||||
versandpaket = (Versandpaket)treeViewAdv1.SelectedNode.TagObject;
|
||||
versandpaket.send_onbase_doc = true;
|
||||
string jsonstring = JsonConvert.SerializeObject(versandpaket);
|
||||
|
||||
|
||||
|
||||
string URL = AppParams.RESTURI + "api/Send_Versandstrasse";
|
||||
panelVerify.Visible = false;
|
||||
|
||||
WebRequest request;
|
||||
var data = Encoding.UTF8.GetBytes(jsonstring);
|
||||
request = WebRequest.Create(URL);
|
||||
request.ContentLength = data.Length;
|
||||
request.ContentType = "application/json";
|
||||
request.Method = "POST";
|
||||
request.Headers["Authorization"] = "Bearer " + AppParams.apikey;
|
||||
string response;
|
||||
try
|
||||
{
|
||||
|
||||
using (Stream requestStream = request.GetRequestStream())
|
||||
{
|
||||
requestStream.Write(data, 0, data.Length);
|
||||
requestStream.Close();
|
||||
|
||||
using (Stream responseStream = request.GetResponse().GetResponseStream())
|
||||
{
|
||||
using (var reader = new StreamReader(responseStream))
|
||||
{
|
||||
response = reader.ReadToEnd();
|
||||
}
|
||||
if (response.ToString().Contains("*archiviert"))
|
||||
{
|
||||
MessageBox.Show("Paket an Versandstrasse übergeben");
|
||||
}
|
||||
//if (response.StatusCode == HttpStatusCode.OK)
|
||||
//{
|
||||
// StreamReader reader = new StreamReader(response.GetResponseStream());
|
||||
// string responseContent = reader.ReadToEnd();
|
||||
// if (responseContent.Contains("Hinweismeldung:"))
|
||||
// {
|
||||
// MessageBox.Show("Das Paket wurde erfolgreich an die Versandstrasse übergeben:" + Environment.NewLine + responseContent);
|
||||
// treeViewAdv1.SelectedNode.Remove();
|
||||
// return;
|
||||
// }
|
||||
// Logging.DocLog.Info("Dokumentpaket an Versandstrasse übergeben", "OnDoc", versandpaket.partnernr.ToString(), "", "");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// MessageBox.Show("Das Paket konnte nicht an die Versandstrasse übergeben werden." + Environment.NewLine + "Fehler: " + response.StatusDescription);
|
||||
// Logging.Logging.Error(URL + ": " + response.StatusCode.ToString() + " / " + response.StatusDescription, "Clinet - DokList GetDocument", "");
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
catch { }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="pdfViewerPrinterSettings1.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<data name="pdfViewerPrinterSettings2.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
|
||||
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
|
||||
|
||||
Reference in New Issue
Block a user