diff --git a/Aviso/frmAddSendungsvermerkShort.Designer.vb b/Aviso/frmAddSendungsvermerkShort.Designer.vb index ee37b78..c19bbbb 100644 --- a/Aviso/frmAddSendungsvermerkShort.Designer.vb +++ b/Aviso/frmAddSendungsvermerkShort.Designer.vb @@ -27,11 +27,21 @@ Partial Class frmAddSendungsvermerkShort Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components) Me.pnlMain = New System.Windows.Forms.Panel() Me.pnlSendungsVermker = New System.Windows.Forms.Panel() - Me.Label5 = New System.Windows.Forms.Label() + Me.optDraft = New System.Windows.Forms.CheckBox() + Me.optGewPackAngefordert = New System.Windows.Forms.CheckBox() + Me.optKostenbestaetigungAngefordert = New System.Windows.Forms.CheckBox() + Me.optZolltarifnummerAngefordert = New System.Windows.Forms.CheckBox() Me.txtSonstigesDokumentFehlt = New System.Windows.Forms.TextBox() + Me.cbxPackliste = New System.Windows.Forms.CheckBox() Me.Label4 = New System.Windows.Forms.Label() Me.optFremd_ATB = New System.Windows.Forms.CheckBox() Me.optFremd_SendungAvisiert = New System.Windows.Forms.CheckBox() + Me.optFahrerKeinATR = New System.Windows.Forms.CheckBox() + Me.optFrachtkostenAngefordert = New System.Windows.Forms.CheckBox() + Me.optKundeNichtErreichbar = New System.Windows.Forms.CheckBox() + Me.optAbsenderbestätigung = New System.Windows.Forms.CheckBox() + Me.cbxRgBest = New System.Windows.Forms.CheckBox() + Me.optUeberwachungsdok = New System.Windows.Forms.CheckBox() Me.lblErrSpedition = New System.Windows.Forms.Label() Me.Label2 = New System.Windows.Forms.Label() Me.lblErrGrund = New System.Windows.Forms.Label() @@ -43,36 +53,32 @@ Partial Class frmAddSendungsvermerkShort Me.optSpeditionWeitergeleitet = New System.Windows.Forms.CheckBox() Me.optFreierText = New System.Windows.Forms.CheckBox() Me.optATAangefordert = New System.Windows.Forms.CheckBox() + Me.optVorkasseAngefordert = New System.Windows.Forms.CheckBox() + Me.optKontaktdatenAngefordert = New System.Windows.Forms.CheckBox() Me.Label3 = New System.Windows.Forms.Label() Me.lblErr240Zeichen = New System.Windows.Forms.Label() Me.txtDetail = New System.Windows.Forms.TextBox() - Me.btnCustomerUploadLink = New System.Windows.Forms.Button() - Me.btnCustomerUploadEmail = New System.Windows.Forms.Button() - Me.txtCustomerUploadEmail = New System.Windows.Forms.TextBox() - Me.lblCustomerUploadEmail = New System.Windows.Forms.Label() - Me.lblCustomerUploadValidityHours = New System.Windows.Forms.Label() - Me.nudCustomerUploadValidityHours = New System.Windows.Forms.NumericUpDown() - Me.cmbCustomerUploadLanguage = New System.Windows.Forms.ComboBox() - Me.lblCustomerUploadLanguage = New System.Windows.Forms.Label() - Me.txtCustomerUploadEmailText = New System.Windows.Forms.TextBox() - Me.lblCustomerUploadEmailText = New System.Windows.Forms.Label() - Me.pnlCustomerUploadSeparator = New System.Windows.Forms.Panel() Me.lblZustzlFreitext = New System.Windows.Forms.Label() Me.txtSendungSpedition = New System.Windows.Forms.TextBox() Me.cbxNichtLeserlich = New System.Windows.Forms.CheckBox() Me.btnOK = New System.Windows.Forms.Button() Me.cbxSonstDok = New System.Windows.Forms.CheckBox() Me.Label9 = New System.Windows.Forms.Label() + Me.cbxVollmacht = New System.Windows.Forms.CheckBox() + Me.cbxCMR = New System.Windows.Forms.CheckBox() Me.Label17 = New System.Windows.Forms.Label() Me.Label13 = New System.Windows.Forms.Label() + Me.cbxATR = New System.Windows.Forms.CheckBox() + Me.cbxLS = New System.Windows.Forms.CheckBox() Me.txtFreierText = New System.Windows.Forms.TextBox() + Me.cbxRechnung = New System.Windows.Forms.CheckBox() Me.Label20 = New System.Windows.Forms.Label() + Me.cbxAuftrag = New System.Windows.Forms.CheckBox() Me.PictureBox1 = New System.Windows.Forms.PictureBox() Me.PictureBox4 = New System.Windows.Forms.PictureBox() Me.Panel4 = New System.Windows.Forms.Panel() Me.pnlMain.SuspendLayout() Me.pnlSendungsVermker.SuspendLayout() - CType(Me.nudCustomerUploadValidityHours, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit() Me.SuspendLayout() @@ -89,18 +95,28 @@ Partial Class frmAddSendungsvermerkShort Me.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill Me.pnlMain.Location = New System.Drawing.Point(0, 0) Me.pnlMain.Name = "pnlMain" - Me.pnlMain.Size = New System.Drawing.Size(474, 868) + Me.pnlMain.Size = New System.Drawing.Size(454, 605) Me.pnlMain.TabIndex = 0 ' 'pnlSendungsVermker ' Me.pnlSendungsVermker.BackColor = System.Drawing.Color.White Me.pnlSendungsVermker.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.pnlSendungsVermker.Controls.Add(Me.Label5) + Me.pnlSendungsVermker.Controls.Add(Me.optDraft) + Me.pnlSendungsVermker.Controls.Add(Me.optGewPackAngefordert) + Me.pnlSendungsVermker.Controls.Add(Me.optKostenbestaetigungAngefordert) + Me.pnlSendungsVermker.Controls.Add(Me.optZolltarifnummerAngefordert) Me.pnlSendungsVermker.Controls.Add(Me.txtSonstigesDokumentFehlt) + Me.pnlSendungsVermker.Controls.Add(Me.cbxPackliste) Me.pnlSendungsVermker.Controls.Add(Me.Label4) Me.pnlSendungsVermker.Controls.Add(Me.optFremd_ATB) Me.pnlSendungsVermker.Controls.Add(Me.optFremd_SendungAvisiert) + Me.pnlSendungsVermker.Controls.Add(Me.optFahrerKeinATR) + Me.pnlSendungsVermker.Controls.Add(Me.optFrachtkostenAngefordert) + Me.pnlSendungsVermker.Controls.Add(Me.optKundeNichtErreichbar) + Me.pnlSendungsVermker.Controls.Add(Me.optAbsenderbestätigung) + Me.pnlSendungsVermker.Controls.Add(Me.cbxRgBest) + Me.pnlSendungsVermker.Controls.Add(Me.optUeberwachungsdok) Me.pnlSendungsVermker.Controls.Add(Me.lblErrSpedition) Me.pnlSendungsVermker.Controls.Add(Me.Label2) Me.pnlSendungsVermker.Controls.Add(Me.lblErrGrund) @@ -112,65 +128,102 @@ Partial Class frmAddSendungsvermerkShort Me.pnlSendungsVermker.Controls.Add(Me.optSpeditionWeitergeleitet) Me.pnlSendungsVermker.Controls.Add(Me.optFreierText) Me.pnlSendungsVermker.Controls.Add(Me.optATAangefordert) + Me.pnlSendungsVermker.Controls.Add(Me.optVorkasseAngefordert) + Me.pnlSendungsVermker.Controls.Add(Me.optKontaktdatenAngefordert) Me.pnlSendungsVermker.Controls.Add(Me.Label3) Me.pnlSendungsVermker.Controls.Add(Me.lblErr240Zeichen) Me.pnlSendungsVermker.Controls.Add(Me.txtDetail) - Me.pnlSendungsVermker.Controls.Add(Me.btnCustomerUploadLink) - Me.pnlSendungsVermker.Controls.Add(Me.btnCustomerUploadEmail) - Me.pnlSendungsVermker.Controls.Add(Me.txtCustomerUploadEmail) - Me.pnlSendungsVermker.Controls.Add(Me.lblCustomerUploadEmail) - Me.pnlSendungsVermker.Controls.Add(Me.lblCustomerUploadValidityHours) - Me.pnlSendungsVermker.Controls.Add(Me.nudCustomerUploadValidityHours) - Me.pnlSendungsVermker.Controls.Add(Me.cmbCustomerUploadLanguage) - Me.pnlSendungsVermker.Controls.Add(Me.lblCustomerUploadLanguage) - Me.pnlSendungsVermker.Controls.Add(Me.txtCustomerUploadEmailText) - Me.pnlSendungsVermker.Controls.Add(Me.lblCustomerUploadEmailText) - Me.pnlSendungsVermker.Controls.Add(Me.pnlCustomerUploadSeparator) Me.pnlSendungsVermker.Controls.Add(Me.lblZustzlFreitext) Me.pnlSendungsVermker.Controls.Add(Me.txtSendungSpedition) Me.pnlSendungsVermker.Controls.Add(Me.cbxNichtLeserlich) Me.pnlSendungsVermker.Controls.Add(Me.btnOK) Me.pnlSendungsVermker.Controls.Add(Me.cbxSonstDok) Me.pnlSendungsVermker.Controls.Add(Me.Label9) + Me.pnlSendungsVermker.Controls.Add(Me.cbxVollmacht) + Me.pnlSendungsVermker.Controls.Add(Me.cbxCMR) Me.pnlSendungsVermker.Controls.Add(Me.Label17) Me.pnlSendungsVermker.Controls.Add(Me.Label13) + Me.pnlSendungsVermker.Controls.Add(Me.cbxATR) + Me.pnlSendungsVermker.Controls.Add(Me.cbxLS) Me.pnlSendungsVermker.Controls.Add(Me.txtFreierText) + Me.pnlSendungsVermker.Controls.Add(Me.cbxRechnung) Me.pnlSendungsVermker.Controls.Add(Me.Label20) + Me.pnlSendungsVermker.Controls.Add(Me.cbxAuftrag) Me.pnlSendungsVermker.Controls.Add(Me.PictureBox1) Me.pnlSendungsVermker.Controls.Add(Me.PictureBox4) Me.pnlSendungsVermker.Dock = System.Windows.Forms.DockStyle.Fill Me.pnlSendungsVermker.Location = New System.Drawing.Point(0, 0) Me.pnlSendungsVermker.Name = "pnlSendungsVermker" - Me.pnlSendungsVermker.Size = New System.Drawing.Size(474, 868) + Me.pnlSendungsVermker.Size = New System.Drawing.Size(454, 605) Me.pnlSendungsVermker.TabIndex = 0 ' - 'Label5 + 'optDraft ' - Me.Label5.AutoSize = True - Me.Label5.BackColor = System.Drawing.Color.WhiteSmoke - Me.Label5.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.Label5.Location = New System.Drawing.Point(2, 642) - Me.Label5.Name = "Label5" - Me.Label5.Size = New System.Drawing.Size(202, 17) - Me.Label5.TabIndex = 118 - Me.Label5.Text = "Kundenportal Upload-Link:" + Me.optDraft.AutoSize = True + Me.optDraft.Location = New System.Drawing.Point(12, 262) + Me.optDraft.Name = "optDraft" + Me.optDraft.Size = New System.Drawing.Size(174, 17) + Me.optDraft.TabIndex = 102 + Me.optDraft.Text = "T1/T2 ""Draft"" OK - angefordert" + Me.optDraft.UseVisualStyleBackColor = True + ' + 'optGewPackAngefordert + ' + Me.optGewPackAngefordert.AutoSize = True + Me.optGewPackAngefordert.Location = New System.Drawing.Point(12, 236) + Me.optGewPackAngefordert.Name = "optGewPackAngefordert" + Me.optGewPackAngefordert.Size = New System.Drawing.Size(245, 17) + Me.optGewPackAngefordert.TabIndex = 101 + Me.optGewPackAngefordert.Text = "Gewicht/Packstücke mangelhaft - angefordert" + Me.optGewPackAngefordert.UseVisualStyleBackColor = True + ' + 'optKostenbestaetigungAngefordert + ' + Me.optKostenbestaetigungAngefordert.AutoSize = True + Me.optKostenbestaetigungAngefordert.Location = New System.Drawing.Point(270, 214) + Me.optKostenbestaetigungAngefordert.Name = "optKostenbestaetigungAngefordert" + Me.optKostenbestaetigungAngefordert.Size = New System.Drawing.Size(177, 17) + Me.optKostenbestaetigungAngefordert.TabIndex = 99 + Me.optKostenbestaetigungAngefordert.Text = "Kostenbestätigung - angefordert" + Me.optKostenbestaetigungAngefordert.UseVisualStyleBackColor = True + ' + 'optZolltarifnummerAngefordert + ' + Me.optZolltarifnummerAngefordert.AutoSize = True + Me.optZolltarifnummerAngefordert.Location = New System.Drawing.Point(12, 214) + Me.optZolltarifnummerAngefordert.Name = "optZolltarifnummerAngefordert" + Me.optZolltarifnummerAngefordert.Size = New System.Drawing.Size(154, 17) + Me.optZolltarifnummerAngefordert.TabIndex = 98 + Me.optZolltarifnummerAngefordert.Text = "Zolltarifnummer angefordert" + Me.optZolltarifnummerAngefordert.UseVisualStyleBackColor = True ' 'txtSonstigesDokumentFehlt ' Me.txtSonstigesDokumentFehlt.BackColor = System.Drawing.Color.White Me.txtSonstigesDokumentFehlt.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.txtSonstigesDokumentFehlt.Location = New System.Drawing.Point(96, 214) + Me.txtSonstigesDokumentFehlt.Location = New System.Drawing.Point(94, 96) Me.txtSonstigesDokumentFehlt.MaxLength = 80 Me.txtSonstigesDokumentFehlt.Name = "txtSonstigesDokumentFehlt" Me.txtSonstigesDokumentFehlt.Size = New System.Drawing.Size(198, 20) Me.txtSonstigesDokumentFehlt.TabIndex = 10 ' + 'cbxPackliste + ' + Me.cbxPackliste.AutoSize = True + Me.cbxPackliste.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxPackliste.Location = New System.Drawing.Point(308, 75) + Me.cbxPackliste.Name = "cbxPackliste" + Me.cbxPackliste.Size = New System.Drawing.Size(69, 17) + Me.cbxPackliste.TabIndex = 97 + Me.cbxPackliste.Text = "Packliste" + Me.cbxPackliste.UseVisualStyleBackColor = False + ' 'Label4 ' Me.Label4.AutoSize = True Me.Label4.BackColor = System.Drawing.Color.WhiteSmoke Me.Label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.Label4.Location = New System.Drawing.Point(11, 563) + Me.Label4.Location = New System.Drawing.Point(11, 411) Me.Label4.Name = "Label4" Me.Label4.Size = New System.Drawing.Size(125, 17) Me.Label4.TabIndex = 96 @@ -180,7 +233,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.optFremd_ATB.AutoSize = True Me.optFremd_ATB.BackColor = System.Drawing.Color.WhiteSmoke - Me.optFremd_ATB.Location = New System.Drawing.Point(12, 610) + Me.optFremd_ATB.Location = New System.Drawing.Point(12, 458) Me.optFremd_ATB.Name = "optFremd_ATB" Me.optFremd_ATB.Size = New System.Drawing.Size(130, 17) Me.optFremd_ATB.TabIndex = 94 @@ -191,19 +244,81 @@ Partial Class frmAddSendungsvermerkShort ' Me.optFremd_SendungAvisiert.AutoSize = True Me.optFremd_SendungAvisiert.BackColor = System.Drawing.Color.WhiteSmoke - Me.optFremd_SendungAvisiert.Location = New System.Drawing.Point(12, 587) + Me.optFremd_SendungAvisiert.Location = New System.Drawing.Point(12, 435) Me.optFremd_SendungAvisiert.Name = "optFremd_SendungAvisiert" Me.optFremd_SendungAvisiert.Size = New System.Drawing.Size(193, 17) Me.optFremd_SendungAvisiert.TabIndex = 93 Me.optFremd_SendungAvisiert.Text = "Sendung an Fremdeinsteller avisiert" Me.optFremd_SendungAvisiert.UseVisualStyleBackColor = False ' + 'optFahrerKeinATR + ' + Me.optFahrerKeinATR.AutoSize = True + Me.optFahrerKeinATR.BackColor = System.Drawing.Color.WhiteSmoke + Me.optFahrerKeinATR.Location = New System.Drawing.Point(308, 52) + Me.optFahrerKeinATR.Name = "optFahrerKeinATR" + Me.optFahrerKeinATR.Size = New System.Drawing.Size(125, 17) + Me.optFahrerKeinATR.TabIndex = 92 + Me.optFahrerKeinATR.Text = "Fahrer hat kein A.TR" + Me.optFahrerKeinATR.UseVisualStyleBackColor = False + ' + 'optFrachtkostenAngefordert + ' + Me.optFrachtkostenAngefordert.AutoSize = True + Me.optFrachtkostenAngefordert.Location = New System.Drawing.Point(12, 162) + Me.optFrachtkostenAngefordert.Name = "optFrachtkostenAngefordert" + Me.optFrachtkostenAngefordert.Size = New System.Drawing.Size(145, 17) + Me.optFrachtkostenAngefordert.TabIndex = 91 + Me.optFrachtkostenAngefordert.Text = "Frachtkosten angefordert" + Me.optFrachtkostenAngefordert.UseVisualStyleBackColor = True + ' + 'optKundeNichtErreichbar + ' + Me.optKundeNichtErreichbar.AutoSize = True + Me.optKundeNichtErreichbar.Location = New System.Drawing.Point(270, 141) + Me.optKundeNichtErreichbar.Name = "optKundeNichtErreichbar" + Me.optKundeNichtErreichbar.Size = New System.Drawing.Size(133, 17) + Me.optKundeNichtErreichbar.TabIndex = 90 + Me.optKundeNichtErreichbar.Text = "Kunde nicht erreichbar" + Me.optKundeNichtErreichbar.UseVisualStyleBackColor = True + ' + 'optAbsenderbestätigung + ' + Me.optAbsenderbestätigung.AutoSize = True + Me.optAbsenderbestätigung.BackColor = System.Drawing.Color.WhiteSmoke + Me.optAbsenderbestätigung.Location = New System.Drawing.Point(308, 32) + Me.optAbsenderbestätigung.Name = "optAbsenderbestätigung" + Me.optAbsenderbestätigung.Size = New System.Drawing.Size(136, 17) + Me.optAbsenderbestätigung.TabIndex = 89 + Me.optAbsenderbestätigung.Text = "Absenderbestät. angef." + Me.optAbsenderbestätigung.UseVisualStyleBackColor = False + ' + 'cbxRgBest + ' + Me.cbxRgBest.AutoSize = True + Me.cbxRgBest.Location = New System.Drawing.Point(270, 185) + Me.cbxRgBest.Name = "cbxRgBest" + Me.cbxRgBest.Size = New System.Drawing.Size(146, 17) + Me.cbxRgBest.TabIndex = 86 + Me.cbxRgBest.Text = "Rechnungsbestät. angef." + Me.cbxRgBest.UseVisualStyleBackColor = True + ' + 'optUeberwachungsdok + ' + Me.optUeberwachungsdok.AutoSize = True + Me.optUeberwachungsdok.Location = New System.Drawing.Point(270, 163) + Me.optUeberwachungsdok.Name = "optUeberwachungsdok" + Me.optUeberwachungsdok.Size = New System.Drawing.Size(114, 17) + Me.optUeberwachungsdok.TabIndex = 85 + Me.optUeberwachungsdok.Text = "Ü-Dok. angefodert" + Me.optUeberwachungsdok.UseVisualStyleBackColor = True + ' 'lblErrSpedition ' Me.lblErrSpedition.AutoSize = True Me.lblErrSpedition.BackColor = System.Drawing.Color.WhiteSmoke Me.lblErrSpedition.ForeColor = System.Drawing.Color.Red - Me.lblErrSpedition.Location = New System.Drawing.Point(175, 468) + Me.lblErrSpedition.Location = New System.Drawing.Point(175, 316) Me.lblErrSpedition.Name = "lblErrSpedition" Me.lblErrSpedition.Size = New System.Drawing.Size(158, 13) Me.lblErrSpedition.TabIndex = 17 @@ -215,7 +330,7 @@ Partial Class frmAddSendungsvermerkShort Me.Label2.AutoSize = True Me.Label2.BackColor = System.Drawing.Color.WhiteSmoke Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.0!) - Me.Label2.Location = New System.Drawing.Point(175, 468) + Me.Label2.Location = New System.Drawing.Point(175, 316) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(57, 13) Me.Label2.TabIndex = 84 @@ -226,7 +341,7 @@ Partial Class frmAddSendungsvermerkShort Me.lblErrGrund.AutoSize = True Me.lblErrGrund.BackColor = System.Drawing.Color.WhiteSmoke Me.lblErrGrund.ForeColor = System.Drawing.Color.Red - Me.lblErrGrund.Location = New System.Drawing.Point(147, 537) + Me.lblErrGrund.Location = New System.Drawing.Point(147, 385) Me.lblErrGrund.Name = "lblErrGrund" Me.lblErrGrund.Size = New System.Drawing.Size(149, 13) Me.lblErrGrund.TabIndex = 26 @@ -242,7 +357,7 @@ Partial Class frmAddSendungsvermerkShort Me.btnCLose.FlatStyle = System.Windows.Forms.FlatStyle.Flat Me.btnCLose.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.btnCLose.ForeColor = System.Drawing.Color.White - Me.btnCLose.Location = New System.Drawing.Point(419, -1) + Me.btnCLose.Location = New System.Drawing.Point(399, -1) Me.btnCLose.Name = "btnCLose" Me.btnCLose.RightToLeft = System.Windows.Forms.RightToLeft.Yes Me.btnCLose.Size = New System.Drawing.Size(54, 20) @@ -255,7 +370,7 @@ Partial Class frmAddSendungsvermerkShort Me.lblErrDokument.AutoSize = True Me.lblErrDokument.BackColor = System.Drawing.Color.WhiteSmoke Me.lblErrDokument.ForeColor = System.Drawing.Color.Red - Me.lblErrDokument.Location = New System.Drawing.Point(93, 233) + Me.lblErrDokument.Location = New System.Drawing.Point(91, 115) Me.lblErrDokument.Name = "lblErrDokument" Me.lblErrDokument.Size = New System.Drawing.Size(157, 13) Me.lblErrDokument.TabIndex = 11 @@ -277,7 +392,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.txtSpedition.BackColor = System.Drawing.Color.WhiteSmoke Me.txtSpedition.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.txtSpedition.Location = New System.Drawing.Point(177, 484) + Me.txtSpedition.Location = New System.Drawing.Point(177, 332) Me.txtSpedition.MaxLength = 50 Me.txtSpedition.Name = "txtSpedition" Me.txtSpedition.Size = New System.Drawing.Size(125, 20) @@ -298,7 +413,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.optSpeditionWeitergeleitet.AutoSize = True Me.optSpeditionWeitergeleitet.BackColor = System.Drawing.Color.WhiteSmoke - Me.optSpeditionWeitergeleitet.Location = New System.Drawing.Point(12, 486) + Me.optSpeditionWeitergeleitet.Location = New System.Drawing.Point(12, 334) Me.optSpeditionWeitergeleitet.Name = "optSpeditionWeitergeleitet" Me.optSpeditionWeitergeleitet.Size = New System.Drawing.Size(163, 17) Me.optSpeditionWeitergeleitet.TabIndex = 19 @@ -309,7 +424,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.optFreierText.AutoSize = True Me.optFreierText.BackColor = System.Drawing.Color.WhiteSmoke - Me.optFreierText.Location = New System.Drawing.Point(12, 513) + Me.optFreierText.Location = New System.Drawing.Point(12, 361) Me.optFreierText.Name = "optFreierText" Me.optFreierText.Size = New System.Drawing.Size(105, 17) Me.optFreierText.TabIndex = 27 @@ -320,18 +435,38 @@ Partial Class frmAddSendungsvermerkShort ' Me.optATAangefordert.AutoSize = True Me.optATAangefordert.BackColor = System.Drawing.Color.WhiteSmoke - Me.optATAangefordert.Location = New System.Drawing.Point(164, 610) + Me.optATAangefordert.Location = New System.Drawing.Point(164, 458) Me.optATAangefordert.Name = "optATAangefordert" Me.optATAangefordert.Size = New System.Drawing.Size(208, 17) Me.optATAangefordert.TabIndex = 15 Me.optATAangefordert.Text = "ATA/ATC-Nr. angefordert (Fremdanm.)" Me.optATAangefordert.UseVisualStyleBackColor = False ' + 'optVorkasseAngefordert + ' + Me.optVorkasseAngefordert.AutoSize = True + Me.optVorkasseAngefordert.Location = New System.Drawing.Point(12, 184) + Me.optVorkasseAngefordert.Name = "optVorkasseAngefordert" + Me.optVorkasseAngefordert.Size = New System.Drawing.Size(144, 17) + Me.optVorkasseAngefordert.TabIndex = 14 + Me.optVorkasseAngefordert.Text = "Vorauskasse angefordert" + Me.optVorkasseAngefordert.UseVisualStyleBackColor = True + ' + 'optKontaktdatenAngefordert + ' + Me.optKontaktdatenAngefordert.AutoSize = True + Me.optKontaktdatenAngefordert.Location = New System.Drawing.Point(12, 141) + Me.optKontaktdatenAngefordert.Name = "optKontaktdatenAngefordert" + Me.optKontaktdatenAngefordert.Size = New System.Drawing.Size(212, 17) + Me.optKontaktdatenAngefordert.TabIndex = 12 + Me.optKontaktdatenAngefordert.Text = "Kontaktdaten (z.B.Tel-Nr.) - angefordert" + Me.optKontaktdatenAngefordert.UseVisualStyleBackColor = True + ' 'Label3 ' Me.Label3.AutoSize = True Me.Label3.BackColor = System.Drawing.Color.WhiteSmoke - Me.Label3.Location = New System.Drawing.Point(308, 487) + Me.Label3.Location = New System.Drawing.Point(308, 335) Me.Label3.Name = "Label3" Me.Label3.Size = New System.Drawing.Size(57, 13) Me.Label3.TabIndex = 22 @@ -341,7 +476,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.lblErr240Zeichen.AutoSize = True Me.lblErr240Zeichen.ForeColor = System.Drawing.Color.Red - Me.lblErr240Zeichen.Location = New System.Drawing.Point(212, 785) + Me.lblErr240Zeichen.Location = New System.Drawing.Point(219, 496) Me.lblErr240Zeichen.Name = "lblErr240Zeichen" Me.lblErr240Zeichen.Size = New System.Drawing.Size(95, 13) Me.lblErr240Zeichen.TabIndex = 32 @@ -353,7 +488,7 @@ Partial Class frmAddSendungsvermerkShort Me.txtDetail.AcceptsReturn = True Me.txtDetail.BackColor = System.Drawing.Color.White Me.txtDetail.ForeColor = System.Drawing.SystemColors.InfoText - Me.txtDetail.Location = New System.Drawing.Point(5, 801) + Me.txtDetail.Location = New System.Drawing.Point(12, 512) Me.txtDetail.MaxLength = 240 Me.txtDetail.Multiline = True Me.txtDetail.Name = "txtDetail" @@ -363,117 +498,10 @@ Partial Class frmAddSendungsvermerkShort Me.txtDetail.TabStop = False Me.txtDetail.WordWrap = False ' - 'btnCustomerUploadLink - ' - Me.btnCustomerUploadLink.FlatStyle = System.Windows.Forms.FlatStyle.Flat - Me.btnCustomerUploadLink.Location = New System.Drawing.Point(340, 668) - Me.btnCustomerUploadLink.Name = "btnCustomerUploadLink" - Me.btnCustomerUploadLink.Size = New System.Drawing.Size(124, 23) - Me.btnCustomerUploadLink.TabIndex = 108 - Me.btnCustomerUploadLink.Text = "Link kopieren" - Me.btnCustomerUploadLink.UseVisualStyleBackColor = True - ' - 'btnCustomerUploadEmail - ' - Me.btnCustomerUploadEmail.FlatStyle = System.Windows.Forms.FlatStyle.Flat - Me.btnCustomerUploadEmail.Location = New System.Drawing.Point(340, 694) - Me.btnCustomerUploadEmail.Name = "btnCustomerUploadEmail" - Me.btnCustomerUploadEmail.Size = New System.Drawing.Size(124, 23) - Me.btnCustomerUploadEmail.TabIndex = 109 - Me.btnCustomerUploadEmail.Text = "E-Mail senden" - Me.btnCustomerUploadEmail.UseVisualStyleBackColor = True - ' - 'txtCustomerUploadEmail - ' - Me.txtCustomerUploadEmail.BackColor = System.Drawing.Color.White - Me.txtCustomerUploadEmail.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.txtCustomerUploadEmail.Location = New System.Drawing.Point(80, 696) - Me.txtCustomerUploadEmail.MaxLength = 255 - Me.txtCustomerUploadEmail.Name = "txtCustomerUploadEmail" - Me.txtCustomerUploadEmail.Size = New System.Drawing.Size(254, 20) - Me.txtCustomerUploadEmail.TabIndex = 107 - ' - 'lblCustomerUploadEmail - ' - Me.lblCustomerUploadEmail.AutoSize = True - Me.lblCustomerUploadEmail.Location = New System.Drawing.Point(2, 699) - Me.lblCustomerUploadEmail.Name = "lblCustomerUploadEmail" - Me.lblCustomerUploadEmail.Size = New System.Drawing.Size(54, 13) - Me.lblCustomerUploadEmail.TabIndex = 110 - Me.lblCustomerUploadEmail.Text = "E-Mail an:" - ' - 'lblCustomerUploadValidityHours - ' - Me.lblCustomerUploadValidityHours.AutoSize = True - Me.lblCustomerUploadValidityHours.Location = New System.Drawing.Point(176, 672) - Me.lblCustomerUploadValidityHours.Name = "lblCustomerUploadValidityHours" - Me.lblCustomerUploadValidityHours.Size = New System.Drawing.Size(66, 13) - Me.lblCustomerUploadValidityHours.TabIndex = 111 - Me.lblCustomerUploadValidityHours.Text = "Gültigkeit(h):" - ' - 'nudCustomerUploadValidityHours - ' - Me.nudCustomerUploadValidityHours.Location = New System.Drawing.Point(260, 670) - Me.nudCustomerUploadValidityHours.Maximum = New Decimal(New Integer() {168, 0, 0, 0}) - Me.nudCustomerUploadValidityHours.Minimum = New Decimal(New Integer() {1, 0, 0, 0}) - Me.nudCustomerUploadValidityHours.Name = "nudCustomerUploadValidityHours" - Me.nudCustomerUploadValidityHours.Size = New System.Drawing.Size(74, 20) - Me.nudCustomerUploadValidityHours.TabIndex = 112 - Me.nudCustomerUploadValidityHours.Value = New Decimal(New Integer() {168, 0, 0, 0}) - ' - 'cmbCustomerUploadLanguage - ' - Me.cmbCustomerUploadLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList - Me.cmbCustomerUploadLanguage.FormattingEnabled = True - Me.cmbCustomerUploadLanguage.Items.AddRange(New Object() {"de", "en", "tr", "sr", "bg"}) - Me.cmbCustomerUploadLanguage.Location = New System.Drawing.Point(80, 670) - Me.cmbCustomerUploadLanguage.Name = "cmbCustomerUploadLanguage" - Me.cmbCustomerUploadLanguage.Size = New System.Drawing.Size(80, 21) - Me.cmbCustomerUploadLanguage.TabIndex = 116 - ' - 'lblCustomerUploadLanguage - ' - Me.lblCustomerUploadLanguage.AutoSize = True - Me.lblCustomerUploadLanguage.Location = New System.Drawing.Point(2, 673) - Me.lblCustomerUploadLanguage.Name = "lblCustomerUploadLanguage" - Me.lblCustomerUploadLanguage.Size = New System.Drawing.Size(72, 13) - Me.lblCustomerUploadLanguage.TabIndex = 117 - Me.lblCustomerUploadLanguage.Text = "Mail Sprache:" - ' - 'txtCustomerUploadEmailText - ' - Me.txtCustomerUploadEmailText.BackColor = System.Drawing.Color.White - Me.txtCustomerUploadEmailText.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.txtCustomerUploadEmailText.Location = New System.Drawing.Point(80, 718) - Me.txtCustomerUploadEmailText.MaxLength = 500 - Me.txtCustomerUploadEmailText.Multiline = True - Me.txtCustomerUploadEmailText.Name = "txtCustomerUploadEmailText" - Me.txtCustomerUploadEmailText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical - Me.txtCustomerUploadEmailText.Size = New System.Drawing.Size(254, 54) - Me.txtCustomerUploadEmailText.TabIndex = 113 - Me.txtCustomerUploadEmailText.Text = "Bitte laden Sie die angeforderten Dokumente über den Link hoch." - ' - 'lblCustomerUploadEmailText - ' - Me.lblCustomerUploadEmailText.AutoSize = True - Me.lblCustomerUploadEmailText.Location = New System.Drawing.Point(2, 721) - Me.lblCustomerUploadEmailText.Name = "lblCustomerUploadEmailText" - Me.lblCustomerUploadEmailText.Size = New System.Drawing.Size(63, 13) - Me.lblCustomerUploadEmailText.TabIndex = 114 - Me.lblCustomerUploadEmailText.Text = "E-Mail Text:" - ' - 'pnlCustomerUploadSeparator - ' - Me.pnlCustomerUploadSeparator.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.pnlCustomerUploadSeparator.Location = New System.Drawing.Point(-8, 779) - Me.pnlCustomerUploadSeparator.Name = "pnlCustomerUploadSeparator" - Me.pnlCustomerUploadSeparator.Size = New System.Drawing.Size(474, 1) - Me.pnlCustomerUploadSeparator.TabIndex = 115 - ' 'lblZustzlFreitext ' Me.lblZustzlFreitext.AutoSize = True - Me.lblZustzlFreitext.Location = New System.Drawing.Point(2, 785) + Me.lblZustzlFreitext.Location = New System.Drawing.Point(9, 496) Me.lblZustzlFreitext.Name = "lblZustzlFreitext" Me.lblZustzlFreitext.Size = New System.Drawing.Size(142, 13) Me.lblZustzlFreitext.TabIndex = 31 @@ -483,7 +511,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.txtSendungSpedition.BackColor = System.Drawing.Color.WhiteSmoke Me.txtSendungSpedition.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.txtSendungSpedition.Location = New System.Drawing.Point(144, 484) + Me.txtSendungSpedition.Location = New System.Drawing.Point(144, 332) Me.txtSendungSpedition.MaxLength = 50 Me.txtSendungSpedition.Name = "txtSendungSpedition" Me.txtSendungSpedition.Size = New System.Drawing.Size(25, 20) @@ -494,7 +522,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.cbxNichtLeserlich.AutoSize = True Me.cbxNichtLeserlich.BackColor = System.Drawing.Color.WhiteSmoke - Me.cbxNichtLeserlich.Location = New System.Drawing.Point(310, 216) + Me.cbxNichtLeserlich.Location = New System.Drawing.Point(308, 98) Me.cbxNichtLeserlich.Name = "cbxNichtLeserlich" Me.cbxNichtLeserlich.Size = New System.Drawing.Size(90, 17) Me.cbxNichtLeserlich.TabIndex = 8 @@ -504,7 +532,7 @@ Partial Class frmAddSendungsvermerkShort 'btnOK ' Me.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat - Me.btnOK.Location = New System.Drawing.Point(313, 801) + Me.btnOK.Location = New System.Drawing.Point(320, 512) Me.btnOK.Name = "btnOK" Me.btnOK.Size = New System.Drawing.Size(124, 54) Me.btnOK.TabIndex = 34 @@ -515,7 +543,7 @@ Partial Class frmAddSendungsvermerkShort ' Me.cbxSonstDok.AutoSize = True Me.cbxSonstDok.BackColor = System.Drawing.Color.WhiteSmoke - Me.cbxSonstDok.Location = New System.Drawing.Point(14, 216) + Me.cbxSonstDok.Location = New System.Drawing.Point(12, 98) Me.cbxSonstDok.Name = "cbxSonstDok" Me.cbxSonstDok.Size = New System.Drawing.Size(83, 17) Me.cbxSonstDok.TabIndex = 9 @@ -527,18 +555,40 @@ Partial Class frmAddSendungsvermerkShort Me.Label9.AutoSize = True Me.Label9.BackColor = System.Drawing.Color.WhiteSmoke Me.Label9.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.0!) - Me.Label9.Location = New System.Drawing.Point(354, 537) + Me.Label9.Location = New System.Drawing.Point(354, 385) Me.Label9.Name = "Label9" Me.Label9.Size = New System.Drawing.Size(90, 13) Me.Label9.TabIndex = 30 Me.Label9.Text = "(max. 80 Zeichen)" ' + 'cbxVollmacht + ' + Me.cbxVollmacht.AutoSize = True + Me.cbxVollmacht.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxVollmacht.Location = New System.Drawing.Point(164, 75) + Me.cbxVollmacht.Name = "cbxVollmacht" + Me.cbxVollmacht.Size = New System.Drawing.Size(72, 17) + Me.cbxVollmacht.TabIndex = 7 + Me.cbxVollmacht.Text = "Vollmacht" + Me.cbxVollmacht.UseVisualStyleBackColor = False + ' + 'cbxCMR + ' + Me.cbxCMR.AutoSize = True + Me.cbxCMR.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxCMR.Location = New System.Drawing.Point(164, 32) + Me.cbxCMR.Name = "cbxCMR" + Me.cbxCMR.Size = New System.Drawing.Size(50, 17) + Me.cbxCMR.TabIndex = 3 + Me.cbxCMR.Text = "CMR" + Me.cbxCMR.UseVisualStyleBackColor = False + ' 'Label17 ' Me.Label17.AutoSize = True Me.Label17.BackColor = System.Drawing.Color.WhiteSmoke Me.Label17.Font = New System.Drawing.Font("Microsoft Sans Serif", 7.0!, System.Drawing.FontStyle.Italic) - Me.Label17.Location = New System.Drawing.Point(144, 537) + Me.Label17.Location = New System.Drawing.Point(144, 385) Me.Label17.Name = "Label17" Me.Label17.Size = New System.Drawing.Size(182, 13) Me.Label17.TabIndex = 29 @@ -549,38 +599,82 @@ Partial Class frmAddSendungsvermerkShort Me.Label13.AutoSize = True Me.Label13.BackColor = System.Drawing.Color.WhiteSmoke Me.Label13.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.Label13.Location = New System.Drawing.Point(9, 459) + Me.Label13.Location = New System.Drawing.Point(9, 307) Me.Label13.Name = "Label13" Me.Label13.Size = New System.Drawing.Size(84, 17) Me.Label13.TabIndex = 16 Me.Label13.Text = "Sonstiges:" ' + 'cbxATR + ' + Me.cbxATR.AutoSize = True + Me.cbxATR.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxATR.Location = New System.Drawing.Point(164, 52) + Me.cbxATR.Name = "cbxATR" + Me.cbxATR.Size = New System.Drawing.Size(127, 17) + Me.cbxATR.TabIndex = 5 + Me.cbxATR.Text = "A.TR (Original/Kopie)" + Me.cbxATR.UseVisualStyleBackColor = False + ' + 'cbxLS + ' + Me.cbxLS.AutoSize = True + Me.cbxLS.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxLS.Location = New System.Drawing.Point(12, 75) + Me.cbxLS.Name = "cbxLS" + Me.cbxLS.Size = New System.Drawing.Size(83, 17) + Me.cbxLS.TabIndex = 6 + Me.cbxLS.Text = "Lieferschein" + Me.cbxLS.UseVisualStyleBackColor = False + ' 'txtFreierText ' Me.txtFreierText.BackColor = System.Drawing.Color.WhiteSmoke Me.txtFreierText.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!) - Me.txtFreierText.Location = New System.Drawing.Point(122, 511) + Me.txtFreierText.Location = New System.Drawing.Point(122, 359) Me.txtFreierText.MaxLength = 80 Me.txtFreierText.Name = "txtFreierText" Me.txtFreierText.Size = New System.Drawing.Size(322, 23) Me.txtFreierText.TabIndex = 28 ' + 'cbxRechnung + ' + Me.cbxRechnung.AutoSize = True + Me.cbxRechnung.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxRechnung.Location = New System.Drawing.Point(12, 53) + Me.cbxRechnung.Name = "cbxRechnung" + Me.cbxRechnung.Size = New System.Drawing.Size(137, 17) + Me.cbxRechnung.TabIndex = 4 + Me.cbxRechnung.Text = "Rechnung (mangelhaft)" + Me.cbxRechnung.UseVisualStyleBackColor = False + ' 'Label20 ' Me.Label20.AutoSize = True Me.Label20.BackColor = System.Drawing.Color.WhiteSmoke - Me.Label20.Location = New System.Drawing.Point(267, 487) + Me.Label20.Location = New System.Drawing.Point(267, 335) Me.Label20.Name = "Label20" Me.Label20.Size = New System.Drawing.Size(0, 13) Me.Label20.TabIndex = 21 ' + 'cbxAuftrag + ' + Me.cbxAuftrag.AutoSize = True + Me.cbxAuftrag.BackColor = System.Drawing.Color.WhiteSmoke + Me.cbxAuftrag.Location = New System.Drawing.Point(12, 32) + Me.cbxAuftrag.Name = "cbxAuftrag" + Me.cbxAuftrag.Size = New System.Drawing.Size(60, 17) + Me.cbxAuftrag.TabIndex = 2 + Me.cbxAuftrag.Text = "Auftrag" + Me.cbxAuftrag.UseVisualStyleBackColor = False + ' 'PictureBox1 ' Me.PictureBox1.BackColor = System.Drawing.Color.WhiteSmoke Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle Me.PictureBox1.Location = New System.Drawing.Point(-1, -1) Me.PictureBox1.Name = "PictureBox1" - Me.PictureBox1.Size = New System.Drawing.Size(474, 250) + Me.PictureBox1.Size = New System.Drawing.Size(453, 130) Me.PictureBox1.TabIndex = 83 Me.PictureBox1.TabStop = False ' @@ -588,9 +682,9 @@ Partial Class frmAddSendungsvermerkShort ' Me.PictureBox4.BackColor = System.Drawing.Color.WhiteSmoke Me.PictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.PictureBox4.Location = New System.Drawing.Point(-1, 450) + Me.PictureBox4.Location = New System.Drawing.Point(-1, 297) Me.PictureBox4.Name = "PictureBox4" - Me.PictureBox4.Size = New System.Drawing.Size(481, 189) + Me.PictureBox4.Size = New System.Drawing.Size(453, 189) Me.PictureBox4.TabIndex = 78 Me.PictureBox4.TabStop = False ' @@ -601,14 +695,14 @@ Partial Class frmAddSendungsvermerkShort Me.Panel4.Dock = System.Windows.Forms.DockStyle.Top Me.Panel4.Location = New System.Drawing.Point(0, 0) Me.Panel4.Name = "Panel4" - Me.Panel4.Size = New System.Drawing.Size(474, 0) + Me.Panel4.Size = New System.Drawing.Size(454, 0) Me.Panel4.TabIndex = 1 ' 'frmAddSendungsvermerkShort ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font - Me.ClientSize = New System.Drawing.Size(474, 868) + Me.ClientSize = New System.Drawing.Size(454, 605) Me.Controls.Add(Me.pnlMain) Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) @@ -620,7 +714,6 @@ Partial Class frmAddSendungsvermerkShort Me.pnlMain.ResumeLayout(False) Me.pnlSendungsVermker.ResumeLayout(False) Me.pnlSendungsVermker.PerformLayout() - CType(Me.nudCustomerUploadValidityHours, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).EndInit() Me.ResumeLayout(False) @@ -634,6 +727,8 @@ Partial Class frmAddSendungsvermerkShort Friend WithEvents optSpeditionWeitergeleitet As System.Windows.Forms.CheckBox Friend WithEvents optFreierText As System.Windows.Forms.CheckBox Friend WithEvents optATAangefordert As System.Windows.Forms.CheckBox + Friend WithEvents optVorkasseAngefordert As System.Windows.Forms.CheckBox + Friend WithEvents optKontaktdatenAngefordert As System.Windows.Forms.CheckBox Friend WithEvents Label3 As System.Windows.Forms.Label Friend WithEvents lblErr240Zeichen As System.Windows.Forms.Label Friend WithEvents lblZustzlFreitext As System.Windows.Forms.Label @@ -642,13 +737,19 @@ Partial Class frmAddSendungsvermerkShort Friend WithEvents btnOK As System.Windows.Forms.Button Friend WithEvents cbxSonstDok As System.Windows.Forms.CheckBox Friend WithEvents Label9 As System.Windows.Forms.Label + Friend WithEvents cbxVollmacht As System.Windows.Forms.CheckBox Friend WithEvents lblErrSpedition As System.Windows.Forms.Label + Friend WithEvents cbxCMR As System.Windows.Forms.CheckBox Friend WithEvents lblErrGrund As System.Windows.Forms.Label Friend WithEvents Label17 As System.Windows.Forms.Label Friend WithEvents Label13 As System.Windows.Forms.Label + Friend WithEvents cbxATR As System.Windows.Forms.CheckBox + Friend WithEvents cbxLS As System.Windows.Forms.CheckBox Friend WithEvents txtFreierText As System.Windows.Forms.TextBox Friend WithEvents txtSpedition As System.Windows.Forms.TextBox + Friend WithEvents cbxRechnung As System.Windows.Forms.CheckBox Friend WithEvents Label20 As System.Windows.Forms.Label + Friend WithEvents cbxAuftrag As System.Windows.Forms.CheckBox Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents optSendungInVorbereitung As System.Windows.Forms.CheckBox @@ -656,20 +757,19 @@ Partial Class frmAddSendungsvermerkShort Friend WithEvents lblErrDokument As System.Windows.Forms.Label Friend WithEvents btnCLose As System.Windows.Forms.Button Friend WithEvents Label2 As System.Windows.Forms.Label + Friend WithEvents optUeberwachungsdok As System.Windows.Forms.CheckBox + Friend WithEvents cbxRgBest As CheckBox Friend WithEvents Label4 As Label Friend WithEvents optFremd_ATB As CheckBox Friend WithEvents optFremd_SendungAvisiert As CheckBox + Friend WithEvents optFahrerKeinATR As CheckBox + Friend WithEvents optFrachtkostenAngefordert As CheckBox + Friend WithEvents optKundeNichtErreichbar As CheckBox + Friend WithEvents optAbsenderbestätigung As CheckBox + Friend WithEvents cbxPackliste As CheckBox + Friend WithEvents optGewPackAngefordert As CheckBox + Friend WithEvents optKostenbestaetigungAngefordert As CheckBox + Friend WithEvents optZolltarifnummerAngefordert As CheckBox + Friend WithEvents optDraft As CheckBox Public WithEvents txtDetail As TextBox - Friend WithEvents btnCustomerUploadLink As Button - Friend WithEvents btnCustomerUploadEmail As Button - Friend WithEvents txtCustomerUploadEmail As TextBox - Friend WithEvents lblCustomerUploadEmail As Label - Friend WithEvents lblCustomerUploadValidityHours As Label - Friend WithEvents nudCustomerUploadValidityHours As NumericUpDown - Friend WithEvents cmbCustomerUploadLanguage As ComboBox - Friend WithEvents lblCustomerUploadLanguage As Label - Friend WithEvents txtCustomerUploadEmailText As TextBox - Friend WithEvents lblCustomerUploadEmailText As Label - Friend WithEvents pnlCustomerUploadSeparator As Panel - Friend WithEvents Label5 As Label End Class diff --git a/Aviso/frmAddSendungsvermerkShort.vb b/Aviso/frmAddSendungsvermerkShort.vb index 6a0dfea..a672768 100644 --- a/Aviso/frmAddSendungsvermerkShort.vb +++ b/Aviso/frmAddSendungsvermerkShort.vb @@ -1,13 +1,7 @@ -Imports System.Configuration -Imports System.IO -Imports System.Net -Imports System.Net.Mail -Imports System.Text -Imports Newtonsoft.Json -Imports Newtonsoft.Json.Linq -Imports VERAG_PROG_ALLGEMEIN Imports AVISO.AvisoStatusFunctions +Imports SDL +Imports VERAG_PROG_ALLGEMEIN Public Class frmAddSendungsvermerkShort Dim AvisoDAL As New cAvisoDAL @@ -15,28 +9,6 @@ Public Class frmAddSendungsvermerkShort Dim myAviso As New cAviso Dim VermerkeDAL As New cVermerkeDAL Dim aktChanged As Boolean = False - Private ReadOnly _anforderungCheckboxes As New List(Of CheckBox) - Private ReadOnly _anhangsartIdByCheckbox As New Dictionary(Of CheckBox, Integer) - Private ReadOnly _backendBezeichnungByCodeId As New Dictionary(Of Integer, String) - Private ReadOnly _selectedAnhangsartIdByCodeId As New Dictionary(Of Integer, Integer) - Private ReadOnly _documentCustomNameByCodeId As New Dictionary(Of Integer, String) - Private ReadOnly _documentBaseTextByCodeId As New Dictionary(Of Integer, String) - Private ReadOnly _anhangsartenOptions As New List(Of AnhangsartOption) - Private ReadOnly _bereichByCodeId As New Dictionary(Of Integer, Integer) - Private _selectedDocumentCodeId As Integer = 0 - Private _isLoadingDocumentEditor As Boolean = False - Private pnlDocumentEditor As Panel - Private lblDocumentEditorTitle As Label - Private lblDocumentEditorName As Label - Private txtDocumentEditorName As TextBox - Private lblDocumentEditorAnhangsart As Label - Private cmbDocumentEditorAnhangsart As ComboBox - Private lblDocumentEditorInfo As Label - Private txtDocumentEditorInfo As TextBox - Private lblDocumentEditorStatus As Label - Private Const DefaultDocumentBaseText As String = "Bitte das Dokument hochladen." - Private Const BereichDokumentMain As Integer = 1 - Private Const BereichAngefordert As Integer = 2 Dim Neuanlage As Boolean = False Dim hStatus As Integer @@ -97,18 +69,6 @@ Public Class frmAddSendungsvermerkShort If My.Computer.Screen.WorkingArea.Height < Me.Height Then Me.Height = My.Computer.Screen.WorkingArea.Height End If - - If cmbCustomerUploadLanguage IsNot Nothing Then - If cmbCustomerUploadLanguage.SelectedIndex < 0 Then - Dim idx = cmbCustomerUploadLanguage.Items.IndexOf("de") - If idx >= 0 Then - cmbCustomerUploadLanguage.SelectedIndex = idx - ElseIf cmbCustomerUploadLanguage.Items.Count > 0 Then - cmbCustomerUploadLanguage.SelectedIndex = 0 - End If - End If - End If - For Each c In Me.Controls If c.GetType.Name.ToString = "RadioButton" Then AddHandler DirectCast(c, RadioButton).CheckedChanged, AddressOf selectionChanged @@ -122,8 +82,6 @@ Public Class frmAddSendungsvermerkShort txtSendung.Text = "KOMPLETT" End If - SetupDynamicAnforderungCheckboxes() - hStatus = myAviso.Status If hStatus = cGlobal.Status_Vorbereitet Or hStatus = cGlobal.Status_Vorgeschrieben Or hStatus = cGlobal.Status_Erfasst Then optSendungInVorbereitung.Visible = True @@ -156,835 +114,6 @@ Public Class frmAddSendungsvermerkShort End Sub - Private Sub SetupDynamicAnforderungCheckboxes() - _anforderungCheckboxes.Clear() - _anhangsartIdByCheckbox.Clear() - _backendBezeichnungByCodeId.Clear() - _selectedAnhangsartIdByCodeId.Clear() - _documentCustomNameByCodeId.Clear() - _documentBaseTextByCodeId.Clear() - _bereichByCodeId.Clear() - _selectedDocumentCodeId = 0 - If flpDocumentTabs IsNot Nothing Then - flpDocumentTabs.Controls.Clear() - End If - - Dim dt As DataTable = Nothing - Try - dt = AvisoDAL.loadDataTableBySQL("SELECT [VermerkCodeId],[Bezeichnung],[FrontendBezeichnung],[AvisoAnhangsartId],[AnforderungBereich] FROM [VermerkeCodes] WHERE [Anforderung]=1 ORDER BY [Bezeichnung]") - Catch - Try - dt = AvisoDAL.loadDataTableBySQL("SELECT [VermerkCodeId],[Bezeichnung],[AvisoAnhangsartId],[AnforderungBereich] FROM [VermerkeCodes] WHERE [Anforderung]=1 ORDER BY [Bezeichnung]") - Catch - Return - End Try - End Try - - If dt Is Nothing OrElse dt.Rows.Count = 0 Then - Return - End If - EnsureAnhangsartenOptionsLoaded() - - Dim docsLeft = Label1.Left + 3 - Dim docsTop = Label1.Bottom + 6 - Dim docsWidth = PictureBox1.Width - (docsLeft * 2) - Dim docsMainHeight = Math.Max(10, cbxSonstDok.Top - docsTop - 6) - Dim docsMainPanel = CreateAnforderungFlowPanel("flpDokumenteFehlenMain", docsLeft, docsTop, docsWidth, docsMainHeight, Color.WhiteSmoke) - docsMainPanel.FlowDirection = FlowDirection.LeftToRight - docsMainPanel.WrapContents = True - - Dim docsExtraFound = pnlSendungsVermker.Controls.Find("flpDokumenteFehlenExtra", True) - If docsExtraFound IsNot Nothing AndAlso docsExtraFound.Length > 0 Then - Dim docsExtraPanel = TryCast(docsExtraFound(0), FlowLayoutPanel) - If docsExtraPanel IsNot Nothing Then - docsExtraPanel.Visible = False - docsExtraPanel.Controls.Clear() - End If - End If - - PositionDocumentEditorAndUpload() - - Dim lblSonstigeVermerke As Label = TryCast(pnlSendungsVermker.Controls.Find("lblSonstigeVermerke", True).FirstOrDefault(), Label) - If lblSonstigeVermerke Is Nothing Then - lblSonstigeVermerke = New Label() - lblSonstigeVermerke.Name = "lblSonstigeVermerke" - lblSonstigeVermerke.Text = "Sonstige Vermerke:" - lblSonstigeVermerke.Font = New Font("Microsoft Sans Serif", 10.0!, FontStyle.Bold) - lblSonstigeVermerke.AutoSize = True - lblSonstigeVermerke.BackColor = Color.White - pnlSendungsVermker.Controls.Add(lblSonstigeVermerke) - End If - lblSonstigeVermerke.Left = docsLeft - lblSonstigeVermerke.Top = PictureBox1.Bottom + 8 - lblSonstigeVermerke.BringToFront() - - Dim anforderungLeft = docsLeft - Dim anforderungTop = lblSonstigeVermerke.Bottom + 6 - Dim anforderungWidth = pnlSendungsVermker.Width - (anforderungLeft * 2) - Dim anforderungHeight = 198 - Dim anforderungPanel = CreateAnforderungFlowPanel("flpAngefordert", anforderungLeft, anforderungTop, anforderungWidth, anforderungHeight, Color.White) - - For Each row As DataRow In dt.Rows - Dim id As Integer - Try - id = CInt(row("VermerkCodeId")) - Catch - Continue For - End Try - - Dim bezeichnung = If(IsDBNull(row("Bezeichnung")), "", CStr(row("Bezeichnung"))).Trim() - If bezeichnung = "" Then Continue For - _backendBezeichnungByCodeId(id) = bezeichnung - - Dim frontendBezeichnung = bezeichnung - If dt.Columns.Contains("FrontendBezeichnung") Then - frontendBezeichnung = If(IsDBNull(row("FrontendBezeichnung")), "", CStr(row("FrontendBezeichnung"))).Trim() - If frontendBezeichnung = "" Then frontendBezeichnung = bezeichnung - End If - - Dim cb As New CheckBox() - cb.Text = frontendBezeichnung - cb.Tag = id - cb.Margin = New Padding(0, 0, 8, 2) - AddHandler cb.CheckedChanged, AddressOf DynamicAnforderungCheckboxChanged - - If bezeichnung.ToLowerInvariant().Contains("nicht leserlich") Then - Continue For - End If - - Dim anhangsartId As Integer = 0 - Try - If Not IsDBNull(row("AvisoAnhangsartId")) Then - anhangsartId = CInt(row("AvisoAnhangsartId")) - End If - Catch - End Try - _anhangsartIdByCheckbox(cb) = anhangsartId - If Not _documentCustomNameByCodeId.ContainsKey(id) Then - _documentCustomNameByCodeId(id) = GetAnhangsartDisplayTextById(anhangsartId) - End If - - Dim bereich As Integer = BereichAngefordert - Try - If Not IsDBNull(row("AnforderungBereich")) Then - bereich = CInt(row("AnforderungBereich")) - End If - Catch - End Try - _bereichByCodeId(id) = bereich - - If bereich = BereichDokumentMain Then - cb.BackColor = Color.WhiteSmoke - cb.UseVisualStyleBackColor = False - ConfigureAnforderungCheckbox(cb, docsMainPanel) - docsMainPanel.Controls.Add(cb) - Else - ConfigureAnforderungCheckbox(cb, anforderungPanel) - anforderungPanel.Controls.Add(cb) - End If - - _anforderungCheckboxes.Add(cb) - Next - - ArrangeSections(docsMainPanel, anforderungPanel) - cbxSonstDok.BringToFront() - txtSonstigesDokumentFehlt.BringToFront() - cbxNichtLeserlich.BringToFront() - lblErrDokument.BringToFront() - - End Sub - - Private Function CreateAnforderungFlowPanel(name As String, left As Integer, top As Integer, width As Integer, height As Integer, backColor As Color) As FlowLayoutPanel - Dim found = pnlSendungsVermker.Controls.Find(name, True) - If found IsNot Nothing AndAlso found.Length > 0 Then - Dim existing = TryCast(found(0), FlowLayoutPanel) - If existing IsNot Nothing Then - existing.Left = left - existing.Top = top - existing.Width = width - existing.Height = height - existing.BackColor = backColor - existing.FlowDirection = FlowDirection.TopDown - existing.WrapContents = True - existing.AutoScroll = True - existing.Controls.Clear() - existing.BringToFront() - Return existing - End If - End If - - Dim flp As New FlowLayoutPanel() - flp.Name = name - flp.Left = left - flp.Top = top - flp.Width = width - flp.Height = height - flp.FlowDirection = FlowDirection.TopDown - flp.WrapContents = True - flp.AutoScroll = True - flp.BackColor = backColor - flp.Padding = New Padding(0) - flp.Margin = New Padding(0) - pnlSendungsVermker.Controls.Add(flp) - flp.BringToFront() - Return flp - End Function - - Private Sub ConfigureAnforderungCheckbox(cb As CheckBox, container As Control) - If cb Is Nothing OrElse container Is Nothing Then Return - - cb.AutoSize = False - cb.Height = 20 - - Dim cols As Integer = 2 - Dim colGap As Integer = 14 - Dim minCbWidth As Integer = 120 - If String.Equals(container.Name, "flpDokumenteFehlenMain", StringComparison.OrdinalIgnoreCase) Then - cols = 3 - colGap = 8 - minCbWidth = 150 - End If - Dim usableWidth = Math.Max(120, container.Width - 12) - Dim cbWidth = CInt(Math.Floor((usableWidth - ((cols - 1) * colGap)) / cols)) - cb.Width = Math.Max(minCbWidth, cbWidth) - End Sub - - Private Sub PositionDocumentEditorAndUpload() - EnsureDocumentEditorControls() - - Dim topSectionBottom = Math.Max(cbxSonstDok.Bottom, lblErrDokument.Bottom) - - pnlDocumentEditor.Left = 8 - pnlDocumentEditor.Top = topSectionBottom + 12 - pnlDocumentEditor.Width = pnlSendungsVermker.Width - 16 - pnlDocumentEditor.Height = 152 - pnlDocumentEditor.BackColor = Color.WhiteSmoke - pnlDocumentEditor.BringToFront() - - Label5.Top = pnlDocumentEditor.Bottom + 8 - Label5.BackColor = Color.WhiteSmoke - Label5.BringToFront() - - Label20.Left = Label5.Right + 10 - Label20.Top = Label5.Top + 2 - Label20.BackColor = Color.WhiteSmoke - Label20.AutoSize = True - Label20.ForeColor = Color.FromArgb(0, 102, 153) - Label20.Text = "Bitte zuerst Dokument(e) oben auswählen." - Label20.BringToFront() - - lblCustomerUploadLanguage.Top = Label5.Bottom + 10 - lblCustomerUploadLanguage.BackColor = Color.WhiteSmoke - lblCustomerUploadLanguage.BringToFront() - cmbCustomerUploadLanguage.Top = lblCustomerUploadLanguage.Top - 3 - cmbCustomerUploadLanguage.BringToFront() - - lblCustomerUploadValidityHours.Top = lblCustomerUploadLanguage.Top - lblCustomerUploadValidityHours.BackColor = Color.WhiteSmoke - lblCustomerUploadValidityHours.BringToFront() - nudCustomerUploadValidityHours.Top = lblCustomerUploadLanguage.Top - 2 - nudCustomerUploadValidityHours.BringToFront() - - btnCustomerUploadLink.Top = lblCustomerUploadLanguage.Top - 4 - btnCustomerUploadLink.BringToFront() - - lblCustomerUploadEmail.Top = lblCustomerUploadLanguage.Top + 26 - lblCustomerUploadEmail.BackColor = Color.WhiteSmoke - lblCustomerUploadEmail.BringToFront() - txtCustomerUploadEmail.Top = lblCustomerUploadEmail.Top - 3 - txtCustomerUploadEmail.BringToFront() - - btnCustomerUploadEmail.Top = txtCustomerUploadEmail.Top - 2 - btnCustomerUploadEmail.BringToFront() - - lblCustomerUploadEmailText.Top = lblCustomerUploadEmail.Top + 22 - lblCustomerUploadEmailText.BackColor = Color.WhiteSmoke - lblCustomerUploadEmailText.BringToFront() - txtCustomerUploadEmailText.Top = lblCustomerUploadEmailText.Top - 3 - txtCustomerUploadEmailText.BringToFront() - - pnlCustomerUploadSeparator.Visible = False - - PictureBox1.Height = txtCustomerUploadEmailText.Bottom + 12 - End Sub - - Private Sub ArrangeSections(docsMainPanel As FlowLayoutPanel, anforderungPanel As FlowLayoutPanel) - If docsMainPanel Is Nothing OrElse anforderungPanel Is Nothing Then Return - - Label13.Top = anforderungPanel.Bottom + 14 - PictureBox4.Top = Label13.Top - 10 - - optSpeditionWeitergeleitet.Top = Label13.Bottom + 10 - txtSpedition.Top = optSpeditionWeitergeleitet.Top - 2 - Label2.Top = optSpeditionWeitergeleitet.Top - 18 - Label3.Top = optSpeditionWeitergeleitet.Top + 1 - lblErrSpedition.Top = Label2.Top - - optFreierText.Top = optSpeditionWeitergeleitet.Bottom + 9 - txtFreierText.Top = optFreierText.Top - 2 - Label17.Top = txtFreierText.Bottom + 4 - Label9.Top = Label17.Top - lblErrGrund.Top = Label17.Top - - Label4.Top = Label17.Bottom + 14 - optFremd_SendungAvisiert.Top = Label4.Bottom + 7 - optFremd_ATB.Top = optFremd_SendungAvisiert.Bottom + 6 - optATAangefordert.Top = optFremd_ATB.Top - - PictureBox4.Height = (optFremd_ATB.Bottom + 12) - PictureBox4.Top - - lblZustzlFreitext.Top = PictureBox4.Bottom + 8 - txtDetail.Top = lblZustzlFreitext.Bottom + 4 - btnOK.Top = txtDetail.Top - lblErr240Zeichen.Top = txtDetail.Top - 16 - - Dim contentBottom = Math.Max(btnOK.Bottom, txtDetail.Bottom) + 12 - pnlSendungsVermker.Height = contentBottom - pnlMain.Height = contentBottom - Me.ClientSize = New Size(Me.ClientSize.Width, contentBottom) - End Sub - - Private flpDocumentTabs As FlowLayoutPanel - - Private Sub EnsureDocumentEditorControls() - If pnlDocumentEditor IsNot Nothing Then Return - - pnlDocumentEditor = New Panel() - pnlDocumentEditor.BackColor = Color.WhiteSmoke - pnlDocumentEditor.BorderStyle = BorderStyle.FixedSingle - pnlSendungsVermker.Controls.Add(pnlDocumentEditor) - - flpDocumentTabs = New FlowLayoutPanel() - flpDocumentTabs.Location = New Point(0, 0) - flpDocumentTabs.Width = pnlDocumentEditor.Width - flpDocumentTabs.Height = 50 - flpDocumentTabs.BackColor = Color.FromArgb(220, 220, 220) - flpDocumentTabs.WrapContents = False - flpDocumentTabs.AutoScroll = True - flpDocumentTabs.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right - pnlDocumentEditor.Controls.Add(flpDocumentTabs) - - lblDocumentEditorTitle = New Label() - lblDocumentEditorTitle.AutoSize = True - lblDocumentEditorTitle.Font = New Font("Microsoft Sans Serif", 8.25!, FontStyle.Bold, GraphicsUnit.Point, CType(0, Byte)) - lblDocumentEditorTitle.Location = New Point(8, 58) - lblDocumentEditorTitle.Text = "Dokumentdetails" - pnlDocumentEditor.Controls.Add(lblDocumentEditorTitle) - - lblDocumentEditorName = New Label() - lblDocumentEditorName.AutoSize = True - lblDocumentEditorName.Location = New Point(8, 80) - lblDocumentEditorName.Text = "Dokumentname:" - pnlDocumentEditor.Controls.Add(lblDocumentEditorName) - - txtDocumentEditorName = New TextBox() - txtDocumentEditorName.BackColor = Color.White - txtDocumentEditorName.Location = New Point(110, 77) - txtDocumentEditorName.MaxLength = 120 - txtDocumentEditorName.Size = New Size(128, 20) - AddHandler txtDocumentEditorName.TextChanged, AddressOf DocumentEditorInputChanged - pnlDocumentEditor.Controls.Add(txtDocumentEditorName) - - lblDocumentEditorAnhangsart = New Label() - lblDocumentEditorAnhangsart.AutoSize = True - lblDocumentEditorAnhangsart.Location = New Point(248, 80) - lblDocumentEditorAnhangsart.Text = "Anhangsart:" - pnlDocumentEditor.Controls.Add(lblDocumentEditorAnhangsart) - - cmbDocumentEditorAnhangsart = New ComboBox() - cmbDocumentEditorAnhangsart.BackColor = Color.White - cmbDocumentEditorAnhangsart.DropDownStyle = ComboBoxStyle.DropDownList - cmbDocumentEditorAnhangsart.Location = New Point(320, 77) - cmbDocumentEditorAnhangsart.Size = New Size(124, 21) - EnsureAnhangsartenOptionsLoaded() - For Each o In _anhangsartenOptions - cmbDocumentEditorAnhangsart.Items.Add(o) - Next - AddHandler cmbDocumentEditorAnhangsart.SelectedIndexChanged, AddressOf DocumentEditorAnhangsartChanged - pnlDocumentEditor.Controls.Add(cmbDocumentEditorAnhangsart) - - lblDocumentEditorInfo = New Label() - lblDocumentEditorInfo.AutoSize = True - lblDocumentEditorInfo.Location = New Point(8, 104) - lblDocumentEditorInfo.Text = "Dokument Info:" - pnlDocumentEditor.Controls.Add(lblDocumentEditorInfo) - - txtDocumentEditorInfo = New TextBox() - txtDocumentEditorInfo.BackColor = Color.White - txtDocumentEditorInfo.Location = New Point(110, 101) - txtDocumentEditorInfo.MaxLength = 500 - txtDocumentEditorInfo.Size = New Size(334, 20) - txtDocumentEditorInfo.Text = DefaultDocumentBaseText - AddHandler txtDocumentEditorInfo.TextChanged, AddressOf DocumentEditorInputChanged - pnlDocumentEditor.Controls.Add(txtDocumentEditorInfo) - - lblDocumentEditorStatus = New Label() - lblDocumentEditorStatus.AutoSize = True - lblDocumentEditorStatus.ForeColor = Color.FromArgb(0, 102, 153) - lblDocumentEditorStatus.Location = New Point(8, 128) - lblDocumentEditorStatus.Text = "Wählen Sie ein Dokument, um Name und Dokument Info anzupassen." - pnlDocumentEditor.Controls.Add(lblDocumentEditorStatus) - End Sub - - Private Sub DocumentEditorInputChanged(sender As Object, e As EventArgs) - If _isLoadingDocumentEditor Then Return - If _selectedDocumentCodeId <= 0 Then Return - - _documentCustomNameByCodeId(_selectedDocumentCodeId) = If(txtDocumentEditorName.Text, "").Trim() - _documentBaseTextByCodeId(_selectedDocumentCodeId) = If(txtDocumentEditorInfo.Text, "").Trim() - - If flpDocumentTabs IsNot Nothing Then - Dim tab = TryCast(flpDocumentTabs.Controls("tab_" & _selectedDocumentCodeId), Panel) - If tab IsNot Nothing Then - Dim lblText = TryCast(tab.Controls("lblText"), Label) - Dim lblClose = TryCast(tab.Controls("lblClose"), Label) - If lblText IsNot Nothing AndAlso lblClose IsNot Nothing Then - lblText.Text = _documentCustomNameByCodeId(_selectedDocumentCodeId) - If lblText.Text = "" Then lblText.Text = "Unbenannt" - lblText.PerformLayout() - lblClose.Location = New Point(lblText.Right + 5, 5) - tab.Width = lblClose.Right + 5 - End If - End If - End If - End Sub - - Private Sub DocumentEditorAnhangsartChanged(sender As Object, e As EventArgs) - If _isLoadingDocumentEditor Then Return - If _selectedDocumentCodeId <= 0 Then Return - - Dim selected = TryCast(cmbDocumentEditorAnhangsart.SelectedItem, AnhangsartOption) - If selected Is Nothing Then Return - _selectedAnhangsartIdByCodeId(_selectedDocumentCodeId) = selected.Id - End Sub - - Private Sub EnsureAnhangsartenOptionsLoaded() - If _anhangsartenOptions.Count > 0 Then Return - - Dim dt As DataTable = Nothing - Try - dt = AvisoDAL.loadDataTableBySQL("SELECT [aa_id],[aa_bezeichnung],[aa_name] FROM [tblAvisoAnhangsarten] WHERE [aa_aktiv]=1 ORDER BY [aa_sort],[aa_bezeichnung]") - Catch - Return - End Try - - If dt Is Nothing Then Return - - For Each row As DataRow In dt.Rows - Dim id As Integer = 0 - Try - id = CInt(row("aa_id")) - Catch - Continue For - End Try - If id <= 0 Then Continue For - Dim alreadyAdded As Boolean = False - For Each existing In _anhangsartenOptions - If existing.Id = id Then - alreadyAdded = True - Exit For - End If - Next - If alreadyAdded Then Continue For - - Dim text = If(IsDBNull(row("aa_bezeichnung")), "", CStr(row("aa_bezeichnung"))).Trim() - If text = "" Then - text = If(IsDBNull(row("aa_name")), "", CStr(row("aa_name"))).Trim() - End If - If text = "" Then text = "#" & id.ToString() - - _anhangsartenOptions.Add(New AnhangsartOption(id, text)) - Next - End Sub - - Private Sub SelectAnhangsartInEditor(anhangsartId As Integer) - If cmbDocumentEditorAnhangsart Is Nothing Then Return - cmbDocumentEditorAnhangsart.SelectedIndex = -1 - If anhangsartId <= 0 Then Return - - For i = 0 To cmbDocumentEditorAnhangsart.Items.Count - 1 - Dim optionItem = TryCast(cmbDocumentEditorAnhangsart.Items(i), AnhangsartOption) - If optionItem Is Nothing Then Continue For - If optionItem.Id = anhangsartId Then - cmbDocumentEditorAnhangsart.SelectedIndex = i - Exit For - End If - Next - End Sub - - Private Function GetAnhangsartDisplayTextById(anhangsartId As Integer) As String - If anhangsartId <= 0 Then Return "" - EnsureAnhangsartenOptionsLoaded() - For Each optionItem In _anhangsartenOptions - If optionItem.Id = anhangsartId Then - Return If(optionItem.Text, "").Trim() - End If - Next - Return "" - End Function - - Private Function TryGetCheckboxCodeId(cb As CheckBox, ByRef codeId As Integer) As Boolean - codeId = 0 - If cb Is Nothing OrElse cb.Tag Is Nothing Then Return False - Return Integer.TryParse(cb.Tag.ToString(), codeId) AndAlso codeId > 0 - End Function - - Private Sub ClearDocumentEditor() - _selectedDocumentCodeId = 0 - _isLoadingDocumentEditor = True - txtDocumentEditorName.Text = "" - txtDocumentEditorInfo.Text = "" - If cmbDocumentEditorAnhangsart IsNot Nothing Then - cmbDocumentEditorAnhangsart.SelectedIndex = -1 - End If - _isLoadingDocumentEditor = False - If lblDocumentEditorStatus IsNot Nothing Then - lblDocumentEditorStatus.Text = "Wählen Sie ein Dokument, um Name und Dokument Info anzupassen." - End If - End Sub - - Private Sub SelectDocument(codeId As Integer) - _selectedDocumentCodeId = codeId - - If codeId <= 0 Then - ClearDocumentEditor() - SyncTabs() - Return - End If - - Dim targetCb As CheckBox = Nothing - For Each cb In _anforderungCheckboxes - If cb.Tag IsNot Nothing AndAlso cb.Tag.ToString() = codeId.ToString() Then - targetCb = cb - Exit For - End If - Next - - If targetCb IsNot Nothing Then - Dim anhangsartId = GetEffectiveAnhangsartId(targetCb) - - Dim customName = "" - If _documentCustomNameByCodeId.ContainsKey(codeId) Then - customName = If(_documentCustomNameByCodeId(codeId), "").Trim() - Else - customName = GetAnhangsartDisplayTextById(anhangsartId) - _documentCustomNameByCodeId(codeId) = customName - End If - - Dim baseText = GetDocumentBaseTextByCodeId(codeId) - - _isLoadingDocumentEditor = True - txtDocumentEditorName.Text = customName - txtDocumentEditorInfo.Text = baseText - SelectAnhangsartInEditor(anhangsartId) - _isLoadingDocumentEditor = False - - If anhangsartId > 0 Then - _selectedAnhangsartIdByCodeId(codeId) = anhangsartId - End If - - lblDocumentEditorStatus.ForeColor = Color.FromArgb(0, 102, 153) - lblDocumentEditorStatus.Text = "Ausgewählt: " & If(targetCb.Text, "").Trim() - End If - - SyncTabs() - End Sub - - Private Function CreateTab(codeId As Integer, text As String) As Panel - Dim pnl As New Panel() - pnl.Name = "tab_" & codeId - pnl.Tag = codeId - pnl.Height = 28 - pnl.BackColor = Color.White - pnl.BorderStyle = BorderStyle.FixedSingle - pnl.Margin = New Padding(2, 4, 2, 0) - pnl.Cursor = Cursors.Hand - - Dim lblText As New Label() - lblText.Name = "lblText" - lblText.Text = If(text = "", "Unbenannt", text) - lblText.AutoSize = True - lblText.Location = New Point(5, 5) - lblText.Tag = codeId - lblText.Cursor = Cursors.Hand - AddHandler lblText.Click, AddressOf Tab_Click - pnl.Controls.Add(lblText) - - Dim lblClose As New Label() - lblClose.Name = "lblClose" - lblClose.Text = "X" - lblClose.AutoSize = True - lblClose.ForeColor = Color.Red - lblClose.Font = New Font("Microsoft Sans Serif", 8.25!, FontStyle.Bold) - lblClose.Cursor = Cursors.Hand - lblClose.Tag = codeId - AddHandler lblClose.Click, AddressOf TabClose_Click - pnl.Controls.Add(lblClose) - - lblText.PerformLayout() - lblClose.Location = New Point(lblText.Right + 5, 5) - pnl.Width = lblClose.Right + 5 - - AddHandler pnl.Click, AddressOf Tab_Click - - Return pnl - End Function - - Private Sub SyncTabs() - If flpDocumentTabs Is Nothing Then Return - - flpDocumentTabs.SuspendLayout() - - Dim requiredCodeIds As New List(Of Integer) - For Each cb In _anforderungCheckboxes - If cb.Checked Then - Dim codeId As Integer = 0 - If Integer.TryParse(cb.Tag.ToString(), codeId) Then - If _bereichByCodeId.ContainsKey(codeId) AndAlso _bereichByCodeId(codeId) = BereichDokumentMain Then - requiredCodeIds.Add(codeId) - End If - End If - End If - Next - - Dim i As Integer = flpDocumentTabs.Controls.Count - 1 - While i >= 0 - Dim pnl = TryCast(flpDocumentTabs.Controls(i), Panel) - If pnl IsNot Nothing Then - Dim codeId = CInt(pnl.Tag) - If Not requiredCodeIds.Contains(codeId) Then - flpDocumentTabs.Controls.RemoveAt(i) - pnl.Dispose() - End If - End If - i -= 1 - End While - - For Each codeId In requiredCodeIds - Dim existingTab = TryCast(flpDocumentTabs.Controls("tab_" & codeId), Panel) - Dim text = "" - If _documentCustomNameByCodeId.ContainsKey(codeId) Then - text = _documentCustomNameByCodeId(codeId) - End If - If text = "" Then - For Each cb In _anforderungCheckboxes - If cb.Tag IsNot Nothing AndAlso cb.Tag.ToString() = codeId.ToString() Then - text = cb.Text - Exit For - End If - Next - End If - - If existingTab Is Nothing Then - existingTab = CreateTab(codeId, text) - flpDocumentTabs.Controls.Add(existingTab) - Else - Dim lblText = TryCast(existingTab.Controls("lblText"), Label) - Dim lblClose = TryCast(existingTab.Controls("lblClose"), Label) - If lblText IsNot Nothing AndAlso lblClose IsNot Nothing Then - lblText.Text = If(text = "", "Unbenannt", text) - lblText.PerformLayout() - lblClose.Location = New Point(lblText.Right + 5, 5) - existingTab.Width = lblClose.Right + 5 - End If - End If - - If codeId = _selectedDocumentCodeId Then - existingTab.BackColor = Color.White - existingTab.BorderStyle = BorderStyle.FixedSingle - existingTab.Height = 28 - existingTab.Margin = New Padding(2, 2, 2, 0) - Dim lblText = TryCast(existingTab.Controls("lblText"), Label) - If lblText IsNot Nothing Then lblText.Font = New Font("Microsoft Sans Serif", 8.25!, FontStyle.Bold) - Else - existingTab.BackColor = Color.LightGray - existingTab.BorderStyle = BorderStyle.None - existingTab.Height = 25 - existingTab.Margin = New Padding(2, 5, 2, 0) - Dim lblText = TryCast(existingTab.Controls("lblText"), Label) - If lblText IsNot Nothing Then lblText.Font = New Font("Microsoft Sans Serif", 8.25!, FontStyle.Regular) - End If - Next - - flpDocumentTabs.ResumeLayout() - - If _selectedDocumentCodeId > 0 AndAlso Not requiredCodeIds.Contains(_selectedDocumentCodeId) Then - If requiredCodeIds.Count > 0 Then - SelectDocument(requiredCodeIds(0)) - Else - ClearDocumentEditor() - End If - ElseIf _selectedDocumentCodeId = 0 AndAlso requiredCodeIds.Count > 0 Then - SelectDocument(requiredCodeIds(0)) - End If - End Sub - - Private Sub Tab_Click(sender As Object, e As EventArgs) - Dim ctrl = TryCast(sender, Control) - If ctrl IsNot Nothing AndAlso ctrl.Tag IsNot Nothing Then - Dim codeId As Integer = 0 - If Integer.TryParse(ctrl.Tag.ToString(), codeId) Then - SelectDocument(codeId) - End If - End If - End Sub - - Private Sub TabClose_Click(sender As Object, e As EventArgs) - Dim ctrl = TryCast(sender, Control) - If ctrl IsNot Nothing AndAlso ctrl.Tag IsNot Nothing Then - Dim codeId As Integer = 0 - If Integer.TryParse(ctrl.Tag.ToString(), codeId) Then - For Each cb In _anforderungCheckboxes - If cb.Tag IsNot Nothing AndAlso cb.Tag.ToString() = codeId.ToString() Then - cb.Checked = False - Exit For - End If - Next - End If - End If - End Sub - - Private Sub LoadDocumentEditorForCheckbox(cb As CheckBox) - EnsureDocumentEditorControls() - - Dim codeId As Integer = 0 - If Not TryGetCheckboxCodeId(cb, codeId) Then - _selectedDocumentCodeId = 0 - Return - End If - - _selectedDocumentCodeId = codeId - Dim anhangsartId = GetEffectiveAnhangsartId(cb) - - Dim customName = "" - If _documentCustomNameByCodeId.ContainsKey(codeId) Then - customName = If(_documentCustomNameByCodeId(codeId), "").Trim() - Else - customName = GetAnhangsartDisplayTextById(anhangsartId) - _documentCustomNameByCodeId(codeId) = customName - End If - - Dim baseText = GetDocumentBaseTextByCodeId(codeId) - - _isLoadingDocumentEditor = True - txtDocumentEditorName.Text = customName - txtDocumentEditorInfo.Text = baseText - SelectAnhangsartInEditor(anhangsartId) - _isLoadingDocumentEditor = False - - If anhangsartId > 0 Then - _selectedAnhangsartIdByCodeId(codeId) = anhangsartId - End If - - lblDocumentEditorStatus.ForeColor = Color.FromArgb(0, 102, 153) - lblDocumentEditorStatus.Text = "Ausgewählt: " & If(cb.Text, "").Trim() - End Sub - - Private Function GetEffectiveDocumentName(cb As CheckBox) As String - If cb Is Nothing Then Return "" - Dim codeId As Integer = 0 - If TryGetCheckboxCodeId(cb, codeId) Then - If _documentCustomNameByCodeId.ContainsKey(codeId) Then - Dim customName = If(_documentCustomNameByCodeId(codeId), "").Trim() - Return customName - End If - End If - Return "" - End Function - - Private Function GetDocumentBaseText(cb As CheckBox) As String - If cb Is Nothing Then Return "" - Dim codeId As Integer = 0 - If TryGetCheckboxCodeId(cb, codeId) Then - Return GetDocumentBaseTextByCodeId(codeId) - End If - Return DefaultDocumentBaseText - End Function - - Private Function GetDocumentBaseTextByCodeId(codeId As Integer) As String - If codeId > 0 AndAlso _documentBaseTextByCodeId.ContainsKey(codeId) Then - Dim configuredBaseText = If(_documentBaseTextByCodeId(codeId), "").Trim() - If configuredBaseText <> "" Then Return configuredBaseText - End If - Return DefaultDocumentBaseText - End Function - - Private Function GetEffectiveAnhangsartId(cb As CheckBox) As Integer - If cb Is Nothing Then Return 0 - - Dim codeId As Integer = 0 - If TryGetCheckboxCodeId(cb, codeId) Then - If _selectedAnhangsartIdByCodeId.ContainsKey(codeId) Then - Dim selectedId = _selectedAnhangsartIdByCodeId(codeId) - If selectedId > 0 Then Return selectedId - End If - End If - - Dim defaultId As Integer = 0 - If _anhangsartIdByCheckbox.TryGetValue(cb, defaultId) Then - Return defaultId - End If - - Return 0 - End Function - - Private Function BuildUploadCustomText(baseText As String) As String - Dim effectiveBaseText = If(baseText, "").Trim() - If effectiveBaseText = "" Then effectiveBaseText = DefaultDocumentBaseText - Return effectiveBaseText - End Function - - Private Function ValidateDocumentSelectionPayload(documentName As String, baseText As String, anhangsartId As Integer, ByRef validationError As String) As Boolean - validationError = "" - If anhangsartId <= 0 Then - validationError = "ANHANGSART_ID_FEHLT" - Return False - End If - - documentName = If(documentName, "").Trim() - If documentName = "" Then - validationError = "DOKUMENTNAME_FEHLT" - Return False - End If - If documentName.Length > 120 Then - validationError = "DOKUMENTNAME_ZU_LANG" - Return False - End If - - If If(baseText, "").Trim().Length > 500 Then - validationError = "BASETEXT_ZU_LANG" - Return False - End If - - Return True - End Function - - Private Sub DynamicAnforderungCheckboxChanged(sender As Object, e As EventArgs) - Dim cb = TryCast(sender, CheckBox) - If cb Is Nothing Then Return - - Dim bereich As Integer = 0 - Dim codeId As Integer = 0 - If cb.Tag IsNot Nothing Then - If Integer.TryParse(cb.Tag.ToString(), codeId) Then - If _bereichByCodeId.ContainsKey(codeId) Then - bereich = _bereichByCodeId(codeId) - Else - bereich = BereichAngefordert - End If - End If - End If - - If bereich = BereichAngefordert Then - Return - End If - - If cb.Checked Then - SelectDocument(codeId) - Else - SyncTabs() - End If - End Sub ' Private Sub btnAbbruch_Click(sender As System.Object, e As System.EventArgs) Handles btnAbbruch.Click ' Me.Close() @@ -1027,32 +156,30 @@ Public Class frmAddSendungsvermerkShort insertSendungsVermerk(SendungID, myAviso.AvisoID, txtFreierText.Text.Trim & " - offen", 101) End If - For Each cb In _anforderungCheckboxes - If cb Is Nothing OrElse Not cb.Checked Then Continue For + If cbxAuftrag.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Auftrag für Sendung '" & txtSendung.Text.Trim & "' fehlt - angefordert", 1) + If cbxRechnung.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Rechnung für Sendung '" & txtSendung.Text.Trim & "' fehlt / mangelhaft - angefordert", 3) + If cbxLS.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Lieferschein für Sendung '" & txtSendung.Text.Trim & "' fehlt - angefordert", 5) + If cbxATR.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "ATR für Sendung '" & txtSendung.Text.Trim & "' fehlt - angefordert", 7) + If cbxVollmacht.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Vollmacht für Sendung '" & txtSendung.Text.Trim & "' fehlt - angefordert", 9) + If cbxCMR.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "CMR bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 11) + If cbxPackliste.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Packliste bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 90) + If cbxRgBest.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Rechnungsbestätigung bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 55) + If optGewPackAngefordert.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Gewicht/Packstücke bei Sendung '" & txtSendung.Text.Trim & "' mangelhaft - angefordert", 103) + If optZolltarifnummerAngefordert.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Zolltarifnummer bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 105) + If optKostenbestaetigungAngefordert.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Kostenbestaetigung bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 107) - Dim codeId As Integer - Try - codeId = CInt(cb.Tag) - Catch - Continue For - End Try - - Dim text = "" - If _backendBezeichnungByCodeId.ContainsKey(codeId) Then - text = If(_backendBezeichnungByCodeId(codeId), "").Trim() - End If - If text = "" Then text = cb.Text.Trim() - Dim sendText = txtSendung.Text.Trim() - If text <> "" AndAlso sendText <> "" AndAlso InStr(text, "sendung", CompareMethod.Text) = 0 Then - text &= " bei Sendung '" & sendText & "'" - End If - - If text <> "" Then insertSendungsVermerk(SendungID, myAviso.AvisoID, text, codeId) - Next + If optFrachtkostenAngefordert.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Frachtkosten bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 74) + If optAbsenderbestätigung.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Absenderbestätigung bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 76) + If optKundeNichtErreichbar.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Kunde bei Sendung '" & txtSendung.Text.Trim & "' nicht erreichbar", 70) + If optFahrerKeinATR.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Fahrer ohne A.TR bei Sendung '" & txtSendung.Text.Trim & "'", 71) If optFremd_ATB.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "ATB von Fremdeinsteller erhalten bei Sendung '" & txtSendung.Text.Trim & "' ", 72) If optFremd_SendungAvisiert.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Sendung '" & txtSendung.Text.Trim & "' an Fremdeinsteller avisiert", 73) ' If optSndUmmelden.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Sendung '" & txtSendung.Text.Trim & "' umgemeldet", 94) + If optDraft.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "T2 Draft OK bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 118) + + + If optUeberwachungsdok.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Ü-Dok bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 53) If cbxSonstDok.Checked Then If txtSonstigesDokumentFehlt.Text.Trim = "" Then @@ -1064,6 +191,9 @@ Public Class frmAddSendungsvermerkShort If cbxNichtLeserlich.Checked Then insertSendungsVermerk(SendungID, myAviso.AvisoID, "Dokument(e) nachgefordert, da nicht leserlich.", 42) + If optVorkasseAngefordert.Checked = True Then + insertSendungsVermerk(SendungID, myAviso.AvisoID, "Vorauskasse bei Sendung '" & txtSendung.Text.Trim & "' angefordert", 13) + End If If optSpeditionWeitergeleitet.Checked = True Then If txtSpedition.Text.Trim = "" Then showErr(lblErrSpedition) @@ -1076,6 +206,9 @@ Public Class frmAddSendungsvermerkShort insertSendungsVermerk(SendungID, myAviso.AvisoID, "Sendung '" & txtSendung.Text.Trim & "' in Vorbereitung.", 31) VermerkeDAL.UpdateSendungVorbereitet(AvisoID, SendungID, VERAG_PROG_ALLGEMEIN.cGlobal.AktiverMitarbeiter.MitarbeiterID, True) End If + If optKontaktdatenAngefordert.Checked = True Then + insertSendungsVermerk(SendungID, myAviso.AvisoID, "Kontaktdaten bei Sendung '" & txtSendung.Text.Trim & "' - angefordert", 36) + End If ' If optSendungVorbereitet.Checked = True Then 'insertSendungsVermerk(SendungID,myAviso.AvisoID, "Sendung '" & txtSendung.Text.Trim & "' Vorbereitung abgeschlossen.", 32) ' VermerkeDAL.UpdateSendungVorbereitet(AvisoID, SendungID, VERAG_PROG_ALLGEMEIN.cglobal.AktiverMitarbeiter.MitarbeiterID, False) @@ -1166,7 +299,8 @@ Public Class frmAddSendungsvermerkShort ' optDokumente.Checked = True 'End Sub - Private Sub cbxAuftrag_CheckedChanged(sender As Object, e As EventArgs) Handles cbxSonstDok.CheckedChanged, cbxNichtLeserlich.CheckedChanged + Private Sub cbxAuftrag_CheckedChanged(sender As Object, e As EventArgs) Handles cbxAuftrag.CheckedChanged, cbxRechnung.CheckedChanged, cbxLS.CheckedChanged, + cbxCMR.CheckedChanged, cbxATR.CheckedChanged, cbxVollmacht.CheckedChanged, cbxSonstDok.CheckedChanged, cbxNichtLeserlich.CheckedChanged, cbxPackliste.CheckedChanged ' optDokumente.Checked = True End Sub Private Sub SonstChanged(sender As Object, e As EventArgs) Handles txtSonstigesDokumentFehlt.TextChanged @@ -1198,7 +332,7 @@ Public Class frmAddSendungsvermerkShort If (p.Y + Me.Height) > My.Computer.Screen.WorkingArea.Height Then p.Y = My.Computer.Screen.WorkingArea.Height - Me.Height Me.Location = p '.Me.PointToClient(System.Cursor.Position) txtSendung.SelectionLength = 0 - txtFreierText.Focus() + cbxAuftrag.Focus() End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnCLose.Click @@ -1213,601 +347,4 @@ Public Class frmAddSendungsvermerkShort Me.Close() End If End Sub - - Private Sub btnCustomerUploadLink_Click(sender As Object, e As EventArgs) Handles btnCustomerUploadLink.Click - Dim validityHours = CInt(nudCustomerUploadValidityHours.Value) - - Dim config = GetCustomerPortalApiConfig() - If config Is Nothing Then Exit Sub - - Dim jwtToken = "" - Dim authErr = "" - If Not TryGetCustomerPortalJwtToken(config, jwtToken, authErr) Then - MsgBox("Fehler bei Authentifizierung: " & authErr, vbExclamation) - Exit Sub - End If - - Dim anhangsartenMap As Dictionary(Of String, Integer) = Nothing - Dim anhangsartenErr = "" - If Not TryGetCustomerPortalAnhangsartenMap(config, jwtToken, anhangsartenMap, anhangsartenErr) Then - MsgBox("Fehler beim Laden der Dokumentarten: " & anhangsartenErr, vbExclamation) - Exit Sub - End If - - Dim requirements = BuildCustomerUploadRequirements(anhangsartenMap) - If requirements Is Nothing Then - Exit Sub - End If - If requirements.Count = 0 Then - MsgBox("Bitte mindestens ein Dokument im Bereich 'Dokument(e) fehlen' auswählen.", vbInformation) - Label20.ForeColor = Color.Red - Label20.Text = "Für den Upload-Link muss mindestens ein Dokument ausgewählt sein." - Exit Sub - End If - Label20.ForeColor = Color.FromArgb(0, 102, 153) - Label20.Text = "Bitte zuerst Dokument(e) oben auswählen." - - Cursor = Cursors.WaitCursor - Try - Dim linkUrl = "" - Dim errorCode = "" - If Not TryCreateCustomerUploadLinkMultiWithoutEmail(config, requirements, validityHours, linkUrl, errorCode) Then - MsgBox("Fehler beim Erzeugen des Upload-Links: " & errorCode, vbExclamation) - Exit Sub - End If - - If linkUrl <> "" Then - Clipboard.SetText(linkUrl) - MsgBox("Upload-Link wurde in die Zwischenablage kopiert.", vbInformation) - Else - MsgBox("Upload-Link konnte nicht aus der Antwort gelesen werden.", vbExclamation) - End If - Finally - Cursor = Cursors.Default - End Try - End Sub - - Private Sub btnCustomerUploadEmail_Click(sender As Object, e As EventArgs) Handles btnCustomerUploadEmail.Click - Dim recipient = If(txtCustomerUploadEmail.Text, "").Trim() - If recipient = "" Then - MsgBox("Bitte eine E-Mail-Adresse eingeben.", vbInformation) - txtCustomerUploadEmail.Focus() - Exit Sub - End If - - Try - Dim addr As New MailAddress(recipient) - recipient = addr.Address - Catch - MsgBox("E-Mail-Adresse ist ungültig.", vbInformation) - txtCustomerUploadEmail.Focus() - Exit Sub - End Try - - Dim emailText = If(txtCustomerUploadEmailText.Text, "").Trim() - If emailText = "" Then - MsgBox("Bitte den Text eintragen.", vbInformation) - txtCustomerUploadEmailText.Focus() - Exit Sub - End If - - Dim validityHours = CInt(nudCustomerUploadValidityHours.Value) - - Dim language = "" - If cmbCustomerUploadLanguage IsNot Nothing Then - language = If(TryCast(cmbCustomerUploadLanguage.SelectedItem, String), "") - If language = "" Then language = If(cmbCustomerUploadLanguage.Text, "").Trim() - End If - language = language.ToLowerInvariant() - If language <> "de" AndAlso language <> "en" AndAlso language <> "tr" AndAlso language <> "sr" AndAlso language <> "bg" Then - language = "de" - End If - - Dim config = GetCustomerPortalApiConfig() - If config Is Nothing Then Exit Sub - - Dim jwtToken = "" - Dim authErr = "" - If Not TryGetCustomerPortalJwtToken(config, jwtToken, authErr) Then - MsgBox("Fehler bei Authentifizierung: " & authErr, vbExclamation) - Exit Sub - End If - - Dim anhangsartenMap As Dictionary(Of String, Integer) = Nothing - Dim anhangsartenErr = "" - If Not TryGetCustomerPortalAnhangsartenMap(config, jwtToken, anhangsartenMap, anhangsartenErr) Then - MsgBox("Fehler beim Laden der Dokumentarten: " & anhangsartenErr, vbExclamation) - Exit Sub - End If - - Dim requirements = BuildCustomerUploadRequirements(anhangsartenMap) - If requirements Is Nothing Then - Exit Sub - End If - If requirements.Count = 0 Then - MsgBox("Bitte mindestens ein Dokument im Bereich 'Dokument(e) fehlen' auswählen.", vbInformation) - Label20.ForeColor = Color.Red - Label20.Text = "Für den Upload-Link muss mindestens ein Dokument ausgewählt sein." - Exit Sub - End If - Label20.ForeColor = Color.FromArgb(0, 102, 153) - Label20.Text = "Bitte zuerst Dokument(e) oben auswählen." - - Cursor = Cursors.WaitCursor - Try - Dim linkUrl = "" - Dim errorCode = "" - If Not TryRequestCustomerUploadLinkMultiWithEmail(config, requirements, recipient, emailText, language, validityHours, linkUrl, errorCode) Then - MsgBox("Fehler beim Versand der E-Mail: " & errorCode, vbExclamation) - Exit Sub - End If - - If linkUrl <> "" Then - Clipboard.SetText(linkUrl) - End If - MsgBox("E-Mail wurde ausgelöst.", vbInformation) - Finally - Cursor = Cursors.Default - End Try - End Sub - - Private Class CustomerPortalApiConfig - Public Property BaseUrl As String - Public Property Username As String - Public Property Password As String - End Class - - Private Shared _customerPortalJwtToken As String = "" - Private Shared _customerPortalJwtExpUtc As DateTime = DateTime.MinValue - Private Shared _customerPortalAnhangsartenMap As Dictionary(Of String, Integer) = Nothing - Private Shared _customerPortalAnhangsartenFetchedUtc As DateTime = DateTime.MinValue - Private Shared _customerPortalCustomFilenameAnhangsartId As Integer = -1 - - Private Function GetCustomerPortalApiConfig() As CustomerPortalApiConfig - Dim baseUrl = If(System.Environment.GetEnvironmentVariable("AVISO_CUSTOMERPORTAL_API_BASEURL"), "").Trim() - If baseUrl = "" Then baseUrl = If(ConfigurationManager.AppSettings("CustomerPortalApiBaseUrl"), "").Trim() - If baseUrl = "" Then baseUrl = "https://login.server.verag.ag" - - Dim username = If(System.Environment.GetEnvironmentVariable("AVISO_CUSTOMERPORTAL_API_USERNAME"), "").Trim() - If username = "" Then username = If(ConfigurationManager.AppSettings("CustomerPortalApiUsername"), "").Trim() - - Dim password = If(System.Environment.GetEnvironmentVariable("AVISO_CUSTOMERPORTAL_API_PASSWORD"), "").Trim() - If password = "" Then password = If(ConfigurationManager.AppSettings("CustomerPortalApiPassword"), "").Trim() - - If username = "" OrElse password = "" Then - MsgBox("CustomerPortalApiUsername/CustomerPortalApiPassword fehlt in App.config (oder ENV: AVISO_CUSTOMERPORTAL_API_USERNAME / AVISO_CUSTOMERPORTAL_API_PASSWORD).", vbExclamation) - Return Nothing - End If - - Return New CustomerPortalApiConfig With {.BaseUrl = baseUrl, .Username = username, .Password = password} - End Function - - Private Function TryGetCustomerPortalJwtToken(ByVal config As CustomerPortalApiConfig, ByRef jwtToken As String, ByRef errorCode As String) As Boolean - jwtToken = "" - errorCode = "" - - If _customerPortalJwtToken <> "" Then - If _customerPortalJwtExpUtc = DateTime.MinValue Then - jwtToken = _customerPortalJwtToken - Return True - End If - - If DateTime.UtcNow < _customerPortalJwtExpUtc.AddMinutes(-1) Then - jwtToken = _customerPortalJwtToken - Return True - End If - End If - - Dim url = config.BaseUrl.TrimEnd("/"c) & "/api/auth/login" - Dim payload As New Dictionary(Of String, Object) From { - {"username", config.Username}, - {"password", config.Password} - } - Dim jsonBody = JsonConvert.SerializeObject(payload) - - Try - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 - - Dim request = CType(WebRequest.Create(url), HttpWebRequest) - request.Method = "POST" - request.ContentType = "application/json" - request.Accept = "application/json" - request.Timeout = 15000 - - Using requestStream = request.GetRequestStream() - Using writer As New StreamWriter(requestStream, Encoding.UTF8) - writer.Write(jsonBody) - End Using - End Using - - Using response = CType(request.GetResponse(), HttpWebResponse) - Using reader As New StreamReader(response.GetResponseStream(), Encoding.UTF8) - Dim respText = reader.ReadToEnd() - Dim jobj = JObject.Parse(respText) - Dim token = (If(jobj("token"), New JValue(""))).ToString().Trim() - If token = "" Then - errorCode = "TOKEN_MISSING" - Return False - End If - - _customerPortalJwtToken = token - _customerPortalJwtExpUtc = ExtractJwtExpUtcOrMin(token) - - jwtToken = token - Return True - End Using - End Using - - Catch ex As WebException - Dim body = "" - Try - If ex.Response IsNot Nothing Then - Using respStream = ex.Response.GetResponseStream() - If respStream IsNot Nothing Then - Using reader As New StreamReader(respStream, Encoding.UTF8) - body = reader.ReadToEnd() - End Using - End If - End Using - End If - Catch - End Try - - If body <> "" Then - Try - Dim jobj = JObject.Parse(body) - errorCode = (If(jobj("message"), New JValue(ex.Message))).ToString() - Catch - errorCode = ex.Message - End Try - Else - errorCode = ex.Message - End If - Return False - Catch ex As Exception - errorCode = ex.Message - Return False - End Try - End Function - - Private Function ExtractJwtExpUtcOrMin(ByVal jwt As String) As DateTime - Try - If jwt Is Nothing Then Return DateTime.MinValue - Dim parts = jwt.Split("."c) - If parts.Length < 2 Then Return DateTime.MinValue - - Dim payloadJson = Encoding.UTF8.GetString(Base64UrlDecode(parts(1))) - Dim jobj = JObject.Parse(payloadJson) - Dim expToken = jobj("exp") - If expToken Is Nothing Then Return DateTime.MinValue - - Dim expSeconds As Long - If Long.TryParse(expToken.ToString(), expSeconds) Then - Return DateTimeOffset.FromUnixTimeSeconds(expSeconds).UtcDateTime - End If - Catch - End Try - Return DateTime.MinValue - End Function - - Private Function Base64UrlDecode(ByVal input As String) As Byte() - Dim s = If(input, "").Replace("-"c, "+"c).Replace("_"c, "/"c) - Select Case (s.Length Mod 4) - Case 2 - s &= "==" - Case 3 - s &= "=" - End Select - Return Convert.FromBase64String(s) - End Function - - Private Function BuildCustomerUploadRequirements(ByVal anhangsartenMap As Dictionary(Of String, Integer)) As List(Of Object) - Dim requirements As New List(Of Object) - - Dim missing As New List(Of String) - - For Each cb In _anforderungCheckboxes - If cb Is Nothing OrElse Not cb.Checked Then Continue For - - Dim documentType = GetEffectiveDocumentName(cb) - If documentType = "" Then Continue For - Dim baseText = GetDocumentBaseText(cb) - Dim validationError = "" - - Dim anhangsartId = GetEffectiveAnhangsartId(cb) - If anhangsartId <= 0 Then - missing.Add(documentType) - Continue For - End If - If Not ValidateDocumentSelectionPayload(documentType, baseText, anhangsartId, validationError) Then - MsgBox("Ungültige Eingabe für Dokument '" & documentType & "': " & validationError, vbInformation) - Return Nothing - End If - - AddCustomerUploadRequirementByAnhangsartId(requirements, documentType, anhangsartId, BuildUploadCustomText(baseText)) - Next - - If cbxSonstDok.Checked Then - Dim custom = If(txtSonstigesDokumentFehlt.Text, "").Trim() - If custom = "" Then - MsgBox("Bitte den Dokumentnamen eintragen.", vbInformation) - txtSonstigesDokumentFehlt.Focus() - Return Nothing - End If - AddCustomerUploadRequirement(requirements, missing, anhangsartenMap, True, custom, {"SONSTIGES", "DOKUMENT"}, "Bitte " & custom & " hochladen.", True) - End If - - If missing.Count > 0 Then - MsgBox("Anhangsarten nicht gefunden: " & String.Join(", ", missing), vbExclamation) - Return Nothing - End If - - Return requirements - End Function - - Private Sub AddCustomerUploadRequirementByAnhangsartId(ByVal requirements As List(Of Object), ByVal documentType As String, ByVal anhangsartId As Integer, ByVal customText As String) - If requirements Is Nothing Then Exit Sub - If anhangsartId <= 0 Then Exit Sub - - Dim req As New Dictionary(Of String, Object) From { - {"documentType", documentType}, - {"anhangsartId", anhangsartId}, - {"customText", customText} - } - requirements.Add(req) - End Sub - - Private Sub AddCustomerUploadRequirement(ByVal requirements As List(Of Object), ByVal missing As List(Of String), ByVal anhangsartenMap As Dictionary(Of String, Integer), ByVal isSelected As Boolean, ByVal documentType As String, ByVal anhangsartenCandidates As String(), ByVal customText As String, ByVal allowCustomFilename As Boolean) - If Not isSelected Then Exit Sub - - Dim anhangsartId = ResolveAnhangsartId(anhangsartenCandidates, anhangsartenMap) - If anhangsartId <= 0 AndAlso allowCustomFilename AndAlso _customerPortalCustomFilenameAnhangsartId > 0 Then - anhangsartId = _customerPortalCustomFilenameAnhangsartId - End If - If anhangsartId <= 0 Then - missing.Add(documentType) - Exit Sub - End If - - Dim req As New Dictionary(Of String, Object) From { - {"documentType", documentType}, - {"anhangsartId", anhangsartId}, - {"customText", customText} - } - requirements.Add(req) - End Sub - - Private Function ResolveAnhangsartId(ByVal candidates As IEnumerable(Of String), ByVal anhangsartenMap As Dictionary(Of String, Integer)) As Integer - If candidates Is Nothing OrElse anhangsartenMap Is Nothing Then Return -1 - - For Each c In candidates - Dim key = If(c, "").Trim() - If key = "" Then Continue For - - Dim id As Integer - If anhangsartenMap.TryGetValue(key.ToUpperInvariant(), id) Then - Return id - End If - Next - - Return -1 - End Function - - Private Function TryGetCustomerPortalAnhangsartenMap(ByVal config As CustomerPortalApiConfig, ByVal jwtToken As String, ByRef anhangsartenMap As Dictionary(Of String, Integer), ByRef errorCode As String) As Boolean - anhangsartenMap = Nothing - errorCode = "" - - If _customerPortalAnhangsartenMap IsNot Nothing AndAlso _customerPortalAnhangsartenFetchedUtc <> DateTime.MinValue Then - If DateTime.UtcNow < _customerPortalAnhangsartenFetchedUtc.AddMinutes(30) Then - anhangsartenMap = _customerPortalAnhangsartenMap - Return True - End If - End If - - Dim url = config.BaseUrl.TrimEnd("/"c) & "/api/AvisoUpload/anhangsarten/all" - Dim request = CType(WebRequest.Create(url), HttpWebRequest) - request.Method = "GET" - request.Accept = "application/json" - request.Timeout = 15000 - request.Headers(HttpRequestHeader.Authorization) = "Bearer " & jwtToken - - Try - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 - Using response = CType(request.GetResponse(), HttpWebResponse) - Using reader As New StreamReader(response.GetResponseStream(), Encoding.UTF8) - Dim respText = reader.ReadToEnd() - If respText Is Nothing Then respText = "" - respText = respText.Trim() - - Dim map As New Dictionary(Of String, Integer)(StringComparer.OrdinalIgnoreCase) - Dim customFilenameId As Integer = -1 - - If respText.StartsWith("[") Then - Dim arr = JArray.Parse(respText) - For Each t In arr - Dim id = 0 - If t("id") IsNot Nothing AndAlso Integer.TryParse(t("id").ToString(), id) Then - Dim name = (If(t("name"), New JValue(""))).ToString().Trim() - Dim bez = (If(t("bezeichnung"), New JValue(""))).ToString().Trim() - If name <> "" Then map(name.ToUpperInvariant()) = id - If bez <> "" Then map(bez.ToUpperInvariant()) = id - If id = 24 Then customFilenameId = 24 - End If - Next - ElseIf respText.StartsWith("{") Then - Dim jobj = JObject.Parse(respText) - errorCode = (If(jobj("message"), If(jobj("code"), New JValue("ANHANGSARTEN_LOAD_FAILED")))).ToString() - Return False - Else - errorCode = "ANHANGSARTEN_INVALID_RESPONSE" - Return False - End If - - If map.Count = 0 Then - errorCode = "ANHANGSARTEN_EMPTY" - Return False - End If - - _customerPortalCustomFilenameAnhangsartId = customFilenameId - _customerPortalAnhangsartenMap = map - _customerPortalAnhangsartenFetchedUtc = DateTime.UtcNow - - anhangsartenMap = map - Return True - End Using - End Using - Catch ex As WebException - errorCode = ReadWebExceptionMessage(ex) - Return False - Catch ex As Exception - errorCode = ex.Message - Return False - End Try - End Function - - Private Function TryCreateCustomerUploadLinkMultiWithoutEmail(ByVal config As CustomerPortalApiConfig, ByVal requirements As List(Of Object), ByVal validityHours As Integer, ByRef linkUrl As String, ByRef errorCode As String) As Boolean - linkUrl = "" - errorCode = "" - - Dim url = config.BaseUrl.TrimEnd("/"c) & "/api/PublicCustomerDocuments/create-upload-link-multi" - Dim payload As New Dictionary(Of String, Object) From { - {"avisoId", AvisoID}, - {"validityHours", validityHours}, - {"requirements", requirements} - } - - If SendungID > 0 Then payload("sendungsId") = SendungID - - Dim jsonBody = JsonConvert.SerializeObject(payload) - - Dim jwtToken = "" - Dim authErr = "" - If Not TryGetCustomerPortalJwtToken(config, jwtToken, authErr) Then - errorCode = authErr - Return False - End If - - Try - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 - Return TryPostCustomerPortalJson(url, jwtToken, jsonBody, linkUrl, errorCode) - - Catch ex As WebException - errorCode = ReadWebExceptionMessage(ex) - Return False - Catch ex As Exception - errorCode = ex.Message - Return False - End Try - End Function - - Private Function TryRequestCustomerUploadLinkMultiWithEmail(ByVal config As CustomerPortalApiConfig, ByVal requirements As List(Of Object), ByVal recipientEmail As String, ByVal emailText As String, ByVal language As String, ByVal validityHours As Integer, ByRef linkUrl As String, ByRef errorCode As String) As Boolean - linkUrl = "" - errorCode = "" - - Dim url = config.BaseUrl.TrimEnd("/"c) & "/api/PublicCustomerDocuments/request-upload-link-multi" - If language Is Nothing OrElse language.Trim() = "" Then language = "de" - - Dim payload As New Dictionary(Of String, Object) From { - {"avisoId", AvisoID}, - {"emailText", emailText}, - {"language", language}, - {"validityHours", validityHours}, - {"requirements", requirements} - } - - If SendungID > 0 Then payload("sendungsId") = SendungID - payload("recipientEmail") = recipientEmail - - Dim jsonBody = JsonConvert.SerializeObject(payload) - - Dim jwtToken = "" - Dim authErr = "" - If Not TryGetCustomerPortalJwtToken(config, jwtToken, authErr) Then - errorCode = authErr - Return False - End If - - Try - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 - Return TryPostCustomerPortalJson(url, jwtToken, jsonBody, linkUrl, errorCode) - Catch ex As WebException - errorCode = ReadWebExceptionMessage(ex) - Return False - Catch ex As Exception - errorCode = ex.Message - Return False - End Try - End Function - - Private Function TryPostCustomerPortalJson(ByVal url As String, ByVal jwtToken As String, ByVal jsonBody As String, ByRef linkUrl As String, ByRef errorCode As String) As Boolean - Dim request = CType(WebRequest.Create(url), HttpWebRequest) - request.Method = "POST" - request.ContentType = "application/json" - request.Accept = "application/json" - request.Timeout = 15000 - request.Headers(HttpRequestHeader.Authorization) = "Bearer " & jwtToken - - Using requestStream = request.GetRequestStream() - Using writer As New StreamWriter(requestStream, Encoding.UTF8) - writer.Write(jsonBody) - End Using - End Using - - Using response = CType(request.GetResponse(), HttpWebResponse) - Using reader As New StreamReader(response.GetResponseStream(), Encoding.UTF8) - Dim respText = reader.ReadToEnd() - Dim jobj = JObject.Parse(respText) - Dim result = (If(jobj("result"), New JValue(""))).ToString() - If String.Equals(result, "pass", StringComparison.OrdinalIgnoreCase) Then - Dim link = (If(jobj.SelectToken("data.linkUrl"), New JValue(""))).ToString() - If link = "" Then link = (If(jobj.SelectToken("linkUrl"), New JValue(""))).ToString() - linkUrl = link - Return True - End If - errorCode = (If(jobj("message"), New JValue("UNKNOWN_ERROR"))).ToString() - Return False - End Using - End Using - End Function - - Private Function ReadWebExceptionMessage(ByVal ex As WebException) As String - Dim body = "" - Try - If ex.Response IsNot Nothing Then - Using respStream = ex.Response.GetResponseStream() - If respStream IsNot Nothing Then - Using reader As New StreamReader(respStream, Encoding.UTF8) - body = reader.ReadToEnd() - End Using - End If - End Using - End If - Catch - End Try - - If body <> "" Then - Try - Dim jobj = JObject.Parse(body) - Return (If(jobj("message"), New JValue(ex.Message))).ToString() - Catch - Return ex.Message - End Try - End If - - Return ex.Message - End Function - - Private Class AnhangsartOption - Public ReadOnly Id As Integer - Public ReadOnly Text As String - - Public Sub New(id As Integer, text As String) - Me.Id = id - Me.Text = If(text, "").Trim() - End Sub - - Public Overrides Function ToString() As String - Return Text - End Function - End Class End Class diff --git a/Aviso/frmHauptfensterNew.Designer.vb b/Aviso/frmHauptfensterNew.Designer.vb index 8ad9ada..9058ce1 100644 --- a/Aviso/frmHauptfensterNew.Designer.vb +++ b/Aviso/frmHauptfensterNew.Designer.vb @@ -267,19 +267,13 @@ Partial Class frmHauptfensterNew Me.Panel1 = New System.Windows.Forms.Panel() Me.Panel8 = New System.Windows.Forms.Panel() Me.FlowLayoutPanel1 = New System.Windows.Forms.FlowLayoutPanel() - Me.btnWichtigeStandort = New System.Windows.Forms.Button() - Me.Button4 = New System.Windows.Forms.Button() - Me.Button7 = New System.Windows.Forms.Button() - Me.Button9 = New System.Windows.Forms.Button() + Me.btnVIEW_LKW = New System.Windows.Forms.Button() + Me.btnVIEW_SND = New System.Windows.Forms.Button() + Me.btnVIEW_KOMBI = New System.Windows.Forms.Button() + Me.btnVIEW_Compliance = New System.Windows.Forms.Button() Me.Panel6 = New System.Windows.Forms.Panel() Me.PictureBox1 = New System.Windows.Forms.PictureBox() Me.FlowLayoutPanel2 = New System.Windows.Forms.FlowLayoutPanel() - Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel(Me.components) - Me.btnKunden = New System.Windows.Forms.Button() - Me.btnFakturierung = New System.Windows.Forms.Button() - Me.btnRg = New System.Windows.Forms.Button() - Me.btnKassenbuch = New System.Windows.Forms.Button() - Me.btnSpedBuch = New System.Windows.Forms.Button() Me.pnlOptionen = New System.Windows.Forms.Panel() Me.btnKasse_User = New System.Windows.Forms.Button() Me.btnKasse_LG = New System.Windows.Forms.Button() @@ -313,12 +307,21 @@ Partial Class frmHauptfensterNew Me.TabControl1 = New System.Windows.Forms.TabControl() Me.TabPage1 = New System.Windows.Forms.TabPage() Me.TabPage2 = New System.Windows.Forms.TabPage() - Me.btnMitarbeiterKonto = New VERAG_PROG_ALLGEMEIN.FlatButton() Me.Panel7 = New System.Windows.Forms.Panel() - Me.UsrCntlTestsystem1 = New VERAG_PROG_ALLGEMEIN.usrCntlTestsystem() - Me.UidAbfrageService1 = New VERAG_PROG_ALLGEMEIN.at.gv.bmf.finanzonline.uidAbfrageService() Me.cbxInfoChat = New System.Windows.Forms.CheckBox() + Me.UsrCntlTestsystem1 = New VERAG_PROG_ALLGEMEIN.usrCntlTestsystem() + Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel(Me.components) + Me.btnKunden = New System.Windows.Forms.Button() + Me.btnFakturierung = New System.Windows.Forms.Button() + Me.btnRg = New System.Windows.Forms.Button() + Me.btnKassenbuch = New System.Windows.Forms.Button() + Me.btnSpedBuch = New System.Windows.Forms.Button() + Me.btnMitarbeiterKonto = New VERAG_PROG_ALLGEMEIN.FlatButton() + Me.UidAbfrageService1 = New VERAG_PROG_ALLGEMEIN.at.gv.bmf.finanzonline.uidAbfrageService() Me.UsrCntlBenachrichtigungen2 = New AVISO.usrCntlBenachrichtigungen() + Me.btnVIEW_CustControling = New System.Windows.Forms.Button() + Me.btnDEFAULT_Selected = New System.Windows.Forms.Button() + Me.btnDEFAULT_UnSelected = New System.Windows.Forms.Button() Me.conMenuAviso.SuspendLayout() Me.MenuStrip1.SuspendLayout() Me.pnlDetailsRechts.SuspendLayout() @@ -344,7 +347,6 @@ Partial Class frmHauptfensterNew Me.Panel6.SuspendLayout() CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit() Me.FlowLayoutPanel2.SuspendLayout() - Me.MyFlowLayoutPanel1.SuspendLayout() Me.pnlOptionen.SuspendLayout() Me.Panel9.SuspendLayout() Me.cntxt.SuspendLayout() @@ -354,6 +356,7 @@ Partial Class frmHauptfensterNew Me.pnlLeft.SuspendLayout() Me.Panel5.SuspendLayout() Me.TabControl1.SuspendLayout() + Me.MyFlowLayoutPanel1.SuspendLayout() Me.SuspendLayout() ' 'mnuInfo @@ -2200,11 +2203,15 @@ Partial Class frmHauptfensterNew ' 'FlowLayoutPanel1 ' + Me.FlowLayoutPanel1.AutoScroll = True Me.FlowLayoutPanel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(50, Byte), Integer), CType(CType(100, Byte), Integer)) - Me.FlowLayoutPanel1.Controls.Add(Me.btnWichtigeStandort) - Me.FlowLayoutPanel1.Controls.Add(Me.Button4) - Me.FlowLayoutPanel1.Controls.Add(Me.Button7) - Me.FlowLayoutPanel1.Controls.Add(Me.Button9) + Me.FlowLayoutPanel1.Controls.Add(Me.btnVIEW_LKW) + Me.FlowLayoutPanel1.Controls.Add(Me.btnVIEW_SND) + Me.FlowLayoutPanel1.Controls.Add(Me.btnVIEW_KOMBI) + Me.FlowLayoutPanel1.Controls.Add(Me.btnVIEW_Compliance) + Me.FlowLayoutPanel1.Controls.Add(Me.btnVIEW_CustControling) + Me.FlowLayoutPanel1.Controls.Add(Me.btnDEFAULT_Selected) + Me.FlowLayoutPanel1.Controls.Add(Me.btnDEFAULT_UnSelected) Me.FlowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top Me.FlowLayoutPanel1.Location = New System.Drawing.Point(0, 0) Me.FlowLayoutPanel1.Margin = New System.Windows.Forms.Padding(3, 3, 3, 0) @@ -2212,75 +2219,75 @@ Partial Class frmHauptfensterNew Me.FlowLayoutPanel1.Size = New System.Drawing.Size(717, 65) Me.FlowLayoutPanel1.TabIndex = 6 ' - 'btnWichtigeStandort + 'btnVIEW_LKW ' - Me.btnWichtigeStandort.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnWichtigeStandort.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnWichtigeStandort.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(44, Byte), Integer), CType(CType(108, Byte), Integer)) - Me.btnWichtigeStandort.Location = New System.Drawing.Point(3, 16) - Me.btnWichtigeStandort.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) - Me.btnWichtigeStandort.Name = "btnWichtigeStandort" - Me.btnWichtigeStandort.Size = New System.Drawing.Size(158, 47) - Me.btnWichtigeStandort.TabIndex = 4 - Me.btnWichtigeStandort.TabStop = False - Me.btnWichtigeStandort.Text = "LKW" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "(FrontOffice)" - Me.ToolTip1.SetToolTip(Me.btnWichtigeStandort, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + Me.btnVIEW_LKW.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnVIEW_LKW.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnVIEW_LKW.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(44, Byte), Integer), CType(CType(108, Byte), Integer)) + Me.btnVIEW_LKW.Location = New System.Drawing.Point(3, 16) + Me.btnVIEW_LKW.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnVIEW_LKW.Name = "btnVIEW_LKW" + Me.btnVIEW_LKW.Size = New System.Drawing.Size(158, 47) + Me.btnVIEW_LKW.TabIndex = 4 + Me.btnVIEW_LKW.TabStop = False + Me.btnVIEW_LKW.Text = "LKW" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "(FrontOffice)" + Me.ToolTip1.SetToolTip(Me.btnVIEW_LKW, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & "d sortiert nach Dauer") - Me.btnWichtigeStandort.UseVisualStyleBackColor = False + Me.btnVIEW_LKW.UseVisualStyleBackColor = False ' - 'Button4 + 'btnVIEW_SND ' - Me.Button4.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) - Me.Button4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None - Me.Button4.FlatAppearance.BorderSize = 0 - Me.Button4.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.Button4.ForeColor = System.Drawing.Color.White - Me.Button4.Location = New System.Drawing.Point(167, 16) - Me.Button4.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) - Me.Button4.Name = "Button4" - Me.Button4.Size = New System.Drawing.Size(173, 47) - Me.Button4.TabIndex = 5 - Me.Button4.TabStop = False - Me.Button4.Text = "SENDUNGEN (Abklären/Vorschreiben)" - Me.ToolTip1.SetToolTip(Me.Button4, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + Me.btnVIEW_SND.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) + Me.btnVIEW_SND.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.btnVIEW_SND.FlatAppearance.BorderSize = 0 + Me.btnVIEW_SND.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnVIEW_SND.ForeColor = System.Drawing.Color.White + Me.btnVIEW_SND.Location = New System.Drawing.Point(167, 16) + Me.btnVIEW_SND.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnVIEW_SND.Name = "btnVIEW_SND" + Me.btnVIEW_SND.Size = New System.Drawing.Size(158, 47) + Me.btnVIEW_SND.TabIndex = 5 + Me.btnVIEW_SND.TabStop = False + Me.btnVIEW_SND.Text = "SENDUNGEN " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "(BackOffice)" + Me.ToolTip1.SetToolTip(Me.btnVIEW_SND, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & "d sortiert nach Dauer") - Me.Button4.UseVisualStyleBackColor = False + Me.btnVIEW_SND.UseVisualStyleBackColor = False ' - 'Button7 + 'btnVIEW_KOMBI ' - Me.Button7.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) - Me.Button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None - Me.Button7.FlatAppearance.BorderSize = 0 - Me.Button7.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.Button7.ForeColor = System.Drawing.Color.White - Me.Button7.Location = New System.Drawing.Point(346, 16) - Me.Button7.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) - Me.Button7.Name = "Button7" - Me.Button7.Size = New System.Drawing.Size(158, 47) - Me.Button7.TabIndex = 6 - Me.Button7.TabStop = False - Me.Button7.Text = "Kombiansicht" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "LKW/SENDUNGEN" - Me.ToolTip1.SetToolTip(Me.Button7, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + Me.btnVIEW_KOMBI.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) + Me.btnVIEW_KOMBI.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.btnVIEW_KOMBI.FlatAppearance.BorderSize = 0 + Me.btnVIEW_KOMBI.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnVIEW_KOMBI.ForeColor = System.Drawing.Color.White + Me.btnVIEW_KOMBI.Location = New System.Drawing.Point(331, 16) + Me.btnVIEW_KOMBI.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnVIEW_KOMBI.Name = "btnVIEW_KOMBI" + Me.btnVIEW_KOMBI.Size = New System.Drawing.Size(158, 47) + Me.btnVIEW_KOMBI.TabIndex = 6 + Me.btnVIEW_KOMBI.TabStop = False + Me.btnVIEW_KOMBI.Text = "Kombiansicht" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "LKW/SENDUNGEN" + Me.ToolTip1.SetToolTip(Me.btnVIEW_KOMBI, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & "d sortiert nach Dauer") - Me.Button7.UseVisualStyleBackColor = False + Me.btnVIEW_KOMBI.UseVisualStyleBackColor = False ' - 'Button9 + 'btnVIEW_Compliance ' - Me.Button9.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) - Me.Button9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None - Me.Button9.FlatAppearance.BorderSize = 0 - Me.Button9.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.Button9.ForeColor = System.Drawing.Color.White - Me.Button9.Location = New System.Drawing.Point(510, 16) - Me.Button9.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) - Me.Button9.Name = "Button9" - Me.Button9.Size = New System.Drawing.Size(158, 47) - Me.Button9.TabIndex = 7 - Me.Button9.TabStop = False - Me.Button9.Text = "BACKOFFICE" - Me.ToolTip1.SetToolTip(Me.Button9, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + Me.btnVIEW_Compliance.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) + Me.btnVIEW_Compliance.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.btnVIEW_Compliance.FlatAppearance.BorderSize = 0 + Me.btnVIEW_Compliance.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnVIEW_Compliance.ForeColor = System.Drawing.Color.White + Me.btnVIEW_Compliance.Location = New System.Drawing.Point(495, 16) + Me.btnVIEW_Compliance.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnVIEW_Compliance.Name = "btnVIEW_Compliance" + Me.btnVIEW_Compliance.Size = New System.Drawing.Size(158, 47) + Me.btnVIEW_Compliance.TabIndex = 7 + Me.btnVIEW_Compliance.TabStop = False + Me.btnVIEW_Compliance.Text = "Compliance" + Me.ToolTip1.SetToolTip(Me.btnVIEW_Compliance, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & "d sortiert nach Dauer") - Me.Button9.UseVisualStyleBackColor = False + Me.btnVIEW_Compliance.UseVisualStyleBackColor = False ' 'Panel6 ' @@ -2316,114 +2323,6 @@ Partial Class frmHauptfensterNew Me.FlowLayoutPanel2.Size = New System.Drawing.Size(608, 65) Me.FlowLayoutPanel2.TabIndex = 86 ' - 'MyFlowLayoutPanel1 - ' - Me.MyFlowLayoutPanel1.AutoScroll = True - Me.MyFlowLayoutPanel1.Controls.Add(Me.btnKunden) - Me.MyFlowLayoutPanel1.Controls.Add(Me.btnFakturierung) - Me.MyFlowLayoutPanel1.Controls.Add(Me.btnRg) - Me.MyFlowLayoutPanel1.Controls.Add(Me.btnKassenbuch) - Me.MyFlowLayoutPanel1.Controls.Add(Me.btnSpedBuch) - Me.MyFlowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top - Me.MyFlowLayoutPanel1.Font = New System.Drawing.Font("Segoe UI", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.MyFlowLayoutPanel1.Location = New System.Drawing.Point(181, 5) - Me.MyFlowLayoutPanel1.Name = "MyFlowLayoutPanel1" - Me.MyFlowLayoutPanel1.Size = New System.Drawing.Size(608, 65) - Me.MyFlowLayoutPanel1.TabIndex = 85 - ' - 'btnKunden - ' - Me.btnKunden.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnKunden.Cursor = System.Windows.Forms.Cursors.Default - Me.btnKunden.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnKunden.ForeColor = System.Drawing.Color.Black - Me.btnKunden.Image = CType(resources.GetObject("btnKunden.Image"), System.Drawing.Image) - Me.btnKunden.ImageAlign = System.Drawing.ContentAlignment.MiddleRight - Me.btnKunden.Location = New System.Drawing.Point(3, 3) - Me.btnKunden.Name = "btnKunden" - Me.btnKunden.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) - Me.btnKunden.Size = New System.Drawing.Size(150, 50) - Me.btnKunden.TabIndex = 2 - Me.btnKunden.TabStop = False - Me.btnKunden.Text = "Kunden" - Me.btnKunden.TextAlign = System.Drawing.ContentAlignment.MiddleLeft - Me.btnKunden.UseVisualStyleBackColor = False - ' - 'btnFakturierung - ' - Me.btnFakturierung.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnFakturierung.Cursor = System.Windows.Forms.Cursors.Default - Me.btnFakturierung.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnFakturierung.ForeColor = System.Drawing.Color.Black - Me.btnFakturierung.Image = CType(resources.GetObject("btnFakturierung.Image"), System.Drawing.Image) - Me.btnFakturierung.ImageAlign = System.Drawing.ContentAlignment.MiddleRight - Me.btnFakturierung.Location = New System.Drawing.Point(159, 3) - Me.btnFakturierung.Name = "btnFakturierung" - Me.btnFakturierung.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) - Me.btnFakturierung.Size = New System.Drawing.Size(150, 50) - Me.btnFakturierung.TabIndex = 11 - Me.btnFakturierung.TabStop = False - Me.btnFakturierung.Text = "Fakturierung" - Me.btnFakturierung.TextAlign = System.Drawing.ContentAlignment.MiddleLeft - Me.btnFakturierung.UseVisualStyleBackColor = False - Me.btnFakturierung.Visible = False - ' - 'btnRg - ' - Me.btnRg.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnRg.Cursor = System.Windows.Forms.Cursors.Default - Me.btnRg.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnRg.ForeColor = System.Drawing.Color.Black - Me.btnRg.Image = CType(resources.GetObject("btnRg.Image"), System.Drawing.Image) - Me.btnRg.ImageAlign = System.Drawing.ContentAlignment.MiddleRight - Me.btnRg.Location = New System.Drawing.Point(315, 3) - Me.btnRg.Name = "btnRg" - Me.btnRg.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) - Me.btnRg.Size = New System.Drawing.Size(150, 50) - Me.btnRg.TabIndex = 9 - Me.btnRg.TabStop = False - Me.btnRg.Text = "Rechnungen" - Me.btnRg.TextAlign = System.Drawing.ContentAlignment.MiddleLeft - Me.btnRg.UseVisualStyleBackColor = False - Me.btnRg.Visible = False - ' - 'btnKassenbuch - ' - Me.btnKassenbuch.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnKassenbuch.Cursor = System.Windows.Forms.Cursors.Default - Me.btnKassenbuch.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnKassenbuch.ForeColor = System.Drawing.Color.Black - Me.btnKassenbuch.Image = Global.AVISO.My.Resources.Resources.kasse_sw_small - Me.btnKassenbuch.ImageAlign = System.Drawing.ContentAlignment.MiddleRight - Me.btnKassenbuch.Location = New System.Drawing.Point(3, 59) - Me.btnKassenbuch.Name = "btnKassenbuch" - Me.btnKassenbuch.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) - Me.btnKassenbuch.Size = New System.Drawing.Size(150, 50) - Me.btnKassenbuch.TabIndex = 8 - Me.btnKassenbuch.TabStop = False - Me.btnKassenbuch.Text = "Kassenbuch" - Me.btnKassenbuch.TextAlign = System.Drawing.ContentAlignment.MiddleLeft - Me.btnKassenbuch.UseVisualStyleBackColor = False - Me.btnKassenbuch.Visible = False - ' - 'btnSpedBuch - ' - Me.btnSpedBuch.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) - Me.btnSpedBuch.Cursor = System.Windows.Forms.Cursors.Default - Me.btnSpedBuch.Font = New System.Drawing.Font("Segoe UI", 10.0!) - Me.btnSpedBuch.ForeColor = System.Drawing.Color.Black - Me.btnSpedBuch.Image = Global.AVISO.My.Resources.Resources.spedbuch1 - Me.btnSpedBuch.ImageAlign = System.Drawing.ContentAlignment.MiddleRight - Me.btnSpedBuch.Location = New System.Drawing.Point(159, 59) - Me.btnSpedBuch.Name = "btnSpedBuch" - Me.btnSpedBuch.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) - Me.btnSpedBuch.Size = New System.Drawing.Size(150, 50) - Me.btnSpedBuch.TabIndex = 3 - Me.btnSpedBuch.TabStop = False - Me.btnSpedBuch.Text = "Sped.Buch" - Me.btnSpedBuch.TextAlign = System.Drawing.ContentAlignment.MiddleLeft - Me.btnSpedBuch.UseVisualStyleBackColor = False - ' 'pnlOptionen ' Me.pnlOptionen.BackColor = System.Drawing.Color.Black @@ -2713,6 +2612,146 @@ Partial Class frmHauptfensterNew Me.TabPage2.Text = "TabPage2" Me.TabPage2.UseVisualStyleBackColor = True ' + 'Panel7 + ' + Me.Panel7.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer)) + Me.Panel7.Dock = System.Windows.Forms.DockStyle.Top + Me.Panel7.Location = New System.Drawing.Point(0, 0) + Me.Panel7.Name = "Panel7" + Me.Panel7.Size = New System.Drawing.Size(408, 10) + Me.Panel7.TabIndex = 4 + ' + 'cbxInfoChat + ' + Me.cbxInfoChat.AutoSize = True + Me.cbxInfoChat.Checked = True + Me.cbxInfoChat.CheckState = System.Windows.Forms.CheckState.Checked + Me.cbxInfoChat.Location = New System.Drawing.Point(221, 6) + Me.cbxInfoChat.Name = "cbxInfoChat" + Me.cbxInfoChat.Size = New System.Drawing.Size(183, 17) + Me.cbxInfoChat.TabIndex = 87 + Me.cbxInfoChat.Text = "Chat-Benachrichtigung aktivieren" + Me.cbxInfoChat.UseVisualStyleBackColor = True + ' + 'UsrCntlTestsystem1 + ' + Me.UsrCntlTestsystem1.BackColor = System.Drawing.Color.White + Me.UsrCntlTestsystem1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.UsrCntlTestsystem1.ForeColor = System.Drawing.Color.Red + Me.UsrCntlTestsystem1.Location = New System.Drawing.Point(632, -1) + Me.UsrCntlTestsystem1.Margin = New System.Windows.Forms.Padding(5, 6, 5, 6) + Me.UsrCntlTestsystem1.Name = "UsrCntlTestsystem1" + Me.UsrCntlTestsystem1.Size = New System.Drawing.Size(152, 28) + Me.UsrCntlTestsystem1.TabIndex = 8 + ' + 'MyFlowLayoutPanel1 + ' + Me.MyFlowLayoutPanel1.AutoScroll = True + Me.MyFlowLayoutPanel1.Controls.Add(Me.btnKunden) + Me.MyFlowLayoutPanel1.Controls.Add(Me.btnFakturierung) + Me.MyFlowLayoutPanel1.Controls.Add(Me.btnRg) + Me.MyFlowLayoutPanel1.Controls.Add(Me.btnKassenbuch) + Me.MyFlowLayoutPanel1.Controls.Add(Me.btnSpedBuch) + Me.MyFlowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top + Me.MyFlowLayoutPanel1.Font = New System.Drawing.Font("Segoe UI", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) + Me.MyFlowLayoutPanel1.Location = New System.Drawing.Point(181, 5) + Me.MyFlowLayoutPanel1.Name = "MyFlowLayoutPanel1" + Me.MyFlowLayoutPanel1.Size = New System.Drawing.Size(608, 65) + Me.MyFlowLayoutPanel1.TabIndex = 85 + ' + 'btnKunden + ' + Me.btnKunden.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnKunden.Cursor = System.Windows.Forms.Cursors.Default + Me.btnKunden.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnKunden.ForeColor = System.Drawing.Color.Black + Me.btnKunden.Image = CType(resources.GetObject("btnKunden.Image"), System.Drawing.Image) + Me.btnKunden.ImageAlign = System.Drawing.ContentAlignment.MiddleRight + Me.btnKunden.Location = New System.Drawing.Point(3, 3) + Me.btnKunden.Name = "btnKunden" + Me.btnKunden.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) + Me.btnKunden.Size = New System.Drawing.Size(150, 50) + Me.btnKunden.TabIndex = 2 + Me.btnKunden.TabStop = False + Me.btnKunden.Text = "Kunden" + Me.btnKunden.TextAlign = System.Drawing.ContentAlignment.MiddleLeft + Me.btnKunden.UseVisualStyleBackColor = False + ' + 'btnFakturierung + ' + Me.btnFakturierung.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnFakturierung.Cursor = System.Windows.Forms.Cursors.Default + Me.btnFakturierung.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnFakturierung.ForeColor = System.Drawing.Color.Black + Me.btnFakturierung.Image = CType(resources.GetObject("btnFakturierung.Image"), System.Drawing.Image) + Me.btnFakturierung.ImageAlign = System.Drawing.ContentAlignment.MiddleRight + Me.btnFakturierung.Location = New System.Drawing.Point(159, 3) + Me.btnFakturierung.Name = "btnFakturierung" + Me.btnFakturierung.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) + Me.btnFakturierung.Size = New System.Drawing.Size(150, 50) + Me.btnFakturierung.TabIndex = 11 + Me.btnFakturierung.TabStop = False + Me.btnFakturierung.Text = "Fakturierung" + Me.btnFakturierung.TextAlign = System.Drawing.ContentAlignment.MiddleLeft + Me.btnFakturierung.UseVisualStyleBackColor = False + Me.btnFakturierung.Visible = False + ' + 'btnRg + ' + Me.btnRg.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnRg.Cursor = System.Windows.Forms.Cursors.Default + Me.btnRg.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnRg.ForeColor = System.Drawing.Color.Black + Me.btnRg.Image = CType(resources.GetObject("btnRg.Image"), System.Drawing.Image) + Me.btnRg.ImageAlign = System.Drawing.ContentAlignment.MiddleRight + Me.btnRg.Location = New System.Drawing.Point(315, 3) + Me.btnRg.Name = "btnRg" + Me.btnRg.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) + Me.btnRg.Size = New System.Drawing.Size(150, 50) + Me.btnRg.TabIndex = 9 + Me.btnRg.TabStop = False + Me.btnRg.Text = "Rechnungen" + Me.btnRg.TextAlign = System.Drawing.ContentAlignment.MiddleLeft + Me.btnRg.UseVisualStyleBackColor = False + Me.btnRg.Visible = False + ' + 'btnKassenbuch + ' + Me.btnKassenbuch.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnKassenbuch.Cursor = System.Windows.Forms.Cursors.Default + Me.btnKassenbuch.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnKassenbuch.ForeColor = System.Drawing.Color.Black + Me.btnKassenbuch.Image = Global.AVISO.My.Resources.Resources.kasse_sw_small + Me.btnKassenbuch.ImageAlign = System.Drawing.ContentAlignment.MiddleRight + Me.btnKassenbuch.Location = New System.Drawing.Point(3, 59) + Me.btnKassenbuch.Name = "btnKassenbuch" + Me.btnKassenbuch.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) + Me.btnKassenbuch.Size = New System.Drawing.Size(150, 50) + Me.btnKassenbuch.TabIndex = 8 + Me.btnKassenbuch.TabStop = False + Me.btnKassenbuch.Text = "Kassenbuch" + Me.btnKassenbuch.TextAlign = System.Drawing.ContentAlignment.MiddleLeft + Me.btnKassenbuch.UseVisualStyleBackColor = False + Me.btnKassenbuch.Visible = False + ' + 'btnSpedBuch + ' + Me.btnSpedBuch.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnSpedBuch.Cursor = System.Windows.Forms.Cursors.Default + Me.btnSpedBuch.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnSpedBuch.ForeColor = System.Drawing.Color.Black + Me.btnSpedBuch.Image = Global.AVISO.My.Resources.Resources.spedbuch1 + Me.btnSpedBuch.ImageAlign = System.Drawing.ContentAlignment.MiddleRight + Me.btnSpedBuch.Location = New System.Drawing.Point(159, 59) + Me.btnSpedBuch.Name = "btnSpedBuch" + Me.btnSpedBuch.Padding = New System.Windows.Forms.Padding(10, 0, 0, 0) + Me.btnSpedBuch.Size = New System.Drawing.Size(150, 50) + Me.btnSpedBuch.TabIndex = 3 + Me.btnSpedBuch.TabStop = False + Me.btnSpedBuch.Text = "Sped.Buch" + Me.btnSpedBuch.TextAlign = System.Drawing.ContentAlignment.MiddleLeft + Me.btnSpedBuch.UseVisualStyleBackColor = False + ' 'btnMitarbeiterKonto ' Me.btnMitarbeiterKonto.allowBorder = False @@ -2731,44 +2770,12 @@ Partial Class frmHauptfensterNew Me.btnMitarbeiterKonto.TextAlign = System.Drawing.ContentAlignment.BottomCenter Me.btnMitarbeiterKonto.UseVisualStyleBackColor = False ' - 'Panel7 - ' - Me.Panel7.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer)) - Me.Panel7.Dock = System.Windows.Forms.DockStyle.Top - Me.Panel7.Location = New System.Drawing.Point(0, 0) - Me.Panel7.Name = "Panel7" - Me.Panel7.Size = New System.Drawing.Size(408, 10) - Me.Panel7.TabIndex = 4 - ' - 'UsrCntlTestsystem1 - ' - Me.UsrCntlTestsystem1.BackColor = System.Drawing.Color.White - Me.UsrCntlTestsystem1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.UsrCntlTestsystem1.ForeColor = System.Drawing.Color.Red - Me.UsrCntlTestsystem1.Location = New System.Drawing.Point(632, -1) - Me.UsrCntlTestsystem1.Margin = New System.Windows.Forms.Padding(5, 6, 5, 6) - Me.UsrCntlTestsystem1.Name = "UsrCntlTestsystem1" - Me.UsrCntlTestsystem1.Size = New System.Drawing.Size(152, 28) - Me.UsrCntlTestsystem1.TabIndex = 8 - ' 'UidAbfrageService1 ' Me.UidAbfrageService1.Credentials = Nothing Me.UidAbfrageService1.Url = "https://finanzonline.bmf.gv.at/fon/ws/uidAbfrage/" Me.UidAbfrageService1.UseDefaultCredentials = False ' - 'cbxInfoChat - ' - Me.cbxInfoChat.AutoSize = True - Me.cbxInfoChat.Checked = True - Me.cbxInfoChat.CheckState = System.Windows.Forms.CheckState.Checked - Me.cbxInfoChat.Location = New System.Drawing.Point(221, 6) - Me.cbxInfoChat.Name = "cbxInfoChat" - Me.cbxInfoChat.Size = New System.Drawing.Size(183, 17) - Me.cbxInfoChat.TabIndex = 87 - Me.cbxInfoChat.Text = "Chat-Benachrichtigung aktivieren" - Me.cbxInfoChat.UseVisualStyleBackColor = True - ' 'UsrCntlBenachrichtigungen2 ' Me.UsrCntlBenachrichtigungen2.Dock = System.Windows.Forms.DockStyle.Fill @@ -2777,6 +2784,60 @@ Partial Class frmHauptfensterNew Me.UsrCntlBenachrichtigungen2.Size = New System.Drawing.Size(408, 315) Me.UsrCntlBenachrichtigungen2.TabIndex = 5 ' + 'btnVIEW_CustControling + ' + Me.btnVIEW_CustControling.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) + Me.btnVIEW_CustControling.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.btnVIEW_CustControling.FlatAppearance.BorderSize = 0 + Me.btnVIEW_CustControling.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnVIEW_CustControling.ForeColor = System.Drawing.Color.White + Me.btnVIEW_CustControling.Location = New System.Drawing.Point(3, 79) + Me.btnVIEW_CustControling.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnVIEW_CustControling.Name = "btnVIEW_CustControling" + Me.btnVIEW_CustControling.Size = New System.Drawing.Size(158, 47) + Me.btnVIEW_CustControling.TabIndex = 8 + Me.btnVIEW_CustControling.TabStop = False + Me.btnVIEW_CustControling.Text = "Customs Controlling" + Me.ToolTip1.SetToolTip(Me.btnVIEW_CustControling, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + "d sortiert nach Dauer") + Me.btnVIEW_CustControling.UseVisualStyleBackColor = False + ' + 'btnDEFAULT_Selected + ' + Me.btnDEFAULT_Selected.BackColor = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(253, Byte), Integer), CType(CType(255, Byte), Integer)) + Me.btnDEFAULT_Selected.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnDEFAULT_Selected.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(44, Byte), Integer), CType(CType(108, Byte), Integer)) + Me.btnDEFAULT_Selected.Location = New System.Drawing.Point(167, 79) + Me.btnDEFAULT_Selected.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnDEFAULT_Selected.Name = "btnDEFAULT_Selected" + Me.btnDEFAULT_Selected.Size = New System.Drawing.Size(74, 47) + Me.btnDEFAULT_Selected.TabIndex = 9 + Me.btnDEFAULT_Selected.TabStop = False + Me.btnDEFAULT_Selected.Text = "DEFAULT_Selected" + Me.ToolTip1.SetToolTip(Me.btnDEFAULT_Selected, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + "d sortiert nach Dauer") + Me.btnDEFAULT_Selected.UseVisualStyleBackColor = False + Me.btnDEFAULT_Selected.Visible = False + ' + 'btnDEFAULT_UnSelected + ' + Me.btnDEFAULT_UnSelected.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(80, Byte), Integer), CType(CType(150, Byte), Integer)) + Me.btnDEFAULT_UnSelected.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None + Me.btnDEFAULT_UnSelected.FlatAppearance.BorderSize = 0 + Me.btnDEFAULT_UnSelected.Font = New System.Drawing.Font("Segoe UI", 10.0!) + Me.btnDEFAULT_UnSelected.ForeColor = System.Drawing.Color.White + Me.btnDEFAULT_UnSelected.Location = New System.Drawing.Point(247, 79) + Me.btnDEFAULT_UnSelected.Margin = New System.Windows.Forms.Padding(3, 16, 3, 0) + Me.btnDEFAULT_UnSelected.Name = "btnDEFAULT_UnSelected" + Me.btnDEFAULT_UnSelected.Size = New System.Drawing.Size(85, 47) + Me.btnDEFAULT_UnSelected.TabIndex = 10 + Me.btnDEFAULT_UnSelected.TabStop = False + Me.btnDEFAULT_UnSelected.Text = "DEFAULT_UnSelected" + Me.ToolTip1.SetToolTip(Me.btnDEFAULT_UnSelected, "Es werden alle LKWs mit Status Ankunft des aktiven Standorts angezeigt, absteigen" & + "d sortiert nach Dauer") + Me.btnDEFAULT_UnSelected.UseVisualStyleBackColor = False + Me.btnDEFAULT_UnSelected.Visible = False + ' 'frmHauptfensterNew ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) @@ -2824,7 +2885,6 @@ Partial Class frmHauptfensterNew Me.Panel6.ResumeLayout(False) CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit() Me.FlowLayoutPanel2.ResumeLayout(False) - Me.MyFlowLayoutPanel1.ResumeLayout(False) Me.pnlOptionen.ResumeLayout(False) Me.Panel9.ResumeLayout(False) Me.cntxt.ResumeLayout(False) @@ -2836,6 +2896,7 @@ Partial Class frmHauptfensterNew Me.Panel5.ResumeLayout(False) Me.Panel5.PerformLayout() Me.TabControl1.ResumeLayout(False) + Me.MyFlowLayoutPanel1.ResumeLayout(False) Me.ResumeLayout(False) Me.PerformLayout() @@ -3119,7 +3180,7 @@ Partial Class frmHauptfensterNew Friend WithEvents TabPage1 As TabPage Friend WithEvents TabPage2 As TabPage Friend WithEvents FlowLayoutPanel1 As FlowLayoutPanel - Friend WithEvents btnWichtigeStandort As Button + Friend WithEvents btnVIEW_LKW As Button Friend WithEvents pnlMain As System.Windows.Forms.Panel Friend WithEvents PictureBox1 As PictureBox Friend WithEvents Panel6 As Panel @@ -3127,12 +3188,15 @@ Partial Class frmHauptfensterNew Friend WithEvents MyFlowLayoutPanel1 As VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel Friend WithEvents FlowLayoutPanel2 As FlowLayoutPanel Friend WithEvents Panel9 As Panel - Friend WithEvents Button4 As Button - Friend WithEvents Button7 As Button - Friend WithEvents Button9 As Button + Friend WithEvents btnVIEW_SND As Button + Friend WithEvents btnVIEW_KOMBI As Button + Friend WithEvents btnVIEW_Compliance As Button Friend WithEvents Panel2 As Panel Friend WithEvents splitMainWorkingView As SplitContainer Friend WithEvents Panel1 As Panel Friend WithEvents pnlMain_Bottom As Panel Friend WithEvents cbxInfoChat As CheckBox + Friend WithEvents btnVIEW_CustControling As Button + Friend WithEvents btnDEFAULT_Selected As Button + Friend WithEvents btnDEFAULT_UnSelected As Button End Class diff --git a/Aviso/frmHauptfensterNew.vb b/Aviso/frmHauptfensterNew.vb index 12f72ca..34a9db2 100644 --- a/Aviso/frmHauptfensterNew.vb +++ b/Aviso/frmHauptfensterNew.vb @@ -105,10 +105,21 @@ Public Class frmHauptfensterNew pnlMain_Bottom.Controls.Clear() SEARCH_AVISO_AKTIV = switchTO + + ' toggle_Buttons_Main(sender) + For Each button In FlowLayoutPanel1.Controls + With button + .BackColor = btnDEFAULT_UnSelected.BackColor + .ForeColor = btnDEFAULT_UnSelected.ForeColor + .Font = btnDEFAULT_UnSelected.Font + End With + Next + + Dim SelectedBtn As Button = Nothing Select Case SEARCH_AVISO_AKTIV Case "SND" splitMainWorkingView.Panel2Collapsed = True - + SelectedBtn = btnVIEW_SND If SEARCH_SND Is Nothing Then SEARCH_SND = New usrCntlHauptfenster_Suche_SND SEARCH_SND.PARENT_FRMHAUPTFENSTER = Me pnlMain.Controls.Add(SEARCH_SND) @@ -116,12 +127,9 @@ Public Class frmHauptfensterNew pnlMain.PerformLayout() SEARCH_SND.PerformLayout() Application.DoEvents() - - - Case "AVISO" splitMainWorkingView.Panel2Collapsed = True - + SelectedBtn = btnVIEW_LKW If SEARCH_AVISO Is Nothing Then SEARCH_AVISO = New usrCntlHauptfenster_Suche_AVISO SEARCH_AVISO.PARENT_FRMHAUPTFENSTER = Me pnlMain.Controls.Add(SEARCH_AVISO) @@ -132,7 +140,7 @@ Public Class frmHauptfensterNew Case "AVISO_SND_KOMBI" splitMainWorkingView.Panel2Collapsed = False - + SelectedBtn = btnVIEW_KOMBI If SEARCH_AVISO Is Nothing Then SEARCH_AVISO = New usrCntlHauptfenster_Suche_AVISO SEARCH_AVISO.PARENT_FRMHAUPTFENSTER = Me pnlMain.Controls.Add(SEARCH_AVISO) @@ -149,9 +157,40 @@ Public Class frmHauptfensterNew SEARCH_SND.PerformLayout() Application.DoEvents() + Case "COMPLIANCE" + splitMainWorkingView.Panel2Collapsed = True + SelectedBtn = btnVIEW_Compliance + 'If SEARCH_AVISO Is Nothing Then SEARCH_AVISO = New usrCntlHauptfenster_Suche_AVISO + 'SEARCH_AVISO.PARENT_FRMHAUPTFENSTER = Me + 'pnlMain.Controls.Add(SEARCH_AVISO) + 'SEARCH_AVISO.Dock = DockStyle.Fill + pnlMain.PerformLayout() + SEARCH_AVISO.PerformLayout() + Application.DoEvents() + + Case "CUSTOMS_CONTROLLING" + splitMainWorkingView.Panel2Collapsed = True + SelectedBtn = btnVIEW_CustControling + 'If SEARCH_AVISO Is Nothing Then SEARCH_AVISO = New usrCntlHauptfenster_Suche_AVISO + 'SEARCH_AVISO.PARENT_FRMHAUPTFENSTER = Me + 'pnlMain.Controls.Add(SEARCH_AVISO) + 'SEARCH_AVISO.Dock = DockStyle.Fill + pnlMain.PerformLayout() + SEARCH_AVISO.PerformLayout() + Application.DoEvents() End Select + initsearch(SEARCH_AVISO_AKTIV, False) ': Aviso_anzeigen("") + + + With SelectedBtn + .BackColor = btnDEFAULT_Selected.BackColor + .ForeColor = btnDEFAULT_Selected.ForeColor + .Font = btnDEFAULT_Selected.Font + End With + + End Sub Sub initsearch(hSort As String, Optional showDetails As Boolean = True) @@ -3853,7 +3892,7 @@ ELSE_ATILLA: detailForm.Show() End Sub - Private Sub btnWichtigeStandort_Click(sender As Object, e As EventArgs) Handles btnWichtigeStandort.Click + Private Sub btnWichtigeStandort_Click(sender As Object, e As EventArgs) Handles btnVIEW_LKW.Click Grid_aktiv = False SWITCH_SEARCH("AVISO") @@ -3861,7 +3900,7 @@ ELSE_ATILLA: Grid_aktiv = True End Sub - Private Sub Button4_Click_1(sender As Object, e As EventArgs) Handles Button4.Click + Private Sub Button4_Click_1(sender As Object, e As EventArgs) Handles btnVIEW_SND.Click Grid_aktiv = False SWITCH_SEARCH("SND") @@ -3888,10 +3927,23 @@ ELSE_ATILLA: End Try End Sub - Private Sub Button7_Click_2(sender As Object, e As EventArgs) Handles Button7.Click + Private Sub Button7_Click_2(sender As Object, e As EventArgs) Handles btnVIEW_KOMBI.Click Grid_aktiv = False SWITCH_SEARCH("AVISO_SND_KOMBI") + SEARCH_AVISO.RESET() + Grid_aktiv = True + End Sub + Private Sub Button9_Click_1(sender As Object, e As EventArgs) Handles btnVIEW_Compliance.Click + Grid_aktiv = False + SWITCH_SEARCH("COMPLIANCE") + SEARCH_AVISO.RESET() + Grid_aktiv = True + End Sub + + Private Sub Button10_Click(sender As Object, e As EventArgs) Handles btnVIEW_CustControling.Click + Grid_aktiv = False + SWITCH_SEARCH("CUSTOMS_CONTROLLING") SEARCH_AVISO.RESET() Grid_aktiv = True End Sub