divers layout, etc
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||
Partial Class usrCntlBenachrichtigungen
|
||||
Inherits System.Windows.Forms.UserControl
|
||||
|
||||
'UserControl überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
<System.Diagnostics.DebuggerNonUserCode()>
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
@@ -20,7 +20,7 @@ Partial Class usrCntlBenachrichtigungen
|
||||
'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()> _
|
||||
<System.Diagnostics.DebuggerStepThrough()>
|
||||
Private Sub InitializeComponent()
|
||||
Me.components = New System.ComponentModel.Container()
|
||||
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
|
||||
376
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.Designer.vb
generated
Normal file
376
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.Designer.vb
generated
Normal file
@@ -0,0 +1,376 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||
Partial Class usrCntlBenachrichtigungenNEW
|
||||
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()
|
||||
Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Me.Panel2 = New System.Windows.Forms.Panel()
|
||||
Me.gridAvisoBenachrichtigungen = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
||||
Me.Panel4 = New System.Windows.Forms.Panel()
|
||||
Me.MyComboBox2 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||
Me.cbxCluster = New System.Windows.Forms.CheckBox()
|
||||
Me.cbxTaskForce = New System.Windows.Forms.CheckBox()
|
||||
Me.cbxTeams = New System.Windows.Forms.CheckBox()
|
||||
Me.cbxVerwarung = New System.Windows.Forms.CheckBox()
|
||||
Me.cbxNeukunden = New System.Windows.Forms.CheckBox()
|
||||
Me.Panel3 = New System.Windows.Forms.Panel()
|
||||
Me.Label22 = New System.Windows.Forms.Label()
|
||||
Me.Label25 = New System.Windows.Forms.Label()
|
||||
Me.txtVermerk = New System.Windows.Forms.TextBox()
|
||||
Me.Button10 = New System.Windows.Forms.Button()
|
||||
Me.CheckBox1 = New System.Windows.Forms.CheckBox()
|
||||
Me.txtDatumAb = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.Label2 = New System.Windows.Forms.Label()
|
||||
Me.txtSearch = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
|
||||
Me.Panel2.SuspendLayout()
|
||||
CType(Me.gridAvisoBenachrichtigungen, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.Panel4.SuspendLayout()
|
||||
Me.Panel3.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'Panel2
|
||||
'
|
||||
Me.Panel2.Controls.Add(Me.gridAvisoBenachrichtigungen)
|
||||
Me.Panel2.Controls.Add(Me.Panel4)
|
||||
Me.Panel2.Controls.Add(Me.Panel3)
|
||||
Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.Panel2.Location = New System.Drawing.Point(0, 0)
|
||||
Me.Panel2.Name = "Panel2"
|
||||
Me.Panel2.Size = New System.Drawing.Size(319, 278)
|
||||
Me.Panel2.TabIndex = 2
|
||||
'
|
||||
'gridAvisoBenachrichtigungen
|
||||
'
|
||||
Me.gridAvisoBenachrichtigungen.AKTUALISIERUNGS_INTERVALL = -1
|
||||
Me.gridAvisoBenachrichtigungen.AllowUserToAddRows = False
|
||||
Me.gridAvisoBenachrichtigungen.AllowUserToDeleteRows = False
|
||||
Me.gridAvisoBenachrichtigungen.AllowUserToOrderColumns = True
|
||||
Me.gridAvisoBenachrichtigungen.AllowUserToResizeRows = False
|
||||
DataGridViewCellStyle7.BackColor = System.Drawing.Color.Azure
|
||||
Me.gridAvisoBenachrichtigungen.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
|
||||
Me.gridAvisoBenachrichtigungen.BackgroundColor = System.Drawing.Color.White
|
||||
Me.gridAvisoBenachrichtigungen.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
DataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
|
||||
DataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window
|
||||
DataGridViewCellStyle8.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
DataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText
|
||||
DataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight
|
||||
DataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText
|
||||
DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
|
||||
Me.gridAvisoBenachrichtigungen.DefaultCellStyle = DataGridViewCellStyle8
|
||||
Me.gridAvisoBenachrichtigungen.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.gridAvisoBenachrichtigungen.Location = New System.Drawing.Point(0, 76)
|
||||
Me.gridAvisoBenachrichtigungen.Name = "gridAvisoBenachrichtigungen"
|
||||
Me.gridAvisoBenachrichtigungen.ReadOnly = True
|
||||
Me.gridAvisoBenachrichtigungen.RowHeadersVisible = False
|
||||
Me.gridAvisoBenachrichtigungen.Size = New System.Drawing.Size(319, 160)
|
||||
Me.gridAvisoBenachrichtigungen.TabIndex = 2
|
||||
'
|
||||
'Panel4
|
||||
'
|
||||
Me.Panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
||||
Me.Panel4.Controls.Add(Me.MyComboBox2)
|
||||
Me.Panel4.Controls.Add(Me.cbxCluster)
|
||||
Me.Panel4.Controls.Add(Me.cbxTaskForce)
|
||||
Me.Panel4.Controls.Add(Me.cbxTeams)
|
||||
Me.Panel4.Controls.Add(Me.cbxVerwarung)
|
||||
Me.Panel4.Controls.Add(Me.cbxNeukunden)
|
||||
Me.Panel4.Dock = System.Windows.Forms.DockStyle.Bottom
|
||||
Me.Panel4.Location = New System.Drawing.Point(0, 236)
|
||||
Me.Panel4.Name = "Panel4"
|
||||
Me.Panel4.Size = New System.Drawing.Size(319, 42)
|
||||
Me.Panel4.TabIndex = 5
|
||||
'
|
||||
'MyComboBox2
|
||||
'
|
||||
Me.MyComboBox2._allowedValuesFreiText = Nothing
|
||||
Me.MyComboBox2._allowFreiText = False
|
||||
Me.MyComboBox2._value = ""
|
||||
Me.MyComboBox2.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.MyComboBox2.BackColor = System.Drawing.Color.WhiteSmoke
|
||||
Me.MyComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
|
||||
Me.MyComboBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.MyComboBox2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.0!)
|
||||
Me.MyComboBox2.FormattingEnabled = True
|
||||
Me.MyComboBox2.Location = New System.Drawing.Point(185, -2)
|
||||
Me.MyComboBox2.Name = "MyComboBox2"
|
||||
Me.MyComboBox2.Size = New System.Drawing.Size(71, 21)
|
||||
Me.MyComboBox2.TabIndex = 27
|
||||
Me.MyComboBox2.Visible = False
|
||||
'
|
||||
'cbxCluster
|
||||
'
|
||||
Me.cbxCluster.AutoSize = True
|
||||
Me.cbxCluster.ForeColor = System.Drawing.Color.Black
|
||||
Me.cbxCluster.Location = New System.Drawing.Point(85, 2)
|
||||
Me.cbxCluster.Name = "cbxCluster"
|
||||
Me.cbxCluster.Size = New System.Drawing.Size(58, 17)
|
||||
Me.cbxCluster.TabIndex = 29
|
||||
Me.cbxCluster.Text = "Cluster"
|
||||
Me.cbxCluster.UseVisualStyleBackColor = True
|
||||
Me.cbxCluster.Visible = False
|
||||
'
|
||||
'cbxTaskForce
|
||||
'
|
||||
Me.cbxTaskForce.AutoSize = True
|
||||
Me.cbxTaskForce.ForeColor = System.Drawing.Color.Black
|
||||
Me.cbxTaskForce.Location = New System.Drawing.Point(174, 19)
|
||||
Me.cbxTaskForce.Name = "cbxTaskForce"
|
||||
Me.cbxTaskForce.Size = New System.Drawing.Size(77, 17)
|
||||
Me.cbxTaskForce.TabIndex = 33
|
||||
Me.cbxTaskForce.Text = "TaskForce"
|
||||
Me.cbxTaskForce.UseVisualStyleBackColor = True
|
||||
Me.cbxTaskForce.Visible = False
|
||||
'
|
||||
'cbxTeams
|
||||
'
|
||||
Me.cbxTeams.AutoSize = True
|
||||
Me.cbxTeams.ForeColor = System.Drawing.Color.Black
|
||||
Me.cbxTeams.Location = New System.Drawing.Point(7, 2)
|
||||
Me.cbxTeams.Name = "cbxTeams"
|
||||
Me.cbxTeams.Size = New System.Drawing.Size(78, 17)
|
||||
Me.cbxTeams.TabIndex = 28
|
||||
Me.cbxTeams.Text = "Alle Teams"
|
||||
Me.cbxTeams.UseVisualStyleBackColor = True
|
||||
'
|
||||
'cbxVerwarung
|
||||
'
|
||||
Me.cbxVerwarung.AutoSize = True
|
||||
Me.cbxVerwarung.ForeColor = System.Drawing.Color.Black
|
||||
Me.cbxVerwarung.Location = New System.Drawing.Point(85, 19)
|
||||
Me.cbxVerwarung.Name = "cbxVerwarung"
|
||||
Me.cbxVerwarung.Size = New System.Drawing.Size(83, 17)
|
||||
Me.cbxVerwarung.TabIndex = 32
|
||||
Me.cbxVerwarung.Text = "Verwahrung"
|
||||
Me.cbxVerwarung.UseVisualStyleBackColor = True
|
||||
Me.cbxVerwarung.Visible = False
|
||||
'
|
||||
'cbxNeukunden
|
||||
'
|
||||
Me.cbxNeukunden.AutoSize = True
|
||||
Me.cbxNeukunden.ForeColor = System.Drawing.Color.Black
|
||||
Me.cbxNeukunden.Location = New System.Drawing.Point(7, 19)
|
||||
Me.cbxNeukunden.Name = "cbxNeukunden"
|
||||
Me.cbxNeukunden.Size = New System.Drawing.Size(82, 17)
|
||||
Me.cbxNeukunden.TabIndex = 30
|
||||
Me.cbxNeukunden.Text = "Neukunden"
|
||||
Me.cbxNeukunden.UseVisualStyleBackColor = True
|
||||
Me.cbxNeukunden.Visible = False
|
||||
'
|
||||
'Panel3
|
||||
'
|
||||
Me.Panel3.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
|
||||
Me.Panel3.Controls.Add(Me.txtSearch)
|
||||
Me.Panel3.Controls.Add(Me.Label2)
|
||||
Me.Panel3.Controls.Add(Me.Label1)
|
||||
Me.Panel3.Controls.Add(Me.txtDatumAb)
|
||||
Me.Panel3.Controls.Add(Me.CheckBox1)
|
||||
Me.Panel3.Controls.Add(Me.Label22)
|
||||
Me.Panel3.Controls.Add(Me.Label25)
|
||||
Me.Panel3.Controls.Add(Me.txtVermerk)
|
||||
Me.Panel3.Controls.Add(Me.Button10)
|
||||
Me.Panel3.Dock = System.Windows.Forms.DockStyle.Top
|
||||
Me.Panel3.Location = New System.Drawing.Point(0, 0)
|
||||
Me.Panel3.Name = "Panel3"
|
||||
Me.Panel3.Size = New System.Drawing.Size(319, 76)
|
||||
Me.Panel3.TabIndex = 3
|
||||
'
|
||||
'Label22
|
||||
'
|
||||
Me.Label22.AutoSize = True
|
||||
Me.Label22.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.Label22.ForeColor = System.Drawing.Color.White
|
||||
Me.Label22.Location = New System.Drawing.Point(0, 4)
|
||||
Me.Label22.Name = "Label22"
|
||||
Me.Label22.Size = New System.Drawing.Size(124, 13)
|
||||
Me.Label22.TabIndex = 0
|
||||
Me.Label22.Text = "Benachrichtigungen:"
|
||||
'
|
||||
'Label25
|
||||
'
|
||||
Me.Label25.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Label25.ForeColor = System.Drawing.Color.White
|
||||
Me.Label25.Location = New System.Drawing.Point(604, 6)
|
||||
Me.Label25.Name = "Label25"
|
||||
Me.Label25.Size = New System.Drawing.Size(207, 19)
|
||||
Me.Label25.TabIndex = 1
|
||||
Me.Label25.Text = "0 Akte vom Arbeitsplatz übernommen"
|
||||
Me.Label25.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||
'
|
||||
'txtVermerk
|
||||
'
|
||||
Me.txtVermerk.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtVermerk.Location = New System.Drawing.Point(3, 50)
|
||||
Me.txtVermerk.Name = "txtVermerk"
|
||||
Me.txtVermerk.ReadOnly = True
|
||||
Me.txtVermerk.Size = New System.Drawing.Size(312, 20)
|
||||
Me.txtVermerk.TabIndex = 31
|
||||
'
|
||||
'Button10
|
||||
'
|
||||
Me.Button10.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Button10.Enabled = False
|
||||
Me.Button10.ForeColor = System.Drawing.Color.Black
|
||||
Me.Button10.Image = Global.AVISO.My.Resources.Resources.ok
|
||||
Me.Button10.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
Me.Button10.Location = New System.Drawing.Point(207, 7)
|
||||
Me.Button10.Name = "Button10"
|
||||
Me.Button10.Padding = New System.Windows.Forms.Padding(0, 0, 10, 0)
|
||||
Me.Button10.Size = New System.Drawing.Size(109, 37)
|
||||
Me.Button10.TabIndex = 3
|
||||
Me.Button10.TabStop = False
|
||||
Me.Button10.Text = "Bestätigen"
|
||||
Me.Button10.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
Me.Button10.UseVisualStyleBackColor = True
|
||||
'
|
||||
'CheckBox1
|
||||
'
|
||||
Me.CheckBox1.AutoSize = True
|
||||
Me.CheckBox1.ForeColor = System.Drawing.Color.White
|
||||
Me.CheckBox1.Location = New System.Drawing.Point(3, 25)
|
||||
Me.CheckBox1.Name = "CheckBox1"
|
||||
Me.CheckBox1.Size = New System.Drawing.Size(86, 17)
|
||||
Me.CheckBox1.TabIndex = 32
|
||||
Me.CheckBox1.Text = "Alte Einträge"
|
||||
Me.CheckBox1.UseVisualStyleBackColor = True
|
||||
'
|
||||
'txtDatumAb
|
||||
'
|
||||
Me.txtDatumAb._DateTimeOnly = False
|
||||
Me.txtDatumAb._numbersOnly = False
|
||||
Me.txtDatumAb._numbersOnlyKommastellen = ""
|
||||
Me.txtDatumAb._numbersOnlyTrennzeichen = True
|
||||
Me.txtDatumAb._Prozent = False
|
||||
Me.txtDatumAb._ShortDateNew = True
|
||||
Me.txtDatumAb._ShortDateOnly = False
|
||||
Me.txtDatumAb._TimeOnly = False
|
||||
Me.txtDatumAb._TimeOnly_Seconds = False
|
||||
Me.txtDatumAb._value = ""
|
||||
Me.txtDatumAb._Waehrung = False
|
||||
Me.txtDatumAb._WaehrungZeichen = True
|
||||
Me.txtDatumAb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtDatumAb.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtDatumAb.Location = New System.Drawing.Point(213, 50)
|
||||
Me.txtDatumAb.MaxLineLength = -1
|
||||
Me.txtDatumAb.MaxLines_Warning = ""
|
||||
Me.txtDatumAb.MaxLines_Warning_Label = Nothing
|
||||
Me.txtDatumAb.Name = "txtDatumAb"
|
||||
Me.txtDatumAb.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtDatumAb.TabIndex = 33
|
||||
Me.txtDatumAb.Visible = False
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Label1.AutoSize = True
|
||||
Me.Label1.ForeColor = System.Drawing.Color.White
|
||||
Me.Label1.Location = New System.Drawing.Point(185, 53)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(22, 13)
|
||||
Me.Label1.TabIndex = 34
|
||||
Me.Label1.Text = "ab:"
|
||||
Me.Label1.Visible = False
|
||||
'
|
||||
'Label2
|
||||
'
|
||||
Me.Label2.AutoSize = True
|
||||
Me.Label2.ForeColor = System.Drawing.Color.White
|
||||
Me.Label2.Location = New System.Drawing.Point(5, 53)
|
||||
Me.Label2.Name = "Label2"
|
||||
Me.Label2.Size = New System.Drawing.Size(41, 13)
|
||||
Me.Label2.TabIndex = 36
|
||||
Me.Label2.Text = "Suche:"
|
||||
Me.Label2.Visible = False
|
||||
'
|
||||
'txtSearch
|
||||
'
|
||||
Me.txtSearch._DateTimeOnly = False
|
||||
Me.txtSearch._numbersOnly = False
|
||||
Me.txtSearch._numbersOnlyKommastellen = ""
|
||||
Me.txtSearch._numbersOnlyTrennzeichen = True
|
||||
Me.txtSearch._Prozent = False
|
||||
Me.txtSearch._ShortDateNew = False
|
||||
Me.txtSearch._ShortDateOnly = False
|
||||
Me.txtSearch._TimeOnly = False
|
||||
Me.txtSearch._TimeOnly_Seconds = False
|
||||
Me.txtSearch._value = ""
|
||||
Me.txtSearch._Waehrung = False
|
||||
Me.txtSearch._WaehrungZeichen = True
|
||||
Me.txtSearch.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtSearch.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtSearch.Location = New System.Drawing.Point(50, 50)
|
||||
Me.txtSearch.MaxLineLength = -1
|
||||
Me.txtSearch.MaxLines_Warning = ""
|
||||
Me.txtSearch.MaxLines_Warning_Label = Nothing
|
||||
Me.txtSearch.Name = "txtSearch"
|
||||
Me.txtSearch.Size = New System.Drawing.Size(128, 20)
|
||||
Me.txtSearch.TabIndex = 35
|
||||
Me.txtSearch.Visible = False
|
||||
'
|
||||
'Timer1
|
||||
'
|
||||
Me.Timer1.Interval = 5000
|
||||
'
|
||||
'usrCntlBenachrichtigungenNEW
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.Controls.Add(Me.Panel2)
|
||||
Me.Name = "usrCntlBenachrichtigungenNEW"
|
||||
Me.Size = New System.Drawing.Size(319, 278)
|
||||
Me.Panel2.ResumeLayout(False)
|
||||
CType(Me.gridAvisoBenachrichtigungen, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.Panel4.ResumeLayout(False)
|
||||
Me.Panel4.PerformLayout()
|
||||
Me.Panel3.ResumeLayout(False)
|
||||
Me.Panel3.PerformLayout()
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
Friend WithEvents Panel2 As Panel
|
||||
Friend WithEvents Panel4 As Panel
|
||||
Friend WithEvents Button10 As Button
|
||||
Friend WithEvents Panel3 As Panel
|
||||
Friend WithEvents MyComboBox2 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||
Friend WithEvents Label22 As Label
|
||||
Friend WithEvents Label25 As Label
|
||||
Public WithEvents gridAvisoBenachrichtigungen As VERAG_PROG_ALLGEMEIN.MyDatagridview
|
||||
Friend WithEvents cbxTeams As CheckBox
|
||||
Friend WithEvents cbxCluster As CheckBox
|
||||
Friend WithEvents cbxNeukunden As CheckBox
|
||||
Friend WithEvents txtVermerk As TextBox
|
||||
Friend WithEvents cbxVerwarung As CheckBox
|
||||
Friend WithEvents cbxTaskForce As CheckBox
|
||||
Friend WithEvents txtDatumAb As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||
Friend WithEvents CheckBox1 As CheckBox
|
||||
Friend WithEvents txtSearch As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||
Friend WithEvents Label2 As Label
|
||||
Friend WithEvents Label1 As Label
|
||||
Friend WithEvents Timer1 As Timer
|
||||
End Class
|
||||
123
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.resx
Normal file
123
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?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>
|
||||
<metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
530
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.vb
Normal file
530
Aviso/Benachrichtigung/usrCntlBenachrichtigungenNEW.vb
Normal file
@@ -0,0 +1,530 @@
|
||||
Imports System.Web.UI.WebControls
|
||||
Imports DAKOSY_Worker.SumAErledigungsinformationVorpapier
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
Public Class usrCntlBenachrichtigungenNEW
|
||||
Dim VERAGSQL As New VERAG_PROG_ALLGEMEIN.SQL
|
||||
Dim ASF As New AvisoStatusFunctions
|
||||
Dim See_Cbam As Boolean = False
|
||||
|
||||
Public Event SelectionChanged()
|
||||
|
||||
|
||||
Public Sub initDgvAvisoBenachrichtigungen(Grid_aktiv, gridFont)
|
||||
Try
|
||||
|
||||
' Wenn Grid nicht aktiv, nichts tun
|
||||
If Not Grid_aktiv Then Exit Sub
|
||||
|
||||
' Merke zuvor ausgewählte ab_id (wenn genau eine Zeile selektiert)
|
||||
Dim prevSelectedAbId As Integer = -1
|
||||
Try
|
||||
If gridAvisoBenachrichtigungen.SelectedRows.Count = 1 Then
|
||||
Dim v = gridAvisoBenachrichtigungen.SelectedRows(0).Cells("ab_id").Value
|
||||
If v IsNot Nothing AndAlso v IsNot DBNull.Value AndAlso IsNumeric(v) Then
|
||||
prevSelectedAbId = CInt(v)
|
||||
End If
|
||||
End If
|
||||
Catch
|
||||
prevSelectedAbId = -1
|
||||
End Try
|
||||
|
||||
With gridAvisoBenachrichtigungen
|
||||
.DefaultCellStyle.Font = gridFont
|
||||
If .Columns IsNot Nothing AndAlso .Columns.Count > 0 Then .Columns.Clear()
|
||||
|
||||
Dim whereMA = " AND ( 1<>1 "
|
||||
|
||||
'WARENORT
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.WARENORT_ZUGANG Then
|
||||
whereMA &= " OR (ab_TO_Art='W' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.WARENORT & "') "
|
||||
|
||||
'NEUKUNDEN
|
||||
ElseIf cbxNeukunden.Checked Then
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "VERAG"
|
||||
whereMA &= " OR (ab_TO_Art='T' AND ab_TO_Code='13') " 'TEAM_NEUKUNDEN --> VERAG
|
||||
End Select
|
||||
|
||||
'SONST
|
||||
Else
|
||||
|
||||
If cbxCluster.Checked Then
|
||||
whereMA &= " OR (ab_TO_Art='F' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.CLUSTER & "') "
|
||||
Else
|
||||
whereMA &= " OR (ab_TO_Art='B' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.USRID & "') "
|
||||
whereMA &= " OR (ab_TO_Art='N' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.NIEDERLASSUNG & "') "
|
||||
whereMA &= " OR (ab_TO_Art='A' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.ABTEILUNG & "') "
|
||||
whereMA &= " OR (ab_TO_Art='F' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA & "') "
|
||||
End If
|
||||
|
||||
If cbxVerwarung.Checked Then
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "VERAG"
|
||||
whereMA &= " OR (ab_TO_Art='T' AND ab_TO_Code='26') " 'TEAM_VERWARUNG --> VERAG
|
||||
End Select
|
||||
End If
|
||||
|
||||
If cbxTaskForce.Checked Then
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "VERAG"
|
||||
whereMA &= " OR (ab_TO_Art='T' AND ab_TO_Code='7') " 'TEAM_TASKFORCE --> VERAG
|
||||
End Select
|
||||
End If
|
||||
|
||||
If See_Cbam Then
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "VERIMEX", "AMBAR"
|
||||
Case Else
|
||||
whereMA &= " OR (ab_TO_Art='T' AND ab_TO_Code='33') " 'TEAM_CBAM --> VERAG
|
||||
End Select
|
||||
End If
|
||||
|
||||
If cbxTeams.Checked Then
|
||||
whereMA &= " Or (ab_TO_Art='T' AND ab_TO_Code IN (SELECT [team_id] FROM ADMIN.dbo.[tblTeams] WHERE team_firma = '" & VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA & "')) "
|
||||
Else
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER IsNot Nothing AndAlso VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_teamId IsNot Nothing Then
|
||||
whereMA &= " OR (ab_TO_Art='T' AND ab_TO_Code='" & VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_teamId & "') "
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
whereMA &= " ) "
|
||||
|
||||
Dim whereStatus As String
|
||||
Dim selectBestaetigung As String = ""
|
||||
Dim joinBestaetigung As String = ""
|
||||
|
||||
If CheckBox1.Checked Then
|
||||
Dim datumAb As Date
|
||||
|
||||
If Date.TryParse(txtDatumAb.Text, datumAb) Then
|
||||
whereStatus = " AND ab_status <> 0 AND ab_Bestaetigt_Datum >= '" & datumAb.ToString("yyyyMMdd") & "' "
|
||||
Else
|
||||
whereStatus = " AND ab_status <> 0 "
|
||||
End If
|
||||
|
||||
If txtSearch.Text.Trim <> "" Then
|
||||
Dim s As String = Replace(txtSearch.Text.Trim, "'", "''")
|
||||
|
||||
whereStatus &= " AND (" &
|
||||
"ab_Vermerk LIKE '%" & s & "%' " &
|
||||
"OR LKW_Nr LIKE '%" & s & "%'" &
|
||||
") "
|
||||
End If
|
||||
|
||||
selectBestaetigung = ",ab_Bestaetigt_Datum,MA.mit_username AS BestaetigtVon "
|
||||
joinBestaetigung = " LEFT JOIN ADMIN.dbo.tblMitarbeiter MA ON MA.mit_id = ab_Bestaetigt_MaId "
|
||||
Else
|
||||
whereStatus = " AND ab_status = 0 "
|
||||
End If
|
||||
|
||||
Dim sqlStr As String =
|
||||
"SELECT ab_id,ab_AvisoID,ab_SendungID,ab_Art,ab_Beschreibung,LKW_Nr" &
|
||||
selectBestaetigung &
|
||||
",ab_TO_Art,ab_TO_Code,ab_Bestaetigt_MaId,ab_Datum,ab_Status,ab_BenachrichtigungCode,ab_Prioritaet,ab_MitarbeiterId,ab_Firma,ab_Cluster,ab_collAnhId,ab_Vermerk,ab_ReminderVermerkID,ab_ReminderVermerkCode,ab_VermerkID,Status " &
|
||||
"FROM tblAvisoBenachrichtigungen " &
|
||||
"INNER JOIN AVISO ON AvisoId=ab_AvisoID " &
|
||||
joinBestaetigung &
|
||||
"WHERE 1=1 " &
|
||||
whereStatus &
|
||||
whereMA &
|
||||
" ORDER BY CASE WHEN ANKUNFT<'20010101' THEN '29990101' ELSE ANKUNFT END ASC,ab_Datum ASC"
|
||||
|
||||
Dim list As New List(Of VERAG_PROG_ALLGEMEIN.SQLVariable)
|
||||
|
||||
.DataSource = VERAGSQL.loadDgvBySql_Param(sqlStr, "AVISO", 1500, list,,, 3)
|
||||
If .DataSource Is Nothing Then Exit Sub
|
||||
|
||||
Dim nfont = New Font(.Font.FontFamily, .Font.Size, FontStyle.Regular)
|
||||
If .Columns.Count = 0 Then Exit Sub
|
||||
|
||||
.DefaultCellStyle.Font = nfont
|
||||
|
||||
.MultiSelect = False
|
||||
.Columns("ab_id").Visible = False
|
||||
.Columns("ab_AvisoID").Visible = False
|
||||
.Columns("ab_SendungID").Visible = False
|
||||
.Columns("ab_BenachrichtigungCode").Visible = False
|
||||
.Columns("ab_Prioritaet").Visible = False
|
||||
.Columns("ab_Status").Visible = False
|
||||
.Columns("ab_Vermerk").Visible = False
|
||||
.Columns("ab_collAnhId").Visible = False
|
||||
.Columns("ab_ReminderVermerkID").Visible = False
|
||||
.Columns("ab_VermerkID").Visible = False
|
||||
.Columns("ab_ReminderVermerkCode").Visible = False
|
||||
|
||||
.Columns("ab_TO_Art").Visible = False
|
||||
.Columns("ab_TO_Code").Visible = False
|
||||
.Columns("ab_Bestaetigt_MaId").Visible = False
|
||||
' .Columns("ab_Bestaetigt_Datum").Visible = False
|
||||
.Columns("ab_Firma").Visible = False
|
||||
.Columns("ab_Cluster").Visible = False
|
||||
.Columns("Status").Visible = False
|
||||
|
||||
.Columns("ab_Art").Width = 30
|
||||
.Columns("ab_Art").HeaderText = "Art"
|
||||
.Columns("ab_Art").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
|
||||
|
||||
.Columns("LKW_Nr").MinimumWidth = 95
|
||||
.Columns("LKW_Nr").HeaderText = "LKW-Kennzeichen"
|
||||
.Columns("LKW_Nr").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
||||
|
||||
.Columns("ab_Datum").Visible = False
|
||||
.Columns("ab_Datum").Width = 80
|
||||
.Columns("ab_Datum").HeaderText = "Datum"
|
||||
.Columns("ab_Datum").DefaultCellStyle.Format = "dd.MM. HH:mm"
|
||||
.Columns("ab_Datum").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
|
||||
|
||||
.Columns("ab_Beschreibung").MinimumWidth = 140
|
||||
.Columns("ab_Beschreibung").HeaderText = "Beschreibung"
|
||||
.Columns("ab_Beschreibung").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
||||
|
||||
.Columns("ab_Bestaetigt_MaId").Visible = False
|
||||
.Columns("ab_MitarbeiterId").Visible = False
|
||||
|
||||
If CheckBox1.Checked Then
|
||||
.Columns("ab_Bestaetigt_Datum").Visible = True
|
||||
.Columns("BestaetigtVon").Visible = True
|
||||
|
||||
.Columns("ab_Bestaetigt_Datum").HeaderText = "Bestätigt"
|
||||
.Columns("ab_Bestaetigt_Datum").Width = 95
|
||||
.Columns("ab_Bestaetigt_Datum").DefaultCellStyle.Format = "dd.MM. HH:mm"
|
||||
|
||||
.Columns("BestaetigtVon").HeaderText = "Bestätigt von"
|
||||
.Columns("BestaetigtVon").Width = 100
|
||||
End If
|
||||
|
||||
|
||||
If .RowCount = 0 Then .Columns.Clear() : Exit Sub
|
||||
|
||||
Dim t = New DataGridViewTextBoxColumn
|
||||
t.Name = "cmlnInfo"
|
||||
t.HeaderText = ""
|
||||
t.DefaultCellStyle.NullValue = "i"
|
||||
t.Width = 20 : t.DefaultCellStyle.Padding = New Padding(2) : t.DefaultCellStyle.BackColor = Color.Gray
|
||||
t.DefaultCellStyle.Font = New Font(.Font.FontFamily, .Font.Size, FontStyle.Bold)
|
||||
t.DefaultCellStyle.ForeColor = Color.White
|
||||
t.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
|
||||
t.Visible = False
|
||||
.Columns.Insert(0, t)
|
||||
|
||||
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
|
||||
|
||||
For Each r As DataGridViewRow In .Rows
|
||||
If r.Cells("Status").Value = 3 Then
|
||||
r.DefaultCellStyle.ForeColor = Color.Red
|
||||
r.DefaultCellStyle.Font = New Font(Me.Font.FontFamily, Me.Font.Size, FontStyle.Bold)
|
||||
End If
|
||||
|
||||
If r.Cells("ab_BenachrichtigungCode").Value = "6" Then
|
||||
r.Cells("ab_Art").Value = "VK"
|
||||
End If
|
||||
Next
|
||||
|
||||
.ClearSelection()
|
||||
|
||||
' Grid_aktiv = False
|
||||
' Falls zuvor eine Zeile markiert war, wieder auswählen und in Sicht bringen
|
||||
If prevSelectedAbId > -1 Then
|
||||
Try
|
||||
For Each rr As DataGridViewRow In .Rows
|
||||
Dim vid = rr.Cells("ab_id").Value
|
||||
If vid IsNot Nothing AndAlso vid IsNot DBNull.Value AndAlso IsNumeric(vid) Then
|
||||
If CInt(vid) = prevSelectedAbId Then
|
||||
.ClearSelection()
|
||||
|
||||
Dim colIndex As Integer = .Columns("LKW_Nr").Index
|
||||
If Not .Rows(rr.Index).Cells(colIndex).Visible Then
|
||||
colIndex = .FirstDisplayedCell.ColumnIndex
|
||||
End If
|
||||
|
||||
.CurrentCell = .Rows(rr.Index).Cells(colIndex)
|
||||
.Rows(rr.Index).Selected = True
|
||||
|
||||
.FirstDisplayedScrollingRowIndex = Math.Max(0, rr.Index - 2)
|
||||
|
||||
Exit For
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
Catch
|
||||
' ignore
|
||||
End Try
|
||||
End If
|
||||
|
||||
End With
|
||||
|
||||
Catch ex As Exception
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub gridAvisoBenachrichtigungen_CellPainting(sender As Object, e As DataGridViewCellPaintingEventArgs) Handles gridAvisoBenachrichtigungen.CellPainting
|
||||
If e.RowIndex <> -1 AndAlso gridAvisoBenachrichtigungen.Columns(e.ColumnIndex).Name = "ab_Art" Then
|
||||
If gridAvisoBenachrichtigungen.Rows(e.RowIndex).Cells("ab_Beschreibung").Value.ToString.Contains("AAS:") Then
|
||||
If (e.PaintParts And DataGridViewPaintParts.Background) <> DataGridViewPaintParts.None Then
|
||||
e.Graphics.DrawImage(My.Resources.reminder, e.CellBounds)
|
||||
'e.CellStyle.BackColor = Color.White
|
||||
gridAvisoBenachrichtigungen.Rows(e.RowIndex).Cells("ab_Art").Value = ""
|
||||
gridAvisoBenachrichtigungen.Rows(e.RowIndex).Cells("ab_Art").Style.BackColor = Color.Gray
|
||||
End If
|
||||
|
||||
|
||||
If Not e.Handled Then
|
||||
e.Handled = True
|
||||
e.PaintContent(e.CellBounds)
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub usrCntlBenachrichtigungen_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
|
||||
'MyComboBox2.Items.Clear()
|
||||
'MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("Benutzer", "Benutzer"))
|
||||
'MyComboBox2.fillWithSQL("SELECT team_id, team_bezeichnung FROM tblTeams WHERE team_firma='" & VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA & "'", False, "ADMIN", True, False)
|
||||
'MyComboBox2.changeItem("Benutzer")
|
||||
' MyComboBox2.chang
|
||||
Timer1.Enabled = True
|
||||
|
||||
MyComboBox2.Items.Clear()
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("VERAG", "VERAG"))
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("IMEX", "IMEX"))
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("FRONTOFFICE", "FRONTOFFICE"))
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("UNISPED", "UNISPED"))
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("AMBAR", "AMBAR"))
|
||||
MyComboBox2.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("ATILLA", "ATILLA"))
|
||||
MyComboBox2.changeItem(VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA)
|
||||
|
||||
|
||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("BENACHRICHTIGUNGEN_SeeCluster", "AVISO") Then
|
||||
cbxCluster.Visible = True
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.CLUSTER <> "" Then
|
||||
cbxCluster.Text = VERAG_PROG_ALLGEMEIN.cAllgemein.CLUSTER
|
||||
End If
|
||||
End If
|
||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("BENACHRICHTIGUNGEN_SeeNeukunden", "AVISO") Then
|
||||
cbxNeukunden.Visible = True
|
||||
'cbxNeukunden.Checked = True
|
||||
End If
|
||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("BENACHRICHTIGUNGEN_SeeCBAM", "AVISO") Then
|
||||
See_Cbam = True
|
||||
|
||||
End If
|
||||
|
||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("BENACHRICHTIGUNGEN_SeeVerwahrung", "AVISO") Then
|
||||
cbxVerwarung.Visible = True
|
||||
cbxVerwarung.Checked = True
|
||||
End If
|
||||
|
||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("BENACHRICHTIGUNGEN_SeeTaskForce", "AVISO") Then
|
||||
cbxTaskForce.Visible = True
|
||||
cbxTaskForce.Checked = True
|
||||
End If
|
||||
|
||||
|
||||
'NEIN; weils zB Waidhaus dann alles sieht und übernimmt
|
||||
'If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER IsNot Nothing Then
|
||||
' If CInt(If(VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_teamId, "-1")) <= 0 Then cbxTeams.Checked = True
|
||||
'End If
|
||||
|
||||
'Nur VERIMEX
|
||||
Select Case VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||
Case "VERIMEX"
|
||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER IsNot Nothing Then
|
||||
If CInt(If(VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_teamId, "-1")) <= 0 Then cbxTeams.Checked = True
|
||||
End If
|
||||
Case "ATILLA"
|
||||
cbxCluster.Visible = False
|
||||
cbxTeams.Visible = False
|
||||
End Select
|
||||
|
||||
' MyComboBox2.changeItem(VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_teamId)
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
|
||||
If CheckBox1.Checked Then
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
Else
|
||||
|
||||
If gridAvisoBenachrichtigungen.SelectedRows.Count > 0 Then
|
||||
Dim AB As New VERAG_PROG_ALLGEMEIN.cAvisoBenachrichtigungen(gridAvisoBenachrichtigungen.SelectedRows(0).Cells("ab_id").Value)
|
||||
'BEstätigen
|
||||
Select Case AB.ab_BenachrichtigungCode
|
||||
Case 5 ' REMINDER VERMERK
|
||||
Dim f As New frmAvisoBenachrichtigungReminderBestaetigen(AB)
|
||||
Select Case f.ShowDialog(Me)
|
||||
Case DialogResult.OK
|
||||
AB.BESTAETIGEN_BENACHRICHTIGUNG()
|
||||
'frmHauptfenster.avisoAktualisierenAktiveIdBehalten(AB.ab_AvisoID, True)#
|
||||
frmHauptfensterNew.REFRESH_AVISO_MAIN(AB.ab_AvisoID)
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
Case DialogResult.Cancel
|
||||
'NIX
|
||||
Case DialogResult.Yes
|
||||
AB.BESTAETIGEN_BENACHRICHTIGUNG()
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
Case Else
|
||||
'NIX soll eig nicht vorkommen
|
||||
End Select
|
||||
|
||||
|
||||
Case Else 'Weiterleitung Akt/Snd
|
||||
|
||||
If AB.BESTAETIGEN_BENACHRICHTIGUNG Then
|
||||
Select Case AB.ab_BenachrichtigungCode
|
||||
Case VERAG_PROG_ALLGEMEIN.cAvisoBenachrichtigungenCodes.Vorauskasse_OK
|
||||
AvisoStatusFunctions.insertSendungsVermerk(AB.ab_SendungID, AB.ab_AvisoID, "Benachrichtigung 'Vorauskasse OK' bestätigt.", 46)
|
||||
'Akt nicht übernehmen
|
||||
Case VERAG_PROG_ALLGEMEIN.cAvisoBenachrichtigungenCodes.ZOLL_Dokumentenbeschau
|
||||
AvisoStatusFunctions.insertSendungsVermerk(AB.ab_SendungID, AB.ab_AvisoID, "Benachrichtigung 'ZOLL:Dokumentenbeschau' bestätigt.", 46)
|
||||
'Akt nicht übernehmen
|
||||
Case Else
|
||||
'Weiterleitung --> Übermehmen
|
||||
If AB.ab_Art = "A" Then
|
||||
If Not ASF.AktUebernehmen(AB.ab_AvisoID, False, False, False) Then Exit Sub
|
||||
' If Not ASF.AktUebernehmen(AB.ab_AvisoID, False, False, True) Then Exit Sub
|
||||
Else
|
||||
If Not ASF.SendungUebernehmen(AB.ab_SendungID, AB.ab_AvisoID) Then Exit Sub
|
||||
End If
|
||||
|
||||
End Select
|
||||
'VERMERK inserieren
|
||||
'insertSendungsVermerk(SendungID, myAviso.AvisoID, "In die Neukunden-Abteilung gegeben.", 46)
|
||||
Dim f As New frmAvisoWeiterleitenBestaetigen(AB)
|
||||
f.ShowDialog(Me)
|
||||
|
||||
'frmHauptfenster.avisoAktualisierenAktiveIdBehalten(AB.ab_AvisoID, True)
|
||||
frmHauptfensterNew.REFRESH_AVISO_MAIN(AB.ab_AvisoID)
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End If
|
||||
End Select
|
||||
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub gridAvisoBenachrichtigungen_CellClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles gridAvisoBenachrichtigungen.CellMouseClick, gridAvisoBenachrichtigungen.CellMouseClick
|
||||
RaiseEvent SelectionChanged()
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub keydownMyAviso(sender As Object, e As KeyEventArgs) Handles gridAvisoBenachrichtigungen.KeyUp
|
||||
Try
|
||||
If e.KeyCode = Keys.Up Or e.KeyCode = Keys.Down Or e.KeyCode = Keys.PageUp Or e.KeyCode = Keys.PageDown Or e.KeyCode = Keys.Return Or e.KeyCode = Keys.Enter Then
|
||||
If sender.selectedRows.count = 0 Then Exit Sub
|
||||
RaiseEvent SelectionChanged()
|
||||
End If
|
||||
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub usrCntlBenachrichtigungen_SelectionChanged() Handles gridAvisoBenachrichtigungen.SelectionChanged
|
||||
Button10.Enabled = ((gridAvisoBenachrichtigungen.SelectedRows.Count > 0) Or (CheckBox1.Checked = True))
|
||||
txtVermerk.Text = ""
|
||||
If gridAvisoBenachrichtigungen.SelectedRows.Count > 0 Then
|
||||
txtVermerk.Text = If(gridAvisoBenachrichtigungen.SelectedRows(0).Cells("ab_vermerk").Value, "")
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub usrCntlBenachrichtigungen_SelectionChanged(sender As Object, e As EventArgs) Handles gridAvisoBenachrichtigungen.SelectionChanged
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub cbxTeams_CheckedChanged(sender As Object, e As EventArgs) Handles cbxTeams.CheckedChanged
|
||||
'frmHauptfenster.avisoAktualisierenAktiveIdBehalten(VERAG_PROG_ALLGEMEIN.cGlobal.Aktive_ID, True)
|
||||
'initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End Sub
|
||||
|
||||
Private Sub cbxCluster_CheckedChanged(sender As Object, e As EventArgs) Handles cbxCluster.CheckedChanged
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End Sub
|
||||
|
||||
Private Sub cbxNeukunden_CheckedChanged(sender As Object, e As EventArgs) Handles cbxNeukunden.CheckedChanged, cbxVerwarung.CheckedChanged, cbxTaskForce.CheckedChanged
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End Sub
|
||||
|
||||
Private Sub gridAviso_CellPainting(sender As Object, e As DataGridViewCellPaintingEventArgs) Handles gridAvisoBenachrichtigungen.CellPainting
|
||||
'If e.RowIndex <> -1 AndAlso gridAvisoBenachrichtigungen.Columns(e.ColumnIndex).Name = "ab_Art" Then
|
||||
' If gridAvisoBenachrichtigungen.Rows(e.RowIndex).Cells("ab_BenachrichtigungCode").Value = "6" Then
|
||||
|
||||
' If (e.PaintParts And DataGridViewPaintParts.Background) <> DataGridViewPaintParts.None Then
|
||||
' 'e.Graphics.Clear(Color.White)
|
||||
' e.Graphics.DrawImage(My.Resources.vorauszahlung_bg, e.CellBounds.X + 5, e.CellBounds.Y + 1, 18, e.CellBounds.Height - 2)
|
||||
' ' e.CellStyle.ForeColor = Color.White
|
||||
' gridAvisoBenachrichtigungen.Rows(e.RowIndex).Cells(e.ColumnIndex).Value = ""
|
||||
' ' e.PaintContent(e.CellBounds)
|
||||
' End If
|
||||
|
||||
|
||||
' If Not e.Handled Then
|
||||
' e.Handled = True
|
||||
' e.PaintContent(e.CellBounds)
|
||||
' End If
|
||||
' End If
|
||||
'End If
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
|
||||
If CheckBox1.Checked Then
|
||||
txtDatumAb.Visible = True
|
||||
Label1.Visible = True
|
||||
Label2.Visible = True
|
||||
txtSearch.Visible = True
|
||||
txtVermerk.Visible = False
|
||||
txtDatumAb._value = Now.AddDays(0).ToShortDateString
|
||||
Button10.Image = My.Resources.search
|
||||
Button10.Text = "Suchen"
|
||||
|
||||
Else
|
||||
txtDatumAb.Visible = False
|
||||
Label1.Visible = False
|
||||
Label2.Visible = False
|
||||
txtSearch.Visible = False
|
||||
txtSearch.Text = ""
|
||||
txtVermerk.Visible = True
|
||||
Button10.Image = My.Resources.ok
|
||||
Button10.Text = "Bestätigen"
|
||||
End If
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End Sub
|
||||
|
||||
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
|
||||
|
||||
Try
|
||||
If Not CheckBox1.Checked Then
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub txtSearch_KeyDown(sender As Object, e As KeyEventArgs) Handles txtSearch.KeyDown
|
||||
If CheckBox1.Checked Then
|
||||
If e.KeyCode = Keys.Enter Then
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub txtDatumAb_ValueChanged() Handles txtDatumAb.ValueChanged
|
||||
If CheckBox1.Checked Then
|
||||
initDgvAvisoBenachrichtigungen(True, Me.Font)
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user