Mitarbeiter, etc.

This commit is contained in:
2026-05-20 16:39:47 +02:00
parent 514f4f93e3
commit 6e91ef81b3
9 changed files with 790 additions and 407 deletions

View File

@@ -244,23 +244,8 @@ Partial Class frmMitarbDetails
Me.dgvUberstundenauszahlungen = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
Me.dgvData = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
Me.TabPage6 = New System.Windows.Forms.TabPage()
Me.txtSessDatVon = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.txtSessDatBis = New VERAG_PROG_ALLGEMEIN.MyTextBox()
Me.btnAddDay = New System.Windows.Forms.Button()
Me.btnReduceDay = New System.Windows.Forms.Button()
Me.btnToday = New System.Windows.Forms.Button()
Me.Label73 = New System.Windows.Forms.Label()
Me.btnJahr = New System.Windows.Forms.Button()
Me.btnBisJahr = New System.Windows.Forms.Button()
Me.btnVonJahr = New System.Windows.Forms.Button()
Me.btnMonat = New System.Windows.Forms.Button()
Me.btnBisMonat = New System.Windows.Forms.Button()
Me.btnVonMonat = New System.Windows.Forms.Button()
Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
Me.Label74 = New System.Windows.Forms.Label()
Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
Me.dgvSessions = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.Panel2 = New System.Windows.Forms.Panel()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.Panel1.SuspendLayout()
Me.TabControl2.SuspendLayout()
@@ -288,7 +273,6 @@ Partial Class frmMitarbDetails
CType(Me.dgvUberstundenauszahlungen, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.dgvData, System.ComponentModel.ISupportInitialize).BeginInit()
Me.TabPage6.SuspendLayout()
CType(Me.dgvSessions, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'PictureBox1
@@ -2759,22 +2743,7 @@ Partial Class frmMitarbDetails
'
'TabPage6
'
Me.TabPage6.Controls.Add(Me.txtSessDatVon)
Me.TabPage6.Controls.Add(Me.txtSessDatBis)
Me.TabPage6.Controls.Add(Me.btnAddDay)
Me.TabPage6.Controls.Add(Me.btnReduceDay)
Me.TabPage6.Controls.Add(Me.btnToday)
Me.TabPage6.Controls.Add(Me.Label73)
Me.TabPage6.Controls.Add(Me.btnJahr)
Me.TabPage6.Controls.Add(Me.btnBisJahr)
Me.TabPage6.Controls.Add(Me.btnVonJahr)
Me.TabPage6.Controls.Add(Me.btnMonat)
Me.TabPage6.Controls.Add(Me.btnBisMonat)
Me.TabPage6.Controls.Add(Me.btnVonMonat)
Me.TabPage6.Controls.Add(Me.DateTimePicker2)
Me.TabPage6.Controls.Add(Me.Label74)
Me.TabPage6.Controls.Add(Me.DateTimePicker1)
Me.TabPage6.Controls.Add(Me.dgvSessions)
Me.TabPage6.Controls.Add(Me.Panel2)
Me.TabPage6.Location = New System.Drawing.Point(4, 22)
Me.TabPage6.Name = "TabPage6"
Me.TabPage6.Size = New System.Drawing.Size(750, 747)
@@ -2782,245 +2751,18 @@ Partial Class frmMitarbDetails
Me.TabPage6.Text = "Sessions"
Me.TabPage6.UseVisualStyleBackColor = True
'
'txtSessDatVon
'
Me.txtSessDatVon._DateTimeOnly = False
Me.txtSessDatVon._numbersOnly = False
Me.txtSessDatVon._numbersOnlyKommastellen = ""
Me.txtSessDatVon._numbersOnlyTrennzeichen = True
Me.txtSessDatVon._Prozent = False
Me.txtSessDatVon._ShortDateNew = True
Me.txtSessDatVon._ShortDateOnly = False
Me.txtSessDatVon._TimeOnly = False
Me.txtSessDatVon._TimeOnly_Seconds = False
Me.txtSessDatVon._value = ""
Me.txtSessDatVon._Waehrung = False
Me.txtSessDatVon._WaehrungZeichen = True
Me.txtSessDatVon.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtSessDatVon.ForeColor = System.Drawing.Color.Black
Me.txtSessDatVon.Location = New System.Drawing.Point(43, 11)
Me.txtSessDatVon.MaxLength = 10
Me.txtSessDatVon.MaxLineLength = -1
Me.txtSessDatVon.MaxLines_Warning = ""
Me.txtSessDatVon.MaxLines_Warning_Label = Nothing
Me.txtSessDatVon.Name = "txtSessDatVon"
Me.txtSessDatVon.Size = New System.Drawing.Size(61, 20)
Me.txtSessDatVon.TabIndex = 158
'
'txtSessDatBis
'
Me.txtSessDatBis._DateTimeOnly = False
Me.txtSessDatBis._numbersOnly = False
Me.txtSessDatBis._numbersOnlyKommastellen = ""
Me.txtSessDatBis._numbersOnlyTrennzeichen = True
Me.txtSessDatBis._Prozent = False
Me.txtSessDatBis._ShortDateNew = True
Me.txtSessDatBis._ShortDateOnly = False
Me.txtSessDatBis._TimeOnly = False
Me.txtSessDatBis._TimeOnly_Seconds = False
Me.txtSessDatBis._value = ""
Me.txtSessDatBis._Waehrung = False
Me.txtSessDatBis._WaehrungZeichen = True
Me.txtSessDatBis.Enabled = False
Me.txtSessDatBis.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtSessDatBis.ForeColor = System.Drawing.Color.Black
Me.txtSessDatBis.Location = New System.Drawing.Point(175, 12)
Me.txtSessDatBis.MaxLength = 10
Me.txtSessDatBis.MaxLineLength = -1
Me.txtSessDatBis.MaxLines_Warning = ""
Me.txtSessDatBis.MaxLines_Warning_Label = Nothing
Me.txtSessDatBis.Name = "txtSessDatBis"
Me.txtSessDatBis.Size = New System.Drawing.Size(61, 20)
Me.txtSessDatBis.TabIndex = 160
'
'btnAddDay
'
Me.btnAddDay.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnAddDay.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnAddDay.ForeColor = System.Drawing.Color.Black
Me.btnAddDay.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnAddDay.Location = New System.Drawing.Point(399, 9)
Me.btnAddDay.Margin = New System.Windows.Forms.Padding(0)
Me.btnAddDay.Name = "btnAddDay"
Me.btnAddDay.Size = New System.Drawing.Size(34, 23)
Me.btnAddDay.TabIndex = 166
Me.btnAddDay.Text = ">>"
Me.btnAddDay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnAddDay.UseVisualStyleBackColor = True
'
'btnReduceDay
'
Me.btnReduceDay.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnReduceDay.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnReduceDay.ForeColor = System.Drawing.Color.Black
Me.btnReduceDay.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnReduceDay.Location = New System.Drawing.Point(280, 9)
Me.btnReduceDay.Margin = New System.Windows.Forms.Padding(0)
Me.btnReduceDay.Name = "btnReduceDay"
Me.btnReduceDay.Size = New System.Drawing.Size(34, 23)
Me.btnReduceDay.TabIndex = 164
Me.btnReduceDay.Text = "<<"
Me.btnReduceDay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnReduceDay.UseVisualStyleBackColor = True
'
'btnToday
'
Me.btnToday.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnToday.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnToday.ForeColor = System.Drawing.Color.Black
Me.btnToday.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnToday.Location = New System.Drawing.Point(313, 9)
Me.btnToday.Margin = New System.Windows.Forms.Padding(0)
Me.btnToday.Name = "btnToday"
Me.btnToday.Size = New System.Drawing.Size(87, 23)
Me.btnToday.TabIndex = 165
Me.btnToday.Text = "Heute"
Me.btnToday.UseVisualStyleBackColor = True
'
'Label73
'
Me.Label73.AutoSize = True
Me.Label73.Location = New System.Drawing.Point(146, 15)
Me.Label73.Name = "Label73"
Me.Label73.Size = New System.Drawing.Size(23, 13)
Me.Label73.TabIndex = 162
Me.Label73.Text = "bis:"
'
'btnJahr
'
Me.btnJahr.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnJahr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnJahr.ForeColor = System.Drawing.Color.Black
Me.btnJahr.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnJahr.Location = New System.Drawing.Point(625, 9)
Me.btnJahr.Margin = New System.Windows.Forms.Padding(0)
Me.btnJahr.Name = "btnJahr"
Me.btnJahr.Size = New System.Drawing.Size(87, 23)
Me.btnJahr.TabIndex = 172
Me.btnJahr.Text = "2016"
Me.btnJahr.UseVisualStyleBackColor = True
'
'btnBisJahr
'
Me.btnBisJahr.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnBisJahr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnBisJahr.ForeColor = System.Drawing.Color.Black
Me.btnBisJahr.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnBisJahr.Location = New System.Drawing.Point(711, 9)
Me.btnBisJahr.Margin = New System.Windows.Forms.Padding(0)
Me.btnBisJahr.Name = "btnBisJahr"
Me.btnBisJahr.Size = New System.Drawing.Size(34, 23)
Me.btnBisJahr.TabIndex = 173
Me.btnBisJahr.Text = ">>"
Me.btnBisJahr.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnBisJahr.UseVisualStyleBackColor = True
'
'btnVonJahr
'
Me.btnVonJahr.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnVonJahr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnVonJahr.ForeColor = System.Drawing.Color.Black
Me.btnVonJahr.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnVonJahr.Location = New System.Drawing.Point(592, 9)
Me.btnVonJahr.Margin = New System.Windows.Forms.Padding(0)
Me.btnVonJahr.Name = "btnVonJahr"
Me.btnVonJahr.Size = New System.Drawing.Size(34, 23)
Me.btnVonJahr.TabIndex = 171
Me.btnVonJahr.Text = "<<"
Me.btnVonJahr.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnVonJahr.UseVisualStyleBackColor = True
'
'btnMonat
'
Me.btnMonat.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnMonat.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnMonat.ForeColor = System.Drawing.Color.Black
Me.btnMonat.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnMonat.Location = New System.Drawing.Point(469, 9)
Me.btnMonat.Margin = New System.Windows.Forms.Padding(0)
Me.btnMonat.Name = "btnMonat"
Me.btnMonat.Size = New System.Drawing.Size(87, 23)
Me.btnMonat.TabIndex = 169
Me.btnMonat.Text = "September"
Me.btnMonat.UseVisualStyleBackColor = True
'
'btnBisMonat
'
Me.btnBisMonat.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnBisMonat.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnBisMonat.ForeColor = System.Drawing.Color.Black
Me.btnBisMonat.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnBisMonat.Location = New System.Drawing.Point(555, 9)
Me.btnBisMonat.Margin = New System.Windows.Forms.Padding(0)
Me.btnBisMonat.Name = "btnBisMonat"
Me.btnBisMonat.Size = New System.Drawing.Size(34, 23)
Me.btnBisMonat.TabIndex = 170
Me.btnBisMonat.Text = ">>"
Me.btnBisMonat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnBisMonat.UseVisualStyleBackColor = True
'
'btnVonMonat
'
Me.btnVonMonat.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnVonMonat.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
Me.btnVonMonat.ForeColor = System.Drawing.Color.Black
Me.btnVonMonat.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnVonMonat.Location = New System.Drawing.Point(436, 9)
Me.btnVonMonat.Margin = New System.Windows.Forms.Padding(0)
Me.btnVonMonat.Name = "btnVonMonat"
Me.btnVonMonat.Size = New System.Drawing.Size(34, 23)
Me.btnVonMonat.TabIndex = 168
Me.btnVonMonat.Text = "<<"
Me.btnVonMonat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
Me.btnVonMonat.UseVisualStyleBackColor = True
'
'DateTimePicker2
'
Me.DateTimePicker2.CustomFormat = "''"
Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom
Me.DateTimePicker2.Location = New System.Drawing.Point(175, 12)
Me.DateTimePicker2.Margin = New System.Windows.Forms.Padding(0)
Me.DateTimePicker2.Name = "DateTimePicker2"
Me.DateTimePicker2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.DateTimePicker2.Size = New System.Drawing.Size(95, 20)
Me.DateTimePicker2.TabIndex = 161
'
'Label74
'
Me.Label74.AutoSize = True
Me.Label74.Location = New System.Drawing.Point(14, 15)
Me.Label74.Name = "Label74"
Me.Label74.Size = New System.Drawing.Size(28, 13)
Me.Label74.TabIndex = 167
Me.Label74.Text = "von:"
'
'DateTimePicker1
'
Me.DateTimePicker1.CustomFormat = "''"
Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom
Me.DateTimePicker1.Location = New System.Drawing.Point(43, 11)
Me.DateTimePicker1.Margin = New System.Windows.Forms.Padding(0)
Me.DateTimePicker1.Name = "DateTimePicker1"
Me.DateTimePicker1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.DateTimePicker1.Size = New System.Drawing.Size(95, 20)
Me.DateTimePicker1.TabIndex = 159
'
'dgvSessions
'
Me.dgvSessions.AKTUALISIERUNGS_INTERVALL = -1
Me.dgvSessions.AllowUserToAddRows = False
Me.dgvSessions.AllowUserToDeleteRows = False
Me.dgvSessions.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.dgvSessions.Location = New System.Drawing.Point(3, 38)
Me.dgvSessions.Name = "dgvSessions"
Me.dgvSessions.Size = New System.Drawing.Size(744, 706)
Me.dgvSessions.TabIndex = 156
'
'ContextMenuStrip1
'
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
Me.ContextMenuStrip1.Size = New System.Drawing.Size(61, 4)
'
'Panel2
'
Me.Panel2.Location = New System.Drawing.Point(3, 3)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(744, 741)
Me.Panel2.TabIndex = 0
'
'frmMitarbDetails
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
@@ -3072,8 +2814,6 @@ Partial Class frmMitarbDetails
CType(Me.dgvUberstundenauszahlungen, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.dgvData, System.ComponentModel.ISupportInitialize).EndInit()
Me.TabPage6.ResumeLayout(False)
Me.TabPage6.PerformLayout()
CType(Me.dgvSessions, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
@@ -3295,23 +3035,8 @@ Partial Class frmMitarbDetails
Friend WithEvents Label63 As Label
Friend WithEvents cboFunktion As VERAG_PROG_ALLGEMEIN.MyComboBox
Friend WithEvents TabPage6 As TabPage
Friend WithEvents txtSessDatVon As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents txtSessDatBis As VERAG_PROG_ALLGEMEIN.MyTextBox
Friend WithEvents btnAddDay As Button
Friend WithEvents btnReduceDay As Button
Friend WithEvents btnToday As Button
Friend WithEvents Label73 As Label
Friend WithEvents btnJahr As Button
Friend WithEvents btnBisJahr As Button
Friend WithEvents btnVonJahr As Button
Friend WithEvents btnMonat As Button
Friend WithEvents btnBisMonat As Button
Friend WithEvents btnVonMonat As Button
Friend WithEvents DateTimePicker2 As DateTimePicker
Friend WithEvents Label74 As Label
Friend WithEvents DateTimePicker1 As DateTimePicker
Friend WithEvents dgvSessions As VERAG_PROG_ALLGEMEIN.MyDatagridview
Friend WithEvents tabBenachrichtigungen As TabPage
Friend WithEvents clInterneMailBenachrichtigungen As CheckedListBox
Friend WithEvents cbxeigeneFirma As CheckBox
Friend WithEvents Panel2 As Panel
End Class

View File

@@ -1,6 +1,5 @@

Imports System.Text.RegularExpressions
Imports Confluent.Kafka
Imports VERAG_PROG_ALLGEMEIN
Public Class frmMitarbDetails
@@ -1719,12 +1718,8 @@ Public Class frmMitarbDetails
End Try
ElseIf TabControl2.SelectedIndex = 3 Then
txtSessDatVon.Text = Now.ToShortDateString
txtSessDatBis.Text = Now.ToShortDateString
btnMonat.Text = MONAT.ToString("MMMM")
btnJahr.Text = JAHR.Year
Dim usrcnlt = New usrcntlSessions(mitarbeiter)
Panel2.Controls.Add(usrcnlt)
End If
@@ -1754,142 +1749,135 @@ Public Class frmMitarbDetails
End Sub
Private Sub Button6_Click1(sender As Object, e As EventArgs) Handles btnReduceDay.Click
srcTAG = srcTAG.AddDays(-1)
initBtns("Tag")
End Sub
'Private Sub Button6_Click1(sender As Object, e As EventArgs)
' srcTAG = srcTAG.AddDays(-1)
' initBtns("Tag")
'End Sub
Private Sub Button7_Click1(sender As Object, e As EventArgs) Handles btnAddDay.Click
srcTAG = srcTAG.AddDays(1)
initBtns("Tag")
End Sub
'Private Sub Button7_Click1(sender As Object, e As EventArgs)
' srcTAG = srcTAG.AddDays(1)
' initBtns("Tag")
'End Sub
Private Sub Button5_Click1(sender As Object, e As EventArgs) Handles btnToday.Click
initBtns("Tag")
End Sub
'Private Sub Button5_Click1(sender As Object, e As EventArgs)
' initBtns("Tag")
'End Sub
Private Sub btnJahr_Click(sender As Object, e As EventArgs) Handles btnJahr.Click
initBtns("Jahr")
End Sub
'Private Sub btnJahr_Click(sender As Object, e As EventArgs)
' initBtns("Jahr")
'End Sub
Private Sub btnBisMonat_Click(sender As Object, e As EventArgs) Handles btnBisMonat.Click
MONAT = MONAT.AddMonths(1)
initBtns("Monat")
End Sub
'Private Sub btnBisMonat_Click(sender As Object, e As EventArgs)
' MONAT = MONAT.AddMonths(1)
' initBtns("Monat")
'End Sub
Private Sub btnVonMonat_Click(sender As Object, e As EventArgs) Handles btnVonMonat.Click
MONAT = MONAT.AddMonths(-1)
initBtns("Monat")
End Sub
'Private Sub btnVonMonat_Click(sender As Object, e As EventArgs)
' MONAT = MONAT.AddMonths(-1)
' initBtns("Monat")
'End Sub
Private Sub btnBisJahr_Click(sender As Object, e As EventArgs) Handles btnBisJahr.Click
JAHR = JAHR.AddYears(1)
initBtns("Jahr")
End Sub
'Private Sub btnBisJahr_Click(sender As Object, e As EventArgs)
' JAHR = JAHR.AddYears(1)
' initBtns("Jahr")
'End Sub
Private Sub btnVonJahr_Click(sender As Object, e As EventArgs) Handles btnVonJahr.Click
JAHR = JAHR.AddYears(-1)
initBtns("Jahr")
End Sub
'Private Sub btnVonJahr_Click(sender As Object, e As EventArgs)
' JAHR = JAHR.AddYears(-1)
' initBtns("Jahr")
'End Sub
Private Sub btnMonat_Click(sender As Object, e As EventArgs) Handles btnMonat.Click
initBtns("Monat")
End Sub
'Private Sub btnMonat_Click(sender As Object, e As EventArgs)
' initBtns("Monat")
'End Sub
Dim MONAT As Date = CDate("01." & Now.Month & "." & Now.Year) '.AddMonths(-1)
Dim srcTAG As Date = CDate(Now.ToShortDateString)
'Dim MONAT As Date = CDate("01." & Now.Month & "." & Now.Year) '.AddMonths(-1)
'Dim srcTAG As Date = CDate(Now.ToShortDateString)
Dim JAHR As Date = CDate("01.01." & Now.Year)
Sub initBtns(MonatJahr)
btnMonat.Text = MONAT.ToString("MMMM")
btnJahr.Text = JAHR.Year
Select Case MonatJahr
Case "Monat"
DateTimePicker1.Value = MONAT
DateTimePicker2.Value = MONAT.AddMonths(1).AddDays(-1)
Case "Jahr"
' If cbxGeschaftsjahr.Checked Then
'DateTimePicker1.Value = JAHR.AddMonths(1)
' DateTimePicker2.Value = JAHR.AddYears(1).AddMonths(1).AddDays(-1)
' Else
DateTimePicker1.Value = JAHR
DateTimePicker2.Value = JAHR.AddYears(1).AddDays(-1)
'End If
Case "Tag"
' If cbxGeschaftsjahr.Checked Then
'DateTimePicker1.Value = JAHR.AddMonths(1)
' DateTimePicker2.Value = JAHR.AddYears(1).AddMonths(1).AddDays(-1)
' Else
DateTimePicker1.Value = srcTAG
DateTimePicker2.Value = srcTAG
If srcTAG = Now.ToShortDateString Then
btnToday.Text = "Heute"
ElseIf srcTAG = Now.AddDays(-1).ToShortDateString Then
btnToday.Text = "Gestern"
ElseIf srcTAG = Now.AddDays(-2).ToShortDateString Then
btnToday.Text = "Vorgestern"
Else
btnToday.Text = srcTAG.ToString("dd.MM")
End If
'Dim JAHR As Date = CDate("01.01." & Now.Year)
'Sub initBtns(MonatJahr)
' btnMonat.Text = MONAT.ToString("MMMM")
' btnJahr.Text = JAHR.Year
' Select Case MonatJahr
' Case "Monat"
' DateTimePicker1.Value = MONAT
' DateTimePicker2.Value = MONAT.AddMonths(1).AddDays(-1)
' Case "Jahr"
' DateTimePicker1.Value = JAHR
' DateTimePicker2.Value = JAHR.AddYears(1).AddDays(-1)
' 'End If
' Case "Tag"
' DateTimePicker1.Value = srcTAG
' DateTimePicker2.Value = srcTAG
' If srcTAG = Now.ToShortDateString Then
' btnToday.Text = "Heute"
' ElseIf srcTAG = Now.AddDays(-1).ToShortDateString Then
' btnToday.Text = "Gestern"
' ElseIf srcTAG = Now.AddDays(-2).ToShortDateString Then
' btnToday.Text = "Vorgestern"
' Else
' btnToday.Text = srcTAG.ToString("dd.MM")
' End If
'End If
Case ""
DateTimePicker1.Value = ("01." & Now.Month & "." & Now.Year)
DateTimePicker2.Value = Now
End Select
' 'End If
' Case ""
' DateTimePicker1.Value = ("01." & Now.Month & "." & Now.Year)
' DateTimePicker2.Value = Now
' End Select
initdgvSessions(CDate(DateTimePicker1.Value).Date, CDate(DateTimePicker2.Value).Date)
'btnSuche.PerformClick()
End Sub
' initdgvSessions(CDate(DateTimePicker1.Value).Date, CDate(DateTimePicker2.Value).Date)
' 'btnSuche.PerformClick()
'End Sub
Private Sub initdgvSessions(von As Date, bis As Date)
'Private Sub initdgvSessions(von As Date, bis As Date)
Dim SQL_SESSIONS = "select [sess_niederlassung],[sess_ipAddress],[sess_PCName],[sess_PCUserName],[sess_login],[sess_logout],[sess_lastRm],[sess_lastActivity],[sess_lastBootUpTime]
FROM [ADMIN].[dbo].[tblSessions]
where cast(sess_login as Date) between '" & von.ToShortDateString & "' and '" & bis.ToShortDateString & "' and sess_maId = " & mitarbeiter.mit_id & "
Order by sess_login"
' Dim SQL_String = ""
dgvSessions.SET_SQL(SQL_SESSIONS, "ADMIN")
dgvSessions.LOAD()
With dgvSessions
''.AutoGenerateColumns = False
''.Columns("ignoreAuszahlungsdatum").CellTemplate = cell
'.Columns("ignoreAuszahlungsdatum").Width = 70
'.Columns("ignoreAuszahlungsdatum").HeaderText = "zu spät eingetragen"
'.Columns("ignoreAuszahlungsdatum").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
'.Columns("Datum").Width = 70
'.Columns("ÜS100").Width = 70
'.Columns("ÜS100").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
'.Columns("ÜS50").Width = 70
'.Columns("ÜS50").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
'.Columns("ÜS25").Width = 70
'.Columns("ÜS25").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
'.Columns("ÜS50_Saldo").Width = 70
'.Columns("ÜS50_Saldo").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
'.Columns("ausbezahlt").Width = 70
'.Columns("ausbezahlt").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
End With
' Dim SQL_SESSIONS = "select 'AVISO/SDL' as System,[sess_niederlassung],[sess_ipAddress],[sess_PCName],[sess_PCUserName],[sess_login],[sess_logout]
' FROM [ADMIN].[dbo].[tblSessions]
' where cast(sess_login as Date) between '" & von.ToShortDateString & "' and '" & bis.ToShortDateString & "' and sess_maId = " & mitarbeiter.mit_id
End Sub
' If mitarbeiter.mit_AliasAD_Username IsNot Nothing AndAlso mitarbeiter.mit_AliasAD_Username <> "" AndAlso mitarbeiter.mit_AliasAD_Domain IsNot Nothing AndAlso mitarbeiter.mit_AliasAD_Domain <> "" Then
'Private Sub cbxeigeneFirma_CheckedChanged(sender As Object, e As EventArgs) Handles cbxeigeneFirma.CheckedChanged
' If Not cbxeigeneFirma.Checked Then
' Dim SQL_SESSION_TS = "SELECT 'TS/PC','-','-',[TSServer],[BenutzerAnmeldeName],[LogOn_datetime],[LogOff_datetime]
' FROM [Doku].[dbo].[TbL_LogOnLogOffLog]
' where [BenutzerAnmeldeName] = '" & mitarbeiter.mit_AliasAD_Domain & "\" & mitarbeiter.mit_AliasAD_Username & "' and cast([LogOn_datetime] as Date) between '" & von.ToShortDateString & "' and '" & bis.ToShortDateString & "'"
' If cboFirmaFMZOLL._value <> "" AndAlso IsNumeric(cboFirmaFMZOLL._value) Then
' loadBenachrichtiungenListe(CInt(cboFirmaFMZOLL._value))
' SQL_String = " select * FROM ( " & SQL_SESSIONS & " UNION ALL " & SQL_SESSION_TS & ") TEMP order by TEMP.sess_login"
' Else
' SQL_String = " select * FROM ( " & SQL_SESSIONS & ") TEMP order by TEMP.sess_login"
' End If
' Else
' loadBenachrichtiungenListe()
' dgvSessions.SET_SQL(SQL_String, "ADMIN")
' dgvSessions.LOAD()
' With dgvSessions
' If dgvSessions.Rows.Count > 0 Then
' '.AutoGenerateColumns = False
' '.Columns("ignoreAuszahlungsdatum").CellTemplate = cell
' .Columns("System").Width = 70
' .Columns("sess_niederlassung").Width = 50
' .Columns("sess_niederlassung").HeaderText = "NL"
' .Columns("sess_ipAddress").Width = 100
' .Columns("sess_ipAddress").HeaderText = "IP-Adr"
' .Columns("sess_PCName").Width = 70
' .Columns("sess_PCName").HeaderText = "PC"
' .Columns("sess_PCUserName").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
' .Columns("sess_PCUserName").HeaderText = "Username"
' .Columns("sess_login").Width = 100
' .Columns("sess_login").HeaderText = "Login"
' .Columns("sess_logout").Width = 100
' .Columns("sess_logout").HeaderText = "Logout"
' End If
' Else
' loadBenachrichtiungenListe()
' End If
' End With
'End Sub