ustva-Antraege, Email Fakturierung, FIskaluebersicht, Benachrichtigungen, Essensbestellungen für Unisped
This commit is contained in:
@@ -161,7 +161,7 @@ Public Class frmFaktEmail
|
|||||||
|
|
||||||
initDGVAnhaenge()
|
initDGVAnhaenge()
|
||||||
|
|
||||||
If FISKAL IsNot Nothing Then
|
If FISKAL IsNot Nothing AndAlso (SPEDBUCH.AbfertigungsNr = 26 Or SPEDBUCH.AbfertigungsNr = 28) AndAlso (SPEDBUCH.FilialenNr = 4805 Or SPEDBUCH.FilialenNr = 4811) Then 'Prüfung
|
||||||
cbxSteuerberaterEmail.Checked = (If(FISKAL.fisk_schreibenSB_Mail, "") <> "")
|
cbxSteuerberaterEmail.Checked = (If(FISKAL.fisk_schreibenSB_Mail, "") <> "")
|
||||||
txtSteuerberaterEmail.Text = If(FISKAL.fisk_schreibenSB_Mail, "")
|
txtSteuerberaterEmail.Text = If(FISKAL.fisk_schreibenSB_Mail, "")
|
||||||
cbxFAEmail.Checked = (If(FISKAL.fisk_schreibenFA_Mail, "") <> "")
|
cbxFAEmail.Checked = (If(FISKAL.fisk_schreibenFA_Mail, "") <> "")
|
||||||
|
|||||||
@@ -5381,7 +5381,7 @@ Public Class FormularManagerNEU
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
Shared Function Zollstopp(Zollstop, Entladestelle, Kommentare, Absender) As String
|
Shared Function Zollstopp(Zollstop, Entladestelle, Kommentare, Absender, ataNr) As String
|
||||||
Dim fm As New VERAG_PROG_ALLGEMEIN.cFormularManager
|
Dim fm As New VERAG_PROG_ALLGEMEIN.cFormularManager
|
||||||
|
|
||||||
Dim listTowrite As New List(Of VERAG_PROG_ALLGEMEIN.cPDFWriteValues)
|
Dim listTowrite As New List(Of VERAG_PROG_ALLGEMEIN.cPDFWriteValues)
|
||||||
@@ -5392,6 +5392,8 @@ Public Class FormularManagerNEU
|
|||||||
listTowrite.Add(New VERAG_PROG_ALLGEMEIN.cPDFWriteValues(Entladestelle, 50, 145, 110, 30, "bold", 14, , itextsharp.text.Element.ALIGN_LEFT))
|
listTowrite.Add(New VERAG_PROG_ALLGEMEIN.cPDFWriteValues(Entladestelle, 50, 145, 110, 30, "bold", 14, , itextsharp.text.Element.ALIGN_LEFT))
|
||||||
listTowrite.Add(New VERAG_PROG_ALLGEMEIN.cPDFWriteValues(Kommentare, 50, 212, 110, 30, "normal", 12, , itextsharp.text.Element.ALIGN_LEFT))
|
listTowrite.Add(New VERAG_PROG_ALLGEMEIN.cPDFWriteValues(Kommentare, 50, 212, 110, 30, "normal", 12, , itextsharp.text.Element.ALIGN_LEFT))
|
||||||
|
|
||||||
|
listTowrite.Add(New VERAG_PROG_ALLGEMEIN.cPDFWriteValues(ataNr, 50, 115, 110, 30, "bold", 12, , itextsharp.text.Element.ALIGN_LEFT))
|
||||||
|
|
||||||
Return fm.fillPDF("DOKUMENTE", "VORLAGEN", "SONSTIGE", getUO2, "", "Zollstopp", listTowrite)
|
Return fm.fillPDF("DOKUMENTE", "VORLAGEN", "SONSTIGE", getUO2, "", "Zollstopp", listTowrite)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\Program Files (x86)\GrapeCity\ActiveReports 15\Tools\BouncyCastle.Crypto.dll</HintPath>
|
<HintPath>C:\Program Files (x86)\GrapeCity\ActiveReports 15\Tools\BouncyCastle.Crypto.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="ClosedXML, Version=0.68.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
|
<Reference Include="ClosedXML, Version=0.76.0.0, Culture=neutral, PublicKeyToken=fd1eb21b62ae805b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>F:\PROGRAMMIERUNG\dll\closedxml\95\ClosedXML.dll</HintPath>
|
<HintPath>F:\PROGRAMMIERUNG\dll\closedxml\95\ClosedXML.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\dll\SharpSSH\DiffieHellman.dll</HintPath>
|
<HintPath>..\..\..\dll\SharpSSH\DiffieHellman.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="DocumentFormat.OpenXml, Version=2.9.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>F:\PROGRAMMIERUNG\dll\OpenXML\DocumentFormat.OpenXml.dll</HintPath>
|
<HintPath>F:\PROGRAMMIERUNG\dll\OpenXML\DocumentFormat.OpenXml.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|||||||
46
SDL/USTV/frmMDM_USTVAntrag.Designer.vb
generated
46
SDL/USTV/frmMDM_USTVAntrag.Designer.vb
generated
@@ -1,9 +1,9 @@
|
|||||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
Partial Class frmMDM_USTVAntrag
|
Partial Class frmMDM_USTVAntrag
|
||||||
Inherits System.Windows.Forms.Form
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
Try
|
Try
|
||||||
If disposing AndAlso components IsNot Nothing Then
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
@@ -20,12 +20,13 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||||
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.components = New System.ComponentModel.Container()
|
Me.components = New System.ComponentModel.Container()
|
||||||
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMDM_USTVAntrag))
|
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMDM_USTVAntrag))
|
||||||
Me.Panel3 = New System.Windows.Forms.Panel()
|
Me.Panel3 = New System.Windows.Forms.Panel()
|
||||||
|
Me.btnMail = New System.Windows.Forms.Button()
|
||||||
Me.Button14 = New System.Windows.Forms.Button()
|
Me.Button14 = New System.Windows.Forms.Button()
|
||||||
Me.cbxArchivierteEintracheNochmalsEinarbetien = New System.Windows.Forms.CheckBox()
|
Me.cbxArchivierteEintracheNochmalsEinarbetien = New System.Windows.Forms.CheckBox()
|
||||||
Me.Button1 = New System.Windows.Forms.Button()
|
Me.Button1 = New System.Windows.Forms.Button()
|
||||||
@@ -68,10 +69,11 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
Me.dgvUSTVPositionen = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
Me.dgvUSTVPositionen = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
||||||
Me.pnl = New System.Windows.Forms.Panel()
|
Me.pnl = New System.Windows.Forms.Panel()
|
||||||
Me.Panel2 = New System.Windows.Forms.Panel()
|
Me.Panel2 = New System.Windows.Forms.Panel()
|
||||||
Me.UstCntlUSTV_AntragPosition1 = New SDL.ustCntlUSTV_AntragPosition()
|
|
||||||
Me.Panel4 = New System.Windows.Forms.Panel()
|
Me.Panel4 = New System.Windows.Forms.Panel()
|
||||||
Me.Button3 = New System.Windows.Forms.Button()
|
Me.Button3 = New System.Windows.Forms.Button()
|
||||||
Me.Button2 = New System.Windows.Forms.Button()
|
Me.Button2 = New System.Windows.Forms.Button()
|
||||||
|
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||||
|
Me.UstCntlUSTV_AntragPosition1 = New SDL.ustCntlUSTV_AntragPosition()
|
||||||
Me.Panel3.SuspendLayout()
|
Me.Panel3.SuspendLayout()
|
||||||
Me.Panel1.SuspendLayout()
|
Me.Panel1.SuspendLayout()
|
||||||
Me.Panel9.SuspendLayout()
|
Me.Panel9.SuspendLayout()
|
||||||
@@ -90,6 +92,7 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
'
|
'
|
||||||
Me.Panel3.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
|
Me.Panel3.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
|
||||||
Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
Me.Panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
||||||
|
Me.Panel3.Controls.Add(Me.btnMail)
|
||||||
Me.Panel3.Controls.Add(Me.Button14)
|
Me.Panel3.Controls.Add(Me.Button14)
|
||||||
Me.Panel3.Controls.Add(Me.cbxArchivierteEintracheNochmalsEinarbetien)
|
Me.Panel3.Controls.Add(Me.cbxArchivierteEintracheNochmalsEinarbetien)
|
||||||
Me.Panel3.Controls.Add(Me.Button1)
|
Me.Panel3.Controls.Add(Me.Button1)
|
||||||
@@ -100,6 +103,18 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
Me.Panel3.Size = New System.Drawing.Size(1454, 100)
|
Me.Panel3.Size = New System.Drawing.Size(1454, 100)
|
||||||
Me.Panel3.TabIndex = 3
|
Me.Panel3.TabIndex = 3
|
||||||
'
|
'
|
||||||
|
'btnMail
|
||||||
|
'
|
||||||
|
Me.btnMail.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||||
|
Me.btnMail.ForeColor = System.Drawing.Color.Black
|
||||||
|
Me.btnMail.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||||
|
Me.btnMail.Location = New System.Drawing.Point(271, 30)
|
||||||
|
Me.btnMail.Name = "btnMail"
|
||||||
|
Me.btnMail.Size = New System.Drawing.Size(75, 39)
|
||||||
|
Me.btnMail.TabIndex = 26
|
||||||
|
Me.btnMail.Text = "Anträge"
|
||||||
|
Me.btnMail.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'Button14
|
'Button14
|
||||||
'
|
'
|
||||||
Me.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
Me.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||||
@@ -685,14 +700,6 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
Me.Panel2.Size = New System.Drawing.Size(1300, 269)
|
Me.Panel2.Size = New System.Drawing.Size(1300, 269)
|
||||||
Me.Panel2.TabIndex = 1
|
Me.Panel2.TabIndex = 1
|
||||||
'
|
'
|
||||||
'UstCntlUSTV_AntragPosition1
|
|
||||||
'
|
|
||||||
Me.UstCntlUSTV_AntragPosition1.Dock = System.Windows.Forms.DockStyle.Fill
|
|
||||||
Me.UstCntlUSTV_AntragPosition1.Location = New System.Drawing.Point(0, 0)
|
|
||||||
Me.UstCntlUSTV_AntragPosition1.Name = "UstCntlUSTV_AntragPosition1"
|
|
||||||
Me.UstCntlUSTV_AntragPosition1.Size = New System.Drawing.Size(1298, 267)
|
|
||||||
Me.UstCntlUSTV_AntragPosition1.TabIndex = 0
|
|
||||||
'
|
|
||||||
'Panel4
|
'Panel4
|
||||||
'
|
'
|
||||||
Me.Panel4.BackColor = System.Drawing.Color.WhiteSmoke
|
Me.Panel4.BackColor = System.Drawing.Color.WhiteSmoke
|
||||||
@@ -735,6 +742,19 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
Me.Button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
Me.Button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||||
Me.Button2.UseVisualStyleBackColor = True
|
Me.Button2.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
|
'ContextMenuStrip1
|
||||||
|
'
|
||||||
|
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||||
|
Me.ContextMenuStrip1.Size = New System.Drawing.Size(61, 4)
|
||||||
|
'
|
||||||
|
'UstCntlUSTV_AntragPosition1
|
||||||
|
'
|
||||||
|
Me.UstCntlUSTV_AntragPosition1.Dock = System.Windows.Forms.DockStyle.Fill
|
||||||
|
Me.UstCntlUSTV_AntragPosition1.Location = New System.Drawing.Point(0, 0)
|
||||||
|
Me.UstCntlUSTV_AntragPosition1.Name = "UstCntlUSTV_AntragPosition1"
|
||||||
|
Me.UstCntlUSTV_AntragPosition1.Size = New System.Drawing.Size(1298, 267)
|
||||||
|
Me.UstCntlUSTV_AntragPosition1.TabIndex = 0
|
||||||
|
'
|
||||||
'frmMDM_USTVAntrag
|
'frmMDM_USTVAntrag
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
@@ -818,4 +838,6 @@ Partial Class frmMDM_USTVAntrag
|
|||||||
Friend WithEvents Panel8 As Panel
|
Friend WithEvents Panel8 As Panel
|
||||||
Friend WithEvents lblKdNr As Label
|
Friend WithEvents lblKdNr As Label
|
||||||
Friend WithEvents Panel9 As Panel
|
Friend WithEvents Panel9 As Panel
|
||||||
|
Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
|
||||||
|
Friend WithEvents btnMail As Button
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -117,6 +117,9 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
Imports System.Reflection
|
Imports System.Reflection
|
||||||
|
Imports DocumentFormat.OpenXml.Drawing.Charts
|
||||||
|
Imports Microsoft.Office.Interop
|
||||||
|
Imports VERAG_PROG_ALLGEMEIN.TESTJSON
|
||||||
|
|
||||||
Public Class frmMDM_USTVAntrag
|
Public Class frmMDM_USTVAntrag
|
||||||
|
|
||||||
@@ -28,8 +31,9 @@ Public Class frmMDM_USTVAntrag
|
|||||||
|
|
||||||
If UStVAn_ID <= 0 Then Exit Sub
|
If UStVAn_ID <= 0 Then Exit Sub
|
||||||
|
|
||||||
.SET_SQL("SELECT [UStVAn_ID] ,[UStVPo_ID] ,[UStVPo_ReDat],[UStVPo_ReNr],[UStVPo_Leistungsbezeichnung],[UStVPo_Leistender],[UStVPo_USteuerbetrag],[UStVPo_Schnittstelle],[UStVPo_SchnittstellenNr],[UStVPo_Umrechnungskurs],[UStVPo_USteuerbetragEUR],[UStVPo_Sachbearbeiter]
|
.SET_SQL("SELECT [UStVAn_ID] ,[UStVPo_ID] ,[UStVPo_ReDat],[UStVPo_ReNr],[UStVPo_Leistungsbezeichnung],[UStVPo_Leistender],leist.[UstV_Leistender_Strasse] + ' ' + leist.[UstV_Leistender_StrasseNr] as [UstV_Leistender_Strasse],leist.[UstV_Leistender_PLZ],leist.[UstV_Leistender_Stadt],leist.[UstV_Leistender_Land],leist.[UstV_Leistender_UstNr],[UStVPo_USteuerbetrag],[UStVPo_Schnittstelle],[UStVPo_SchnittstellenNr],[UStVPo_Umrechnungskurs],[UStVPo_USteuerbetragEUR],[UStVPo_Sachbearbeiter]
|
||||||
FROM [tblUStVPositionen]
|
FROM [tblUStVPositionen]
|
||||||
|
inner join [tblUStVLeistender] as leist on leist.UStV_Leistender = [tblUStVPositionen].[UStVPo_Leistender]
|
||||||
where UStVAn_ID='" & UStVAn_ID & "' ORDER BY UStVPo_ID", "FMZOLL")
|
where UStVAn_ID='" & UStVAn_ID & "' ORDER BY UStVPo_ID", "FMZOLL")
|
||||||
.LOAD()
|
.LOAD()
|
||||||
.RowTemplate.Height = 20
|
.RowTemplate.Height = 20
|
||||||
@@ -56,12 +60,26 @@ Public Class frmMDM_USTVAntrag
|
|||||||
|
|
||||||
|
|
||||||
.Columns("UStVPo_Leistungsbezeichnung").HeaderText = "Leistungsbezeichnung"
|
.Columns("UStVPo_Leistungsbezeichnung").HeaderText = "Leistungsbezeichnung"
|
||||||
.Columns("UStVPo_Leistungsbezeichnung").Width = 200
|
.Columns("UStVPo_Leistungsbezeichnung").Width = 150
|
||||||
|
|
||||||
|
|
||||||
.Columns("UStVPo_Leistender").HeaderText = "Leistender"
|
.Columns("UStVPo_Leistender").HeaderText = "Leistender"
|
||||||
.Columns("UStVPo_Leistender").Width = 220
|
.Columns("UStVPo_Leistender").Width = 100
|
||||||
|
|
||||||
|
.Columns("UstV_Leistender_Strasse").HeaderText = "Strasse"
|
||||||
|
.Columns("UstV_Leistender_Strasse").Width = 50
|
||||||
|
|
||||||
|
.Columns("UstV_Leistender_PLZ").HeaderText = "PLZ"
|
||||||
|
.Columns("UstV_Leistender_PLZ").Width = 50
|
||||||
|
|
||||||
|
.Columns("UstV_Leistender_Land").HeaderText = "Land"
|
||||||
|
.Columns("UstV_Leistender_Land").Width = 50
|
||||||
|
|
||||||
|
.Columns("UstV_Leistender_Stadt").HeaderText = "Stadt"
|
||||||
|
.Columns("UstV_Leistender_Stadt").Width = 100
|
||||||
|
|
||||||
|
|
||||||
|
.Columns("UstV_Leistender_UstNr").HeaderText = "UID-Nr"
|
||||||
|
.Columns("UstV_Leistender_UstNr").Width = 150
|
||||||
|
|
||||||
.Columns("UStVPo_Schnittstelle").HeaderText = "API"
|
.Columns("UStVPo_Schnittstelle").HeaderText = "API"
|
||||||
.Columns("UStVPo_Schnittstelle").Width = 30
|
.Columns("UStVPo_Schnittstelle").Width = 30
|
||||||
@@ -81,7 +99,7 @@ Public Class frmMDM_USTVAntrag
|
|||||||
.Columns("UStVPo_USteuerbetragEUR").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
|
.Columns("UStVPo_USteuerbetragEUR").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
|
||||||
|
|
||||||
.Columns("UStVPo_Sachbearbeiter").HeaderText = "Sachbearbeiter"
|
.Columns("UStVPo_Sachbearbeiter").HeaderText = "Sachbearbeiter"
|
||||||
.Columns("UStVPo_Sachbearbeiter").MinimumWidth = 150
|
.Columns("UStVPo_Sachbearbeiter").MinimumWidth = 100
|
||||||
.Columns("UStVPo_Sachbearbeiter").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
.Columns("UStVPo_Sachbearbeiter").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -267,8 +285,9 @@ Public Class frmMDM_USTVAntrag
|
|||||||
Sub initPosition(UStVPo_ID)
|
Sub initPosition(UStVPo_ID)
|
||||||
If UStVPo_ID > 0 Then
|
If UStVPo_ID > 0 Then
|
||||||
Dim ANTR_POS As New VERAG_PROG_ALLGEMEIN.cUStVPositionen(USTV_ANTRAG.UStVAn_ID, UStVPo_ID)
|
Dim ANTR_POS As New VERAG_PROG_ALLGEMEIN.cUStVPositionen(USTV_ANTRAG.UStVAn_ID, UStVPo_ID)
|
||||||
|
Dim ANTR_Leistender As New VERAG_PROG_ALLGEMEIN.cUStVLeistender(ANTR_POS.UStVPo_Leistender)
|
||||||
UstCntlUSTV_AntragPosition1.Enabled = True
|
UstCntlUSTV_AntragPosition1.Enabled = True
|
||||||
UstCntlUSTV_AntragPosition1.setValues(USTV_ANTRAG.UStVAn_KuNr, ANTR_POS, Antrag_LandKz)
|
UstCntlUSTV_AntragPosition1.setValues(USTV_ANTRAG.UStVAn_KuNr, ANTR_POS, Antrag_LandKz, ANTR_Leistender)
|
||||||
Else
|
Else
|
||||||
UstCntlUSTV_AntragPosition1.reset()
|
UstCntlUSTV_AntragPosition1.reset()
|
||||||
UstCntlUSTV_AntragPosition1.Enabled = False
|
UstCntlUSTV_AntragPosition1.Enabled = False
|
||||||
@@ -446,6 +465,107 @@ Public Class frmMDM_USTVAntrag
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnMail_Click(sender As Object, e As EventArgs) Handles btnMail.Click
|
||||||
|
|
||||||
|
If Not ContextMenuStrip1.Items.ContainsKey("excel") Then
|
||||||
|
Dim uploadPictures = New ToolStripMenuItem() With {.Text = "Excelauswertung starten", .Name = "excel", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||||
|
ContextMenuStrip1.Items.Add(uploadPictures)
|
||||||
|
AddHandler uploadPictures.Click, AddressOf mnuItem_Clicked
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not ContextMenuStrip1.Items.ContainsKey("mail") Then
|
||||||
|
Dim copyToClipboard = New ToolStripMenuItem() With {.Text = "Email generieren", .Name = "mail", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||||
|
AddHandler copyToClipboard.Click, AddressOf mnuItem_Clicked
|
||||||
|
ContextMenuStrip1.Items.Add(copyToClipboard)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ContextMenuStrip1.Show(Cursor.Position)
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub mnuItem_Clicked(sender As Object, e As EventArgs)
|
||||||
|
ContextMenuStrip1.Hide()
|
||||||
|
Dim item As ToolStripMenuItem = TryCast(sender, ToolStripMenuItem)
|
||||||
|
|
||||||
|
If item IsNot Nothing Then
|
||||||
|
If item.Name = "excel" Then
|
||||||
|
excelAuswertung()
|
||||||
|
|
||||||
|
ElseIf item.Name = "mail" Then
|
||||||
|
mailmitExcelauswertung()
|
||||||
|
Else
|
||||||
|
MsgBox("Funktion nicht implementiert!")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Function excelAuswertung(ByRef Optional filepath As String = "", Optional feedback As Boolean = False, Optional openExcel As Boolean = True) As Boolean
|
||||||
|
|
||||||
|
Dim sqlStr = "SELECT [UStVPo_ReDat] as InvoiceDate , [UStVPo_ReNr] As InvoiceNumber, 'Verag 360 GmbH' as Company, 'FR' as CountryOfRefund ,'EUR' as Currency ,[UStVPo_Leistender] as SupplierName, leist.[UstV_Leistender_Strasse] AS SupplierStreet, leist.[UstV_Leistender_StrasseNr] as SupplierStreetNumber, leist.[UstV_Leistender_PLZ] as SupplierPostalCode, leist.[UstV_Leistender_Stadt] as SupplierCity, leist.[UstV_Leistender_Land] as SupplierCountry, leist.[UstV_Leistender_UstNr] as SupplierVAT_TaxNumber, [UStVPo_Leistungsbezeichnung] as ExpenseCategory ,Round((1119/19*[UStVPo_USteuerbetragEUR]),2) as ExpenseGrossAmount, [UStVPo_USteuerbetragEUR] as ExpenseVATAmount,Round((100/19*[UStVPo_USteuerbetragEUR]),2) as ExpenseNetAmount
|
||||||
|
FROM [tblUStVPositionen]
|
||||||
|
inner Join [tblUStVLeistender] as leist on leist.UStV_Leistender = [tblUStVPositionen].[UStVPo_Leistender]
|
||||||
|
where UStVAn_ID ='" & UStVAn_ID & "' ORDER BY UStVPo_ID"
|
||||||
|
|
||||||
|
Dim dt = SQL.loadDgvBySql(sqlStr, "FMZOLL")
|
||||||
|
|
||||||
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
filepath = VERAG_PROG_ALLGEMEIN.cProgramFunctions.genExcelFromDT_NEW(dt, {"N1:N" & (dt.Rows.Count + 1), "O1:O" & (dt.Rows.Count + 1), "P1:P" & (dt.Rows.Count + 1)},,,, openExcel)
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
If feedback Then MsgBox("keine Daten vorhanden!")
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub mailmitExcelauswertung()
|
||||||
|
|
||||||
|
Try
|
||||||
|
Dim outl As New Outlook.Application
|
||||||
|
Dim Mail As Microsoft.Office.Interop.Outlook.MailItem
|
||||||
|
Mail = outl.CreateItem(0)
|
||||||
|
|
||||||
|
|
||||||
|
Dim filepath = ""
|
||||||
|
If excelAuswertung(filepath, False, False) Then
|
||||||
|
|
||||||
|
Mail.Attachments.Add(filepath, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Mail.Subject = USTV_ANTRAG.UStVAn_Name & "_" & USTV_ANTRAG.UStVAn_LandKz & "_" & USTV_ANTRAG.UStVAn_ReDatVon & "-" & USTV_ANTRAG.UStVAn_ReDatBis
|
||||||
|
|
||||||
|
Dim TextHTML = ""
|
||||||
|
TextHTML &= "Ladies and Gentlemen,<br>"
|
||||||
|
TextHTML &= "<br>"
|
||||||
|
TextHTML &= "In the attachment we will send you the Excel list and the corresponding invoices for the VAT refund.<br>"
|
||||||
|
TextHTML &= "Please submit these invoices to the tax office.<br>"
|
||||||
|
TextHTML &= "We are always available to answer more questions.<br>"
|
||||||
|
|
||||||
|
TextHTML &= "Mit freundlichen Grüßen<br>"
|
||||||
|
TextHTML &= VERAG_PROG_ALLGEMEIN.cAllgemein.USRNAME & "<br>"
|
||||||
|
TextHTML &= "<br>"
|
||||||
|
Mail.HTMLBody = "<div style=""font-family:Calibri, Arial;font-size:15px;"">" & TextHTML & SDL.cFakturierung.getSignature("DE") & "</div>"
|
||||||
|
|
||||||
|
Mail.Display()
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name,, "Fehler beim Öffnen der Mail!")
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
' Private Sub cmdITMautÜbernehmen_Click()
|
' Private Sub cmdITMautÜbernehmen_Click()
|
||||||
|
|
||||||
' Dim wrk As DAO.Workspace
|
' Dim wrk As DAO.Workspace
|
||||||
|
|||||||
28
SDL/USTV/usrCntlUSTV.Designer.vb
generated
28
SDL/USTV/usrCntlUSTV.Designer.vb
generated
@@ -23,7 +23,7 @@ Partial Class usrCntlUSTV
|
|||||||
<System.Diagnostics.DebuggerStepThrough()>
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.components = New System.ComponentModel.Container()
|
Me.components = New System.ComponentModel.Container()
|
||||||
Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||||
Me.pnlFilter = New System.Windows.Forms.Panel()
|
Me.pnlFilter = New System.Windows.Forms.Panel()
|
||||||
Me.dgvUSTV = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
Me.dgvUSTV = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
||||||
Me.Label1 = New System.Windows.Forms.Label()
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
@@ -41,6 +41,8 @@ Partial Class usrCntlUSTV
|
|||||||
Me.btnPLOSEAlle = New System.Windows.Forms.Button()
|
Me.btnPLOSEAlle = New System.Windows.Forms.Button()
|
||||||
Me.Button5 = New System.Windows.Forms.Button()
|
Me.Button5 = New System.Windows.Forms.Button()
|
||||||
Me.Button8 = New System.Windows.Forms.Button()
|
Me.Button8 = New System.Windows.Forms.Button()
|
||||||
|
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||||
|
Me.btnMail = New System.Windows.Forms.Button()
|
||||||
CType(Me.dgvUSTV, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.dgvUSTV, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.Panel1.SuspendLayout()
|
Me.Panel1.SuspendLayout()
|
||||||
Me.Panel2.SuspendLayout()
|
Me.Panel2.SuspendLayout()
|
||||||
@@ -62,8 +64,8 @@ Partial Class usrCntlUSTV
|
|||||||
Me.dgvUSTV.AKTUALISIERUNGS_INTERVALL = -1
|
Me.dgvUSTV.AKTUALISIERUNGS_INTERVALL = -1
|
||||||
Me.dgvUSTV.AllowUserToAddRows = False
|
Me.dgvUSTV.AllowUserToAddRows = False
|
||||||
Me.dgvUSTV.AllowUserToDeleteRows = False
|
Me.dgvUSTV.AllowUserToDeleteRows = False
|
||||||
DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(240, Byte), Integer), CType(CType(245, Byte), Integer), CType(CType(255, Byte), Integer))
|
DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(240, Byte), Integer), CType(CType(245, Byte), Integer), CType(CType(255, Byte), Integer))
|
||||||
Me.dgvUSTV.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
|
Me.dgvUSTV.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
|
||||||
Me.dgvUSTV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
Me.dgvUSTV.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||||
Me.dgvUSTV.Dock = System.Windows.Forms.DockStyle.Fill
|
Me.dgvUSTV.Dock = System.Windows.Forms.DockStyle.Fill
|
||||||
Me.dgvUSTV.Location = New System.Drawing.Point(0, 84)
|
Me.dgvUSTV.Location = New System.Drawing.Point(0, 84)
|
||||||
@@ -228,6 +230,7 @@ Partial Class usrCntlUSTV
|
|||||||
'Panel3
|
'Panel3
|
||||||
'
|
'
|
||||||
Me.Panel3.AutoSize = True
|
Me.Panel3.AutoSize = True
|
||||||
|
Me.Panel3.Controls.Add(Me.btnMail)
|
||||||
Me.Panel3.Controls.Add(Me.btnPLOSEAlle)
|
Me.Panel3.Controls.Add(Me.btnPLOSEAlle)
|
||||||
Me.Panel3.Controls.Add(Me.Button5)
|
Me.Panel3.Controls.Add(Me.Button5)
|
||||||
Me.Panel3.Controls.Add(Me.Button8)
|
Me.Panel3.Controls.Add(Me.Button8)
|
||||||
@@ -283,6 +286,23 @@ Partial Class usrCntlUSTV
|
|||||||
Me.Button8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
Me.Button8.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||||
Me.Button8.UseVisualStyleBackColor = True
|
Me.Button8.UseVisualStyleBackColor = True
|
||||||
'
|
'
|
||||||
|
'ContextMenuStrip1
|
||||||
|
'
|
||||||
|
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||||
|
Me.ContextMenuStrip1.Size = New System.Drawing.Size(61, 4)
|
||||||
|
'
|
||||||
|
'btnMail
|
||||||
|
'
|
||||||
|
Me.btnMail.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||||
|
Me.btnMail.ForeColor = System.Drawing.Color.Black
|
||||||
|
Me.btnMail.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||||
|
Me.btnMail.Location = New System.Drawing.Point(545, 10)
|
||||||
|
Me.btnMail.Name = "btnMail"
|
||||||
|
Me.btnMail.Size = New System.Drawing.Size(75, 39)
|
||||||
|
Me.btnMail.TabIndex = 25
|
||||||
|
Me.btnMail.Text = "Anträge"
|
||||||
|
Me.btnMail.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'usrCntlUSTV
|
'usrCntlUSTV
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
@@ -318,4 +338,6 @@ Partial Class usrCntlUSTV
|
|||||||
Friend WithEvents cboJahrBis As VERAG_PROG_ALLGEMEIN.MyComboBox
|
Friend WithEvents cboJahrBis As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||||
Friend WithEvents Button5 As Button
|
Friend WithEvents Button5 As Button
|
||||||
Friend WithEvents btnPLOSEAlle As Button
|
Friend WithEvents btnPLOSEAlle As Button
|
||||||
|
Friend WithEvents btnMail As Button
|
||||||
|
Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -117,4 +117,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="ContextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
Imports System.ComponentModel
|
Imports System.ComponentModel
|
||||||
Imports System.Data.SqlClient
|
Imports System.Data.SqlClient
|
||||||
|
Imports Microsoft.Office.Interop
|
||||||
Imports VERAG_PROG_ALLGEMEIN
|
Imports VERAG_PROG_ALLGEMEIN
|
||||||
|
Imports VERAG_PROG_ALLGEMEIN.CBAM_QReport_17
|
||||||
|
|
||||||
Public Class usrCntlUSTV
|
Public Class usrCntlUSTV
|
||||||
|
|
||||||
@@ -27,7 +29,6 @@ Public Class usrCntlUSTV
|
|||||||
.ClearSelection()
|
.ClearSelection()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.SET_SQL("SELECT TOP (200) [UStVAn_ID],[UStVAn_KuNr],[UStVAn_Name],LandKz,[UStVAn_ReDatVon],[UStVAn_ReDatBis] ,UStVAn_AntragEingereichtAm,[UStVAn_3470] ,[UStVAn_Währungscode],[UStVAn_USteuerbetrag],[UStVAn_Erstattungsbetrag],[UStVAn_USteuerbetragEUR],[UStVAn_ErstattungsbetragEUR],[UStVAn_Sachbearbeiter]
|
.SET_SQL("SELECT TOP (200) [UStVAn_ID],[UStVAn_KuNr],[UStVAn_Name],LandKz,[UStVAn_ReDatVon],[UStVAn_ReDatBis] ,UStVAn_AntragEingereichtAm,[UStVAn_3470] ,[UStVAn_Währungscode],[UStVAn_USteuerbetrag],[UStVAn_Erstattungsbetrag],[UStVAn_USteuerbetragEUR],[UStVAn_ErstattungsbetragEUR],[UStVAn_Sachbearbeiter]
|
||||||
FROM [tblUStVAntrag] inner join [Länderverzeichnis für die Außenhandelsstatistik] on UStVAn_LandNr=Landnr
|
FROM [tblUStVAntrag] inner join [Länderverzeichnis für die Außenhandelsstatistik] on UStVAn_LandNr=Landnr
|
||||||
where 1=1 " & getWhere() & "
|
where 1=1 " & getWhere() & "
|
||||||
@@ -198,12 +199,12 @@ Public Class usrCntlUSTV
|
|||||||
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
|
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
|
||||||
' If Not kdNr_filter Then
|
' If Not kdNr_filter Then
|
||||||
If dgvUSTV.SelectedCells.Count > 0 Then
|
If dgvUSTV.SelectedCells.Count > 0 Then
|
||||||
If IsNumeric(dgvUSTV.CurrentRow.Cells("UStVAn_KuNr").Value) Then
|
If IsNumeric(dgvUSTV.CurrentRow.Cells("UStVAn_KuNr").Value) Then
|
||||||
cProgramFunctions.openKundenblatt(dgvUSTV.CurrentRow.Cells("UStVAn_KuNr").Value, Me.FindForm, True)
|
cProgramFunctions.openKundenblatt(dgvUSTV.CurrentRow.Cells("UStVAn_KuNr").Value, Me.FindForm, True)
|
||||||
'Dim pf As New cProgramFunctions
|
'Dim pf As New cProgramFunctions
|
||||||
'pf.openKundenblatt(dgvSDL.CurrentRow.Cells("KundenNr").Value)
|
'pf.openKundenblatt(dgvSDL.CurrentRow.Cells("KundenNr").Value)
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
' End If
|
' End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -232,4 +233,104 @@ Public Class usrCntlUSTV
|
|||||||
End Try
|
End Try
|
||||||
Me.Cursor = Cursors.Default
|
Me.Cursor = Cursors.Default
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub btnMail_Click(sender As Object, e As EventArgs) Handles btnMail.Click
|
||||||
|
|
||||||
|
If Not ContextMenuStrip1.Items.ContainsKey("excel") Then
|
||||||
|
Dim excel = New ToolStripMenuItem() With {.Text = "Excelauswertung starten", .Name = "excel", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||||
|
ContextMenuStrip1.Items.Add(excel)
|
||||||
|
AddHandler excel.Click, AddressOf mnuItem_Clicked
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Not ContextMenuStrip1.Items.ContainsKey("mail") Then
|
||||||
|
Dim mail = New ToolStripMenuItem() With {.Text = "Email generieren", .Name = "mail", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||||
|
AddHandler mail.Click, AddressOf mnuItem_Clicked
|
||||||
|
ContextMenuStrip1.Items.Add(mail)
|
||||||
|
End If
|
||||||
|
|
||||||
|
ContextMenuStrip1.Show(Cursor.Position)
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub mnuItem_Clicked(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
If dgvUSTV.SelectedRows.Count > 0 Then
|
||||||
|
|
||||||
|
ContextMenuStrip1.Hide()
|
||||||
|
Dim item As ToolStripMenuItem = TryCast(sender, ToolStripMenuItem)
|
||||||
|
|
||||||
|
If item IsNot Nothing Then
|
||||||
|
If item.Name = "excel" Then
|
||||||
|
excelAuswertung()
|
||||||
|
|
||||||
|
ElseIf item.Name = "mail" Then
|
||||||
|
mailmitExcelauswertung()
|
||||||
|
Else
|
||||||
|
MsgBox("Funktion nicht implementiert!")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Function excelAuswertung(Optional filepath As String = "", Optional feedback As Boolean = False, Optional openExcel As Boolean = True) As Boolean
|
||||||
|
|
||||||
|
Dim sqlStr = "SELECT [UStVPo_ReDat] as InvoiceDate , [UStVPo_ReNr] As InvoiceNumber, 'Verag 360 GmbH' as Company, 'FR' as CountryOfRefund ,'EUR' as Currency ,[UStVPo_Leistender] as SupplierName, leist.[UstV_Leistender_Strasse] AS SupplierStreet, leist.[UstV_Leistender_StrasseNr] as SupplierStreetNumber, leist.[UstV_Leistender_PLZ] as SupplierPostalCode, leist.[UstV_Leistender_Stadt] as SupplierCity, leist.[UstV_Leistender_Land] as SupplierCountry, leist.[UstV_Leistender_UstNr] as SupplierVAT_TaxNumber, [UStVPo_Leistungsbezeichnung] as ExpenseCategory ,Round((1119/19*[UStVPo_USteuerbetragEUR]),2) as ExpenseGrossAmount, [UStVPo_USteuerbetragEUR] as ExpenseVATAmount,Round((100/19*[UStVPo_USteuerbetragEUR]),2) as ExpenseNetAmount
|
||||||
|
FROM [tblUStVPositionen]
|
||||||
|
inner Join [tblUStVLeistender] as leist on leist.UStV_Leistender = [tblUStVPositionen].[UStVPo_Leistender]
|
||||||
|
where UStVAn_ID ='" & dgvUSTV.SelectedRows(0).Cells("UStVAn_ID").Value & "' ORDER BY UStVPo_ID"
|
||||||
|
|
||||||
|
Dim dt = SQL.loadDgvBySql(sqlStr, "FMZOLL")
|
||||||
|
filepath = ""
|
||||||
|
If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
||||||
|
filepath = VERAG_PROG_ALLGEMEIN.cProgramFunctions.genExcelFromDT_NEW(dt, {"N1:N" & (dt.Rows.Count + 1), "O1:O" & (dt.Rows.Count + 1), "P1:P" & (dt.Rows.Count + 1)},,,, openExcel)
|
||||||
|
Else
|
||||||
|
MsgBox("Keine Daten!")
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub mailmitExcelauswertung()
|
||||||
|
|
||||||
|
Try
|
||||||
|
Dim outl As New Outlook.Application
|
||||||
|
Dim Mail As Microsoft.Office.Interop.Outlook.MailItem
|
||||||
|
Mail = outl.CreateItem(0)
|
||||||
|
|
||||||
|
|
||||||
|
Dim filepath = ""
|
||||||
|
If excelAuswertung(filepath, False, False) Then
|
||||||
|
|
||||||
|
Mail.Attachments.Add(filepath, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
If dgvUSTV.Columns.Count > 0 Then Mail.Subject = dgvUSTV.CurrentRow.Cells("UStVAn_Name").Value & "_" & dgvUSTV.CurrentRow.Cells("UStVAn_LandKz").Value & "_" & dgvUSTV.CurrentRow.Cells("UStVAn_ReDatVon").Value & "-" & dgvUSTV.CurrentRow.Cells("UStVAn_ReDatBis").Value
|
||||||
|
|
||||||
|
Dim TextHTML = ""
|
||||||
|
TextHTML &= "Ladies and Gentlemen,<br>"
|
||||||
|
TextHTML &= "<br>"
|
||||||
|
TextHTML &= "In the attachment we will send you the Excel list and the corresponding invoices for the VAT refund.<br>"
|
||||||
|
TextHTML &= "Please submit these invoices to the tax office.<br>"
|
||||||
|
TextHTML &= "We are always available to answer more questions.<br>"
|
||||||
|
|
||||||
|
TextHTML &= "Mit freundlichen Grüßen<br>"
|
||||||
|
TextHTML &= VERAG_PROG_ALLGEMEIN.cAllgemein.USRNAME & "<br>"
|
||||||
|
TextHTML &= "<br>"
|
||||||
|
Mail.HTMLBody = "<div style=""font-family:Calibri, Arial;font-size:15px;"">" & TextHTML & SDL.cFakturierung.getSignature("DE") & "</div>"
|
||||||
|
|
||||||
|
Mail.Display()
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name,, "Fehler beim Öffnen der Mail!")
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
248
SDL/USTV/ustCntlUSTV_AntragPosition.Designer.vb
generated
248
SDL/USTV/ustCntlUSTV_AntragPosition.Designer.vb
generated
@@ -59,12 +59,24 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.lblSachbearbeiter = New System.Windows.Forms.Label()
|
Me.lblSachbearbeiter = New System.Windows.Forms.Label()
|
||||||
Me.cboSchnittstellennr = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
Me.cboSchnittstellennr = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||||
Me.pnl = New System.Windows.Forms.Panel()
|
Me.pnl = New System.Windows.Forms.Panel()
|
||||||
|
Me.txtUIDNr = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.Label17 = New System.Windows.Forms.Label()
|
||||||
|
Me.txtLand = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.txtStrassenNr = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.txtOrt = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.Label16 = New System.Windows.Forms.Label()
|
||||||
|
Me.txtPLZ = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.Label15 = New System.Windows.Forms.Label()
|
||||||
|
Me.txtStrasse = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
|
Me.Label14 = New System.Windows.Forms.Label()
|
||||||
Me.Panel1 = New System.Windows.Forms.Panel()
|
Me.Panel1 = New System.Windows.Forms.Panel()
|
||||||
Me.Panel3 = New System.Windows.Forms.Panel()
|
Me.Panel3 = New System.Windows.Forms.Panel()
|
||||||
Me.Panel4 = New System.Windows.Forms.Panel()
|
Me.Panel4 = New System.Windows.Forms.Panel()
|
||||||
Me.TabControl1 = New System.Windows.Forms.TabControl()
|
Me.TabControl1 = New System.Windows.Forms.TabControl()
|
||||||
Me.TabPage1 = New System.Windows.Forms.TabPage()
|
Me.TabPage1 = New System.Windows.Forms.TabPage()
|
||||||
Me.UsrcntlPDFScanList1 = New VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList()
|
Me.UsrcntlPDFScanList1 = New VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList()
|
||||||
|
Me.pnlAdresse = New System.Windows.Forms.Panel()
|
||||||
|
Me.picSave = New System.Windows.Forms.PictureBox()
|
||||||
Me.tabDok.SuspendLayout()
|
Me.tabDok.SuspendLayout()
|
||||||
Me.tbcntr.SuspendLayout()
|
Me.tbcntr.SuspendLayout()
|
||||||
Me.tabVollmachten.SuspendLayout()
|
Me.tabVollmachten.SuspendLayout()
|
||||||
@@ -76,6 +88,8 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.Panel4.SuspendLayout()
|
Me.Panel4.SuspendLayout()
|
||||||
Me.TabControl1.SuspendLayout()
|
Me.TabControl1.SuspendLayout()
|
||||||
Me.TabPage1.SuspendLayout()
|
Me.TabPage1.SuspendLayout()
|
||||||
|
Me.pnlAdresse.SuspendLayout()
|
||||||
|
CType(Me.picSave, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'scanLieferschein
|
'scanLieferschein
|
||||||
@@ -209,7 +223,7 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.cbxAPI._value = ""
|
Me.cbxAPI._value = ""
|
||||||
Me.cbxAPI.AutoSize = True
|
Me.cbxAPI.AutoSize = True
|
||||||
Me.cbxAPI.Enabled = False
|
Me.cbxAPI.Enabled = False
|
||||||
Me.cbxAPI.Location = New System.Drawing.Point(634, 132)
|
Me.cbxAPI.Location = New System.Drawing.Point(634, 193)
|
||||||
Me.cbxAPI.Name = "cbxAPI"
|
Me.cbxAPI.Name = "cbxAPI"
|
||||||
Me.cbxAPI.Size = New System.Drawing.Size(83, 17)
|
Me.cbxAPI.Size = New System.Drawing.Size(83, 17)
|
||||||
Me.cbxAPI.TabIndex = 17
|
Me.cbxAPI.TabIndex = 17
|
||||||
@@ -564,7 +578,7 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.cboSchnittstellennr._value = ""
|
Me.cboSchnittstellennr._value = ""
|
||||||
Me.cboSchnittstellennr.Enabled = False
|
Me.cboSchnittstellennr.Enabled = False
|
||||||
Me.cboSchnittstellennr.FormattingEnabled = True
|
Me.cboSchnittstellennr.FormattingEnabled = True
|
||||||
Me.cboSchnittstellennr.Location = New System.Drawing.Point(723, 130)
|
Me.cboSchnittstellennr.Location = New System.Drawing.Point(723, 191)
|
||||||
Me.cboSchnittstellennr.Name = "cboSchnittstellennr"
|
Me.cboSchnittstellennr.Name = "cboSchnittstellennr"
|
||||||
Me.cboSchnittstellennr.Size = New System.Drawing.Size(190, 21)
|
Me.cboSchnittstellennr.Size = New System.Drawing.Size(190, 21)
|
||||||
Me.cboSchnittstellennr.TabIndex = 18
|
Me.cboSchnittstellennr.TabIndex = 18
|
||||||
@@ -572,6 +586,8 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
'pnl
|
'pnl
|
||||||
'
|
'
|
||||||
Me.pnl.BackColor = System.Drawing.Color.White
|
Me.pnl.BackColor = System.Drawing.Color.White
|
||||||
|
Me.pnl.Controls.Add(Me.picSave)
|
||||||
|
Me.pnl.Controls.Add(Me.pnlAdresse)
|
||||||
Me.pnl.Controls.Add(Me.Label6)
|
Me.pnl.Controls.Add(Me.Label6)
|
||||||
Me.pnl.Controls.Add(Me.cboSchnittstellennr)
|
Me.pnl.Controls.Add(Me.cboSchnittstellennr)
|
||||||
Me.pnl.Controls.Add(Me.Label9)
|
Me.pnl.Controls.Add(Me.Label9)
|
||||||
@@ -601,6 +617,190 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.pnl.Size = New System.Drawing.Size(1300, 239)
|
Me.pnl.Size = New System.Drawing.Size(1300, 239)
|
||||||
Me.pnl.TabIndex = 1
|
Me.pnl.TabIndex = 1
|
||||||
'
|
'
|
||||||
|
'txtUIDNr
|
||||||
|
'
|
||||||
|
Me.txtUIDNr._DateTimeOnly = False
|
||||||
|
Me.txtUIDNr._numbersOnly = False
|
||||||
|
Me.txtUIDNr._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtUIDNr._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtUIDNr._Prozent = False
|
||||||
|
Me.txtUIDNr._ShortDateNew = False
|
||||||
|
Me.txtUIDNr._ShortDateOnly = False
|
||||||
|
Me.txtUIDNr._TimeOnly = False
|
||||||
|
Me.txtUIDNr._TimeOnly_Seconds = False
|
||||||
|
Me.txtUIDNr._value = ""
|
||||||
|
Me.txtUIDNr._Waehrung = False
|
||||||
|
Me.txtUIDNr._WaehrungZeichen = True
|
||||||
|
Me.txtUIDNr.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtUIDNr.Location = New System.Drawing.Point(180, 60)
|
||||||
|
Me.txtUIDNr.MaxLength = 50
|
||||||
|
Me.txtUIDNr.MaxLineLength = -1
|
||||||
|
Me.txtUIDNr.MaxLines_Warning = ""
|
||||||
|
Me.txtUIDNr.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtUIDNr.Name = "txtUIDNr"
|
||||||
|
Me.txtUIDNr.Size = New System.Drawing.Size(106, 20)
|
||||||
|
Me.txtUIDNr.TabIndex = 32
|
||||||
|
'
|
||||||
|
'Label17
|
||||||
|
'
|
||||||
|
Me.Label17.AutoSize = True
|
||||||
|
Me.Label17.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.5!)
|
||||||
|
Me.Label17.Location = New System.Drawing.Point(129, 63)
|
||||||
|
Me.Label17.Name = "Label17"
|
||||||
|
Me.Label17.Size = New System.Drawing.Size(45, 15)
|
||||||
|
Me.Label17.TabIndex = 31
|
||||||
|
Me.Label17.Text = "UID-Nr"
|
||||||
|
'
|
||||||
|
'txtLand
|
||||||
|
'
|
||||||
|
Me.txtLand._DateTimeOnly = False
|
||||||
|
Me.txtLand._numbersOnly = False
|
||||||
|
Me.txtLand._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtLand._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtLand._Prozent = False
|
||||||
|
Me.txtLand._ShortDateNew = False
|
||||||
|
Me.txtLand._ShortDateOnly = False
|
||||||
|
Me.txtLand._TimeOnly = False
|
||||||
|
Me.txtLand._TimeOnly_Seconds = False
|
||||||
|
Me.txtLand._value = ""
|
||||||
|
Me.txtLand._Waehrung = False
|
||||||
|
Me.txtLand._WaehrungZeichen = True
|
||||||
|
Me.txtLand.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtLand.Location = New System.Drawing.Point(66, 58)
|
||||||
|
Me.txtLand.MaxLength = 2
|
||||||
|
Me.txtLand.MaxLineLength = -1
|
||||||
|
Me.txtLand.MaxLines_Warning = ""
|
||||||
|
Me.txtLand.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtLand.Name = "txtLand"
|
||||||
|
Me.txtLand.Size = New System.Drawing.Size(38, 20)
|
||||||
|
Me.txtLand.TabIndex = 30
|
||||||
|
'
|
||||||
|
'txtStrassenNr
|
||||||
|
'
|
||||||
|
Me.txtStrassenNr._DateTimeOnly = False
|
||||||
|
Me.txtStrassenNr._numbersOnly = False
|
||||||
|
Me.txtStrassenNr._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtStrassenNr._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtStrassenNr._Prozent = False
|
||||||
|
Me.txtStrassenNr._ShortDateNew = False
|
||||||
|
Me.txtStrassenNr._ShortDateOnly = False
|
||||||
|
Me.txtStrassenNr._TimeOnly = False
|
||||||
|
Me.txtStrassenNr._TimeOnly_Seconds = False
|
||||||
|
Me.txtStrassenNr._value = ""
|
||||||
|
Me.txtStrassenNr._Waehrung = False
|
||||||
|
Me.txtStrassenNr._WaehrungZeichen = True
|
||||||
|
Me.txtStrassenNr.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtStrassenNr.Location = New System.Drawing.Point(241, 2)
|
||||||
|
Me.txtStrassenNr.MaxLength = 10
|
||||||
|
Me.txtStrassenNr.MaxLineLength = -1
|
||||||
|
Me.txtStrassenNr.MaxLines_Warning = ""
|
||||||
|
Me.txtStrassenNr.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtStrassenNr.Name = "txtStrassenNr"
|
||||||
|
Me.txtStrassenNr.Size = New System.Drawing.Size(45, 20)
|
||||||
|
Me.txtStrassenNr.TabIndex = 29
|
||||||
|
'
|
||||||
|
'txtOrt
|
||||||
|
'
|
||||||
|
Me.txtOrt._DateTimeOnly = False
|
||||||
|
Me.txtOrt._numbersOnly = False
|
||||||
|
Me.txtOrt._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtOrt._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtOrt._Prozent = False
|
||||||
|
Me.txtOrt._ShortDateNew = False
|
||||||
|
Me.txtOrt._ShortDateOnly = False
|
||||||
|
Me.txtOrt._TimeOnly = False
|
||||||
|
Me.txtOrt._TimeOnly_Seconds = False
|
||||||
|
Me.txtOrt._value = ""
|
||||||
|
Me.txtOrt._Waehrung = False
|
||||||
|
Me.txtOrt._WaehrungZeichen = True
|
||||||
|
Me.txtOrt.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtOrt.Location = New System.Drawing.Point(132, 29)
|
||||||
|
Me.txtOrt.MaxLength = 50
|
||||||
|
Me.txtOrt.MaxLineLength = -1
|
||||||
|
Me.txtOrt.MaxLines_Warning = ""
|
||||||
|
Me.txtOrt.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtOrt.Name = "txtOrt"
|
||||||
|
Me.txtOrt.Size = New System.Drawing.Size(154, 20)
|
||||||
|
Me.txtOrt.TabIndex = 28
|
||||||
|
'
|
||||||
|
'Label16
|
||||||
|
'
|
||||||
|
Me.Label16.AutoSize = True
|
||||||
|
Me.Label16.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.5!)
|
||||||
|
Me.Label16.Location = New System.Drawing.Point(8, 58)
|
||||||
|
Me.Label16.Name = "Label16"
|
||||||
|
Me.Label16.Size = New System.Drawing.Size(35, 15)
|
||||||
|
Me.Label16.TabIndex = 27
|
||||||
|
Me.Label16.Text = "Land"
|
||||||
|
'
|
||||||
|
'txtPLZ
|
||||||
|
'
|
||||||
|
Me.txtPLZ._DateTimeOnly = False
|
||||||
|
Me.txtPLZ._numbersOnly = False
|
||||||
|
Me.txtPLZ._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtPLZ._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtPLZ._Prozent = False
|
||||||
|
Me.txtPLZ._ShortDateNew = False
|
||||||
|
Me.txtPLZ._ShortDateOnly = False
|
||||||
|
Me.txtPLZ._TimeOnly = False
|
||||||
|
Me.txtPLZ._TimeOnly_Seconds = False
|
||||||
|
Me.txtPLZ._value = ""
|
||||||
|
Me.txtPLZ._Waehrung = False
|
||||||
|
Me.txtPLZ._WaehrungZeichen = True
|
||||||
|
Me.txtPLZ.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtPLZ.Location = New System.Drawing.Point(66, 29)
|
||||||
|
Me.txtPLZ.MaxLength = 10
|
||||||
|
Me.txtPLZ.MaxLineLength = -1
|
||||||
|
Me.txtPLZ.MaxLines_Warning = ""
|
||||||
|
Me.txtPLZ.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtPLZ.Name = "txtPLZ"
|
||||||
|
Me.txtPLZ.Size = New System.Drawing.Size(59, 20)
|
||||||
|
Me.txtPLZ.TabIndex = 26
|
||||||
|
'
|
||||||
|
'Label15
|
||||||
|
'
|
||||||
|
Me.Label15.AutoSize = True
|
||||||
|
Me.Label15.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.5!)
|
||||||
|
Me.Label15.Location = New System.Drawing.Point(8, 32)
|
||||||
|
Me.Label15.Name = "Label15"
|
||||||
|
Me.Label15.Size = New System.Drawing.Size(48, 15)
|
||||||
|
Me.Label15.TabIndex = 25
|
||||||
|
Me.Label15.Text = "PLZ/Ort"
|
||||||
|
'
|
||||||
|
'txtStrasse
|
||||||
|
'
|
||||||
|
Me.txtStrasse._DateTimeOnly = False
|
||||||
|
Me.txtStrasse._numbersOnly = False
|
||||||
|
Me.txtStrasse._numbersOnlyKommastellen = ""
|
||||||
|
Me.txtStrasse._numbersOnlyTrennzeichen = True
|
||||||
|
Me.txtStrasse._Prozent = False
|
||||||
|
Me.txtStrasse._ShortDateNew = False
|
||||||
|
Me.txtStrasse._ShortDateOnly = False
|
||||||
|
Me.txtStrasse._TimeOnly = False
|
||||||
|
Me.txtStrasse._TimeOnly_Seconds = False
|
||||||
|
Me.txtStrasse._value = ""
|
||||||
|
Me.txtStrasse._Waehrung = False
|
||||||
|
Me.txtStrasse._WaehrungZeichen = True
|
||||||
|
Me.txtStrasse.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.txtStrasse.Location = New System.Drawing.Point(66, 3)
|
||||||
|
Me.txtStrasse.MaxLength = 50
|
||||||
|
Me.txtStrasse.MaxLineLength = -1
|
||||||
|
Me.txtStrasse.MaxLines_Warning = ""
|
||||||
|
Me.txtStrasse.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.txtStrasse.Name = "txtStrasse"
|
||||||
|
Me.txtStrasse.Size = New System.Drawing.Size(169, 20)
|
||||||
|
Me.txtStrasse.TabIndex = 24
|
||||||
|
'
|
||||||
|
'Label14
|
||||||
|
'
|
||||||
|
Me.Label14.AutoSize = True
|
||||||
|
Me.Label14.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.5!)
|
||||||
|
Me.Label14.Location = New System.Drawing.Point(4, 5)
|
||||||
|
Me.Label14.Name = "Label14"
|
||||||
|
Me.Label14.Size = New System.Drawing.Size(64, 15)
|
||||||
|
Me.Label14.TabIndex = 23
|
||||||
|
Me.Label14.Text = "Strasse/Nr"
|
||||||
|
'
|
||||||
'Panel1
|
'Panel1
|
||||||
'
|
'
|
||||||
Me.Panel1.Controls.Add(Me.btnBildAuf)
|
Me.Panel1.Controls.Add(Me.btnBildAuf)
|
||||||
@@ -671,6 +871,35 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.UsrcntlPDFScanList1.Size = New System.Drawing.Size(264, 207)
|
Me.UsrcntlPDFScanList1.Size = New System.Drawing.Size(264, 207)
|
||||||
Me.UsrcntlPDFScanList1.TabIndex = 0
|
Me.UsrcntlPDFScanList1.TabIndex = 0
|
||||||
'
|
'
|
||||||
|
'pnlAdresse
|
||||||
|
'
|
||||||
|
Me.pnlAdresse.AccessibleRole = System.Windows.Forms.AccessibleRole.WhiteSpace
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtStrasse)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtUIDNr)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.Label14)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.Label17)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.Label15)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtLand)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtPLZ)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtStrassenNr)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.Label16)
|
||||||
|
Me.pnlAdresse.Controls.Add(Me.txtOrt)
|
||||||
|
Me.pnlAdresse.Location = New System.Drawing.Point(626, 76)
|
||||||
|
Me.pnlAdresse.Name = "pnlAdresse"
|
||||||
|
Me.pnlAdresse.Size = New System.Drawing.Size(287, 82)
|
||||||
|
Me.pnlAdresse.TabIndex = 33
|
||||||
|
'
|
||||||
|
'picSave
|
||||||
|
'
|
||||||
|
Me.picSave.BackgroundImage = Global.SDL.My.Resources.Resources.save
|
||||||
|
Me.picSave.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||||
|
Me.picSave.Location = New System.Drawing.Point(886, 164)
|
||||||
|
Me.picSave.Name = "picSave"
|
||||||
|
Me.picSave.Size = New System.Drawing.Size(26, 22)
|
||||||
|
Me.picSave.TabIndex = 34
|
||||||
|
Me.picSave.TabStop = False
|
||||||
|
Me.picSave.Visible = False
|
||||||
|
'
|
||||||
'ustCntlUSTV_AntragPosition
|
'ustCntlUSTV_AntragPosition
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
@@ -694,6 +923,9 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Me.Panel4.ResumeLayout(False)
|
Me.Panel4.ResumeLayout(False)
|
||||||
Me.TabControl1.ResumeLayout(False)
|
Me.TabControl1.ResumeLayout(False)
|
||||||
Me.TabPage1.ResumeLayout(False)
|
Me.TabPage1.ResumeLayout(False)
|
||||||
|
Me.pnlAdresse.ResumeLayout(False)
|
||||||
|
Me.pnlAdresse.PerformLayout()
|
||||||
|
CType(Me.picSave, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -739,4 +971,16 @@ Partial Class ustCntlUSTV_AntragPosition
|
|||||||
Friend WithEvents tabFABest As TabPage
|
Friend WithEvents tabFABest As TabPage
|
||||||
Friend WithEvents scanUSTVVollmachten As VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList
|
Friend WithEvents scanUSTVVollmachten As VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList
|
||||||
Friend WithEvents scanUSTVFABest As VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList
|
Friend WithEvents scanUSTVFABest As VERAG_PROG_ALLGEMEIN.usrcntlPDFScanList
|
||||||
|
Friend WithEvents txtStrassenNr As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents txtOrt As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents Label16 As Label
|
||||||
|
Friend WithEvents txtPLZ As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents Label15 As Label
|
||||||
|
Friend WithEvents txtStrasse As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents Label14 As Label
|
||||||
|
Friend WithEvents txtUIDNr As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents Label17 As Label
|
||||||
|
Friend WithEvents txtLand As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||||
|
Friend WithEvents pnlAdresse As Panel
|
||||||
|
Friend WithEvents picSave As PictureBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
Public Class ustCntlUSTV_AntragPosition
|
Imports java.awt.print
|
||||||
|
|
||||||
|
Public Class ustCntlUSTV_AntragPosition
|
||||||
Public UStV_POS As VERAG_PROG_ALLGEMEIN.cUStVPositionen = Nothing
|
Public UStV_POS As VERAG_PROG_ALLGEMEIN.cUStVPositionen = Nothing
|
||||||
|
Public UStV_Leist As VERAG_PROG_ALLGEMEIN.cUStVLeistender = Nothing
|
||||||
Dim sql As New VERAG_PROG_ALLGEMEIN.SQL
|
Dim sql As New VERAG_PROG_ALLGEMEIN.SQL
|
||||||
Dim Antrag_LandKz = ""
|
Dim Antrag_LandKz = ""
|
||||||
Dim kdnr = ""
|
Dim kdnr = ""
|
||||||
@@ -19,10 +22,12 @@
|
|||||||
Sub reset()
|
Sub reset()
|
||||||
txtRgDatum._value = ""
|
txtRgDatum._value = ""
|
||||||
txtRgNr._value = ""
|
txtRgNr._value = ""
|
||||||
|
picSave.Visible = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub setValues(kdnr As Integer, UStV_POS As VERAG_PROG_ALLGEMEIN.cUStVPositionen, Antrag_LandKz As String)
|
Sub setValues(kdnr As Integer, UStV_POS As VERAG_PROG_ALLGEMEIN.cUStVPositionen, Antrag_LandKz As String, UStV_Leitender As VERAG_PROG_ALLGEMEIN.cUStVLeistender)
|
||||||
gridAktiv = False
|
gridAktiv = False
|
||||||
|
picSave.Visible = False
|
||||||
Me.Antrag_LandKz = Antrag_LandKz
|
Me.Antrag_LandKz = Antrag_LandKz
|
||||||
Me.UStV_POS = UStV_POS
|
Me.UStV_POS = UStV_POS
|
||||||
Me.kdnr = kdnr
|
Me.kdnr = kdnr
|
||||||
@@ -38,6 +43,11 @@
|
|||||||
txtUmrechnungskurs.Text = If(UStV_POS.UStVPo_Umrechnungskurs, "")
|
txtUmrechnungskurs.Text = If(UStV_POS.UStVPo_Umrechnungskurs, "")
|
||||||
txtUSTBetragEUR.Text = If(UStV_POS.UStVPo_USteuerbetragEUR, "")
|
txtUSTBetragEUR.Text = If(UStV_POS.UStVPo_USteuerbetragEUR, "")
|
||||||
|
|
||||||
|
If UStV_Leitender IsNot Nothing Then
|
||||||
|
UStV_Leist = UStV_Leitender
|
||||||
|
loadChangedDSToPanel(Not UStV_Leitender.UstV_Leistender_Adresse, UStV_Leitender)
|
||||||
|
End If
|
||||||
|
|
||||||
Dim da_id = -1
|
Dim da_id = -1
|
||||||
Select Case If(UStV_POS.UStVPo_SchnittstellenNr, -1)
|
Select Case If(UStV_POS.UStVPo_SchnittstellenNr, -1)
|
||||||
Case 6, 0 : da_id = sql.getValueTxtBySql("SELECT TOP(1) [plInv_daId] FROM [tblPLOSE_Inv_Data] where plInv_SupplierRechnungsDatum='" & UStV_POS.UStVPo_ReDat & "' and plInv_SupplierRechnungsNr='" & UStV_POS.UStVPo_ReNr & "' and plInv_SupplierCountry='" & Antrag_LandKz & "' AND [plInv_daId] is not null", "FMZOLL",,, -1)
|
Case 6, 0 : da_id = sql.getValueTxtBySql("SELECT TOP(1) [plInv_daId] FROM [tblPLOSE_Inv_Data] where plInv_SupplierRechnungsDatum='" & UStV_POS.UStVPo_ReDat & "' and plInv_SupplierRechnungsNr='" & UStV_POS.UStVPo_ReNr & "' and plInv_SupplierCountry='" & Antrag_LandKz & "' AND [plInv_daId] is not null", "FMZOLL",,, -1)
|
||||||
@@ -94,6 +104,11 @@
|
|||||||
'If sender Is txtLieferung Then
|
'If sender Is txtLieferung Then
|
||||||
' If Not PROG.checkSDLNrPartnerKdNr(kdNr, SDLNr) Then MsgBox("Bitte geben Sie die Partner-Kundennummer im Kundenblatt oder im FM-ZOLL ein!")
|
' If Not PROG.checkSDLNrPartnerKdNr(kdNr, SDLNr) Then MsgBox("Bitte geben Sie die Partner-Kundennummer im Kundenblatt oder im FM-ZOLL ein!")
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
|
If sender Is cboLeistungsgeber Then
|
||||||
|
UStV_POS.UStVPo_Leistender = cboLeistungsgeber.Text
|
||||||
|
|
||||||
|
End If
|
||||||
values_changed()
|
values_changed()
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
@@ -105,5 +120,47 @@
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub loadChangedDSToPanel(enablePanel As Boolean, UStV_Leitender As VERAG_PROG_ALLGEMEIN.cUStVLeistender)
|
||||||
|
pnlAdresse.Enabled = True 'enablePanel 'immer änderbar!
|
||||||
|
txtStrasse.Text = If(UStV_Leitender.UstV_Leistender_Strasse, "")
|
||||||
|
txtStrassenNr.Text = If(UStV_Leitender.UstV_Leistender_StrasseNr, "")
|
||||||
|
txtPLZ.Text = If(UStV_Leitender.UstV_Leistender_PLZ, "")
|
||||||
|
txtOrt.Text = If(UStV_Leitender.UstV_Leistender_Stadt, "")
|
||||||
|
txtLand.Text = If(UStV_Leitender.UstV_Leistender_Land, "")
|
||||||
|
txtUIDNr.Text = If(UStV_Leitender.UstV_Leistender_UstNr, "")
|
||||||
|
|
||||||
|
'Listener für Änderungen im Detail-Panel
|
||||||
|
For Each c As Control In pnlAdresse.Controls
|
||||||
|
If TypeOf (c) Is TextBox Then
|
||||||
|
AddHandler CType(c, TextBox).TextChanged, AddressOf SomethingChanged
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub SomethingChanged(sender As Object, e As EventArgs)
|
||||||
|
picSave.Visible = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub picSave_Click(sender As Object, e As EventArgs) Handles picSave.Click
|
||||||
|
If UStV_Leist Is Nothing Then Exit Sub
|
||||||
|
|
||||||
|
If UStV_Leist.UstV_Leistender_Adresse Then
|
||||||
|
If Not vbYes = MsgBox("Bei diesem Leistendem ist bereits eine Adresse hinterlegt, soll diese Adresse wirklich geändert werden?", vbYesNo) Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
UStV_Leist.UstV_Leistender_Strasse = If(txtStrasse.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_StrasseNr = If(txtStrassenNr.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_PLZ = If(txtPLZ.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_Stadt = If(txtOrt.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_Land = If(txtLand.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_UstNr = If(txtUIDNr.Text, "")
|
||||||
|
UStV_Leist.UstV_Leistender_Adresse = True
|
||||||
|
If UStV_Leist.SAVE() Then
|
||||||
|
picSave.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
Imports System.Data.SqlTypes
|
||||||
Imports VERAG_PROG_ALLGEMEIN
|
Imports VERAG_PROG_ALLGEMEIN
|
||||||
|
|
||||||
Public Class UsrCntlessensbestellungen
|
Public Class UsrCntlessensbestellungen
|
||||||
@@ -588,7 +589,19 @@ Public Class UsrCntlessensbestellungen
|
|||||||
cbxMitarbeiter.DropDownWidth = 200
|
cbxMitarbeiter.DropDownWidth = 200
|
||||||
|
|
||||||
cbxMenu.fillWithSQL("SELECT Distinct Top 50 (REPLACE(MenuTitel,'Wochenkarte ','')) + ' - ' + Convert(varchar, Year(MenuDateVon)), MenuDateVon from tblEBMenu order by MenuDateVon desc", True, "AVISO", True) '/ where MenuDateVon >= GETDATE()
|
cbxMenu.fillWithSQL("SELECT Distinct Top 50 (REPLACE(MenuTitel,'Wochenkarte ','')) + ' - ' + Convert(varchar, Year(MenuDateVon)), MenuDateVon from tblEBMenu order by MenuDateVon desc", True, "AVISO", True) '/ where MenuDateVon >= GETDATE()
|
||||||
cbxMitarbeiter.fillWithSQL("SELECT [mit_id], ([mit_vname] + ' ' + [mit_nname]) + ' (' + mit_firma +')' as name FROM [tblMitarbeiter] where [mit_ChatBenutzer] = 1 AND [mit_pseudoUser] = 0 AND [mit_gekuendigt] = 0 AND mit_niederlassung = 'SUB' AND ((CAse when mit_firma = 'ALL' Then mit_FirmaHaupt else mit_firma END ) = 'VERAG' Or mit_firma = 'UNISPED' OR mit_firma = 'IMEX' OR mit_firma = 'FRONTOFFICE') Or mit_id = 144 order by name ", False, "ADMIN", True)
|
|
||||||
|
Dim sqlMA = "SELECT [mit_id], ([mit_vname] + ' ' + [mit_nname]) + ' (' + mit_firma +')' as name FROM [tblMitarbeiter] "
|
||||||
|
sqlMA &= "where [mit_ChatBenutzer] = 1 AND [mit_pseudoUser] = 0 AND [mit_gekuendigt] = 0 AND mit_niederlassung = 'SUB'"
|
||||||
|
If cAllgemein.MITARBEITER.getFirma = "UNISPED" Then
|
||||||
|
sqlMA &= " And mit_firma = '" & cAllgemein.MITARBEITER.getFirma & "' "
|
||||||
|
Else
|
||||||
|
sqlMA &= " And ((Case When mit_firma = 'ALL' Then mit_FirmaHaupt else mit_firma END ) = 'VERAG' OR mit_firma = 'IMEX' OR mit_firma = 'FRONTOFFICE') Or mit_id = 144 "
|
||||||
|
End If
|
||||||
|
|
||||||
|
sqlMA &= "order by name"
|
||||||
|
|
||||||
|
|
||||||
|
cbxMitarbeiter.fillWithSQL(sqlMA, False, "ADMIN", True)
|
||||||
cbxAbteilung.fillWithSQL("SELECT [abt_kuerzel], [abt_bezeichnung] from [tblAbteilungen] ", False, "ADMIN", True,, "")
|
cbxAbteilung.fillWithSQL("SELECT [abt_kuerzel], [abt_bezeichnung] from [tblAbteilungen] ", False, "ADMIN", True,, "")
|
||||||
|
|
||||||
cbxGebäude.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("Frontoffice", "Frontoffice"))
|
cbxGebäude.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("Frontoffice", "Frontoffice"))
|
||||||
|
|||||||
14
SDL/frmEssensbestellungenAdministration.Designer.vb
generated
14
SDL/frmEssensbestellungenAdministration.Designer.vb
generated
@@ -82,6 +82,7 @@ Partial Class frmEssensbestellungenAdministration
|
|||||||
Me.lblWarning = New System.Windows.Forms.Label()
|
Me.lblWarning = New System.Windows.Forms.Label()
|
||||||
Me.Button2 = New System.Windows.Forms.Button()
|
Me.Button2 = New System.Windows.Forms.Button()
|
||||||
Me.Label9 = New System.Windows.Forms.Label()
|
Me.Label9 = New System.Windows.Forms.Label()
|
||||||
|
Me.cbxCurrenyear = New System.Windows.Forms.CheckBox()
|
||||||
Me.pnlTop.SuspendLayout()
|
Me.pnlTop.SuspendLayout()
|
||||||
Me.Panel1.SuspendLayout()
|
Me.Panel1.SuspendLayout()
|
||||||
Me.ContextMenuStrip1.SuspendLayout()
|
Me.ContextMenuStrip1.SuspendLayout()
|
||||||
@@ -122,6 +123,7 @@ Partial Class frmEssensbestellungenAdministration
|
|||||||
'
|
'
|
||||||
'Panel1
|
'Panel1
|
||||||
'
|
'
|
||||||
|
Me.Panel1.Controls.Add(Me.cbxCurrenyear)
|
||||||
Me.Panel1.Controls.Add(Me.cbxAlleAnzeigen)
|
Me.Panel1.Controls.Add(Me.cbxAlleAnzeigen)
|
||||||
Me.Panel1.Controls.Add(Me.lblBestellungBis)
|
Me.Panel1.Controls.Add(Me.lblBestellungBis)
|
||||||
Me.Panel1.Controls.Add(Me.btnBestelllimit)
|
Me.Panel1.Controls.Add(Me.btnBestelllimit)
|
||||||
@@ -823,6 +825,17 @@ Partial Class frmEssensbestellungenAdministration
|
|||||||
Me.Label9.Text = "Gesamtbetrag"
|
Me.Label9.Text = "Gesamtbetrag"
|
||||||
Me.Label9.TextAlign = System.Drawing.ContentAlignment.TopRight
|
Me.Label9.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
'
|
'
|
||||||
|
'cbxCurrenyear
|
||||||
|
'
|
||||||
|
Me.cbxCurrenyear.AutoSize = True
|
||||||
|
Me.cbxCurrenyear.Checked = True
|
||||||
|
Me.cbxCurrenyear.CheckState = System.Windows.Forms.CheckState.Checked
|
||||||
|
Me.cbxCurrenyear.Location = New System.Drawing.Point(296, 12)
|
||||||
|
Me.cbxCurrenyear.Name = "cbxCurrenyear"
|
||||||
|
Me.cbxCurrenyear.Size = New System.Drawing.Size(15, 14)
|
||||||
|
Me.cbxCurrenyear.TabIndex = 73
|
||||||
|
Me.cbxCurrenyear.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
'frmEssensbestellungenAdministration
|
'frmEssensbestellungenAdministration
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
@@ -916,4 +929,5 @@ Partial Class frmEssensbestellungenAdministration
|
|||||||
Friend WithEvents cbxAlleAnzeigen As CheckBox
|
Friend WithEvents cbxAlleAnzeigen As CheckBox
|
||||||
Friend WithEvents ExportToolStripMenuItem As ToolStripMenuItem
|
Friend WithEvents ExportToolStripMenuItem As ToolStripMenuItem
|
||||||
Friend WithEvents ExcelToolStripMenuItem As ToolStripMenuItem
|
Friend WithEvents ExcelToolStripMenuItem As ToolStripMenuItem
|
||||||
|
Friend WithEvents cbxCurrenyear As CheckBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
Imports System.Data.SqlTypes
|
||||||
Imports System.Timers
|
Imports System.Timers
|
||||||
Imports Microsoft.Office.Interop
|
Imports Microsoft.Office.Interop
|
||||||
Imports VERAG_PROG_ALLGEMEIN
|
Imports VERAG_PROG_ALLGEMEIN
|
||||||
@@ -26,7 +27,9 @@ Public Class frmEssensbestellungenAdministration
|
|||||||
|
|
||||||
cboAbteilung.fillWithSQL("SELECT DISTINCT(eb_abteilung) FROM [tblEssensbestellungen]", False, "AVISO", True)
|
cboAbteilung.fillWithSQL("SELECT DISTINCT(eb_abteilung) FROM [tblEssensbestellungen]", False, "AVISO", True)
|
||||||
|
|
||||||
cbKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] UNION SELECT (REPLACE(MenuTitel,'Wochenkarte ','')) + ' - ' + Convert(varchar, Year(MenuDateVon)) as kwDateNew FROM [tblEBMenu] where MenuDateVon > GETDATE()ORDER BY eb_kw desc", False, "AVISO", True)
|
'changeYear()
|
||||||
|
|
||||||
|
cbKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] UNION SELECT (REPLACE(MenuTitel,'Wochenkarte ','')) + ' - ' + Convert(varchar, Year(MenuDateVon)) as kwDateNew FROM [tblEBMenu] where MenuDateVon > GETDATE() ORDER BY eb_kw desc", False, "AVISO", True)
|
||||||
|
|
||||||
cbxMailKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] ORDER BY eb_kw desc", False, "AVISO", True)
|
cbxMailKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] ORDER BY eb_kw desc", False, "AVISO", True)
|
||||||
cbxMailKW.changeItem("")
|
cbxMailKW.changeItem("")
|
||||||
@@ -49,14 +52,14 @@ Public Class frmEssensbestellungenAdministration
|
|||||||
FROM
|
FROM
|
||||||
[tblEssensbestellungen] WHERE 1=1"
|
[tblEssensbestellungen] WHERE 1=1"
|
||||||
|
|
||||||
IIf(cAllgemein.MITARBEITER.getFirma = SQLString & "UNISPED", "And essen.eb_firma = " & cAllgemein.MITARBEITER.getFirma, "") 'UNISPED-Bestellungen!
|
SQLString &= IIf(cAllgemein.MITARBEITER.getFirma = "UNISPED", " And eb_firma = '" & cAllgemein.MITARBEITER.getFirma & "'", "") 'UNISPED-Bestellungen!
|
||||||
|
|
||||||
dgvBestellungen.SET_SQL(SQLString & bestellungenWhereClause() & " Order by eb_datum, eb_mitid", "AVISO", ,)
|
dgvBestellungen.SET_SQL(SQLString & bestellungenWhereClause() & " Order by eb_datum, eb_mitid", "AVISO", ,)
|
||||||
dgvBestellungen.LOAD()
|
dgvBestellungen.LOAD()
|
||||||
|
|
||||||
|
|
||||||
With dgvBestellungen
|
With dgvBestellungen
|
||||||
'If .RowCount = 0 Then Me.Cursor = Cursors.Default : Exit Sub
|
If .RowCount = 0 Then Me.Cursor = Cursors.Default : Exit Sub
|
||||||
.RowHeadersVisible = False
|
.RowHeadersVisible = False
|
||||||
.ReadOnly = True
|
.ReadOnly = True
|
||||||
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
|
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
|
||||||
@@ -628,12 +631,18 @@ Public Class frmEssensbestellungenAdministration
|
|||||||
|
|
||||||
Dim dtBestellungen As DataTable
|
Dim dtBestellungen As DataTable
|
||||||
|
|
||||||
''LEFT([eb_kw],5)
|
Dim sqlWhere = ""
|
||||||
|
|
||||||
|
If cAllgemein.MITARBEITER.getFirma = "UNISPED" Then
|
||||||
|
sqlWhere &= " And eb_firma = '" & cAllgemein.MITARBEITER.getFirma & "' "
|
||||||
|
Else
|
||||||
|
sqlWhere &= " And eb_firma = 'VERAG' OR eb_firma = 'IMEX' OR eb_firma = 'FRONTOFFICE'"
|
||||||
|
End If
|
||||||
|
|
||||||
Dim SQLStringBEstellungen As String = "SELECT [eb_mitname] as Name ,[eb_mitid] as ID , [eb_kw] as KW , [eb_gebaeude] as Gebaeude ,[eb_abteilung] as Abteilung ,[eb_montag] As Montag ,[eb_dienstag] As Dienstag,[eb_mittwoch] As Mittwoch,
|
Dim SQLStringBEstellungen As String = "SELECT [eb_mitname] as Name ,[eb_mitid] as ID , [eb_kw] as KW , [eb_gebaeude] as Gebaeude ,[eb_abteilung] as Abteilung ,[eb_montag] As Montag ,[eb_dienstag] As Dienstag,[eb_mittwoch] As Mittwoch,
|
||||||
[eb_donnerstag] As Donnerstag , [eb_freitag] As Freitag, [eb_anmerkung] As Anmerkung , [eb_datum] As Datum , [eb_storniert] as Storniert, [eb_firma] as Firma
|
[eb_donnerstag] As Donnerstag , [eb_freitag] As Freitag, [eb_anmerkung] As Anmerkung , [eb_datum] As Datum , [eb_storniert] as Storniert, [eb_firma] as Firma
|
||||||
FROM
|
FROM
|
||||||
[tblEssensbestellungen] WHERE eb_kw = '" & cbxMailKW._value & "' AND eb_gebaeude = '" & cbxMailGebäude._value & "' AND ISNULL(eb_storniert,1)=0 Order by eb_datum"
|
[tblEssensbestellungen] WHERE eb_kw = '" & cbxMailKW._value & "' AND eb_gebaeude = '" & cbxMailGebäude._value & "' AND ISNULL(eb_storniert,1)=0 " & sqlWhere & " Order by eb_datum"
|
||||||
|
|
||||||
dtBestellungen = SQL.loadDgvBySql(SQLStringBEstellungen, "AVISO", 100, True)
|
dtBestellungen = SQL.loadDgvBySql(SQLStringBEstellungen, "AVISO", 100, True)
|
||||||
|
|
||||||
@@ -913,6 +922,7 @@ Public Class frmEssensbestellungenAdministration
|
|||||||
cbxMailGebäude.Enabled = False
|
cbxMailGebäude.Enabled = False
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
cboAbteilung.changeItem("")
|
cboAbteilung.changeItem("")
|
||||||
cboAbteilung.Enabled = True
|
cboAbteilung.Enabled = True
|
||||||
|
|
||||||
@@ -923,4 +933,22 @@ Public Class frmEssensbestellungenAdministration
|
|||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
'Private Sub cbxCurrenyear_CheckedChanged(sender As Object, e As EventArgs) Handles cbxCurrenyear.CheckedChanged
|
||||||
|
' changeYear()
|
||||||
|
'End Sub
|
||||||
|
|
||||||
|
'Private Sub changeYear()
|
||||||
|
|
||||||
|
' Dim sqlwhere = "WHERE "
|
||||||
|
' sqlwhere &= IIf(cbxCurrenyear.Checked, "Year(MenuDateVon) = Year(getdate()) and MenuDateVon > GETDATE()", "MenuDateVon > GETDATE()")
|
||||||
|
' cbKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] UNION SELECT (REPLACE(MenuTitel,'Wochenkarte ','')) + ' - ' + Convert(varchar, Year(MenuDateVon)) as kwDateNew FROM [tblEBMenu] " & sqlwhere & " ORDER BY eb_kw desc", False, "AVISO", True)
|
||||||
|
|
||||||
|
|
||||||
|
' Dim sqlwhere2 = "WHERE "
|
||||||
|
' sqlwhere2 &= IIf(cbxCurrenyear.Checked, "Year([eb_datum]) = Year(getdate()) and [eb_datum] <= GETDATE()", "[eb_datum] <= GETDATE()")
|
||||||
|
' cbxMailKW.fillWithSQL("SELECT DISTINCT(eb_kw) FROM [tblEssensbestellungen] " & sqlwhere2 & " ORDER BY eb_kw desc", False, "AVISO", True)
|
||||||
|
|
||||||
|
|
||||||
|
'End Sub
|
||||||
End Class
|
End Class
|
||||||
@@ -362,19 +362,26 @@ Public Class usrcntlFiskaluebersicht
|
|||||||
|
|
||||||
Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnOK.Click
|
Private Sub btnOK_Click(sender As Object, e As EventArgs) Handles btnOK.Click
|
||||||
If vbYes = MsgBox("Möchten Sie den Fiskalakt vom " & dgvFiskaluebersicht.SelectedRows(0).Cells("FK_Datum").Value & " abschließen?" & vbNewLine & "Er kann anschließend nicht mehr verändert werden", vbYesNo) Then
|
If vbYes = MsgBox("Möchten Sie den Fiskalakt vom " & dgvFiskaluebersicht.SelectedRows(0).Cells("FK_Datum").Value & " abschließen?" & vbNewLine & "Er kann anschließend nicht mehr verändert werden", vbYesNo) Then
|
||||||
getFields()
|
|
||||||
|
|
||||||
If checkEntries() Then
|
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_id = 170 Then
|
||||||
fk.FK_locked = True
|
If Not vbYes = MsgBox("Kerstin...... WIRKLICH?", vbYesNo) Then
|
||||||
fk.FK_Abschlussdatum = Now()
|
Exit Sub
|
||||||
fk.FK_MaId = VERAG_PROG_ALLGEMEIN.cAllgemein.USRID
|
End If
|
||||||
fk.SAVE()
|
|
||||||
initDGVFiskaluebersicht()
|
|
||||||
btnOK.Enabled = False
|
|
||||||
btnSave.Enabled = False
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
getFields()
|
||||||
|
|
||||||
|
If checkEntries() Then
|
||||||
|
fk.FK_locked = True
|
||||||
|
fk.FK_Abschlussdatum = Now()
|
||||||
|
fk.FK_MaId = VERAG_PROG_ALLGEMEIN.cAllgemein.USRID
|
||||||
|
fk.SAVE()
|
||||||
|
initDGVFiskaluebersicht()
|
||||||
|
btnOK.Enabled = False
|
||||||
|
btnSave.Enabled = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
|
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Imports VERAG_PROG_ALLGEMEIN.cGlobal
|
|||||||
Imports System.Data.SqlClient
|
Imports System.Data.SqlClient
|
||||||
Imports System.Globalization
|
Imports System.Globalization
|
||||||
Imports System.Reflection
|
Imports System.Reflection
|
||||||
|
Imports System.Web.UI.WebControls.WebParts
|
||||||
|
|
||||||
Public Class cSqlDb
|
Public Class cSqlDb
|
||||||
|
|
||||||
@@ -1858,6 +1859,9 @@ Public Class cAvisoDAL
|
|||||||
Dim tmpid = AvisoDAL.SpeichernAviso(av)
|
Dim tmpid = AvisoDAL.SpeichernAviso(av)
|
||||||
AvisoDAL.addAenderung(tmpid, "automatisch auf 'LKW nicht eingetroffen' gestellt", "automatisch auf 'LKW nicht eingetroffen' gestellt am " & Format(Now, "dd.MM.yyyy HH:mm") & ", da bereits länger als 10 Tage offen")
|
AvisoDAL.addAenderung(tmpid, "automatisch auf 'LKW nicht eingetroffen' gestellt", "automatisch auf 'LKW nicht eingetroffen' gestellt am " & Format(Now, "dd.MM.yyyy HH:mm") & ", da bereits länger als 10 Tage offen")
|
||||||
|
|
||||||
|
'TODO - Benachrichtigung für zuständigen Mitarbeiter einbauen
|
||||||
|
VERAG_PROG_ALLGEMEIN.cAvisoBenachrichtigungen.INSERT_BENACHRICHTIGUNG(av.AvisoID, -1, 3, "B", av.LetzterMitarbeiterId, "automatisch auf 'LKW nicht eingetroffen gesetzt", 0,, "automatisch auf 'LKW nicht eingetroffen' gestellt am " & Format(Now, "dd.MM.yyyy HH:mm") & ", da bereits länger als 10 Tage offen")
|
||||||
|
|
||||||
Check_Nicht_eingetroffen += 1
|
Check_Nicht_eingetroffen += 1
|
||||||
End While
|
End While
|
||||||
dr.Close()
|
dr.Close()
|
||||||
|
|||||||
122
VERAG_PROG_ALLGEMEIN/Classes/USTV/cUStVLeistender.vb
Normal file
122
VERAG_PROG_ALLGEMEIN/Classes/USTV/cUStVLeistender.vb
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
Imports System.Data.SqlClient
|
||||||
|
Imports System.Reflection
|
||||||
|
|
||||||
|
|
||||||
|
Public Class cUStVLeistender
|
||||||
|
Property UStV_Leistender As String
|
||||||
|
Property UstV_Leistender_PLZ As Object = Nothing
|
||||||
|
Property UstV_Leistender_Strasse As Object = Nothing
|
||||||
|
Property UstV_Leistender_Stadt As Object = Nothing
|
||||||
|
Property UstV_Leistender_StrasseNr As Object = Nothing
|
||||||
|
Property UstV_Leistender_Land As Object = Nothing
|
||||||
|
Property UstV_Leistender_UstNr As Object = Nothing
|
||||||
|
Property UstV_Leistender_Adresse As Boolean
|
||||||
|
|
||||||
|
|
||||||
|
Public hasEntry = False
|
||||||
|
|
||||||
|
Dim SQL As New SQL
|
||||||
|
|
||||||
|
Sub New(UStV_Leistender)
|
||||||
|
Me.UStV_Leistender = UStV_Leistender
|
||||||
|
LOAD()
|
||||||
|
End Sub
|
||||||
|
Function getParameterList() As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable)
|
||||||
|
Dim list As New List(Of VERAG_PROG_ALLGEMEIN.SQLVariable)
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStV_Leistender", UStV_Leistender,, True))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_PLZ", UstV_Leistender_PLZ))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_Strasse", UstV_Leistender_Strasse))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_Stadt", UstV_Leistender_Stadt))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_StrasseNr", UstV_Leistender_StrasseNr))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_Land", UstV_Leistender_Land))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_UstNr", UstV_Leistender_UstNr))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UstV_Leistender_Adresse", UstV_Leistender_Adresse))
|
||||||
|
Return list
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function SAVE() As Boolean
|
||||||
|
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||||
|
|
||||||
|
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM tblUStVLeistender WHERE UStV_Leistender=@UStV_Leistender) " &
|
||||||
|
" BEGIN " & getUpdateCmd() & " END " & " commit tran "
|
||||||
|
'" Else " &
|
||||||
|
'" BEGIN " & getInsertCmd() & " END " &
|
||||||
|
'" commit tran "
|
||||||
|
|
||||||
|
Return SQL.doSQLVarList(sqlstr, "FMZOLL", , list)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Sub LOAD()
|
||||||
|
Try
|
||||||
|
hasEntry = False
|
||||||
|
Using conn As SqlConnection = SQL.GetNewOpenConnectionFMZOLL()
|
||||||
|
Using cmd As New SqlCommand("SELECT * FROM tblUStVLeistender WHERE UStV_Leistender=@UStV_Leistender ", conn)
|
||||||
|
cmd.Parameters.AddWithValue("@UStV_Leistender", UStV_Leistender)
|
||||||
|
Dim dr = cmd.ExecuteReader()
|
||||||
|
If dr.Read Then
|
||||||
|
For Each li In getParameterList()
|
||||||
|
Dim propInfo As PropertyInfo = Me.GetType.GetProperty(li.Scalarvariable)
|
||||||
|
|
||||||
|
If dr.Item(li.Text) Is DBNull.Value Then
|
||||||
|
propInfo.SetValue(Me, Nothing)
|
||||||
|
Else
|
||||||
|
propInfo.SetValue(Me, dr.Item(li.Text))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
hasEntry = True
|
||||||
|
End If
|
||||||
|
dr.Close()
|
||||||
|
End Using
|
||||||
|
End Using
|
||||||
|
Catch ex As Exception
|
||||||
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Function getUpdateCmd() As String
|
||||||
|
Try
|
||||||
|
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||||
|
|
||||||
|
Dim str As String = ""
|
||||||
|
For Each i In list
|
||||||
|
If Not i.isPrimaryParam Then
|
||||||
|
str &= "[" & i.Text & "] = @" & i.Scalarvariable & "," '.Replace("-", "").Replace(" ", "") & ","
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
str = str.Substring(0, str.Length - 1) 'wg. ','
|
||||||
|
Return (" UPDATE [tblUStVLeistender] SET " & str & " WHERE UStV_Leistender=@UStV_Leistender ")
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||||
|
End Try
|
||||||
|
Return ""
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Function getInsertCmd() As String
|
||||||
|
Try
|
||||||
|
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||||
|
Dim str As String = ""
|
||||||
|
Dim values As String = ""
|
||||||
|
For Each i In list
|
||||||
|
If Not i.isPrimaryParam Then
|
||||||
|
str &= "[" & i.Text & "],"
|
||||||
|
values &= "@" & i.Scalarvariable & "," '.Replace("-", "").Replace(" ", "") & ","
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
str = str.Substring(0, str.Length - 1) 'wg. ','
|
||||||
|
values = values.Substring(0, values.Length - 1) 'wg. ','
|
||||||
|
Return (" INSERT INTO tblUStVLeistender (" & str & ") VALUES(" & values & ") ")
|
||||||
|
Catch ex As Exception
|
||||||
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||||
|
End Try
|
||||||
|
Return ""
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
@@ -14,6 +14,7 @@ Public Class cNCTSGestellungsadressen
|
|||||||
Property nga_Ansprechpartner As Object = Nothing
|
Property nga_Ansprechpartner As Object = Nothing
|
||||||
Property nga_bestZollst As Object = Nothing
|
Property nga_bestZollst As Object = Nothing
|
||||||
Property nga_SB As Object = Nothing
|
Property nga_SB As Object = Nothing
|
||||||
|
Property nga_ATANr As Object = Nothing
|
||||||
Property nga_firma As Object = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
Property nga_firma As Object = VERAG_PROG_ALLGEMEIN.cAllgemein.FIRMA
|
||||||
Property nga_Aenderungsdatum As Date = Now
|
Property nga_Aenderungsdatum As Date = Now
|
||||||
|
|
||||||
@@ -45,6 +46,7 @@ Public Class cNCTSGestellungsadressen
|
|||||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_EORI", nga_EORI))
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_EORI", nga_EORI))
|
||||||
|
|
||||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_EORI_NL", nga_EORI_NL))
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_EORI_NL", nga_EORI_NL))
|
||||||
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_ATANr", nga_ATANr))
|
||||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_Ansprechpartner", nga_Ansprechpartner))
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_Ansprechpartner", nga_Ansprechpartner))
|
||||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_bestZollst", nga_bestZollst))
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_bestZollst", nga_bestZollst))
|
||||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_SB", nga_SB))
|
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("nga_SB", nga_SB))
|
||||||
|
|||||||
@@ -809,6 +809,14 @@ Public Class cSendungen
|
|||||||
Return adresse.Trim
|
Return adresse.Trim
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function getNCTSATANr(Optional htmlOptimized As Boolean = False) As String
|
||||||
|
Dim ataNr = ""
|
||||||
|
ataNr &= If(Me.tblSnd_ATANr, "") & vbNewLine
|
||||||
|
|
||||||
|
If htmlOptimized Then ataNr = ataNr.Trim.Replace(vbNewLine, "<br/>")
|
||||||
|
Return ataNr.Trim
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
Public Function getEmpfaengerAdress(Optional htmlOptimized As Boolean = False, Optional ansprechpartner As Boolean = False) As String
|
Public Function getEmpfaengerAdress(Optional htmlOptimized As Boolean = False, Optional ansprechpartner As Boolean = False) As String
|
||||||
If tblSnd_EmpfaengerKdNr > 0 Then
|
If tblSnd_EmpfaengerKdNr > 0 Then
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ Public Class cDATENSERVER
|
|||||||
Me.rootDir = DATENVERVER_OPTIONS.initRootDir()
|
Me.rootDir = DATENVERVER_OPTIONS.initRootDir()
|
||||||
Me.da_KundenNr = da_KundenNr
|
Me.da_KundenNr = da_KundenNr
|
||||||
Me.da_vorlage = 0 '(da_KundenNr <= 0)
|
Me.da_vorlage = 0 '(da_KundenNr <= 0)
|
||||||
Me.da_kategorie = da_kategorie
|
Me.da_kategorie = IIf(Not IsDBNull(da_kategorie), da_kategorie, "")
|
||||||
Me.da_ordner = da_ordner
|
Me.da_ordner = IIf(Not IsDBNull(da_ordner), da_ordner, "")
|
||||||
Me.da_uOrdner1 = replaceInvalidCahr(If(da_uOrdner1, ""))
|
Me.da_uOrdner1 = replaceInvalidCahr(IIf(Not IsDBNull(da_uOrdner1), da_uOrdner1, ""))
|
||||||
Me.da_uOrdner2 = replaceInvalidCahr(If(da_uOrdner2, ""))
|
Me.da_uOrdner2 = replaceInvalidCahr(IIf(Not IsDBNull(da_uOrdner2), da_uOrdner2, ""))
|
||||||
Me.da_uOrdner3 = replaceInvalidCahr(If(da_uOrdner3, ""))
|
Me.da_uOrdner3 = replaceInvalidCahr(IIf(Not IsDBNull(da_uOrdner3), da_uOrdner3, ""))
|
||||||
Me.da_name = da_name
|
Me.da_name = IIf(Not IsDBNull(da_name), da_name, "")
|
||||||
LOAD()
|
LOAD()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ Partial Class frmVorlagenUpload
|
|||||||
Me.txtUnterordner1 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
Me.txtUnterordner1 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||||
Me.txtUnterordner2 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
Me.txtUnterordner2 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||||
Me.Label4 = New System.Windows.Forms.Label()
|
Me.Label4 = New System.Windows.Forms.Label()
|
||||||
|
Me.MyTextBox1 = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'txtOrdner
|
'txtOrdner
|
||||||
@@ -119,9 +120,9 @@ Partial Class frmVorlagenUpload
|
|||||||
Me.Label3.AutoSize = True
|
Me.Label3.AutoSize = True
|
||||||
Me.Label3.Location = New System.Drawing.Point(8, 135)
|
Me.Label3.Location = New System.Drawing.Point(8, 135)
|
||||||
Me.Label3.Name = "Label3"
|
Me.Label3.Name = "Label3"
|
||||||
Me.Label3.Size = New System.Drawing.Size(38, 13)
|
Me.Label3.Size = New System.Drawing.Size(42, 13)
|
||||||
Me.Label3.TabIndex = 6
|
Me.Label3.TabIndex = 6
|
||||||
Me.Label3.Text = "Name:"
|
Me.Label3.Text = "Name*:"
|
||||||
'
|
'
|
||||||
'txtName
|
'txtName
|
||||||
'
|
'
|
||||||
@@ -149,9 +150,9 @@ Partial Class frmVorlagenUpload
|
|||||||
'btnUpload
|
'btnUpload
|
||||||
'
|
'
|
||||||
Me.btnUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
Me.btnUpload.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||||
Me.btnUpload.Location = New System.Drawing.Point(221, 158)
|
Me.btnUpload.Location = New System.Drawing.Point(282, 158)
|
||||||
Me.btnUpload.Name = "btnUpload"
|
Me.btnUpload.Name = "btnUpload"
|
||||||
Me.btnUpload.Size = New System.Drawing.Size(225, 44)
|
Me.btnUpload.Size = New System.Drawing.Size(164, 44)
|
||||||
Me.btnUpload.TabIndex = 6
|
Me.btnUpload.TabIndex = 6
|
||||||
Me.btnUpload.Text = "Datei Auswählen + Upload"
|
Me.btnUpload.Text = "Datei Auswählen + Upload"
|
||||||
Me.btnUpload.UseVisualStyleBackColor = True
|
Me.btnUpload.UseVisualStyleBackColor = True
|
||||||
@@ -187,12 +188,39 @@ Partial Class frmVorlagenUpload
|
|||||||
Me.Label4.TabIndex = 9
|
Me.Label4.TabIndex = 9
|
||||||
Me.Label4.Text = "Unterordner 2:"
|
Me.Label4.Text = "Unterordner 2:"
|
||||||
'
|
'
|
||||||
|
'MyTextBox1
|
||||||
|
'
|
||||||
|
Me.MyTextBox1._DateTimeOnly = False
|
||||||
|
Me.MyTextBox1._numbersOnly = False
|
||||||
|
Me.MyTextBox1._numbersOnlyKommastellen = ""
|
||||||
|
Me.MyTextBox1._numbersOnlyTrennzeichen = True
|
||||||
|
Me.MyTextBox1._Prozent = False
|
||||||
|
Me.MyTextBox1._ShortDateNew = False
|
||||||
|
Me.MyTextBox1._ShortDateOnly = False
|
||||||
|
Me.MyTextBox1._TimeOnly = False
|
||||||
|
Me.MyTextBox1._TimeOnly_Seconds = False
|
||||||
|
Me.MyTextBox1._value = "* wenn leer, wird Dateiname + Endung aus Uploaddatei übernommen"
|
||||||
|
Me.MyTextBox1._Waehrung = False
|
||||||
|
Me.MyTextBox1._WaehrungZeichen = True
|
||||||
|
Me.MyTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None
|
||||||
|
Me.MyTextBox1.ForeColor = System.Drawing.Color.Red
|
||||||
|
Me.MyTextBox1.Location = New System.Drawing.Point(11, 158)
|
||||||
|
Me.MyTextBox1.MaxLineLength = -1
|
||||||
|
Me.MyTextBox1.MaxLines_Warning = ""
|
||||||
|
Me.MyTextBox1.MaxLines_Warning_Label = Nothing
|
||||||
|
Me.MyTextBox1.Multiline = True
|
||||||
|
Me.MyTextBox1.Name = "MyTextBox1"
|
||||||
|
Me.MyTextBox1.Size = New System.Drawing.Size(184, 32)
|
||||||
|
Me.MyTextBox1.TabIndex = 11
|
||||||
|
Me.MyTextBox1.Text = "* wenn leer, wird Dateiname + Endung aus Uploaddatei übernommen"
|
||||||
|
'
|
||||||
'frmVorlagenUpload
|
'frmVorlagenUpload
|
||||||
'
|
'
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.BackColor = System.Drawing.Color.White
|
Me.BackColor = System.Drawing.Color.White
|
||||||
Me.ClientSize = New System.Drawing.Size(462, 213)
|
Me.ClientSize = New System.Drawing.Size(462, 213)
|
||||||
|
Me.Controls.Add(Me.MyTextBox1)
|
||||||
Me.Controls.Add(Me.txtUnterordner2)
|
Me.Controls.Add(Me.txtUnterordner2)
|
||||||
Me.Controls.Add(Me.Label4)
|
Me.Controls.Add(Me.Label4)
|
||||||
Me.Controls.Add(Me.txtUnterordner1)
|
Me.Controls.Add(Me.txtUnterordner1)
|
||||||
@@ -223,4 +251,5 @@ Partial Class frmVorlagenUpload
|
|||||||
Friend WithEvents txtUnterordner1 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
Friend WithEvents txtUnterordner1 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||||
Friend WithEvents txtUnterordner2 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
Friend WithEvents txtUnterordner2 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||||
Friend WithEvents Label4 As System.Windows.Forms.Label
|
Friend WithEvents Label4 As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents MyTextBox1 As MyTextBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ Partial Class frmMessenger
|
|||||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
<System.Diagnostics.DebuggerStepThrough()> _
|
||||||
Private Sub InitializeComponent()
|
Private Sub InitializeComponent()
|
||||||
Me.components = New System.ComponentModel.Container()
|
|
||||||
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||||
Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||||
Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||||
@@ -39,12 +38,12 @@ Partial Class frmMessenger
|
|||||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMessenger))
|
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmMessenger))
|
||||||
Me.SplitContainer = New System.Windows.Forms.SplitContainer()
|
Me.SplitContainer = New System.Windows.Forms.SplitContainer()
|
||||||
Me.SplitContainer2 = New System.Windows.Forms.SplitContainer()
|
Me.SplitContainer2 = New System.Windows.Forms.SplitContainer()
|
||||||
Me.dgvChats = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
Me.dgvChats = New VERAG_PROG_ALLGEMEIN.MyDatagridview()
|
||||||
Me.Panel6 = New System.Windows.Forms.Panel()
|
Me.Panel6 = New System.Windows.Forms.Panel()
|
||||||
Me.Label3 = New System.Windows.Forms.Label()
|
Me.Label3 = New System.Windows.Forms.Label()
|
||||||
Me.lblLKWChat_MsgCntInaktiv = New System.Windows.Forms.Label()
|
Me.lblLKWChat_MsgCntInaktiv = New System.Windows.Forms.Label()
|
||||||
Me.cbxInaktiveChats = New System.Windows.Forms.CheckBox()
|
Me.cbxInaktiveChats = New System.Windows.Forms.CheckBox()
|
||||||
Me.DGVSonstige = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
Me.DGVSonstige = New VERAG_PROG_ALLGEMEIN.MyDatagridview()
|
||||||
Me.Panel5 = New System.Windows.Forms.Panel()
|
Me.Panel5 = New System.Windows.Forms.Panel()
|
||||||
Me.MyTextBox2 = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
Me.MyTextBox2 = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||||
Me.PictureBox2 = New System.Windows.Forms.PictureBox()
|
Me.PictureBox2 = New System.Windows.Forms.PictureBox()
|
||||||
@@ -65,7 +64,7 @@ Partial Class frmMessenger
|
|||||||
Me.btnNeu = New System.Windows.Forms.Button()
|
Me.btnNeu = New System.Windows.Forms.Button()
|
||||||
Me.Button1 = New System.Windows.Forms.Button()
|
Me.Button1 = New System.Windows.Forms.Button()
|
||||||
Me.SplitContainer1 = New System.Windows.Forms.SplitContainer()
|
Me.SplitContainer1 = New System.Windows.Forms.SplitContainer()
|
||||||
Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel(Me.components)
|
Me.MyFlowLayoutPanel1 = New VERAG_PROG_ALLGEMEIN.MyFlowLayoutPanel()
|
||||||
Me.UsrCntlMessenger_ChatElement1 = New VERAG_PROG_ALLGEMEIN.usrCntlMessenger_ChatElement()
|
Me.UsrCntlMessenger_ChatElement1 = New VERAG_PROG_ALLGEMEIN.usrCntlMessenger_ChatElement()
|
||||||
Me.Panel3 = New System.Windows.Forms.Panel()
|
Me.Panel3 = New System.Windows.Forms.Panel()
|
||||||
Me.btnTeilnehmer = New System.Windows.Forms.Button()
|
Me.btnTeilnehmer = New System.Windows.Forms.Button()
|
||||||
@@ -93,9 +92,9 @@ Partial Class frmMessenger
|
|||||||
Me.btnSendAtt = New System.Windows.Forms.Button()
|
Me.btnSendAtt = New System.Windows.Forms.Button()
|
||||||
Me.btnSenden = New System.Windows.Forms.Button()
|
Me.btnSenden = New System.Windows.Forms.Button()
|
||||||
Me.rtbChatMessage = New System.Windows.Forms.RichTextBox()
|
Me.rtbChatMessage = New System.Windows.Forms.RichTextBox()
|
||||||
Me.TimerNEW_MESSAGE = New System.Windows.Forms.Timer(Me.components)
|
Me.TimerNEW_MESSAGE = New System.Windows.Forms.Timer()
|
||||||
Me.Timer_REFRESH = New System.Windows.Forms.Timer(Me.components)
|
Me.Timer_REFRESH = New System.Windows.Forms.Timer()
|
||||||
Me.cntxt = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
Me.cntxt = New System.Windows.Forms.ContextMenuStrip()
|
||||||
Me.ChatDeaktivierenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
Me.ChatDeaktivierenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.toolChatReminder = New System.Windows.Forms.ToolStripMenuItem()
|
Me.toolChatReminder = New System.Windows.Forms.ToolStripMenuItem()
|
||||||
Me.DataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn()
|
Me.DataGridViewTextBoxColumn1 = New System.Windows.Forms.DataGridViewTextBoxColumn()
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ Public Class frmMitarbeitersuche
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_MAVerzeichnis_SettingsTstmp Is Nothing And Not VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_pseudoUser Then
|
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_MAVerzeichnis_SettingsTstmp Is Nothing And Not VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_pseudoUser Then
|
||||||
MsgBox("Sie müssen Ihren Benutzer erstmal konfigurieren, um das Verzeichnis einsehen zu können. Sie können die Einstellungen jederzeit ändern.")
|
|
||||||
|
|
||||||
Dim f As New frmMitarbeitersucheBearbeiten(VERAG_PROG_ALLGEMEIN.cAllgemein.USRID)
|
Dim f As New frmMitarbeitersucheBearbeiten(VERAG_PROG_ALLGEMEIN.cAllgemein.USRID)
|
||||||
If f.ShowDialog(Me) = Windows.Forms.DialogResult.OK Then
|
If f.ShowDialog(Me) = Windows.Forms.DialogResult.OK Then
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Me.pnlSrch = New System.Windows.Forms.Panel()
|
Me.pnlSrch = New System.Windows.Forms.Panel()
|
||||||
Me.btnClose = New System.Windows.Forms.Button()
|
Me.btnClose = New System.Windows.Forms.Button()
|
||||||
Me.pnlMain = New System.Windows.Forms.Panel()
|
Me.pnlMain = New System.Windows.Forms.Panel()
|
||||||
Me.Label1 = New System.Windows.Forms.Label()
|
|
||||||
Me.PictureBox2 = New System.Windows.Forms.PictureBox()
|
|
||||||
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
|
|
||||||
Me.cbxAllowFoto = New System.Windows.Forms.CheckBox()
|
Me.cbxAllowFoto = New System.Windows.Forms.CheckBox()
|
||||||
Me.btn = New System.Windows.Forms.Button()
|
Me.btn = New System.Windows.Forms.Button()
|
||||||
Me.txtMotto = New System.Windows.Forms.TextBox()
|
Me.txtMotto = New System.Windows.Forms.TextBox()
|
||||||
@@ -45,12 +42,16 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Me.lblName = New System.Windows.Forms.Label()
|
Me.lblName = New System.Windows.Forms.Label()
|
||||||
Me.pic = New System.Windows.Forms.PictureBox()
|
Me.pic = New System.Windows.Forms.PictureBox()
|
||||||
Me.pnlHoverPic = New System.Windows.Forms.Panel()
|
Me.pnlHoverPic = New System.Windows.Forms.Panel()
|
||||||
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
|
Me.PictureBox2 = New System.Windows.Forms.PictureBox()
|
||||||
|
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
|
||||||
|
Me.txtKonfigHinweis = New System.Windows.Forms.TextBox()
|
||||||
Me.pnlSrch.SuspendLayout()
|
Me.pnlSrch.SuspendLayout()
|
||||||
Me.pnlMain.SuspendLayout()
|
Me.pnlMain.SuspendLayout()
|
||||||
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
||||||
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
|
|
||||||
CType(Me.pic, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.pic, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.pnlHoverPic.SuspendLayout()
|
Me.pnlHoverPic.SuspendLayout()
|
||||||
|
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'pnlSrch
|
'pnlSrch
|
||||||
@@ -84,6 +85,7 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
'pnlMain
|
'pnlMain
|
||||||
'
|
'
|
||||||
Me.pnlMain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
Me.pnlMain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
||||||
|
Me.pnlMain.Controls.Add(Me.pnlHoverPic)
|
||||||
Me.pnlMain.Controls.Add(Me.cbxAllowFoto)
|
Me.pnlMain.Controls.Add(Me.cbxAllowFoto)
|
||||||
Me.pnlMain.Controls.Add(Me.btn)
|
Me.pnlMain.Controls.Add(Me.btn)
|
||||||
Me.pnlMain.Controls.Add(Me.txtMotto)
|
Me.pnlMain.Controls.Add(Me.txtMotto)
|
||||||
@@ -99,45 +101,12 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Me.pnlMain.Controls.Add(Me.lblWohnadresse)
|
Me.pnlMain.Controls.Add(Me.lblWohnadresse)
|
||||||
Me.pnlMain.Controls.Add(Me.lblName)
|
Me.pnlMain.Controls.Add(Me.lblName)
|
||||||
Me.pnlMain.Controls.Add(Me.pic)
|
Me.pnlMain.Controls.Add(Me.pic)
|
||||||
Me.pnlMain.Controls.Add(Me.pnlHoverPic)
|
|
||||||
Me.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill
|
Me.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill
|
||||||
Me.pnlMain.Location = New System.Drawing.Point(0, 29)
|
Me.pnlMain.Location = New System.Drawing.Point(0, 0)
|
||||||
Me.pnlMain.Name = "pnlMain"
|
Me.pnlMain.Name = "pnlMain"
|
||||||
Me.pnlMain.Size = New System.Drawing.Size(703, 335)
|
Me.pnlMain.Size = New System.Drawing.Size(703, 364)
|
||||||
Me.pnlMain.TabIndex = 1
|
Me.pnlMain.TabIndex = 1
|
||||||
'
|
'
|
||||||
'Label1
|
|
||||||
'
|
|
||||||
Me.Label1.AutoSize = True
|
|
||||||
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!)
|
|
||||||
Me.Label1.Location = New System.Drawing.Point(4, 1)
|
|
||||||
Me.Label1.Name = "Label1"
|
|
||||||
Me.Label1.Size = New System.Drawing.Size(98, 24)
|
|
||||||
Me.Label1.TabIndex = 36
|
|
||||||
Me.Label1.Text = "Hover-Pic:"
|
|
||||||
'
|
|
||||||
'PictureBox2
|
|
||||||
'
|
|
||||||
Me.PictureBox2.BackgroundImage = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.personGray_m
|
|
||||||
Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
|
||||||
Me.PictureBox2.Cursor = System.Windows.Forms.Cursors.Hand
|
|
||||||
Me.PictureBox2.Location = New System.Drawing.Point(77, 29)
|
|
||||||
Me.PictureBox2.Name = "PictureBox2"
|
|
||||||
Me.PictureBox2.Size = New System.Drawing.Size(63, 59)
|
|
||||||
Me.PictureBox2.TabIndex = 35
|
|
||||||
Me.PictureBox2.TabStop = False
|
|
||||||
'
|
|
||||||
'PictureBox1
|
|
||||||
'
|
|
||||||
Me.PictureBox1.BackgroundImage = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.personGray_m
|
|
||||||
Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
|
||||||
Me.PictureBox1.Cursor = System.Windows.Forms.Cursors.Hand
|
|
||||||
Me.PictureBox1.Location = New System.Drawing.Point(8, 29)
|
|
||||||
Me.PictureBox1.Name = "PictureBox1"
|
|
||||||
Me.PictureBox1.Size = New System.Drawing.Size(63, 59)
|
|
||||||
Me.PictureBox1.TabIndex = 34
|
|
||||||
Me.PictureBox1.TabStop = False
|
|
||||||
'
|
|
||||||
'cbxAllowFoto
|
'cbxAllowFoto
|
||||||
'
|
'
|
||||||
Me.cbxAllowFoto.AutoSize = True
|
Me.cbxAllowFoto.AutoSize = True
|
||||||
@@ -294,14 +263,59 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
'
|
'
|
||||||
'pnlHoverPic
|
'pnlHoverPic
|
||||||
'
|
'
|
||||||
Me.pnlHoverPic.Controls.Add(Me.Label1)
|
|
||||||
Me.pnlHoverPic.Controls.Add(Me.PictureBox2)
|
|
||||||
Me.pnlHoverPic.Controls.Add(Me.PictureBox1)
|
Me.pnlHoverPic.Controls.Add(Me.PictureBox1)
|
||||||
|
Me.pnlHoverPic.Controls.Add(Me.PictureBox2)
|
||||||
|
Me.pnlHoverPic.Controls.Add(Me.txtKonfigHinweis)
|
||||||
|
Me.pnlHoverPic.Controls.Add(Me.Label1)
|
||||||
Me.pnlHoverPic.Location = New System.Drawing.Point(-1, 232)
|
Me.pnlHoverPic.Location = New System.Drawing.Point(-1, 232)
|
||||||
Me.pnlHoverPic.Name = "pnlHoverPic"
|
Me.pnlHoverPic.Name = "pnlHoverPic"
|
||||||
Me.pnlHoverPic.Size = New System.Drawing.Size(181, 100)
|
Me.pnlHoverPic.Size = New System.Drawing.Size(181, 100)
|
||||||
Me.pnlHoverPic.TabIndex = 37
|
Me.pnlHoverPic.TabIndex = 37
|
||||||
Me.pnlHoverPic.Visible = False
|
Me.pnlHoverPic.Visible = False
|
||||||
|
'
|
||||||
|
'Label1
|
||||||
|
'
|
||||||
|
Me.Label1.AutoSize = True
|
||||||
|
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!)
|
||||||
|
Me.Label1.Location = New System.Drawing.Point(4, 1)
|
||||||
|
Me.Label1.Name = "Label1"
|
||||||
|
Me.Label1.Size = New System.Drawing.Size(98, 24)
|
||||||
|
Me.Label1.TabIndex = 36
|
||||||
|
Me.Label1.Text = "Hover-Pic:"
|
||||||
|
'
|
||||||
|
'PictureBox2
|
||||||
|
'
|
||||||
|
Me.PictureBox2.BackgroundImage = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.personGray_m
|
||||||
|
Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||||
|
Me.PictureBox2.Cursor = System.Windows.Forms.Cursors.Hand
|
||||||
|
Me.PictureBox2.Location = New System.Drawing.Point(77, 29)
|
||||||
|
Me.PictureBox2.Name = "PictureBox2"
|
||||||
|
Me.PictureBox2.Size = New System.Drawing.Size(63, 59)
|
||||||
|
Me.PictureBox2.TabIndex = 35
|
||||||
|
Me.PictureBox2.TabStop = False
|
||||||
|
'
|
||||||
|
'PictureBox1
|
||||||
|
'
|
||||||
|
Me.PictureBox1.BackgroundImage = Global.VERAG_PROG_ALLGEMEIN.My.Resources.Resources.personGray_m
|
||||||
|
Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
|
||||||
|
Me.PictureBox1.Cursor = System.Windows.Forms.Cursors.Hand
|
||||||
|
Me.PictureBox1.Location = New System.Drawing.Point(8, 29)
|
||||||
|
Me.PictureBox1.Name = "PictureBox1"
|
||||||
|
Me.PictureBox1.Size = New System.Drawing.Size(63, 59)
|
||||||
|
Me.PictureBox1.TabIndex = 34
|
||||||
|
Me.PictureBox1.TabStop = False
|
||||||
|
'
|
||||||
|
'txtKonfigHinweis
|
||||||
|
'
|
||||||
|
Me.txtKonfigHinweis.BackColor = System.Drawing.Color.White
|
||||||
|
Me.txtKonfigHinweis.BorderStyle = System.Windows.Forms.BorderStyle.None
|
||||||
|
Me.txtKonfigHinweis.Location = New System.Drawing.Point(8, 9)
|
||||||
|
Me.txtKonfigHinweis.Multiline = True
|
||||||
|
Me.txtKonfigHinweis.Name = "txtKonfigHinweis"
|
||||||
|
Me.txtKonfigHinweis.Size = New System.Drawing.Size(321, 66)
|
||||||
|
Me.txtKonfigHinweis.TabIndex = 38
|
||||||
|
Me.txtKonfigHinweis.Text = "Sie müssen Ihren Benutzer erstmal konfigurieren, um das Verzeichnis einsehen zu k" &
|
||||||
|
"önnen. Sie können die Einstellungen jederzeit ändern."
|
||||||
'
|
'
|
||||||
'frmMitarbeitersucheBearbeiten
|
'frmMitarbeitersucheBearbeiten
|
||||||
'
|
'
|
||||||
@@ -309,8 +323,8 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
Me.BackColor = System.Drawing.Color.White
|
Me.BackColor = System.Drawing.Color.White
|
||||||
Me.ClientSize = New System.Drawing.Size(703, 364)
|
Me.ClientSize = New System.Drawing.Size(703, 364)
|
||||||
Me.Controls.Add(Me.pnlMain)
|
|
||||||
Me.Controls.Add(Me.pnlSrch)
|
Me.Controls.Add(Me.pnlSrch)
|
||||||
|
Me.Controls.Add(Me.pnlMain)
|
||||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
||||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||||
Me.Name = "frmMitarbeitersucheBearbeiten"
|
Me.Name = "frmMitarbeitersucheBearbeiten"
|
||||||
@@ -319,11 +333,11 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Me.pnlSrch.ResumeLayout(False)
|
Me.pnlSrch.ResumeLayout(False)
|
||||||
Me.pnlMain.ResumeLayout(False)
|
Me.pnlMain.ResumeLayout(False)
|
||||||
Me.pnlMain.PerformLayout()
|
Me.pnlMain.PerformLayout()
|
||||||
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
|
|
||||||
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
|
|
||||||
CType(Me.pic, System.ComponentModel.ISupportInitialize).EndInit()
|
CType(Me.pic, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
Me.pnlHoverPic.ResumeLayout(False)
|
Me.pnlHoverPic.ResumeLayout(False)
|
||||||
Me.pnlHoverPic.PerformLayout()
|
Me.pnlHoverPic.PerformLayout()
|
||||||
|
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -350,4 +364,5 @@ Partial Class frmMitarbeitersucheBearbeiten
|
|||||||
Friend WithEvents PictureBox2 As Windows.Forms.PictureBox
|
Friend WithEvents PictureBox2 As Windows.Forms.PictureBox
|
||||||
Friend WithEvents PictureBox1 As Windows.Forms.PictureBox
|
Friend WithEvents PictureBox1 As Windows.Forms.PictureBox
|
||||||
Friend WithEvents pnlHoverPic As Windows.Forms.Panel
|
Friend WithEvents pnlHoverPic As Windows.Forms.Panel
|
||||||
|
Friend WithEvents txtKonfigHinweis As Windows.Forms.TextBox
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -18,12 +18,14 @@ Public Class frmMitarbeitersucheBearbeiten
|
|||||||
|
|
||||||
Private Sub frmMitarbeitersuche_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Private Sub frmMitarbeitersuche_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If MA Is Nothing Then Me.Close()
|
If MA Is Nothing Then Me.Close()
|
||||||
|
txtKonfigHinweis.Visible = False
|
||||||
initMA()
|
initMA()
|
||||||
|
|
||||||
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("ADMIN", "SDL") Then
|
If VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("ADMIN", "SDL") Then
|
||||||
pnlHoverPic.Visible = True
|
pnlHoverPic.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@@ -87,6 +89,10 @@ Public Class frmMitarbeitersucheBearbeiten
|
|||||||
Else
|
Else
|
||||||
PictureBox2.BackgroundImage = My.Resources.personGray_m
|
PictureBox2.BackgroundImage = My.Resources.personGray_m
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_MAVerzeichnis_SettingsTstmp Is Nothing And Not VERAG_PROG_ALLGEMEIN.cAllgemein.MITARBEITER.mit_pseudoUser Then txtKonfigHinweis.Visible = True
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
Private Sub btnClose_Click(sender As Object, e As EventArgs) Handles btnClose.Click
|
||||||
|
|||||||
@@ -81,6 +81,10 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>F:\PROGRAMMIERUNG\dll\closedxml\95\ClosedXML.dll</HintPath>
|
<HintPath>F:\PROGRAMMIERUNG\dll\closedxml\95\ClosedXML.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="DocumentFormat.OpenXml, Version=2.9.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>F:\PROGRAMMIERUNG\dll\OpenXML\DocumentFormat.OpenXml.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Dynamsoft.Forms.Viewer, Version=8.3.3.726, Culture=neutral, PublicKeyToken=298ad97013b423eb, processorArchitecture=MSIL">
|
<Reference Include="Dynamsoft.Forms.Viewer, Version=8.3.3.726, Culture=neutral, PublicKeyToken=298ad97013b423eb, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>F:\PROGRAMMIERUNG\dll\Dynamsoft\8.3.3\Dynamsoft.Forms.Viewer.dll</HintPath>
|
<HintPath>F:\PROGRAMMIERUNG\dll\Dynamsoft\8.3.3\Dynamsoft.Forms.Viewer.dll</HintPath>
|
||||||
@@ -376,6 +380,7 @@
|
|||||||
<Compile Include="Classes\cOriginalATR.vb" />
|
<Compile Include="Classes\cOriginalATR.vb" />
|
||||||
<Compile Include="Classes\cParkzeiten.vb" />
|
<Compile Include="Classes\cParkzeiten.vb" />
|
||||||
<Compile Include="Classes\cUeberstunden.vb" />
|
<Compile Include="Classes\cUeberstunden.vb" />
|
||||||
|
<Compile Include="Classes\USTV\cUStVLeistender.vb" />
|
||||||
<Compile Include="frmErrorMeldung.Designer.vb">
|
<Compile Include="frmErrorMeldung.Designer.vb">
|
||||||
<DependentUpon>frmErrorMeldung.vb</DependentUpon>
|
<DependentUpon>frmErrorMeldung.vb</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
Reference in New Issue
Block a user