Rechnungdrucks-Art: Mail+Kopie, VERAG Parkplatzkarte NEU

This commit is contained in:
2023-03-15 22:27:25 +01:00
parent 40909672ed
commit 82e17e5cc1
35 changed files with 1812 additions and 469 deletions

View File

@@ -17,18 +17,19 @@
End Sub
Sub New(lkw)
Sub New(lkw, SDLNr)
' Dieser Aufruf ist für den Designer erforderlich.
InitializeComponent()
lblLKW.Text = lkw
Me.SDLNr = SDLNr
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
End Sub
Private Sub frmFindNewVeragCard_Load(sender As Object, e As EventArgs) Handles Me.Load
With DataGridView
.DataSource = SQL.loadDgvBySql("SELECT KundenNr,KfzKennzeichen,SDLNr,History,[KartenNr],[Bestelldatum],[Lieferdatum],[Vermerk],[Fahrer],[Ersatzkarte],[Gesperrt],[Defekt],[Verloren],[Gestohlen] FROM [SDL] where SDLNr=501 and KundenNr <=0 order by cast(kartennr as int)", "SDL")
.DataSource = SQL.loadDgvBySql("SELECT KundenNr,KfzKennzeichen,SDLNr,History,[KartenNr],[Bestelldatum],[Lieferdatum],[Vermerk],[Fahrer],[Ersatzkarte],[Gesperrt],[Defekt],[Verloren],[Gestohlen] FROM [SDL] where SDLNr=" & SDLNr & " and KundenNr <=0 order by cast(kartennr as int)", "SDL")
If .RowCount > 0 Then
.Columns("KundenNr").Visible = False
.Columns("KfzKennzeichen").Visible = False

View File

@@ -0,0 +1,510 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class usrCntlSDLLeistungVERAGCardNEU
Inherits System.Windows.Forms.UserControl
'UserControl überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.Label4 = New System.Windows.Forms.Label()
Me.cbxErsatzkarte = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.cbxGestohlen = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.cbxVerloren = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.cbxGesperrt = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.cbxDefekt = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.Panel2 = New System.Windows.Forms.Panel()
Me.Label8 = New System.Windows.Forms.Label()
Me.Label7 = New System.Windows.Forms.Label()
Me.Label9 = New System.Windows.Forms.Label()
Me.txtKartenNr = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.txtBestelldatum = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.txtVermerk = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.tbcntr = New System.Windows.Forms.TabControl()
Me.TabPage1 = New System.Windows.Forms.TabPage()
Me.UsrCntlDetails = New SDL.usrCntlAllg()
Me.TabPage2 = New System.Windows.Forms.TabPage()
Me.scanSonstiges = New VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList()
Me.cbxArchiviert = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.cbxAbgemeldet = New VERAG_PROG_ALLGEMEIN.MyCheckBoxValue(Me.components)
Me.Label12 = New System.Windows.Forms.Label()
Me.txtKaution = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label11 = New System.Windows.Forms.Label()
Me.txtFahrer = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.txtBelegNr = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.txtLieferung = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.Label6 = New System.Windows.Forms.Label()
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
Me.Panel2.SuspendLayout()
Me.tbcntr.SuspendLayout()
Me.TabPage1.SuspendLayout()
Me.TabPage2.SuspendLayout()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Label4
'
Me.Label4.AutoSize = True
Me.Label4.Location = New System.Drawing.Point(3, 165)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(49, 13)
Me.Label4.TabIndex = 17
Me.Label4.Text = "Vermerk:"
'
'cbxErsatzkarte
'
Me.cbxErsatzkarte._date = Nothing
Me.cbxErsatzkarte._showdate = True
Me.cbxErsatzkarte._value = ""
Me.cbxErsatzkarte.AutoSize = True
Me.cbxErsatzkarte.Location = New System.Drawing.Point(333, 64)
Me.cbxErsatzkarte.Name = "cbxErsatzkarte"
Me.cbxErsatzkarte.Size = New System.Drawing.Size(79, 17)
Me.cbxErsatzkarte.TabIndex = 5
Me.cbxErsatzkarte.Text = "Ersatzkarte"
Me.cbxErsatzkarte.UseVisualStyleBackColor = True
'
'cbxGestohlen
'
Me.cbxGestohlen._date = Nothing
Me.cbxGestohlen._showdate = True
Me.cbxGestohlen._value = ""
Me.cbxGestohlen.AutoSize = True
Me.cbxGestohlen.Location = New System.Drawing.Point(333, 134)
Me.cbxGestohlen.Name = "cbxGestohlen"
Me.cbxGestohlen.Size = New System.Drawing.Size(74, 17)
Me.cbxGestohlen.TabIndex = 13
Me.cbxGestohlen.Text = "Gestohlen"
Me.cbxGestohlen.UseVisualStyleBackColor = True
'
'cbxVerloren
'
Me.cbxVerloren._date = Nothing
Me.cbxVerloren._showdate = True
Me.cbxVerloren._value = ""
Me.cbxVerloren.AutoSize = True
Me.cbxVerloren.Location = New System.Drawing.Point(333, 111)
Me.cbxVerloren.Name = "cbxVerloren"
Me.cbxVerloren.Size = New System.Drawing.Size(65, 17)
Me.cbxVerloren.TabIndex = 9
Me.cbxVerloren.Text = "Verloren"
Me.cbxVerloren.UseVisualStyleBackColor = True
'
'cbxGesperrt
'
Me.cbxGesperrt._date = Nothing
Me.cbxGesperrt._showdate = True
Me.cbxGesperrt._value = ""
Me.cbxGesperrt.AutoSize = True
Me.cbxGesperrt.Location = New System.Drawing.Point(333, 155)
Me.cbxGesperrt.Name = "cbxGesperrt"
Me.cbxGesperrt.Size = New System.Drawing.Size(66, 17)
Me.cbxGesperrt.TabIndex = 16
Me.cbxGesperrt.Text = "Gesperrt"
Me.cbxGesperrt.UseVisualStyleBackColor = True
'
'cbxDefekt
'
Me.cbxDefekt._date = Nothing
Me.cbxDefekt._showdate = True
Me.cbxDefekt._value = ""
Me.cbxDefekt.AutoSize = True
Me.cbxDefekt.Location = New System.Drawing.Point(333, 177)
Me.cbxDefekt.Name = "cbxDefekt"
Me.cbxDefekt.Size = New System.Drawing.Size(58, 17)
Me.cbxDefekt.TabIndex = 19
Me.cbxDefekt.Text = "Defekt"
Me.cbxDefekt.UseVisualStyleBackColor = True
'
'Panel2
'
Me.Panel2.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
Me.Panel2.Controls.Add(Me.Label8)
Me.Panel2.Dock = System.Windows.Forms.DockStyle.Top
Me.Panel2.Location = New System.Drawing.Point(0, 0)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(760, 30)
Me.Panel2.TabIndex = 0
'
'Label8
'
Me.Label8.AutoSize = True
Me.Label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label8.ForeColor = System.Drawing.Color.White
Me.Label8.Location = New System.Drawing.Point(6, 9)
Me.Label8.Name = "Label8"
Me.Label8.Size = New System.Drawing.Size(79, 13)
Me.Label8.TabIndex = 0
Me.Label8.Text = "VERAG-Card"
'
'Label7
'
Me.Label7.AutoSize = True
Me.Label7.Location = New System.Drawing.Point(3, 39)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(70, 13)
Me.Label7.TabIndex = 1
Me.Label7.Text = "Bestelldatum:"
'
'Label9
'
Me.Label9.AutoSize = True
Me.Label9.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label9.Location = New System.Drawing.Point(3, 99)
Me.Label9.Name = "Label9"
Me.Label9.Size = New System.Drawing.Size(83, 13)
Me.Label9.TabIndex = 7
Me.Label9.Text = "Karten-Nummer:"
'
'txtKartenNr
'
Me.txtKartenNr._DateTimeOnly = False
Me.txtKartenNr._numbersOnly = False
Me.txtKartenNr._numbersOnlyKommastellen = ""
Me.txtKartenNr._Prozent = False
Me.txtKartenNr._ShortDateNew = False
Me.txtKartenNr._ShortDateOnly = False
Me.txtKartenNr._TimeOnly = False
Me.txtKartenNr._value = Nothing
Me.txtKartenNr._Waehrung = False
Me.txtKartenNr.Enabled = False
Me.txtKartenNr.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtKartenNr.Location = New System.Drawing.Point(106, 94)
Me.txtKartenNr.MaxLength = 4
Me.txtKartenNr.MaxLineLength = -1
Me.txtKartenNr.MaxLines_Warning = ""
Me.txtKartenNr.MaxLines_Warning_Label = Nothing
Me.txtKartenNr.Name = "txtKartenNr"
Me.txtKartenNr.Size = New System.Drawing.Size(158, 23)
Me.txtKartenNr.TabIndex = 8
'
'txtBestelldatum
'
Me.txtBestelldatum._DateTimeOnly = False
Me.txtBestelldatum._numbersOnly = False
Me.txtBestelldatum._numbersOnlyKommastellen = ""
Me.txtBestelldatum._Prozent = False
Me.txtBestelldatum._ShortDateNew = True
Me.txtBestelldatum._ShortDateOnly = False
Me.txtBestelldatum._TimeOnly = False
Me.txtBestelldatum._value = ""
Me.txtBestelldatum._Waehrung = False
Me.txtBestelldatum.ForeColor = System.Drawing.Color.Red
Me.txtBestelldatum.Location = New System.Drawing.Point(106, 36)
Me.txtBestelldatum.MaxLength = 10
Me.txtBestelldatum.MaxLineLength = -1
Me.txtBestelldatum.MaxLines_Warning = ""
Me.txtBestelldatum.MaxLines_Warning_Label = Nothing
Me.txtBestelldatum.Name = "txtBestelldatum"
Me.txtBestelldatum.Size = New System.Drawing.Size(74, 20)
Me.txtBestelldatum.TabIndex = 2
'
'txtVermerk
'
Me.txtVermerk._DateTimeOnly = False
Me.txtVermerk._numbersOnly = False
Me.txtVermerk._numbersOnlyKommastellen = ""
Me.txtVermerk._Prozent = False
Me.txtVermerk._ShortDateNew = False
Me.txtVermerk._ShortDateOnly = False
Me.txtVermerk._TimeOnly = False
Me.txtVermerk._value = Nothing
Me.txtVermerk._Waehrung = False
Me.txtVermerk.Location = New System.Drawing.Point(106, 162)
Me.txtVermerk.MaxLength = 100
Me.txtVermerk.MaxLineLength = -1
Me.txtVermerk.MaxLines_Warning = ""
Me.txtVermerk.MaxLines_Warning_Label = Nothing
Me.txtVermerk.Multiline = True
Me.txtVermerk.Name = "txtVermerk"
Me.txtVermerk.Size = New System.Drawing.Size(183, 55)
Me.txtVermerk.TabIndex = 18
'
'tbcntr
'
Me.tbcntr.Controls.Add(Me.TabPage1)
Me.tbcntr.Controls.Add(Me.TabPage2)
Me.tbcntr.Dock = System.Windows.Forms.DockStyle.Right
Me.tbcntr.Location = New System.Drawing.Point(496, 30)
Me.tbcntr.Name = "tbcntr"
Me.tbcntr.SelectedIndex = 0
Me.tbcntr.Size = New System.Drawing.Size(264, 190)
Me.tbcntr.TabIndex = 21
'
'TabPage1
'
Me.TabPage1.Controls.Add(Me.UsrCntlDetails)
Me.TabPage1.Location = New System.Drawing.Point(4, 22)
Me.TabPage1.Name = "TabPage1"
Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
Me.TabPage1.Size = New System.Drawing.Size(256, 164)
Me.TabPage1.TabIndex = 0
Me.TabPage1.Text = "Details"
Me.TabPage1.UseVisualStyleBackColor = True
'
'UsrCntlDetails
'
Me.UsrCntlDetails.BackColor = System.Drawing.Color.White
Me.UsrCntlDetails.Dock = System.Windows.Forms.DockStyle.Fill
Me.UsrCntlDetails.Location = New System.Drawing.Point(3, 3)
Me.UsrCntlDetails.Name = "UsrCntlDetails"
Me.UsrCntlDetails.Size = New System.Drawing.Size(250, 158)
Me.UsrCntlDetails.TabIndex = 0
'
'TabPage2
'
Me.TabPage2.Controls.Add(Me.scanSonstiges)
Me.TabPage2.Location = New System.Drawing.Point(4, 22)
Me.TabPage2.Name = "TabPage2"
Me.TabPage2.Padding = New System.Windows.Forms.Padding(3)
Me.TabPage2.Size = New System.Drawing.Size(256, 164)
Me.TabPage2.TabIndex = 1
Me.TabPage2.Text = "Dokumente"
Me.TabPage2.UseVisualStyleBackColor = True
'
'scanSonstiges
'
Me.scanSonstiges._DATENSERVER_KATEGORIE = "DOKUMENTE"
Me.scanSonstiges._DATENSERVER_ORDNER = "MDM"
Me.scanSonstiges._DATENSERVER_UOrdner1 = ""
Me.scanSonstiges._DATENSERVER_UOrdner2 = ""
Me.scanSonstiges._DATENSERVER_UOrdner3 = ""
Me.scanSonstiges.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink
Me.scanSonstiges.BackColor = System.Drawing.Color.White
Me.scanSonstiges.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.scanSonstiges.Cursor = System.Windows.Forms.Cursors.Hand
Me.scanSonstiges.Location = New System.Drawing.Point(3, 3)
Me.scanSonstiges.Margin = New System.Windows.Forms.Padding(0)
Me.scanSonstiges.Name = "scanSonstiges"
Me.scanSonstiges.Size = New System.Drawing.Size(250, 158)
Me.scanSonstiges.TabIndex = 0
'
'cbxArchiviert
'
Me.cbxArchiviert._date = Nothing
Me.cbxArchiviert._showdate = True
Me.cbxArchiviert._value = ""
Me.cbxArchiviert.AutoSize = True
Me.cbxArchiviert.Location = New System.Drawing.Point(333, 200)
Me.cbxArchiviert.Name = "cbxArchiviert"
Me.cbxArchiviert.Size = New System.Drawing.Size(91, 17)
Me.cbxArchiviert.TabIndex = 20
Me.cbxArchiviert.Text = "ARCHIVIERT"
Me.cbxArchiviert.UseVisualStyleBackColor = True
'
'cbxAbgemeldet
'
Me.cbxAbgemeldet._date = Nothing
Me.cbxAbgemeldet._showdate = True
Me.cbxAbgemeldet._value = ""
Me.cbxAbgemeldet.AutoSize = True
Me.cbxAbgemeldet.Location = New System.Drawing.Point(333, 88)
Me.cbxAbgemeldet.Name = "cbxAbgemeldet"
Me.cbxAbgemeldet.Size = New System.Drawing.Size(82, 17)
Me.cbxAbgemeldet.TabIndex = 6
Me.cbxAbgemeldet.Text = "Abgemeldet"
Me.cbxAbgemeldet.UseVisualStyleBackColor = True
'
'Label12
'
Me.Label12.AutoSize = True
Me.Label12.Location = New System.Drawing.Point(3, 138)
Me.Label12.Name = "Label12"
Me.Label12.Size = New System.Drawing.Size(89, 13)
Me.Label12.TabIndex = 12
Me.Label12.Text = "Kaution/BelegNr:"
'
'txtKaution
'
Me.txtKaution._DateTimeOnly = False
Me.txtKaution._numbersOnly = False
Me.txtKaution._numbersOnlyKommastellen = ""
Me.txtKaution._Prozent = False
Me.txtKaution._ShortDateNew = False
Me.txtKaution._ShortDateOnly = False
Me.txtKaution._TimeOnly = False
Me.txtKaution._value = ""
Me.txtKaution._Waehrung = True
Me.txtKaution.Location = New System.Drawing.Point(106, 135)
Me.txtKaution.MaxLineLength = -1
Me.txtKaution.MaxLines_Warning = ""
Me.txtKaution.MaxLines_Warning_Label = Nothing
Me.txtKaution.Name = "txtKaution"
Me.txtKaution.Size = New System.Drawing.Size(113, 20)
Me.txtKaution.TabIndex = 14
'
'Label11
'
Me.Label11.AutoSize = True
Me.Label11.Location = New System.Drawing.Point(3, 119)
Me.Label11.Name = "Label11"
Me.Label11.Size = New System.Drawing.Size(40, 13)
Me.Label11.TabIndex = 10
Me.Label11.Text = "Fahrer:"
'
'txtFahrer
'
Me.txtFahrer._DateTimeOnly = False
Me.txtFahrer._numbersOnly = False
Me.txtFahrer._numbersOnlyKommastellen = ""
Me.txtFahrer._Prozent = False
Me.txtFahrer._ShortDateNew = False
Me.txtFahrer._ShortDateOnly = False
Me.txtFahrer._TimeOnly = False
Me.txtFahrer._value = Nothing
Me.txtFahrer._Waehrung = False
Me.txtFahrer.Location = New System.Drawing.Point(106, 116)
Me.txtFahrer.MaxLength = 40
Me.txtFahrer.MaxLineLength = -1
Me.txtFahrer.MaxLines_Warning = ""
Me.txtFahrer.MaxLines_Warning_Label = Nothing
Me.txtFahrer.Name = "txtFahrer"
Me.txtFahrer.Size = New System.Drawing.Size(183, 20)
Me.txtFahrer.TabIndex = 11
'
'txtBelegNr
'
Me.txtBelegNr._DateTimeOnly = False
Me.txtBelegNr._numbersOnly = False
Me.txtBelegNr._numbersOnlyKommastellen = ""
Me.txtBelegNr._Prozent = False
Me.txtBelegNr._ShortDateNew = False
Me.txtBelegNr._ShortDateOnly = False
Me.txtBelegNr._TimeOnly = False
Me.txtBelegNr._value = ""
Me.txtBelegNr._Waehrung = False
Me.txtBelegNr.Location = New System.Drawing.Point(218, 135)
Me.txtBelegNr.MaxLineLength = -1
Me.txtBelegNr.MaxLines_Warning = ""
Me.txtBelegNr.MaxLines_Warning_Label = Nothing
Me.txtBelegNr.Name = "txtBelegNr"
Me.txtBelegNr.Size = New System.Drawing.Size(71, 20)
Me.txtBelegNr.TabIndex = 15
'
'txtLieferung
'
Me.txtLieferung._DateTimeOnly = False
Me.txtLieferung._numbersOnly = False
Me.txtLieferung._numbersOnlyKommastellen = ""
Me.txtLieferung._Prozent = False
Me.txtLieferung._ShortDateNew = True
Me.txtLieferung._ShortDateOnly = False
Me.txtLieferung._TimeOnly = False
Me.txtLieferung._value = ""
Me.txtLieferung._Waehrung = False
Me.txtLieferung.ForeColor = System.Drawing.Color.Red
Me.txtLieferung.Location = New System.Drawing.Point(106, 61)
Me.txtLieferung.MaxLength = 10
Me.txtLieferung.MaxLineLength = -1
Me.txtLieferung.MaxLines_Warning = ""
Me.txtLieferung.MaxLines_Warning_Label = Nothing
Me.txtLieferung.Name = "txtLieferung"
Me.txtLieferung.Size = New System.Drawing.Size(74, 20)
Me.txtLieferung.TabIndex = 4
'
'Label6
'
Me.Label6.AutoSize = True
Me.Label6.Location = New System.Drawing.Point(3, 64)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(65, 13)
Me.Label6.TabIndex = 3
Me.Label6.Text = "Lieferdatum:"
'
'PictureBox1
'
Me.PictureBox1.BackgroundImage = Global.SDL.My.Resources.del
Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
Me.PictureBox1.Cursor = System.Windows.Forms.Cursors.Hand
Me.PictureBox1.Location = New System.Drawing.Point(270, 94)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(20, 22)
Me.PictureBox1.TabIndex = 156
Me.PictureBox1.TabStop = False
'
'usrCntlSDLLeistungVERAGCard
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.White
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.txtLieferung)
Me.Controls.Add(Me.Label6)
Me.Controls.Add(Me.txtBelegNr)
Me.Controls.Add(Me.Label12)
Me.Controls.Add(Me.txtKaution)
Me.Controls.Add(Me.Label11)
Me.Controls.Add(Me.txtFahrer)
Me.Controls.Add(Me.cbxAbgemeldet)
Me.Controls.Add(Me.cbxArchiviert)
Me.Controls.Add(Me.tbcntr)
Me.Controls.Add(Me.txtKartenNr)
Me.Controls.Add(Me.Label9)
Me.Controls.Add(Me.txtBestelldatum)
Me.Controls.Add(Me.Label7)
Me.Controls.Add(Me.Panel2)
Me.Controls.Add(Me.txtVermerk)
Me.Controls.Add(Me.Label4)
Me.Controls.Add(Me.cbxErsatzkarte)
Me.Controls.Add(Me.cbxGestohlen)
Me.Controls.Add(Me.cbxVerloren)
Me.Controls.Add(Me.cbxGesperrt)
Me.Controls.Add(Me.cbxDefekt)
Me.Name = "usrCntlSDLLeistungVERAGCard"
Me.Size = New System.Drawing.Size(760, 220)
Me.Panel2.ResumeLayout(False)
Me.Panel2.PerformLayout()
Me.tbcntr.ResumeLayout(False)
Me.TabPage1.ResumeLayout(False)
Me.TabPage2.ResumeLayout(False)
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents txtVermerk As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents cbxErsatzkarte As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents cbxGestohlen As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents cbxVerloren As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents cbxGesperrt As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents cbxDefekt As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents Panel2 As System.Windows.Forms.Panel
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents txtBestelldatum As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents txtKartenNr As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents tbcntr As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents UsrCntlDetails As SDL.usrCntlAllg
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents scanSonstiges As VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList
Friend WithEvents cbxArchiviert As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents cbxAbgemeldet As VERAG_PROG_ALLGEMEIN.MyCheckBoxValue
Friend WithEvents Label12 As System.Windows.Forms.Label
Friend WithEvents txtKaution As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label11 As System.Windows.Forms.Label
Friend WithEvents txtFahrer As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents txtBelegNr As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents txtLieferung As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
End Class

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,270 @@
Imports System.Globalization
Imports SDL.cBinding
Public Class usrCntlSDLLeistungVERAGCardNEU
Public KfzKennzeichen As String
Public kdNr As String
Public History As String
Dim PROG As New cProgramFunctions
Dim kundenSQL As New kundenSQL
Public SDLNr As String
Dim culture As CultureInfo = New CultureInfo("de-DE")
Private PartnerKdNrFromFMZOLL As cPartnerKdNRFMZoll
Public addnew As Boolean = False
Dim VAL As New cValidationSDLLeistungen
Public Event LKWChanged(kdNr, newKfz, SDLNr, History)
Public Event CHANGED(kdNr, newKfz, SDLNr, History)
'Public WithEvents s As New cBinding 'fürs Binding
Public SDL As VERAG_PROG_ALLGEMEIN.cSDL
Dim boud = False
Sub New(kdNr, KfzKennzeichen, SDLNr, History)
' Dieser Aufruf ist für den Designer erforderlich.
InitializeComponent()
Me.kdNr = kdNr
Me.KfzKennzeichen = KfzKennzeichen
Me.SDLNr = SDLNr
Me.History = History
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
End Sub
Private Sub usrCntlSDLLeistungen_Load(sender As Object, e As EventArgs) Handles Me.Load
UsrCntlDetails.kdNr = kdNr
UsrCntlDetails.SDLNr = SDLNr
UsrCntlDetails.History = History
UsrCntlDetails.lblLKWNr.Text = KfzKennzeichen
AddHandler UsrCntlDetails.LKWChanged, Sub(newKfz)
RaiseEvent LKWChanged(kdNr, newKfz, SDLNr, History)
End Sub
'Scan-Elemente initialisieren:
' scanRetourniert.INIT(kdNr, KfzKennzeichen, "SDL_" & SDLNr, "HIST_" & History)
scanSonstiges.INIT(kdNr, KfzKennzeichen, "SDL_" & SDLNr, "HIST_" & History)
' PROG.addPicToGueltigBis(txtGueltigkeit)
initDataBinding()
boud = True
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_Leistungen_bearbeiten", Me.FindForm) Then
cProgramFunctions.setControlReadOnly(Me)
End If
End Sub
Sub getPartnerKdNrFromFMZOLL() ' Lädt die Partner-KdNr
PartnerKdNrFromFMZOLL = kundenSQL.getPartnerKdNrFromFMZOLL(kdNr)
End Sub
Sub initDataBinding()
Try
SDL = New VERAG_PROG_ALLGEMEIN.cSDL(kdNr, KfzKennzeichen, SDLNr, History)
PROG.initDTPE(txtBestelldatum)
PROG.initDTPE(txtLieferung)
txtBestelldatum._value = SDL.Bestelldatum
txtLieferung._value = SDL.Lieferdatum
cbxErsatzkarte._date = SDL.ErsatzkarteAm
cbxVerloren._date = SDL.VerlorenAm
cbxGestohlen._date = SDL.GestohlenAm
cbxGesperrt._date = SDL.GesperrtAm
cbxDefekt._date = SDL.DefektAm
cbxAbgemeldet._date = SDL.LKWAbgemeldetAM
cbxGesperrt.Checked = SDL.Gesperrt
cbxDefekt.Checked = SDL.Defekt
cbxGestohlen.Checked = SDL.Gestohlen
cbxVerloren.Checked = SDL.Verloren
cbxArchiviert.Checked = SDL.Archiviert
cbxAbgemeldet.Checked = SDL.LKWAbgemeldet
cbxErsatzkarte.Checked = SDL.Ersatzkarte
txtVermerk.Text = SDL.Vermerk
UsrCntlDetails.lblErfassung.Text = SDL.Erfassungsdatum
UsrCntlDetails.lblAenderung.Text = SDL.Änderungsdatum
UsrCntlDetails.lblSachbearb.Text = SDL.Sachbearbeiter
txtKartenNr.Text = SDL.KartenNr
txtFahrer.Text = SDL.Fahrer
txtKaution._value = SDL.Kaution
txtBelegNr.Text = SDL.BelegNr
Catch ex As Exception
MsgBox(ex.Message)
MsgBox(ex.StackTrace)
End Try
End Sub
Public Sub newEntry()
' s.updateBinding()
' s.newEntry(kdNr, KfzKennzeichen, SDLNr) 'NEUER EINTRAG!
If txtBestelldatum.Text = "" Then txtBestelldatum.Text = Now.ToShortDateString
End Sub
Sub BindingTableColumnChanged()
UsrCntlDetails.lblSachbearb.Text = VERAG_PROG_ALLGEMEIN.cAllgemein.USRKURZNAME
UsrCntlDetails.lblAenderung.Text = Now.ToString("dd.MM.yyyy HH:mm")
' If e.Column.ColumnName = "Sachbearbeiter" Or e.Column.ColumnName = "Änderungsdatum" Then Exit Sub
If save() Then RaiseEvent CHANGED(kdNr, KfzKennzeichen, SDLNr, History)
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs)
Dim valid As Boolean = VAL.checkValidDate(sender, True)
End Sub
Public Function save() As Boolean
loadDataInClass()
Return SDL.SAVE
'If checkSave() Then
' Return kundenSQL.doSQLByList(s.bindingSource)
'End If
Return False
End Function
Sub loadDataInClass()
SDL.Bestelldatum = PROG.isEmptyNull(txtBestelldatum._value)
SDL.Lieferdatum = PROG.isEmptyNull(txtLieferung._value)
SDL.Gesperrt = cbxGesperrt.Checked
SDL.Defekt = cbxDefekt.Checked
SDL.Gestohlen = cbxGestohlen.Checked
SDL.Verloren = cbxVerloren.Checked
SDL.LKWAbgemeldet = cbxAbgemeldet.Checked
SDL.Ersatzkarte = cbxErsatzkarte.Checked
SDL.Vermerk = txtVermerk.Text
SDL.Erfassungsdatum = UsrCntlDetails.lblErfassung.Text
SDL.Änderungsdatum = UsrCntlDetails.lblAenderung.Text
SDL.Sachbearbeiter = UsrCntlDetails.lblSachbearb.Text
SDL.KartenNr = txtKartenNr.Text
SDL.Fahrer = txtFahrer.Text
SDL.Kaution = txtKaution._value
SDL.BelegNr = txtBelegNr.Text
SDL.ErsatzkarteAm = cbxErsatzkarte._date
SDL.VerlorenAm = cbxVerloren._date
SDL.LKWAbgemeldetAM = cbxAbgemeldet._date
SDL.GestohlenAm = cbxGestohlen._date
SDL.GesperrtAm = cbxGesperrt._date
SDL.DefektAm = cbxDefekt._date
SDL.Archiviert = cbxArchiviert.Checked
End Sub
Function checkSave() As Boolean
' If Not VAL.checkValidDate(txtBestellung, True) Then cProgramFunctions.setInfo(Me.FindForm, "ERR", "Bestelldatum: Datumsformat nicht korrekt!", 3) : Return False
' If Not VAL.checkValidDate(txtLieferung, True) Then cProgramFunctions.setInfo(Me.FindForm, "ERR", "Lieferdatum: Datumsformat nicht korrekt!", 3) : Return False
' If Not VAL.checkValidDate(txtGueltigkeit, True) Then cProgramFunctions.setInfo(Me.FindForm, "ERR", "Gültigkeitsdatum: Datumsformat nicht korrekt!", 3) : Return False
Return True
End Function
Private Sub txtBestellung_TextChanged(sender As Object, e As EventArgs) Handles txtBestelldatum.PropertyChanged, txtLieferung.PropertyChanged, txtKartenNr.TextChanged, txtVermerk.TextChanged, cbxErsatzkarte.CheckedChanged, cbxDefekt.CheckedChanged, cbxVerloren.CheckedChanged, cbxGestohlen.CheckedChanged, cbxGesperrt.CheckedChanged, cbxArchiviert.CheckedChanged, cbxAbgemeldet.CheckedChanged,
txtKaution.TextChanged, txtFahrer.TextChanged, txtBelegNr.TextChanged
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_Leistungen_bearbeiten", Me.FindForm) Then Exit Sub
If boud And Me.FindForm IsNot Nothing Then
If sender Is txtBestelldatum Then
If Not PROG.checkSDLNrPartnerKdNr(kdNr, SDLNr) Then MsgBox("Bitte geben Sie die Partner-Kundennummer im Kundenblatt oder im FM-ZOLL ein!")
End If
BindingTableColumnChanged()
End If
End Sub
Function addTxtToVermerk(tmp, txt) As String
If txtVermerk.Text <> "" Then tmp &= " / "
tmp &= txt & ", am " & Now.ToShortDateString
If tmp.Length > txtVermerk.MaxLength Then tmp = tmp.Substring(0, txtVermerk.MaxLength)
Return tmp
End Function
'Private Sub pic_Click(sender As Object, e As EventArgs) Handles pic.Click
' If txtKartenNr.Text = "" Then
' Dim f As New frmFindNewVeragCard
' If f.ShowDialog(Me) = DialogResult.OK Then
' Dim tmpKFZ = Me.KfzKennzeichen
' Dim tmpKdNr = Me.KfzKennzeichen
' Me.kdNr = f.kdNr
' Me.KfzKennzeichen = f.KfzKennzeichen
' Me.SDLNr = f.SDLNr
' Me.History = f.History
' initDataBinding()
' Me.KfzKennzeichen = tmpKFZ
' Me.kdNr = tmpKdNr
' save()
' End If
' '
' End If
'
' End Sub
Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
If clearVeragCard(kdNr, KfzKennzeichen, History) Then
RaiseEvent CHANGED(kdNr, KfzKennzeichen, SDLNr, History)
Me.Visible = False
End If
End Sub
Shared Function clearVeragCard(kdNr, KfzKennzeichen, History) As Boolean
Dim kundenSQL As New kundenSQL
'VERAG Card zurücksetzen --> Kdnr=-1
If vbYes = MsgBox("Möchten Sie die Zuordnung der VERAG-Card wirklich aufheben?", vbYesNoCancel) Then
Dim hist = kundenSQL.getValueTxtBySql("SELECT isnull(max([History]),0)+1 as History FROM SDL where KundenNr = '-1' AND KfzKennzeichen='" & KfzKennzeichen & "' And SDLNr ='502' ", "SDL")
' MsgBox("UPDATE [SDL] set KundenNr='-1', History='" & History & "' WHERE KundenNr='" & kdNr & "' and KfzKennzeichen='" & KfzKennzeichen & "' and History='" & History & "' and SDLNr=502 ")
If kundenSQL.doSQL("UPDATE [SDL] set KundenNr='-1', History='" & hist & "' WHERE KundenNr='" & kdNr & "' and KfzKennzeichen='" & KfzKennzeichen & "' and History='" & History & "' and SDLNr=502 ", "SDL") Then
Return True
End If
End If
Return False
End Function
Shared Function clearAllVeragCard(kdNr, KfzKennzeichen) As Boolean
Try
Dim kundenSQL As New kundenSQL
'VERAG Card zurücksetzen --> Kdnr=-1
Dim dt = kundenSQL.loadDgvBySql("Select History FROM SDL WHERE KundenNr='" & kdNr & "' and KfzKennzeichen='" & KfzKennzeichen & "'and SDLNr=502")
If dt IsNot Nothing Then
For Each r In dt.Rows
Dim hist = kundenSQL.getValueTxtBySql("SELECT isnull(max([History]),0)+1 as History FROM SDL where KundenNr = '-1' AND KfzKennzeichen='" & KfzKennzeichen & "' And SDLNr ='502' ", "SDL")
kundenSQL.doSQL("UPDATE [SDL] set KundenNr='-1', History='" & hist & "' WHERE KundenNr='" & kdNr & "' and KfzKennzeichen='" & KfzKennzeichen & "' and History='" & r("History") & "' and SDLNr=502 ", "SDL")
Next
End If
Catch ex As Exception
MsgBox(ex.Message & ex.StackTrace)
End Try
Return False
End Function
End Class

View File

@@ -26,9 +26,7 @@ Partial Class frmNewData
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmNewData))
Me.pnlMain = New System.Windows.Forms.Panel()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.FlatButton1 = New VERAG_PROG_ALLGEMEIN.FlatButton()
Me.Panel2 = New System.Windows.Forms.Panel()
Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel(Me.components)
Me.Label2 = New System.Windows.Forms.Label()
Me.FlowLayoutPanel = New System.Windows.Forms.FlowLayoutPanel()
Me.btnSDL_IDS = New System.Windows.Forms.Button()
@@ -53,11 +51,14 @@ Partial Class frmNewData
Me.btnSDL_PLOSE_CZ = New System.Windows.Forms.Button()
Me.btnSDL_PLOSE_MEDPASS = New System.Windows.Forms.Button()
Me.btnVeragParkplatz = New System.Windows.Forms.Button()
Me.btnVeragParkplatzNEU = New System.Windows.Forms.Button()
Me.Label4 = New System.Windows.Forms.Label()
Me.Label1 = New System.Windows.Forms.Label()
Me.txtKundenNr = New System.Windows.Forms.TextBox()
Me.KdSearchBox1 = New VERAG_PROG_ALLGEMEIN.KdSearchBox()
Me.btnAddLeistungVordefiniert = New System.Windows.Forms.Button()
Me.FlatButton1 = New VERAG_PROG_ALLGEMEIN.FlatButton()
Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel(Me.components)
Me.KdSearchBox1 = New VERAG_PROG_ALLGEMEIN.KdSearchBox()
Me.pnlMain.SuspendLayout()
Me.Panel1.SuspendLayout()
Me.Panel2.SuspendLayout()
@@ -87,22 +88,6 @@ Partial Class frmNewData
Me.Panel1.Size = New System.Drawing.Size(753, 333)
Me.Panel1.TabIndex = 0
'
'FlatButton1
'
Me.FlatButton1.allowBorder = False
Me.FlatButton1.BackColor = System.Drawing.Color.Red
Me.FlatButton1.FlatAppearance.BorderSize = 0
Me.FlatButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.FlatButton1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.FlatButton1.ForeColor = System.Drawing.Color.White
Me.FlatButton1.Location = New System.Drawing.Point(689, -1)
Me.FlatButton1.Margin = New System.Windows.Forms.Padding(0)
Me.FlatButton1.Name = "FlatButton1"
Me.FlatButton1.Size = New System.Drawing.Size(63, 23)
Me.FlatButton1.TabIndex = 0
Me.FlatButton1.Text = "X"
Me.FlatButton1.UseVisualStyleBackColor = False
'
'Panel2
'
Me.Panel2.AutoSize = True
@@ -121,20 +106,6 @@ Partial Class frmNewData
Me.Panel2.Size = New System.Drawing.Size(751, 331)
Me.Panel2.TabIndex = 13
'
'MyFlowLayoutPanel1
'
Me.MyFlowLayoutPanel1.AutoScroll = True
Me.MyFlowLayoutPanel1.AutoSize = True
Me.MyFlowLayoutPanel1.BackColor = System.Drawing.Color.White
Me.MyFlowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown
Me.MyFlowLayoutPanel1.Location = New System.Drawing.Point(0, 70)
Me.MyFlowLayoutPanel1.Margin = New System.Windows.Forms.Padding(0)
Me.MyFlowLayoutPanel1.MaximumSize = New System.Drawing.Size(657, 5000)
Me.MyFlowLayoutPanel1.Name = "MyFlowLayoutPanel1"
Me.MyFlowLayoutPanel1.Padding = New System.Windows.Forms.Padding(0, 0, 10, 0)
Me.MyFlowLayoutPanel1.Size = New System.Drawing.Size(657, 46)
Me.MyFlowLayoutPanel1.TabIndex = 57
'
'Label2
'
Me.Label2.ForeColor = System.Drawing.Color.Black
@@ -170,6 +141,7 @@ Partial Class frmNewData
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_PLOSE_CZ)
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_PLOSE_MEDPASS)
Me.FlowLayoutPanel.Controls.Add(Me.btnVeragParkplatz)
Me.FlowLayoutPanel.Controls.Add(Me.btnVeragParkplatzNEU)
Me.FlowLayoutPanel.Dock = System.Windows.Forms.DockStyle.Bottom
Me.FlowLayoutPanel.Location = New System.Drawing.Point(0, 119)
Me.FlowLayoutPanel.Name = "FlowLayoutPanel"
@@ -588,7 +560,7 @@ Partial Class frmNewData
Me.btnSDL_PLOSE_MEDPASS.Name = "btnSDL_PLOSE_MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.Size = New System.Drawing.Size(78, 64)
Me.btnSDL_PLOSE_MEDPASS.TabIndex = 61
Me.btnSDL_PLOSE_MEDPASS.Tag = "216"
Me.btnSDL_PLOSE_MEDPASS.Tag = "217"
Me.btnSDL_PLOSE_MEDPASS.Text = "MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnSDL_PLOSE_MEDPASS.UseVisualStyleBackColor = True
@@ -609,10 +581,30 @@ Partial Class frmNewData
Me.btnVeragParkplatz.Size = New System.Drawing.Size(78, 64)
Me.btnVeragParkplatz.TabIndex = 57
Me.btnVeragParkplatz.Tag = "501"
Me.btnVeragParkplatz.Text = "Parkplatz"
Me.btnVeragParkplatz.Text = "Parkp. ALT"
Me.btnVeragParkplatz.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnVeragParkplatz.UseVisualStyleBackColor = True
'
'btnVeragParkplatzNEU
'
Me.btnVeragParkplatzNEU.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
Me.btnVeragParkplatzNEU.Cursor = System.Windows.Forms.Cursors.Default
Me.btnVeragParkplatzNEU.Enabled = False
Me.btnVeragParkplatzNEU.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Silver
Me.btnVeragParkplatzNEU.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnVeragParkplatzNEU.ForeColor = System.Drawing.Color.Black
Me.btnVeragParkplatzNEU.Image = Global.SDL.My.Resources.Resources.verag_Card1
Me.btnVeragParkplatzNEU.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnVeragParkplatzNEU.Location = New System.Drawing.Point(332, 140)
Me.btnVeragParkplatzNEU.Margin = New System.Windows.Forms.Padding(2)
Me.btnVeragParkplatzNEU.Name = "btnVeragParkplatzNEU"
Me.btnVeragParkplatzNEU.Size = New System.Drawing.Size(78, 64)
Me.btnVeragParkplatzNEU.TabIndex = 62
Me.btnVeragParkplatzNEU.Tag = "502"
Me.btnVeragParkplatzNEU.Text = "Parkplatz"
Me.btnVeragParkplatzNEU.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnVeragParkplatzNEU.UseVisualStyleBackColor = True
'
'Label4
'
Me.Label4.BackColor = System.Drawing.Color.Red
@@ -645,34 +637,6 @@ Partial Class frmNewData
Me.txtKundenNr.Size = New System.Drawing.Size(122, 23)
Me.txtKundenNr.TabIndex = 2
'
'KdSearchBox1
'
Me.KdSearchBox1._AlleFirmenCLUSTER = False
Me.KdSearchBox1._AllowSetValue = True
Me.KdSearchBox1._autoSizeGross = False
Me.KdSearchBox1._display_Name1 = False
Me.KdSearchBox1._displayAVISO_Email = False
Me.KdSearchBox1._displayFullName = False
Me.KdSearchBox1._displayWoelflKd = False
Me.KdSearchBox1._hideIfListEmpty = True
Me.KdSearchBox1._loadKdData = False
Me.KdSearchBox1._UseFIRMA = ""
Me.KdSearchBox1._ValueKdAndName = False
Me.KdSearchBox1.dgvpos = "LEFT"
Me.KdSearchBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.KdSearchBox1.KdName = ""
Me.KdSearchBox1.KdNr = "-1"
Me.KdSearchBox1.kdNrField = Nothing
Me.KdSearchBox1.KdNrNullInt = Nothing
Me.KdSearchBox1.Location = New System.Drawing.Point(67, 44)
Me.KdSearchBox1.Name = "KdSearchBox1"
Me.KdSearchBox1.nurAktive = True
Me.KdSearchBox1.searchActive = True
Me.KdSearchBox1.Size = New System.Drawing.Size(312, 23)
Me.KdSearchBox1.TabIndex = 1
Me.KdSearchBox1.TIMER_SEARCH = True
Me.KdSearchBox1.usrcntl = Nothing
'
'btnAddLeistungVordefiniert
'
Me.btnAddLeistungVordefiniert.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
@@ -693,6 +657,65 @@ Partial Class frmNewData
Me.btnAddLeistungVordefiniert.UseVisualStyleBackColor = True
Me.btnAddLeistungVordefiniert.Visible = False
'
'FlatButton1
'
Me.FlatButton1.allowBorder = False
Me.FlatButton1.BackColor = System.Drawing.Color.Red
Me.FlatButton1.FlatAppearance.BorderSize = 0
Me.FlatButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.FlatButton1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.FlatButton1.ForeColor = System.Drawing.Color.White
Me.FlatButton1.Location = New System.Drawing.Point(689, -1)
Me.FlatButton1.Margin = New System.Windows.Forms.Padding(0)
Me.FlatButton1.Name = "FlatButton1"
Me.FlatButton1.Size = New System.Drawing.Size(63, 23)
Me.FlatButton1.TabIndex = 0
Me.FlatButton1.Text = "X"
Me.FlatButton1.UseVisualStyleBackColor = False
'
'MyFlowLayoutPanel1
'
Me.MyFlowLayoutPanel1.AutoScroll = True
Me.MyFlowLayoutPanel1.AutoSize = True
Me.MyFlowLayoutPanel1.BackColor = System.Drawing.Color.White
Me.MyFlowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown
Me.MyFlowLayoutPanel1.Location = New System.Drawing.Point(0, 70)
Me.MyFlowLayoutPanel1.Margin = New System.Windows.Forms.Padding(0)
Me.MyFlowLayoutPanel1.MaximumSize = New System.Drawing.Size(657, 5000)
Me.MyFlowLayoutPanel1.Name = "MyFlowLayoutPanel1"
Me.MyFlowLayoutPanel1.Padding = New System.Windows.Forms.Padding(0, 0, 10, 0)
Me.MyFlowLayoutPanel1.Size = New System.Drawing.Size(657, 46)
Me.MyFlowLayoutPanel1.TabIndex = 57
'
'KdSearchBox1
'
Me.KdSearchBox1._AlleFirmenCLUSTER = False
Me.KdSearchBox1._AllowSetValue = True
Me.KdSearchBox1._autoSizeGross = False
Me.KdSearchBox1._display_Name1 = False
Me.KdSearchBox1._displayAVISO_Email = False
Me.KdSearchBox1._displayFullName = False
Me.KdSearchBox1._displayWoelflKd = False
Me.KdSearchBox1._hideIfListEmpty = True
Me.KdSearchBox1._loadKdData = False
Me.KdSearchBox1._searchName1 = True
Me.KdSearchBox1._UseFIRMA = ""
Me.KdSearchBox1._ValueKdAndName = False
Me.KdSearchBox1.dgvpos = "LEFT"
Me.KdSearchBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.KdSearchBox1.KdName = ""
Me.KdSearchBox1.KdNr = "-1"
Me.KdSearchBox1.kdNrField = Nothing
Me.KdSearchBox1.KdNrNullInt = Nothing
Me.KdSearchBox1.Location = New System.Drawing.Point(67, 44)
Me.KdSearchBox1.Name = "KdSearchBox1"
Me.KdSearchBox1.nurAktive = True
Me.KdSearchBox1.searchActive = True
Me.KdSearchBox1.Size = New System.Drawing.Size(312, 23)
Me.KdSearchBox1.TabIndex = 1
Me.KdSearchBox1.TIMER_SEARCH = True
Me.KdSearchBox1.usrcntl = Nothing
'
'frmNewData
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
@@ -748,4 +771,5 @@ Partial Class frmNewData
Friend WithEvents btnSDL_PLOSE_IT As Button
Friend WithEvents btnSDL_PLOSE_CZ As Button
Friend WithEvents btnSDL_PLOSE_MEDPASS As Button
Friend WithEvents btnVeragParkplatzNEU As Button
End Class

View File

@@ -215,6 +215,7 @@ Public Class frmNewData
Case 206 : btnAddLeistungVordefiniert.Image = Nothing : btnAddLeistungVordefiniert.Text = "DouBox" & vbNewLine & "hinzufügen"
Case 500 : btnAddLeistungVordefiniert.Image = My.Resources.Plakette1 : btnAddLeistungVordefiniert.Text = "MAN Abgas" & vbNewLine & "hinzufügen"
Case 501 : btnAddLeistungVordefiniert.Image = My.Resources.verag_Card1 : btnAddLeistungVordefiniert.Text = "Parkplatz" & vbNewLine & "hinzufügen"
Case 502 : btnAddLeistungVordefiniert.Image = My.Resources.verag_Card1 : btnAddLeistungVordefiniert.Text = "Parkplatz" & vbNewLine & "hinzufügen"
End Select
.Visible = True
.Tag = LeistungVordefiniert
@@ -255,7 +256,7 @@ Public Class frmNewData
Private Sub btnSDL_Woelfl_Click(sender As Object, e As EventArgs) Handles btnSDL_Woelfl.Click, btnSDL_IDS.Click, btnSDL_MautAT.Click, btnSDL_MautDE.Click, btnSDL_MautMSE.Click, btnSDL_UTA.Click, btnSDL_MautPL.Click,
btnSDL_MautIT.Click, btnSDL_MautSI.Click, btnSDL_MautCZ.Click, btnSDL_ECOTAX.Click, btnSDL_FREJUS.Click, btnSDL_Hugo.Click, btnSDL_DouBox.Click, btnSDL_MotorWay.Click, btnSDL_MautFR.Click, btnAddLeistungVordefiniert.Click, btnSDL_MANAbgas.Click,
btnVeragParkplatz.Click, btnSDL_PLOSE.Click, btnSDL_PLOSE_IT.Click, btnSDL_PLOSE_CZ.Click, btnSDL_PLOSE_MEDPASS.Click
btnVeragParkplatz.Click, btnSDL_PLOSE.Click, btnSDL_PLOSE_IT.Click, btnSDL_PLOSE_CZ.Click, btnSDL_PLOSE_MEDPASS.Click, btnVeragParkplatzNEU.Click
If KdSearchBox1.KdNr <= 0 Then MsgBox("Kunde auswählen!") : Exit Sub
@@ -272,10 +273,11 @@ Public Class frmNewData
If sender.tag = "501" Then
If sender.tag = "501" Or sender.tag = "502" Then
Dim kdnr_tmp = KdSearchBox1.KdNr
Dim kfz_tmp = cbo.Text
Dim history = PF.newEntryVERAG_Card(KdSearchBox1.KdNr, cbo.Text, sender.tag)
If history = -1 Then Exit Sub
Me.SDLLeistung = sender.tag
Me.kdnr = kdnr_tmp

View File

@@ -254,7 +254,7 @@ Public Class usrCntlDatenDetails
RaiseEvent DataChanged(kdNr, Kfz, SDLNr, History)
End Sub
ElseIf SDLLeistung = 217 Then ' PLOSE cz
ElseIf SDLLeistung = 217 Then ' PLOSE MEDPASS
pic.Image = Nothing
Dim usrcntl As New usrCntlSDLLeistungenPLOSE_MEDPASS(kdnr, KfzKennzeichen, SDLLeistung, history)
usrcntl.Dock = DockStyle.Fill
@@ -289,6 +289,17 @@ Public Class usrCntlDatenDetails
AddHandler usrcntl.CHANGED, Sub(kdNr, Kfz, SDLNr, History)
RaiseEvent DataChanged(kdNr, Kfz, SDLNr, History)
End Sub
ElseIf SDLLeistung = 502 Then ' Parkplatz
pic.Image = Nothing
Dim usrcntl As New usrCntlSDLLeistungVERAGCardNEU(kdnr, KfzKennzeichen, SDLLeistung, history)
usrcntl.Dock = DockStyle.Fill
pnlSDLLeistungenDetails.Controls.Add(usrcntl)
AddHandler usrcntl.LKWChanged, Sub(kdNr, newKfz, SDLNr, History)
RaiseEvent Changed(kdNr, newKfz, SDLNr, History)
End Sub
AddHandler usrcntl.CHANGED, Sub(kdNr, Kfz, SDLNr, History)
RaiseEvent DataChanged(kdNr, Kfz, SDLNr, History)
End Sub
End If

View File

@@ -48,6 +48,7 @@ Partial Class usrCntlKartenDaten
Me.btnSDL_PLOSE = New System.Windows.Forms.Button()
Me.btnSDL_PLOSE_IT = New System.Windows.Forms.Button()
Me.btnSDL_PLOSE_CZ = New System.Windows.Forms.Button()
Me.btnSDL_PLOSE_MEDPASS = New System.Windows.Forms.Button()
Me.btnFilter = New System.Windows.Forms.Button()
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.KundenblattAnzeigenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -81,7 +82,7 @@ Partial Class usrCntlKartenDaten
Me.cntxtExcel = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.ToolStripMenuItem3 = New System.Windows.Forms.ToolStripMenuItem()
Me.ToolStripMenuItem6 = New System.Windows.Forms.ToolStripMenuItem()
Me.btnSDL_PLOSE_MEDPASS = New System.Windows.Forms.Button()
Me.btnVERAGCardNew = New System.Windows.Forms.Button()
Me.FlowLayoutPanel.SuspendLayout()
Me.ContextMenuStrip1.SuspendLayout()
Me.Panel1.SuspendLayout()
@@ -126,6 +127,7 @@ Partial Class usrCntlKartenDaten
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_Woelfl)
Me.FlowLayoutPanel.Controls.Add(Me.btnMANAbgasplakette)
Me.FlowLayoutPanel.Controls.Add(Me.btnVERAGParkplatz)
Me.FlowLayoutPanel.Controls.Add(Me.btnVERAGCardNew)
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_PLOSE)
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_PLOSE_IT)
Me.FlowLayoutPanel.Controls.Add(Me.btnSDL_PLOSE_CZ)
@@ -467,7 +469,7 @@ Partial Class usrCntlKartenDaten
Me.btnVERAGParkplatz.Name = "btnVERAGParkplatz"
Me.btnVERAGParkplatz.Size = New System.Drawing.Size(78, 64)
Me.btnVERAGParkplatz.TabIndex = 40
Me.btnVERAGParkplatz.Text = "Parkplatz"
Me.btnVERAGParkplatz.Text = "Parkp. ALT"
Me.btnVERAGParkplatz.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnVERAGParkplatz.UseVisualStyleBackColor = True
'
@@ -479,7 +481,7 @@ Partial Class usrCntlKartenDaten
Me.btnSDL_PLOSE.ForeColor = System.Drawing.Color.Black
Me.btnSDL_PLOSE.Image = Global.SDL.My.Resources.Resources.plose_1
Me.btnSDL_PLOSE.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnSDL_PLOSE.Location = New System.Drawing.Point(156, 64)
Me.btnSDL_PLOSE.Location = New System.Drawing.Point(234, 64)
Me.btnSDL_PLOSE.Margin = New System.Windows.Forms.Padding(0)
Me.btnSDL_PLOSE.Name = "btnSDL_PLOSE"
Me.btnSDL_PLOSE.Size = New System.Drawing.Size(92, 64)
@@ -496,7 +498,7 @@ Partial Class usrCntlKartenDaten
Me.btnSDL_PLOSE_IT.ForeColor = System.Drawing.Color.Black
Me.btnSDL_PLOSE_IT.Image = Global.SDL.My.Resources.Resources.plose_it
Me.btnSDL_PLOSE_IT.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnSDL_PLOSE_IT.Location = New System.Drawing.Point(248, 64)
Me.btnSDL_PLOSE_IT.Location = New System.Drawing.Point(326, 64)
Me.btnSDL_PLOSE_IT.Margin = New System.Windows.Forms.Padding(0)
Me.btnSDL_PLOSE_IT.Name = "btnSDL_PLOSE_IT"
Me.btnSDL_PLOSE_IT.Size = New System.Drawing.Size(78, 64)
@@ -513,7 +515,7 @@ Partial Class usrCntlKartenDaten
Me.btnSDL_PLOSE_CZ.ForeColor = System.Drawing.Color.Black
Me.btnSDL_PLOSE_CZ.Image = Global.SDL.My.Resources.Resources.plose_cz
Me.btnSDL_PLOSE_CZ.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnSDL_PLOSE_CZ.Location = New System.Drawing.Point(326, 64)
Me.btnSDL_PLOSE_CZ.Location = New System.Drawing.Point(404, 64)
Me.btnSDL_PLOSE_CZ.Margin = New System.Windows.Forms.Padding(0)
Me.btnSDL_PLOSE_CZ.Name = "btnSDL_PLOSE_CZ"
Me.btnSDL_PLOSE_CZ.Size = New System.Drawing.Size(78, 64)
@@ -522,6 +524,23 @@ Partial Class usrCntlKartenDaten
Me.btnSDL_PLOSE_CZ.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnSDL_PLOSE_CZ.UseVisualStyleBackColor = True
'
'btnSDL_PLOSE_MEDPASS
'
Me.btnSDL_PLOSE_MEDPASS.Cursor = System.Windows.Forms.Cursors.Default
Me.btnSDL_PLOSE_MEDPASS.FlatAppearance.BorderSize = 0
Me.btnSDL_PLOSE_MEDPASS.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnSDL_PLOSE_MEDPASS.ForeColor = System.Drawing.Color.Black
Me.btnSDL_PLOSE_MEDPASS.Image = Global.SDL.My.Resources.Resources.plose_medpass
Me.btnSDL_PLOSE_MEDPASS.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnSDL_PLOSE_MEDPASS.Location = New System.Drawing.Point(482, 64)
Me.btnSDL_PLOSE_MEDPASS.Margin = New System.Windows.Forms.Padding(0)
Me.btnSDL_PLOSE_MEDPASS.Name = "btnSDL_PLOSE_MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.Size = New System.Drawing.Size(78, 64)
Me.btnSDL_PLOSE_MEDPASS.TabIndex = 44
Me.btnSDL_PLOSE_MEDPASS.Text = "MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnSDL_PLOSE_MEDPASS.UseVisualStyleBackColor = True
'
'btnFilter
'
Me.btnFilter.FlatStyle = System.Windows.Forms.FlatStyle.Flat
@@ -926,22 +945,22 @@ Partial Class usrCntlKartenDaten
Me.ToolStripMenuItem6.Size = New System.Drawing.Size(210, 22)
Me.ToolStripMenuItem6.Text = "Formatiert (dauert länger)"
'
'btnSDL_PLOSE_MEDPASS
'btnVERAGCardNew
'
Me.btnSDL_PLOSE_MEDPASS.Cursor = System.Windows.Forms.Cursors.Default
Me.btnSDL_PLOSE_MEDPASS.FlatAppearance.BorderSize = 0
Me.btnSDL_PLOSE_MEDPASS.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnSDL_PLOSE_MEDPASS.ForeColor = System.Drawing.Color.Black
Me.btnSDL_PLOSE_MEDPASS.Image = Global.SDL.My.Resources.Resources.plose_medpass
Me.btnSDL_PLOSE_MEDPASS.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnSDL_PLOSE_MEDPASS.Location = New System.Drawing.Point(404, 64)
Me.btnSDL_PLOSE_MEDPASS.Margin = New System.Windows.Forms.Padding(0)
Me.btnSDL_PLOSE_MEDPASS.Name = "btnSDL_PLOSE_MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.Size = New System.Drawing.Size(78, 64)
Me.btnSDL_PLOSE_MEDPASS.TabIndex = 44
Me.btnSDL_PLOSE_MEDPASS.Text = "MEDPASS"
Me.btnSDL_PLOSE_MEDPASS.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnSDL_PLOSE_MEDPASS.UseVisualStyleBackColor = True
Me.btnVERAGCardNew.Cursor = System.Windows.Forms.Cursors.Default
Me.btnVERAGCardNew.FlatAppearance.BorderSize = 0
Me.btnVERAGCardNew.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnVERAGCardNew.ForeColor = System.Drawing.Color.Black
Me.btnVERAGCardNew.Image = Global.SDL.My.Resources.Resources.verag_Card1
Me.btnVERAGCardNew.ImageAlign = System.Drawing.ContentAlignment.TopCenter
Me.btnVERAGCardNew.Location = New System.Drawing.Point(156, 64)
Me.btnVERAGCardNew.Margin = New System.Windows.Forms.Padding(0)
Me.btnVERAGCardNew.Name = "btnVERAGCardNew"
Me.btnVERAGCardNew.Size = New System.Drawing.Size(78, 64)
Me.btnVERAGCardNew.TabIndex = 45
Me.btnVERAGCardNew.Text = "Parkplatz"
Me.btnVERAGCardNew.TextAlign = System.Drawing.ContentAlignment.BottomCenter
Me.btnVERAGCardNew.UseVisualStyleBackColor = True
'
'usrCntlKartenDaten
'
@@ -1027,4 +1046,5 @@ Partial Class usrCntlKartenDaten
Friend WithEvents btnSDL_PLOSE_IT As Button
Friend WithEvents btnSDL_PLOSE_CZ As Button
Friend WithEvents btnSDL_PLOSE_MEDPASS As Button
Friend WithEvents btnVERAGCardNew As Button
End Class

View File

@@ -97,6 +97,7 @@ Public Class usrCntlKartenDaten
btnSDL_PLOSE_MEDPASS.Visible = dt.Select("SDLNr=217").Count > 0
btnMANAbgasplakette.Visible = dt.Select("SDLNr=500").Count > 0
btnVERAGParkplatz.Visible = dt.Select("SDLNr=501").Count > 0
btnVERAGCardNew.Visible = dt.Select("SDLNr=502").Count > 0
btnSDL_MautPL.Visible = dt.Select("SDLNr=209").Count > 0
btnSDL_MautSI.Visible = dt.Select("SDLNr=210").Count > 0
@@ -127,6 +128,7 @@ Public Class usrCntlKartenDaten
btnSDL_PLOSE_MEDPASS.Visible = dt.Select("SDLNr=217").Count > 0
btnMANAbgasplakette.Visible = dt.Select("SDLNr=500").Count > 0
btnVERAGParkplatz.Visible = dt.Select("SDLNr=501").Count > 0
btnVERAGCardNew.Visible = dt.Select("SDLNr=502").Count > 0
btnSDL_MautPL.Visible = dt.Select("SDLNr=209").Count > 0
btnSDL_MautSI.Visible = dt.Select("SDLNr=210").Count > 0
@@ -447,6 +449,7 @@ Public Class usrCntlKartenDaten
btnSDL_PLOSE_IT.BackColor = defaufl_color : btnSDL_PLOSE_IT.ForeColor = defaufl_forecolor : btnSDL_PLOSE_IT.FlatAppearance.BorderSize = 0
btnSDL_PLOSE_CZ.BackColor = defaufl_color : btnSDL_PLOSE_CZ.ForeColor = defaufl_forecolor : btnSDL_PLOSE_CZ.FlatAppearance.BorderSize = 0
btnVERAGParkplatz.BackColor = defaufl_color : btnVERAGParkplatz.ForeColor = defaufl_forecolor : btnVERAGParkplatz.FlatAppearance.BorderSize = 0
btnVERAGCardNew.BackColor = defaufl_color : btnVERAGCardNew.ForeColor = defaufl_forecolor : btnVERAGCardNew.FlatAppearance.BorderSize = 0
b.FlatAppearance.BorderSize = 1
@@ -523,6 +526,7 @@ Public Class usrCntlKartenDaten
Case 206 : SQL_STR = "SELECT " & IIf(cbxMax200Eintrage.Checked, " top 200 ", "") & " KundenNr, SDL.SDLNr, KfzKennzeichen, History, Bestelldatum, Lieferdatum, [MSE-Kd-Nr], [PAN-Nr], [SERIE-Nr], GültigBis,Vermerk, Gesperrt, Defekt, Verloren, Gestohlen, Ersatzkarte, SDL.Erfassungsdatum, SDL.Änderungsdatum, SDL.Sachbearbeiter FROM SDL WHERE SDLNr=206"
Case 500 : SQL_STR = "SELECT " & IIf(cbxMax200Eintrage.Checked, " top 200 ", "") & " KundenNr, SDL.SDLNr, KfzKennzeichen, History, Bestelldatum, Lieferdatum, Vermerk, Gesperrt, Defekt, Verloren, Gestohlen, Ersatzkarte,SDL.Erfassungsdatum, SDL.Änderungsdatum, SDL.Sachbearbeiter FROM SDL WHERE SDLNr=500"
Case 501 : SQL_STR = "SELECT " & IIf(cbxMax200Eintrage.Checked, " top 200 ", "") & " KundenNr, SDL.SDLNr, KfzKennzeichen, History, Bestelldatum, Lieferdatum, KartenNr,Fahrer,Kaution, Vermerk,Gesperrt, Defekt, Verloren, Gestohlen, Ersatzkarte, SDL.Erfassungsdatum, SDL.Änderungsdatum, SDL.Sachbearbeiter FROM SDL WHERE SDLNr=501"
Case 502 : SQL_STR = "SELECT " & IIf(cbxMax200Eintrage.Checked, " top 200 ", "") & " KundenNr, SDL.SDLNr, KfzKennzeichen, History, Bestelldatum, Lieferdatum, KartenNr,Fahrer,Kaution, Vermerk,Gesperrt, Defekt, Verloren, Gestohlen, Ersatzkarte, SDL.Erfassungsdatum, SDL.Änderungsdatum, SDL.Sachbearbeiter FROM SDL WHERE SDLNr=502"
Case Else
SQL_STR = "SELECT " & IIf(cbxMax200Eintrage.Checked, " top 200 ", "") & " KundenNr, SDL.SDLNr,SDLBez, KfzKennzeichen, History, Vermerk, Gesperrt, Defekt, Verloren, Gestohlen, Ersatzkarte, SDL.Erfassungsdatum, SDL.Änderungsdatum, SDL.Sachbearbeiter FROM SDL INNER JOIN Speditionsdienstleistungen ON Speditionsdienstleistungen.SDLNr=SDL.SDLNr"
SQL_STR &= " AND Speditionsdienstleistungen.SDLTypNr IN (1,2) "
@@ -576,6 +580,7 @@ Public Class usrCntlKartenDaten
Case 206 : Return btnSDL_DouBox
Case 500 : Return btnMANAbgasplakette
Case 501 : Return btnVERAGParkplatz
Case 502 : Return btnVERAGCardNew
Case Else : Return btnSDL_Alle
End Select
End Function
@@ -654,6 +659,9 @@ Public Class usrCntlKartenDaten
Private Sub btnVERAGParkplatz_Click(sender As Object, e As EventArgs) Handles btnVERAGParkplatz.Click
SET_SDL(501)
End Sub
Private Sub btnVERAGCardNew_Click(sender As Object, e As EventArgs) Handles btnVERAGCardNew.Click
SET_SDL(502)
End Sub
Private Sub dgvSDL_ColumnWidthChanged(sender As Object, e As DataGridViewColumnEventArgs) Handles dgvSDL.ColumnWidthChanged
'initSDLBinding()
@@ -747,6 +755,7 @@ Public Class usrCntlKartenDaten
If sdlNr = 101 Then btnBenachrichtigungKartenboxen.Enabled = True
If sdlNr = 500 Then btnBenachrichtigungKartenboxen.Enabled = True
If sdlNr = 501 Then btnBenachrichtigungKartenboxen.Enabled = True
If sdlNr = 502 Then btnBenachrichtigungKartenboxen.Enabled = True
If sdlNr = 203 Then btnBenachrichtigungKartenboxen.Enabled = True 'CZ
@@ -1025,7 +1034,7 @@ Public Class usrCntlKartenDaten
Dim sdlTMP = r.Cells("SDLNr").Value
Dim kfzKzTMP = r.Cells("KfzKennzeichen").Value
Dim hisTMP = r.Cells("History").Value
If sdlTMP = 501 Then
If sdlTMP = 501 Or sdlTMP = 502 Then
donotdel = True
Else
SQL.doSQL("DELETE TOP (1) FROM SDL WHERE KundenNr='" & kdTMP & "' AND KfzKennzeichen='" & kfzKzTMP & "' AND SDLNr='" & sdlTMP & "' AND History='" & hisTMP & "'", "SDL", True)