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

@@ -281,6 +281,7 @@ Partial Class frmDiestAddMa
Me.Label58 = New System.Windows.Forms.Label()
Me.lblLand = New System.Windows.Forms.Label()
Me.cboLand = New System.Windows.Forms.ComboBox()
Me.btnSessions = New System.Windows.Forms.Button()
Me.grpTeilzeit.SuspendLayout()
Me.TabControl1.SuspendLayout()
Me.TabPage1.SuspendLayout()
@@ -2860,12 +2861,24 @@ Partial Class frmDiestAddMa
Me.cboLand.Size = New System.Drawing.Size(72, 21)
Me.cboLand.TabIndex = 29
'
'btnSessions
'
Me.btnSessions.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.btnSessions.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
Me.btnSessions.Location = New System.Drawing.Point(391, 555)
Me.btnSessions.Name = "btnSessions"
Me.btnSessions.Size = New System.Drawing.Size(86, 37)
Me.btnSessions.TabIndex = 30
Me.btnSessions.Text = "Sessions"
Me.btnSessions.UseVisualStyleBackColor = True
'
'frmDiestAddMa
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.White
Me.ClientSize = New System.Drawing.Size(503, 626)
Me.Controls.Add(Me.btnSessions)
Me.Controls.Add(Me.cboLand)
Me.Controls.Add(Me.lblLand)
Me.Controls.Add(Me.Label58)
@@ -3176,4 +3189,5 @@ Partial Class frmDiestAddMa
Friend WithEvents Label58 As Label
Friend WithEvents lblLand As Label
Friend WithEvents cboLand As ComboBox
Friend WithEvents btnSessions As Button
End Class

View File

@@ -1,4 +1,7 @@
Imports System.Text.RegularExpressions
Imports GrapeCity
Imports VERAG_PROG_ALLGEMEIN
Imports VERAG_PROG_ALLGEMEIN.TESTJSON
Public Class frmDiestAddMa
@@ -60,6 +63,12 @@ Public Class frmDiestAddMa
cboLand.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("DE", "DE"))
cboLand.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("GB", "GB"))
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("SESSIONS", Me) Then
btnSessions.Visible = True
Else
btnSessions.Visible = False
End If
@@ -759,4 +768,23 @@ Public Class frmDiestAddMa
End Try
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles btnSessions.Click
Using frm As New Form
Dim mitarbeiter As New VERAG_PROG_ALLGEMEIN.cMitarbeiter(MA.dstma_mitId)
Dim usrcnlt As New usrcntlSessions(mitarbeiter)
frm.Text = "Sessions von " & mitarbeiter.mit_vname & " " & mitarbeiter.mit_nname
frm.Controls.Add(usrcnlt)
frm.ClientSize = usrcnlt.Size
frm.StartPosition = FormStartPosition.CenterScreen
frm.FormBorderStyle = FormBorderStyle.FixedDialog
frm.ShowDialog()
End Using
End Sub
End Class

331
UID/Dienstplan/usrcntlSessions.Designer.vb generated Normal file
View File

@@ -0,0 +1,331 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class usrcntlSessions
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.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)
CType(Me.dgvSessions, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'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, 12)
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 = 175
'
'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, 13)
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 = 177
'
'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, 10)
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 = 182
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, 10)
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 = 180
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, 10)
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 = 181
Me.btnToday.Text = "Heute"
Me.btnToday.UseVisualStyleBackColor = True
'
'Label73
'
Me.Label73.AutoSize = True
Me.Label73.Location = New System.Drawing.Point(146, 16)
Me.Label73.Name = "Label73"
Me.Label73.Size = New System.Drawing.Size(23, 13)
Me.Label73.TabIndex = 179
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, 10)
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 = 188
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, 10)
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 = 189
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, 10)
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 = 187
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, 10)
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 = 185
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, 10)
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 = 186
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, 10)
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 = 184
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, 13)
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 = 178
'
'Label74
'
Me.Label74.AutoSize = True
Me.Label74.Location = New System.Drawing.Point(14, 16)
Me.Label74.Name = "Label74"
Me.Label74.Size = New System.Drawing.Size(28, 13)
Me.Label74.TabIndex = 183
Me.Label74.Text = "von:"
'
'DateTimePicker1
'
Me.DateTimePicker1.CustomFormat = "''"
Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom
Me.DateTimePicker1.Location = New System.Drawing.Point(43, 12)
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 = 176
'
'dgvSessions
'
Me.dgvSessions.AKTUALISIERUNGS_INTERVALL = -1
Me.dgvSessions.AllowUserToAddRows = False
Me.dgvSessions.AllowUserToDeleteRows = False
Me.dgvSessions.AllowUserToResizeColumns = False
Me.dgvSessions.AllowUserToResizeRows = False
Me.dgvSessions.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.dgvSessions.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
Me.dgvSessions.Location = New System.Drawing.Point(3, 39)
Me.dgvSessions.Name = "dgvSessions"
Me.dgvSessions.RowHeadersVisible = False
Me.dgvSessions.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
Me.dgvSessions.ShowEditingIcon = False
Me.dgvSessions.Size = New System.Drawing.Size(744, 706)
Me.dgvSessions.TabIndex = 174
'
'usrcntlSessions
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Controls.Add(Me.txtSessDatVon)
Me.Controls.Add(Me.txtSessDatBis)
Me.Controls.Add(Me.btnAddDay)
Me.Controls.Add(Me.btnReduceDay)
Me.Controls.Add(Me.btnToday)
Me.Controls.Add(Me.Label73)
Me.Controls.Add(Me.btnJahr)
Me.Controls.Add(Me.btnBisJahr)
Me.Controls.Add(Me.btnVonJahr)
Me.Controls.Add(Me.btnMonat)
Me.Controls.Add(Me.btnBisMonat)
Me.Controls.Add(Me.btnVonMonat)
Me.Controls.Add(Me.DateTimePicker2)
Me.Controls.Add(Me.Label74)
Me.Controls.Add(Me.DateTimePicker1)
Me.Controls.Add(Me.dgvSessions)
Me.MinimumSize = New System.Drawing.Size(767, 767)
Me.Name = "usrcntlSessions"
Me.Size = New System.Drawing.Size(767, 767)
CType(Me.dgvSessions, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
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
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,168 @@
Imports VERAG_PROG_ALLGEMEIN
Public Class usrcntlSessions
Dim mitarbeiter As VERAG_PROG_ALLGEMEIN.cMitarbeiter
Public Sub New()
' Dieser Aufruf ist für den Designer erforderlich.
InitializeComponent()
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
End Sub
Public Sub New(_mitarbeiter As VERAG_PROG_ALLGEMEIN.cMitarbeiter)
' Dieser Aufruf ist für den Designer erforderlich.
InitializeComponent()
Me.mitarbeiter = _mitarbeiter
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
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 Button7_Click1(sender As Object, e As EventArgs) Handles btnAddDay.Click
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 btnJahr_Click(sender As Object, e As EventArgs) Handles btnJahr.Click
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 btnVonMonat_Click(sender As Object, e As EventArgs) Handles btnVonMonat.Click
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 btnVonJahr_Click(sender As Object, e As EventArgs) Handles btnVonJahr.Click
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
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"
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
txtSessDatVon.Text = DateTimePicker1.Value
txtSessDatBis.Text = DateTimePicker2.Value
initdgvSessions(CDate(DateTimePicker1.Value).Date, CDate(DateTimePicker2.Value).Date)
End Sub
Private Sub initdgvSessions(von As Date, bis As Date)
Dim SQL_String = ""
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
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
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 & "'"
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
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
End With
End Sub
Private Sub usrcntlSessions_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If Me.DesignMode Then Exit Sub
initBtns("Tag")
initdgvSessions(CDate(DateTimePicker1.Value).Date, CDate(DateTimePicker2.Value).Date)
End Sub
End Class