Kundendatenblatt, ustva, IDS, UTA, MSE
This commit is contained in:
@@ -3379,6 +3379,7 @@
|
||||
<EmbeddedResource Include="mdm\usrCntlMDMDatenverarbeitungAuswertungen_divers.resx">
|
||||
<DependentUpon>usrCntlMDMDatenverarbeitungAuswertungen_divers.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||
<EmbeddedResource Include="OriginalArchiv_ATR\frmATR.resx">
|
||||
<DependentUpon>frmATR.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
102
SDL/USTV/frmMDM_USTVAntrag.Designer.vb
generated
102
SDL/USTV/frmMDM_USTVAntrag.Designer.vb
generated
@@ -32,11 +32,15 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.lbl_EintrageVerarbetiet = New System.Windows.Forms.Label()
|
||||
Me.Panel1 = New System.Windows.Forms.Panel()
|
||||
Me.KdSearchBox1 = New VERAG_PROG_ALLGEMEIN.KdSearchBox()
|
||||
Me.cboAntragArt = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||
Me.lblKdNr = New System.Windows.Forms.Label()
|
||||
Me.Panel9 = New System.Windows.Forms.Panel()
|
||||
Me.cbxLand = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||
Me.lblLand = New System.Windows.Forms.Label()
|
||||
Me.Panel8 = New System.Windows.Forms.Panel()
|
||||
Me.cbxWahrung = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||
Me.lblWahrung = New System.Windows.Forms.Label()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.txt3470 = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Label3 = New System.Windows.Forms.Label()
|
||||
@@ -77,6 +81,7 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.btnNeuerEintrag = New System.Windows.Forms.Button()
|
||||
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||
Me.ContextMenuStrip2 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||
Me.lblWarnung = New System.Windows.Forms.Label()
|
||||
Me.Panel3.SuspendLayout()
|
||||
Me.Panel1.SuspendLayout()
|
||||
Me.Panel9.SuspendLayout()
|
||||
@@ -171,6 +176,8 @@ Partial Class frmMDM_USTVAntrag
|
||||
'Panel1
|
||||
'
|
||||
Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
|
||||
Me.Panel1.Controls.Add(Me.lblWarnung)
|
||||
Me.Panel1.Controls.Add(Me.KdSearchBox1)
|
||||
Me.Panel1.Controls.Add(Me.cboAntragArt)
|
||||
Me.Panel1.Controls.Add(Me.lblKdNr)
|
||||
Me.Panel1.Controls.Add(Me.Panel9)
|
||||
@@ -190,6 +197,34 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.Panel1.Size = New System.Drawing.Size(1454, 177)
|
||||
Me.Panel1.TabIndex = 0
|
||||
'
|
||||
'KdSearchBox1
|
||||
'
|
||||
Me.KdSearchBox1._AlleFirmenCLUSTER = False
|
||||
Me.KdSearchBox1._AllowSetValue = False
|
||||
Me.KdSearchBox1._autoSizeGross = False
|
||||
Me.KdSearchBox1._display_Name1 = False
|
||||
Me.KdSearchBox1._displayAVISO_Email = False
|
||||
Me.KdSearchBox1._displayFullName = False
|
||||
Me.KdSearchBox1._displayWoelflKd = False
|
||||
Me.KdSearchBox1._hideIfListEmpty = True
|
||||
Me.KdSearchBox1._loadKdData = False
|
||||
Me.KdSearchBox1._searchName1 = True
|
||||
Me.KdSearchBox1._UseFIRMA = ""
|
||||
Me.KdSearchBox1._ValueKdAndName = True
|
||||
Me.KdSearchBox1.dgvpos = "LEFT"
|
||||
Me.KdSearchBox1.KdName = Nothing
|
||||
Me.KdSearchBox1.KdNr = "-1"
|
||||
Me.KdSearchBox1.kdNrField = Nothing
|
||||
Me.KdSearchBox1.KdNrNullInt = Nothing
|
||||
Me.KdSearchBox1.Location = New System.Drawing.Point(298, 10)
|
||||
Me.KdSearchBox1.Name = "KdSearchBox1"
|
||||
Me.KdSearchBox1.nurAktive = True
|
||||
Me.KdSearchBox1.searchActive = True
|
||||
Me.KdSearchBox1.Size = New System.Drawing.Size(171, 20)
|
||||
Me.KdSearchBox1.TabIndex = 22
|
||||
Me.KdSearchBox1.TIMER_SEARCH = True
|
||||
Me.KdSearchBox1.usrcntl = Nothing
|
||||
'
|
||||
'cboAntragArt
|
||||
'
|
||||
Me.cboAntragArt._allowedValuesFreiText = Nothing
|
||||
@@ -220,6 +255,7 @@ Partial Class frmMDM_USTVAntrag
|
||||
'
|
||||
'Panel9
|
||||
'
|
||||
Me.Panel9.Controls.Add(Me.cbxLand)
|
||||
Me.Panel9.Controls.Add(Me.lblLand)
|
||||
Me.Panel9.Dock = System.Windows.Forms.DockStyle.Left
|
||||
Me.Panel9.Location = New System.Drawing.Point(0, 0)
|
||||
@@ -227,6 +263,21 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.Panel9.Size = New System.Drawing.Size(65, 90)
|
||||
Me.Panel9.TabIndex = 20
|
||||
'
|
||||
'cbxLand
|
||||
'
|
||||
Me.cbxLand._allowedValuesFreiText = Nothing
|
||||
Me.cbxLand._allowFreiText = False
|
||||
Me.cbxLand._value = ""
|
||||
Me.cbxLand.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||
Me.cbxLand.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold)
|
||||
Me.cbxLand.FormattingEnabled = True
|
||||
Me.cbxLand.Location = New System.Drawing.Point(0, 0)
|
||||
Me.cbxLand.Name = "cbxLand"
|
||||
Me.cbxLand.Size = New System.Drawing.Size(65, 28)
|
||||
Me.cbxLand.TabIndex = 23
|
||||
Me.cbxLand.Text = "USTV-Antrag"
|
||||
Me.cbxLand.Visible = False
|
||||
'
|
||||
'lblLand
|
||||
'
|
||||
Me.lblLand.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||
@@ -245,6 +296,8 @@ Partial Class frmMDM_USTVAntrag
|
||||
'
|
||||
Me.Panel8.BackColor = System.Drawing.Color.WhiteSmoke
|
||||
Me.Panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
|
||||
Me.Panel8.Controls.Add(Me.cbxWahrung)
|
||||
Me.Panel8.Controls.Add(Me.lblWahrung)
|
||||
Me.Panel8.Controls.Add(Me.Label1)
|
||||
Me.Panel8.Controls.Add(Me.txt3470)
|
||||
Me.Panel8.Controls.Add(Me.Label3)
|
||||
@@ -257,6 +310,31 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.Panel8.Size = New System.Drawing.Size(973, 87)
|
||||
Me.Panel8.TabIndex = 19
|
||||
'
|
||||
'cbxWahrung
|
||||
'
|
||||
Me.cbxWahrung._allowedValuesFreiText = Nothing
|
||||
Me.cbxWahrung._allowFreiText = False
|
||||
Me.cbxWahrung._value = ""
|
||||
Me.cbxWahrung.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.cbxWahrung.FormattingEnabled = True
|
||||
Me.cbxWahrung.Location = New System.Drawing.Point(439, 9)
|
||||
Me.cbxWahrung.Name = "cbxWahrung"
|
||||
Me.cbxWahrung.Size = New System.Drawing.Size(79, 24)
|
||||
Me.cbxWahrung.TabIndex = 12
|
||||
'
|
||||
'lblWahrung
|
||||
'
|
||||
Me.lblWahrung.AutoSize = True
|
||||
Me.lblWahrung.BackColor = System.Drawing.Color.Transparent
|
||||
Me.lblWahrung.Cursor = System.Windows.Forms.Cursors.Hand
|
||||
Me.lblWahrung.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.lblWahrung.ForeColor = System.Drawing.Color.Black
|
||||
Me.lblWahrung.Location = New System.Drawing.Point(363, 13)
|
||||
Me.lblWahrung.Name = "lblWahrung"
|
||||
Me.lblWahrung.Size = New System.Drawing.Size(70, 17)
|
||||
Me.lblWahrung.TabIndex = 11
|
||||
Me.lblWahrung.Text = "Währung:"
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.AutoSize = True
|
||||
@@ -264,7 +342,7 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.Label1.Cursor = System.Windows.Forms.Cursors.Hand
|
||||
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.Label1.ForeColor = System.Drawing.Color.Black
|
||||
Me.Label1.Location = New System.Drawing.Point(785, 6)
|
||||
Me.Label1.Location = New System.Drawing.Point(815, 13)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(44, 17)
|
||||
Me.Label1.TabIndex = 10
|
||||
@@ -286,14 +364,14 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.txt3470._WaehrungZeichen = True
|
||||
Me.txt3470.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!)
|
||||
Me.txt3470.ForeColor = System.Drawing.Color.Black
|
||||
Me.txt3470.Location = New System.Drawing.Point(858, 3)
|
||||
Me.txt3470.Location = New System.Drawing.Point(865, 7)
|
||||
Me.txt3470.MaxLength = 10
|
||||
Me.txt3470.MaxLineLength = -1
|
||||
Me.txt3470.MaxLines_Warning = ""
|
||||
Me.txt3470.MaxLines_Warning_Label = Nothing
|
||||
Me.txt3470.Name = "txt3470"
|
||||
Me.txt3470.Size = New System.Drawing.Size(100, 23)
|
||||
Me.txt3470.TabIndex = 9
|
||||
Me.txt3470.TabIndex = 10
|
||||
'
|
||||
'Label3
|
||||
'
|
||||
@@ -802,6 +880,19 @@ Partial Class frmMDM_USTVAntrag
|
||||
Me.ContextMenuStrip2.Name = "ContextMenuStrip1"
|
||||
Me.ContextMenuStrip2.Size = New System.Drawing.Size(61, 4)
|
||||
'
|
||||
'lblWarnung
|
||||
'
|
||||
Me.lblWarnung.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.lblWarnung.BackColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(54, Byte), Integer), CType(CType(128, Byte), Integer))
|
||||
Me.lblWarnung.Cursor = System.Windows.Forms.Cursors.Default
|
||||
Me.lblWarnung.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold)
|
||||
Me.lblWarnung.ForeColor = System.Drawing.Color.Red
|
||||
Me.lblWarnung.Location = New System.Drawing.Point(475, 10)
|
||||
Me.lblWarnung.Name = "lblWarnung"
|
||||
Me.lblWarnung.Size = New System.Drawing.Size(183, 18)
|
||||
Me.lblWarnung.TabIndex = 23
|
||||
'
|
||||
'frmMDM_USTVAntrag
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
@@ -890,4 +981,9 @@ Partial Class frmMDM_USTVAntrag
|
||||
Friend WithEvents Label1 As Label
|
||||
Friend WithEvents txt3470 As VERAG_PROG_ALLGEMEIN.MyTextBox
|
||||
Friend WithEvents ContextMenuStrip2 As ContextMenuStrip
|
||||
Friend WithEvents KdSearchBox1 As VERAG_PROG_ALLGEMEIN.KdSearchBox
|
||||
Friend WithEvents cbxLand As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||
Friend WithEvents cbxWahrung As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||
Friend WithEvents lblWahrung As Label
|
||||
Friend WithEvents lblWarnung As Label
|
||||
End Class
|
||||
|
||||
@@ -1,15 +1,23 @@
|
||||
|
||||
Imports System.Reflection
|
||||
Imports DocumentFormat.OpenXml.Office2010.Drawing.Charts
|
||||
Imports java.text.Normalizer
|
||||
Imports jdk.nashorn.internal.objects.annotations
|
||||
'Imports DocumentFormat.OpenXml.Drawing.Charts
|
||||
Imports Microsoft.Office.Interop
|
||||
Imports org.BouncyCastle.Pqc.Crypto
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
Public Class frmMDM_USTVAntrag
|
||||
|
||||
Dim UStVAn_ID As Integer
|
||||
Dim KundenNr As Integer
|
||||
Dim USTV_ANTRAG As VERAG_PROG_ALLGEMEIN.cUSTVAntrag = Nothing
|
||||
Dim Antrag_LandKz As String = ""
|
||||
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
|
||||
|
||||
Dim von, bis As Date
|
||||
|
||||
Sub New(UStVAn_ID)
|
||||
|
||||
' Dieser Aufruf ist für den Designer erforderlich.
|
||||
@@ -20,6 +28,19 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
End Sub
|
||||
|
||||
Sub New(Antrag_KundenNr As Integer, Antrag_LandKz As String, von As Date, bis As Date)
|
||||
|
||||
' Dieser Aufruf ist für den Designer erforderlich.
|
||||
InitializeComponent()
|
||||
|
||||
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
|
||||
Me.KundenNr = Antrag_KundenNr
|
||||
Me.Antrag_LandKz = Antrag_LandKz
|
||||
Me.von = von
|
||||
Me.bis = bis
|
||||
|
||||
End Sub
|
||||
|
||||
Sub init(Optional Lieferant As String = "")
|
||||
pnlFilter.AutoScroll = False
|
||||
|
||||
@@ -27,6 +48,17 @@ Public Class frmMDM_USTVAntrag
|
||||
lblGesamtErstattung.Text = "-"
|
||||
lblDiffernezbetrag.Text = "-"
|
||||
|
||||
btnAntrageeinarbeiten.Enabled = Not UStVAn_ID <= 0
|
||||
FlowLayoutPanel.Enabled = Not UStVAn_ID <= 0
|
||||
btnEintragloeschen.Enabled = Not UStVAn_ID <= 0
|
||||
btnNeuerEintrag.Enabled = Not UStVAn_ID <= 0
|
||||
UstCntlUSTV_AntragPosition1.Enabled = Not UStVAn_ID <= 0
|
||||
|
||||
cbxLand.Visible = UStVAn_ID <= 0
|
||||
|
||||
|
||||
|
||||
|
||||
With dgvUSTVPositionen
|
||||
.ClearSelection()
|
||||
|
||||
@@ -171,6 +203,18 @@ Public Class frmMDM_USTVAntrag
|
||||
End If
|
||||
|
||||
|
||||
If UStVAn_ID > 0 Then
|
||||
KdSearchBox1.Visible = False
|
||||
USTV_ANTRAG = New VERAG_PROG_ALLGEMEIN.cUSTVAntrag(UStVAn_ID)
|
||||
Antrag_LandKz = SQL.DLookup("LandKz", "[Länderverzeichnis für die Außenhandelsstatistik]", "Landnr='" & USTV_ANTRAG.UStVAn_LandNr & "'", "FMZOLL")
|
||||
setValue(USTV_ANTRAG)
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Sub setValue(USTV_ANTRAG As VERAG_PROG_ALLGEMEIN.cUSTVAntrag)
|
||||
@@ -189,7 +233,7 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
End Sub
|
||||
|
||||
Sub getValue(ByRef USTV_ANTRAG As VERAG_PROG_ALLGEMEIN.cUSTVAntrag)
|
||||
Sub getValue(ByRef USTV_ANTRAG As VERAG_PROG_ALLGEMEIN.cUSTVAntrag, Optional ADR As cAdressen = Nothing, Optional FIRMA As cFirmen = Nothing)
|
||||
|
||||
If Me_Validate() Then
|
||||
'lblFirma.Text = USTV_ANTRAG.UStVAn_Name
|
||||
@@ -209,7 +253,41 @@ Public Class frmMDM_USTVAntrag
|
||||
USTV_ANTRAG.UStVAn_3470 = Nothing
|
||||
End If
|
||||
|
||||
If ADR IsNot Nothing Then
|
||||
USTV_ANTRAG.UStVAn_KuNr = ADR.AdressenNr
|
||||
USTV_ANTRAG.UStVAn_Name = ADR.Name_1
|
||||
USTV_ANTRAG.UStVAn_Straße = ADR.Straße
|
||||
USTV_ANTRAG.UStVAn_LandKz = ADR.LandKz
|
||||
USTV_ANTRAG.UStVAn_Ort = ADR.Ort
|
||||
USTV_ANTRAG.UStVAn_Steuernummer = ADR.Steuernummer
|
||||
End If
|
||||
|
||||
|
||||
If FIRMA IsNot Nothing Then
|
||||
USTV_ANTRAG.UStVAn_Kontoinhaber = FIRMA.Firma_Bez & "; " & FIRMA.Firma_Straße & ";" & FIRMA.Firma_Ort
|
||||
USTV_ANTRAG.UStVAn_Bankverbindung = FIRMA.Firma_Bankverbindung1
|
||||
USTV_ANTRAG.UStVAn_BLZ = FIRMA.Firma_BLZ1
|
||||
USTV_ANTRAG.UStVAn_KTO = FIRMA.Firma_KTO1
|
||||
|
||||
|
||||
'fallback laut FM-ZOLL
|
||||
If USTV_ANTRAG.UStVAn_Kontoinhaber Is Nothing Then USTV_ANTRAG.UStVAn_Kontoinhaber = "VERAG 360 GmbH; 4975 Suben"
|
||||
If USTV_ANTRAG.UStVAn_Bankverbindung Is Nothing Then USTV_ANTRAG.UStVAn_Bankverbindung = "Raiba Suben"
|
||||
If USTV_ANTRAG.UStVAn_KTO Is Nothing Then USTV_ANTRAG.UStVAn_KTO = "4210225"
|
||||
If USTV_ANTRAG.UStVAn_BLZ Is Nothing Then USTV_ANTRAG.UStVAn_BLZ = "34620"
|
||||
If USTV_ANTRAG.UStVAn_Gewerbe Is Nothing Then USTV_ANTRAG.UStVAn_Gewerbe = "Transportunternehmer"
|
||||
If USTV_ANTRAG.UStVAn_Erklärung_9_a Is Nothing Then USTV_ANTRAG.UStVAn_Erklärung_9_a = "Warentransport"
|
||||
If USTV_ANTRAG.UStVAn_Ausstellungsort Is Nothing Then USTV_ANTRAG.UStVAn_Ausstellungsort = "Suben"
|
||||
|
||||
If USTV_ANTRAG.UStVAn_Erklärung_9_b_1 Is Nothing Then USTV_ANTRAG.UStVAn_Erklärung_9_b_1 = 0
|
||||
If USTV_ANTRAG.UStVAn_Erklärung_9_b_2 Is Nothing Then USTV_ANTRAG.UStVAn_Erklärung_9_b_2 = 0
|
||||
If USTV_ANTRAG.UStVAn_Erklärung_9_b_3 Is Nothing Then USTV_ANTRAG.UStVAn_Erklärung_9_b_3 = 0
|
||||
|
||||
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Function Me_Validate() As Boolean
|
||||
If Not IsDate(txtVon._value) Then MsgBox("Datumsformat: Von") : Return False
|
||||
@@ -254,13 +332,72 @@ Public Class frmMDM_USTVAntrag
|
||||
lbl_EintrageVerarbetiet.Text = ""
|
||||
|
||||
If UStVAn_ID > 0 Then
|
||||
KdSearchBox1.Visible = False
|
||||
USTV_ANTRAG = New VERAG_PROG_ALLGEMEIN.cUSTVAntrag(UStVAn_ID)
|
||||
Antrag_LandKz = SQL.DLookup("LandKz", "[Länderverzeichnis für die Außenhandelsstatistik]", "Landnr='" & USTV_ANTRAG.UStVAn_LandNr & "'", "FMZOLL")
|
||||
setValue(USTV_ANTRAG)
|
||||
|
||||
Else
|
||||
Dim sqlWhere As String = ""
|
||||
'neuer USTVA-Antrag
|
||||
KdSearchBox1.Visible = True
|
||||
|
||||
|
||||
|
||||
KdSearchBox1.initKdBox(Me)
|
||||
AddHandler KdSearchBox1.PropertyChanged, Sub()
|
||||
Try
|
||||
|
||||
|
||||
lblKdNr.Text = KdSearchBox1.KdNr
|
||||
KundenNr = KdSearchBox1.KdNr
|
||||
|
||||
|
||||
Dim ADR As New cAdressen(KdSearchBox1.KdNr)
|
||||
lblFirma.Text = ADR.Name_1
|
||||
|
||||
|
||||
cbxLand.DataSource = SQL.loadCboBySqlWithListItem("SELECT [Länderverzeichnis für die Außenhandelsstatistik].LandNr, [Länderverzeichnis für die Außenhandelsstatistik].LandKz
|
||||
FROM [Länderverzeichnis für die Außenhandelsstatistik] INNER JOIN tblSteuernummern On [Länderverzeichnis für die Außenhandelsstatistik].LandNr = tblSteuernummern.LandNr
|
||||
WHERE[Länderverzeichnis für die Außenhandelsstatistik].Umsatzsteuervergütungsverfahren = 1 And (tblSteuernummern.AdressenNr)=" & KdSearchBox1.KdNr & " And tblSteuernummern.UStV = 1
|
||||
group by [Länderverzeichnis für die Außenhandelsstatistik].LandKz,[Länderverzeichnis für die Außenhandelsstatistik].LandNr
|
||||
order by [Länderverzeichnis für die Außenhandelsstatistik].LandKz,[Länderverzeichnis für die Außenhandelsstatistik].LandNr", False, "FMZOLL")
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
If KundenNr > 0 Then
|
||||
KdSearchBox1.KdNr = KundenNr
|
||||
sqlWhere = "And tblSteuernummern.AdressenNr=" & KundenNr
|
||||
End If
|
||||
|
||||
cbxLand.Visible = True
|
||||
cbxLand.DataSource = SQL.loadCboBySqlWithListItem("SELECT [Länderverzeichnis für die Außenhandelsstatistik].LandNr, [Länderverzeichnis für die Außenhandelsstatistik].LandKz
|
||||
FROM [Länderverzeichnis für die Außenhandelsstatistik] INNER JOIN tblSteuernummern On [Länderverzeichnis für die Außenhandelsstatistik].LandNr = tblSteuernummern.LandNr
|
||||
WHERE[Länderverzeichnis für die Außenhandelsstatistik].Umsatzsteuervergütungsverfahren = 1 And tblSteuernummern.UStV = 1 " & sqlWhere &
|
||||
"group by [Länderverzeichnis für die Außenhandelsstatistik].LandKz,[Länderverzeichnis für die Außenhandelsstatistik].LandNr
|
||||
order by [Länderverzeichnis für die Außenhandelsstatistik].LandKz,[Länderverzeichnis für die Außenhandelsstatistik].LandNr", False, "FMZOLL")
|
||||
|
||||
cbxLand.changeItem(Antrag_LandKz)
|
||||
'lblKdNr.Text = KdSearchBox1.KdNr
|
||||
'lblFirma.Text = IIf(KdSearchBox1.KdName Is Nothing, "", KdSearchBox1.KdName)
|
||||
|
||||
txtVon._value = von
|
||||
txtBis._value = bis
|
||||
|
||||
If Antrag_LandKz <> cbxLand.SelectedValue.ToString Then
|
||||
lblWarnung.Text = "keine StNr für " & Antrag_LandKz
|
||||
Else
|
||||
lblWarnung.Text = ""
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_USTVA_bearbeiten", Me.FindForm) Then
|
||||
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_USTVA_bearbeiten", Me.FindForm) Then
|
||||
btnAntrageeinarbeiten.Enabled = False
|
||||
FlowLayoutPanel.Enabled = False
|
||||
btnEintragloeschen.Enabled = False
|
||||
@@ -269,8 +406,6 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
init()
|
||||
|
||||
End Sub
|
||||
@@ -285,12 +420,15 @@ Public Class frmMDM_USTVAntrag
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
End If
|
||||
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("ploseneu") Then
|
||||
Dim plose = New ToolStripMenuItem() With {.Text = "Plose NEUE LOGIK", .Name = "ploseneu", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
ContextMenuStrip2.Items.Add(plose)
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
If False Then 'wenn INFO von PLOSE WÄHRUNGSCODE IN INV_DATA, dann freischalten
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("ploseneu") Then
|
||||
Dim plose = New ToolStripMenuItem() With {.Text = "Plose NEUE LOGIK", .Name = "ploseneu", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
ContextMenuStrip2.Items.Add(plose)
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("rmc") Then
|
||||
Dim rmc = New ToolStripMenuItem() With {.Text = "RMC", .Name = "rmc", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
AddHandler rmc.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
@@ -349,7 +487,6 @@ Public Class frmMDM_USTVAntrag
|
||||
ElseIf item.Name = "ids" Then
|
||||
loadUSTVFrom_IDS(UStVAn_ID, Antrag_LandKz, cbxArchivierteEintracheNochmalsEinarbetien.Checked)
|
||||
init()
|
||||
|
||||
ElseIf item.Name = "verag" Then
|
||||
loadUSTVFrom_VERAG(UStVAn_ID, Antrag_LandKz, cbxArchivierteEintracheNochmalsEinarbetien.Checked)
|
||||
init()
|
||||
@@ -412,18 +549,23 @@ Public Class frmMDM_USTVAntrag
|
||||
USTV_POS.UStVPo_Schnittstelle = True
|
||||
USTV_POS.UStVPo_Leistungsbezeichnung = "Maut"
|
||||
USTV_POS.UStVPo_Leistender = ANTRAG.plose_Lieferant
|
||||
If ANTRAG.plose_Lieferant = "PLOSE Then Sistem Service" Then
|
||||
If ANTRAG.plose_Lieferant = "PLOSE Sistem Service" Then
|
||||
USTV_POS.UStVPo_Leistender = USTV_POS.UStVPo_Leistender.ToString.Replace("", "PLOSE Sistem Service")
|
||||
End If
|
||||
|
||||
USTV_POS.UStVPo_Sachbearbeiter = VERAG_PROG_ALLGEMEIN.cAllgemein.USRKURZNAME
|
||||
USTV_POS.UStVPo_Zeitstempel = Now()
|
||||
' Berechnungen
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = ANTRAG.plose_MWSTBetragWaehrungAbbuchung 'VERAG_PROG_ALLGEMEIN.cProgramFunctions.fktEuro(ANTRAG.plose_MWSTBetragWaehrungAbbuchung, USTV_ANTRAG.UStVAn_Währungscode, "EUR")
|
||||
'USTV_POS.UStVPo_Umrechnungskurs = VERAG_PROG_ALLGEMEIN.cProgramFunctions.fktEuroKurs(ANTRAG.plose_WaehrungAbbuchung, ANTRAG.plose_RechnungsDatum)
|
||||
USTV_POS.UStVPo_Umrechnungskurs = ANTRAG.plose_MWSTBetrag / ANTRAG.plose_MWSTBetragWaehrungAbbuchung
|
||||
USTV_POS.UStVPo_USteuerbetrag = ANTRAG.plose_MWSTBetrag
|
||||
' MsgBox(ANTRAG.plose_Lieferant & " - " & ANTRAG.plose_RechnungsDatum & " - " & ANTRAG.plose_RechnungsNr & " :::::::::: " & CDbl(ANTRAG.plose_MWSTBetrag).ToString("C2"))
|
||||
If Not MWSTSummenAusBeleg Then
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = ANTRAG.plose_MWSTBetragWaehrungAbbuchung 'VERAG_PROG_ALLGEMEIN.cProgramFunctions.fktEuro(ANTRAG.plose_MWSTBetragWaehrungAbbuchung, USTV_ANTRAG.UStVAn_Währungscode, "EUR")
|
||||
'USTV_POS.UStVPo_Umrechnungskurs = VERAG_PROG_ALLGEMEIN.cProgramFunctions.fktEuroKurs(ANTRAG.plose_WaehrungAbbuchung, ANTRAG.plose_RechnungsDatum)
|
||||
USTV_POS.UStVPo_Umrechnungskurs = ANTRAG.plose_MWSTBetrag / ANTRAG.plose_MWSTBetragWaehrungAbbuchung
|
||||
USTV_POS.UStVPo_USteuerbetrag = ANTRAG.plose_MWSTBetrag
|
||||
' MsgBox(ANTRAG.plose_Lieferant & " - " & ANTRAG.plose_RechnungsDatum & " - " & ANTRAG.plose_RechnungsNr & " :::::::::: " & CDbl(ANTRAG.plose_MWSTBetrag).ToString("C2"))
|
||||
Else
|
||||
'TODO - hier Umrechnungslogik von FRMDW und EUR und EUR/FRMDWR für Belegsebene
|
||||
End If
|
||||
|
||||
|
||||
|
||||
USTV_POS.INSERT()
|
||||
@@ -445,7 +587,6 @@ Public Class frmMDM_USTVAntrag
|
||||
Try
|
||||
|
||||
If Antrag_LandKz <> "AT" Then
|
||||
MsgBox("Nur für AT gültig!")
|
||||
Return False
|
||||
End If
|
||||
|
||||
@@ -533,10 +674,8 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
Next
|
||||
|
||||
'Einträge als archivert setzen ' vormals wichtig
|
||||
Return verarbeitet
|
||||
|
||||
|
||||
End If
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
@@ -582,7 +721,11 @@ Public Class frmMDM_USTVAntrag
|
||||
Dim eur As Double = CDbl(r.Item("rmc_euroBrutto"))
|
||||
Dim frmdw As Double = CDbl(r.Item("rmc_betragBrutto"))
|
||||
|
||||
umrechKurs = frmdw / eur
|
||||
'umrechKurs = frmdw / eur
|
||||
|
||||
umrechKurs = (frmdw / eur * 100 + 0.5) / 100
|
||||
|
||||
|
||||
|
||||
End If
|
||||
|
||||
@@ -600,8 +743,6 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
Next
|
||||
|
||||
|
||||
|
||||
End If
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
@@ -647,7 +788,8 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
If (UST_EUR > 0 AndAlso UST_org > 0 AndAlso UST_org <> UST_EUR) Then
|
||||
|
||||
umrechKurs = UST_org / UST_EUR
|
||||
'umrechKurs = UST_org / UST_EUR
|
||||
umrechKurs = (UST_org / UST_EUR * 100 + 0.5) / 100
|
||||
|
||||
End If
|
||||
|
||||
@@ -702,30 +844,22 @@ Public Class frmMDM_USTVAntrag
|
||||
USTV_POS.UStVPo_Zeitstempel = Now()
|
||||
|
||||
' Berechnungen
|
||||
'UTA liefert Beträge immer in EUR, wir müssen allerdings die Beträge in FREMDW umrechnen!
|
||||
'UTA liefert Beträge immer in EUR und in FREMDW!
|
||||
|
||||
Dim umrechKurs As Double = 1
|
||||
|
||||
Dim UST_org = CDbl(r.Item("Umsatzsteuerbetrag_in_Lieferlandwährung"))
|
||||
Dim UST_EUR = CDbl(r.Item("Umsatzsteuerbetrag_in_Darstellwährung")) 'ist immer EUR
|
||||
|
||||
If (UST_org > 0 AndAlso UST_org <> UST_EUR AndAlso r.Item("Darstellwährung_ISO") = "EUR") Then
|
||||
|
||||
umrechKurs = UST_org / UST_EUR
|
||||
|
||||
If (UST_org > 0 AndAlso UST_org <> UST_EUR) Then
|
||||
umrechKurs = (UST_org / UST_EUR * 100 + 0.5) / 100
|
||||
End If
|
||||
|
||||
If USTV_ANTRAG.UStVAn_Währungscode <> "EUR" Then
|
||||
Dim kurs As New cEZB_Waehrungskurse(USTV_ANTRAG.UStVAn_Währungscode)
|
||||
UST_org = Math.Round(kurs.EXCHANGE_EURTOCUR(UST_EUR, USTV_ANTRAG.UStVAn_Währungscode, CDate(USTV_POS.UStVPo_ReDat)), 2)
|
||||
End If
|
||||
|
||||
If (UST_org > 0 AndAlso UST_org <> UST_EUR) Then umrechKurs = (UST_org / UST_EUR * 100 + 0.5) / 100
|
||||
|
||||
|
||||
|
||||
If UST_org > 0 Then
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = UST_org 'Math.Round((UST_org / umrechKurs), 2)
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = UST_EUR
|
||||
USTV_POS.UStVPo_Umrechnungskurs = umrechKurs
|
||||
USTV_POS.UStVPo_USteuerbetrag = UST_org
|
||||
End If
|
||||
@@ -787,11 +921,13 @@ Public Class frmMDM_USTVAntrag
|
||||
UST_org = Math.Round(kurs.EXCHANGE_EURTOCUR(UST_EUR, USTV_ANTRAG.UStVAn_Währungscode, CDate(USTV_POS.UStVPo_ReDat)), 2)
|
||||
End If
|
||||
|
||||
If (UST_org > 0 AndAlso UST_org <> UST_EUR) Then umrechKurs = (UST_org / UST_EUR * 100 + 0.5) / 100
|
||||
If (UST_org > 0 AndAlso UST_org <> UST_EUR) Then
|
||||
umrechKurs = (UST_org / UST_EUR * 100 + 0.5) / 100
|
||||
End If
|
||||
|
||||
|
||||
If UST_org > 0 Then
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = UST_EUR 'Math.Round((UST_org / umrechKurs), 2)
|
||||
USTV_POS.UStVPo_USteuerbetragEUR = UST_EUR
|
||||
USTV_POS.UStVPo_Umrechnungskurs = umrechKurs
|
||||
USTV_POS.UStVPo_USteuerbetrag = UST_org
|
||||
End If
|
||||
@@ -799,8 +935,8 @@ Public Class frmMDM_USTVAntrag
|
||||
If USTV_POS.INSERT() Then
|
||||
cIDS.UPDATE_ARCHIV(USTV_POS.UStVPo_ReDat, USTV_POS.UStVPo_ReNr, kdnr, Antrag_LandKz, USTV_POS.UStVAn_ID)
|
||||
End If
|
||||
'tblUStVPositionen
|
||||
End If
|
||||
'tblUStVPositionen
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
@@ -815,13 +951,46 @@ Public Class frmMDM_USTVAntrag
|
||||
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
|
||||
dgvUSTVPositionen.GetOrder()
|
||||
If UStVAn_ID > 0 Then
|
||||
|
||||
dgvUSTVPositionen.GetOrder()
|
||||
|
||||
getValue(USTV_ANTRAG)
|
||||
If USTV_ANTRAG.SAVE Then
|
||||
init()
|
||||
dgvUSTVPositionen.SetOrder()
|
||||
End If
|
||||
|
||||
Else
|
||||
|
||||
Dim USTV_ANTRAG = New VERAG_PROG_ALLGEMEIN.cUSTVAntrag()
|
||||
Dim ADR As New cAdressen(KundenNr)
|
||||
Dim ERW As New cKundenErweitert(KundenNr)
|
||||
Dim FIRMA As New cFirmen(1)
|
||||
|
||||
If ERW.kde_keineMWSt Then
|
||||
If Not vbYes = MsgBox("Der ausgewählte Kunde " & ADR.Name_1 & " ist als KEIN MWST-Kunde deklariert!" & vbNewLine & "Trotzdem den Antrag speichern?", vbYesNoCancel) Then Exit Sub
|
||||
End If
|
||||
|
||||
USTV_ANTRAG.UStVAn_LandNr = cbxLand._value
|
||||
|
||||
If cbxWahrung.SelectedValue Is Nothing Then
|
||||
USTV_ANTRAG.UStVAn_Währungscode = SQL.DLookup("Währungscode", "[Länderverzeichnis für die Außenhandelsstatistik]", "Landnr='" & USTV_ANTRAG.UStVAn_LandNr & "'", "FMZOLL")
|
||||
Else
|
||||
USTV_ANTRAG.UStVAn_Währungscode = cbxWahrung.SelectedValue
|
||||
End If
|
||||
|
||||
USTV_ANTRAG.UStVAn_Sachbearbeiter = VERAG_PROG_ALLGEMEIN.cAllgemein.USRKURZNAME
|
||||
USTV_ANTRAG.UStVAn_Zeitstempel = Now()
|
||||
|
||||
getValue(USTV_ANTRAG, ADR, FIRMA)
|
||||
|
||||
Me.UStVAn_ID = USTV_ANTRAG.SAVEID()
|
||||
|
||||
getValue(USTV_ANTRAG)
|
||||
If USTV_ANTRAG.SAVE Then
|
||||
init()
|
||||
dgvUSTVPositionen.SetOrder()
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Sub initPosition(UStVPo_ID)
|
||||
@@ -998,12 +1167,15 @@ Public Class frmMDM_USTVAntrag
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles btnEintragloeschen.Click
|
||||
|
||||
If vbYes = MsgBox("Möchten Sie den Eintrag wirklich löschen?", vbYesNoCancel) Then
|
||||
|
||||
If UstCntlUSTV_AntragPosition1.cbxAPI IsNot Nothing AndAlso UstCntlUSTV_AntragPosition1.cboSchnittstellennr._value IsNot Nothing Then
|
||||
Dim updated As Boolean = False
|
||||
Dim sqlText = ""
|
||||
Dim test As Boolean = False
|
||||
|
||||
|
||||
Select Case UstCntlUSTV_AntragPosition1.cboSchnittstellennr._value
|
||||
|
||||
Case 1 'VERAG 360 GmbH; 4975 Suben
|
||||
@@ -1271,13 +1443,18 @@ Public Class frmMDM_USTVAntrag
|
||||
Case 4, 9 : da_id = SQL.getValueTxtBySql("SELECT TOP(1) [daId] FROM [tblMSEInvoices] as inv inner join tblMSECustomers on inv.customer_number = customer_id where invoice_date='" & reDat & "' and country='" & Antrag_LandKz & "' AND partner_customer_number = " & USTV_ANTRAG.UStVAn_KuNr & " AND daId is not null", "FMZOLL",,, -1)
|
||||
Case 10 : da_id = SQL.getValueTxtBySql("SELECT TOP(1) [daId] FROM [tblUTAImportNew] where Rechnungsdatum='" & reDat & "' and Abrechnungsnummer='" & reNr & "' and Lieferland_ISO2='" & Antrag_LandKz & "' AND daId is not null", "FMZOLL",,, -1)
|
||||
Case 7 : da_id = SQL.getValueTxtBySql("SELECT TOP(1) [rmc_daId] FROM [tblRMCImport] where rmc_reDatum='" & reDat & "' and rmc_reNr='" & reNr & "' and rmc_landKZ='" & Antrag_LandKz & "' AND [rmc_daId] is not null", "FMZOLL",,, -1)
|
||||
Case 8 : da_id = SQL.getValueTxtBySql("SELECT TOP(1) tblIDSInvoicesNew.daId FROM [tblIDSTransactionsNew] INNER JOIN tbl_IDS_Länder ON tblIDSTransactionsNew.[OutletCountryCode] = tbl_IDS_Länder.OutletCountryCode LEFT JOIN tblIDSInvoicesNew on tblIDSInvoicesNew.CustomerCode = tblIDSTransactionsNew.CustomerCode and tblIDSInvoicesNew.Invoicenumber = Paymentsummarynumber where tblIDSTransactionsNew.[YearMonthDay] ='" & reDat & "' and tblIDSTransactionsNew.[Paymentsummarynumber]='" & reNr & "' and tbl_IDS_Länder.Lieferland_ISO2='" & Antrag_LandKz & "' AND tblIDSInvoicesNew.daId is not null", "FMZOLL",,, -1)
|
||||
Case 8 : da_id = SQL.getValueTxtBySql("SELECT TOP(1) tblIDSInvoicesNew.daId FROM [tblIDSTransactionsNew] INNER JOIN tbl_IDS_Länder ON tblIDSTransactionsNew.[OutletCountryCode] = tbl_IDS_Länder.OutletCountryCode LEFT JOIN tblIDSInvoicesNew on tblIDSInvoicesNew.CustomerCode = tblIDSTransactionsNew.CustomerCode and tblIDSInvoicesNew.Invoicenumber = Paymentsummarynumber where tblIDSTransactionsNew.[YearMonthDay] ='" & reDat & "' AND ISNULL(tblIDSTransactionsNew.[OBONumber], ISNULL(tblIDSTransactionsNew.[VRNumber], tblIDSTransactionsNew.[Paymentsummarynumber])) ='" & reNr & "' and tbl_IDS_Länder.Lieferland_ISO2='" & Antrag_LandKz & "' AND tblIDSInvoicesNew.daId is not null", "FMZOLL",,, -1)
|
||||
End Select
|
||||
|
||||
Return da_id
|
||||
|
||||
End Function
|
||||
|
||||
Private Sub cbxLand_SelectedValueChanged(sender As Object, e As EventArgs) Handles cbxLand.SelectedValueChanged
|
||||
|
||||
lblLand.Text = IIf(cbxLand.SelectedItem IsNot Nothing, cbxLand.SelectedItem.Text, "")
|
||||
End Sub
|
||||
|
||||
Private Sub dgvUSTVPositionen_Sorted(sender As Object, e As EventArgs) Handles dgvUSTVPositionen.Sorted
|
||||
|
||||
For Each r As DataGridViewRow In dgvUSTVPositionen.Rows
|
||||
|
||||
336
SDL/USTV/frmUSTVoffeneAntraege.Designer.vb
generated
336
SDL/USTV/frmUSTVoffeneAntraege.Designer.vb
generated
@@ -23,31 +23,43 @@ Partial Class frmUSTVoffeneAntraege
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.components = New System.ComponentModel.Container()
|
||||
Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Me.FlowLayoutPanel = New System.Windows.Forms.FlowLayoutPanel()
|
||||
Me.btn = New System.Windows.Forms.Button()
|
||||
Me.Button7 = New System.Windows.Forms.Button()
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.Button3 = New System.Windows.Forms.Button()
|
||||
Me.btnAlle = New System.Windows.Forms.Button()
|
||||
Me.lbl = New System.Windows.Forms.Label()
|
||||
Me.MyDatagridview1 = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
||||
Me.Label2 = New System.Windows.Forms.Label()
|
||||
Me.txtAnzahl = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.txtMWST = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Panel4 = New System.Windows.Forms.Panel()
|
||||
Me.Label46 = New System.Windows.Forms.Label()
|
||||
Me.dat_Sum_Bis = New System.Windows.Forms.DateTimePicker()
|
||||
Me.Label45 = New System.Windows.Forms.Label()
|
||||
Me.dat_Sum_Von = New System.Windows.Forms.DateTimePicker()
|
||||
Me.txtmaxAnz = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.Label3 = New System.Windows.Forms.Label()
|
||||
Me.cbxAlleoffenen = New System.Windows.Forms.CheckBox()
|
||||
Me.lblKunde = New System.Windows.Forms.Label()
|
||||
Me.btnAlle = New System.Windows.Forms.Button()
|
||||
Me.Label4 = New System.Windows.Forms.Label()
|
||||
Me.pnlLand = New System.Windows.Forms.Panel()
|
||||
Me.cbxNichtEroeffneteAntraege = New System.Windows.Forms.CheckBox()
|
||||
Me.MyComboBox1 = New VERAG_PROG_ALLGEMEIN.MyComboBox()
|
||||
Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
|
||||
Me.AntragEröffnenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
|
||||
Me.txtmaxAnz = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.txtMWST = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.txtAnzahl = New VERAG_PROG_ALLGEMEIN.MyTextBox()
|
||||
Me.MyDatagridview1 = New VERAG_PROG_ALLGEMEIN.MyDatagridview(Me.components)
|
||||
Me.cbxSteuerNr = New System.Windows.Forms.CheckBox()
|
||||
Me.FlowLayoutPanel.SuspendLayout()
|
||||
CType(Me.MyDatagridview1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.Panel4.SuspendLayout()
|
||||
Me.pnlLand.SuspendLayout()
|
||||
Me.ContextMenuStrip1.SuspendLayout()
|
||||
CType(Me.MyDatagridview1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'FlowLayoutPanel
|
||||
@@ -122,6 +134,17 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.Button3.Text = "IDS"
|
||||
Me.Button3.UseVisualStyleBackColor = False
|
||||
'
|
||||
'btnAlle
|
||||
'
|
||||
Me.btnAlle.BackColor = System.Drawing.Color.FloralWhite
|
||||
Me.btnAlle.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnAlle.Location = New System.Drawing.Point(633, 3)
|
||||
Me.btnAlle.Name = "btnAlle"
|
||||
Me.btnAlle.Size = New System.Drawing.Size(120, 23)
|
||||
Me.btnAlle.TabIndex = 5
|
||||
Me.btnAlle.Text = "ALLE"
|
||||
Me.btnAlle.UseVisualStyleBackColor = False
|
||||
'
|
||||
'lbl
|
||||
'
|
||||
Me.lbl.AutoSize = True
|
||||
@@ -132,25 +155,6 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.lbl.TabIndex = 29
|
||||
Me.lbl.Text = "nicht eingearbeitet USTV-Anträge"
|
||||
'
|
||||
'MyDatagridview1
|
||||
'
|
||||
Me.MyDatagridview1.AKTUALISIERUNGS_INTERVALL = -1
|
||||
Me.MyDatagridview1.AllowUserToAddRows = False
|
||||
Me.MyDatagridview1.AllowUserToDeleteRows = False
|
||||
Me.MyDatagridview1.AllowUserToResizeColumns = False
|
||||
Me.MyDatagridview1.AllowUserToResizeRows = False
|
||||
Me.MyDatagridview1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.MyDatagridview1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
Me.MyDatagridview1.Location = New System.Drawing.Point(12, 98)
|
||||
Me.MyDatagridview1.Name = "MyDatagridview1"
|
||||
Me.MyDatagridview1.ReadOnly = True
|
||||
Me.MyDatagridview1.RowHeadersWidth = 62
|
||||
Me.MyDatagridview1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
|
||||
Me.MyDatagridview1.Size = New System.Drawing.Size(1409, 528)
|
||||
Me.MyDatagridview1.TabIndex = 30
|
||||
'
|
||||
'Label2
|
||||
'
|
||||
Me.Label2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
@@ -161,31 +165,6 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.Label2.TabIndex = 38
|
||||
Me.Label2.Text = "Anzahl:"
|
||||
'
|
||||
'txtAnzahl
|
||||
'
|
||||
Me.txtAnzahl._DateTimeOnly = False
|
||||
Me.txtAnzahl._numbersOnly = False
|
||||
Me.txtAnzahl._numbersOnlyKommastellen = ""
|
||||
Me.txtAnzahl._numbersOnlyTrennzeichen = True
|
||||
Me.txtAnzahl._Prozent = False
|
||||
Me.txtAnzahl._ShortDateNew = False
|
||||
Me.txtAnzahl._ShortDateOnly = False
|
||||
Me.txtAnzahl._TimeOnly = False
|
||||
Me.txtAnzahl._TimeOnly_Seconds = False
|
||||
Me.txtAnzahl._value = ""
|
||||
Me.txtAnzahl._Waehrung = False
|
||||
Me.txtAnzahl._WaehrungZeichen = True
|
||||
Me.txtAnzahl.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtAnzahl.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtAnzahl.Location = New System.Drawing.Point(1321, 636)
|
||||
Me.txtAnzahl.MaxLineLength = -1
|
||||
Me.txtAnzahl.MaxLines_Warning = ""
|
||||
Me.txtAnzahl.MaxLines_Warning_Label = Nothing
|
||||
Me.txtAnzahl.Name = "txtAnzahl"
|
||||
Me.txtAnzahl.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtAnzahl.TabIndex = 37
|
||||
Me.txtAnzahl.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
@@ -196,31 +175,6 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.Label1.TabIndex = 40
|
||||
Me.Label1.Text = "MWSt:"
|
||||
'
|
||||
'txtMWST
|
||||
'
|
||||
Me.txtMWST._DateTimeOnly = False
|
||||
Me.txtMWST._numbersOnly = False
|
||||
Me.txtMWST._numbersOnlyKommastellen = ""
|
||||
Me.txtMWST._numbersOnlyTrennzeichen = True
|
||||
Me.txtMWST._Prozent = False
|
||||
Me.txtMWST._ShortDateNew = False
|
||||
Me.txtMWST._ShortDateOnly = False
|
||||
Me.txtMWST._TimeOnly = False
|
||||
Me.txtMWST._TimeOnly_Seconds = False
|
||||
Me.txtMWST._value = ""
|
||||
Me.txtMWST._Waehrung = True
|
||||
Me.txtMWST._WaehrungZeichen = True
|
||||
Me.txtMWST.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtMWST.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtMWST.Location = New System.Drawing.Point(1321, 658)
|
||||
Me.txtMWST.MaxLineLength = -1
|
||||
Me.txtMWST.MaxLines_Warning = ""
|
||||
Me.txtMWST.MaxLines_Warning_Label = Nothing
|
||||
Me.txtMWST.Name = "txtMWST"
|
||||
Me.txtMWST.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtMWST.TabIndex = 39
|
||||
Me.txtMWST.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
|
||||
'
|
||||
'Panel4
|
||||
'
|
||||
Me.Panel4.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
@@ -268,6 +222,94 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.dat_Sum_Von.Size = New System.Drawing.Size(103, 20)
|
||||
Me.dat_Sum_Von.TabIndex = 22
|
||||
'
|
||||
'Label3
|
||||
'
|
||||
Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Label3.AutoSize = True
|
||||
Me.Label3.Location = New System.Drawing.Point(1295, 71)
|
||||
Me.Label3.Name = "Label3"
|
||||
Me.Label3.Size = New System.Drawing.Size(50, 13)
|
||||
Me.Label3.TabIndex = 43
|
||||
Me.Label3.Text = "max. DS:"
|
||||
'
|
||||
'cbxAlleoffenen
|
||||
'
|
||||
Me.cbxAlleoffenen.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.cbxAlleoffenen.AutoSize = True
|
||||
Me.cbxAlleoffenen.Location = New System.Drawing.Point(1137, 62)
|
||||
Me.cbxAlleoffenen.Name = "cbxAlleoffenen"
|
||||
Me.cbxAlleoffenen.Size = New System.Drawing.Size(128, 17)
|
||||
Me.cbxAlleoffenen.TabIndex = 44
|
||||
Me.cbxAlleoffenen.Text = "alle Kunden anzeigen"
|
||||
Me.cbxAlleoffenen.UseVisualStyleBackColor = True
|
||||
'
|
||||
'lblKunde
|
||||
'
|
||||
Me.lblKunde.AutoSize = True
|
||||
Me.lblKunde.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.lblKunde.Location = New System.Drawing.Point(455, 74)
|
||||
Me.lblKunde.Name = "lblKunde"
|
||||
Me.lblKunde.Size = New System.Drawing.Size(0, 16)
|
||||
Me.lblKunde.TabIndex = 45
|
||||
'
|
||||
'Label4
|
||||
'
|
||||
Me.Label4.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Label4.AutoSize = True
|
||||
Me.Label4.Location = New System.Drawing.Point(3, 10)
|
||||
Me.Label4.Name = "Label4"
|
||||
Me.Label4.Size = New System.Drawing.Size(34, 13)
|
||||
Me.Label4.TabIndex = 47
|
||||
Me.Label4.Text = "Land:"
|
||||
'
|
||||
'pnlLand
|
||||
'
|
||||
Me.pnlLand.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.pnlLand.Controls.Add(Me.cbxNichtEroeffneteAntraege)
|
||||
Me.pnlLand.Controls.Add(Me.Label4)
|
||||
Me.pnlLand.Controls.Add(Me.MyComboBox1)
|
||||
Me.pnlLand.Location = New System.Drawing.Point(863, 62)
|
||||
Me.pnlLand.Name = "pnlLand"
|
||||
Me.pnlLand.Size = New System.Drawing.Size(268, 33)
|
||||
Me.pnlLand.TabIndex = 42
|
||||
Me.pnlLand.Visible = False
|
||||
'
|
||||
'cbxNichtEroeffneteAntraege
|
||||
'
|
||||
Me.cbxNichtEroeffneteAntraege.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.cbxNichtEroeffneteAntraege.AutoSize = True
|
||||
Me.cbxNichtEroeffneteAntraege.Checked = True
|
||||
Me.cbxNichtEroeffneteAntraege.CheckState = System.Windows.Forms.CheckState.Checked
|
||||
Me.cbxNichtEroeffneteAntraege.Location = New System.Drawing.Point(126, 9)
|
||||
Me.cbxNichtEroeffneteAntraege.Name = "cbxNichtEroeffneteAntraege"
|
||||
Me.cbxNichtEroeffneteAntraege.Size = New System.Drawing.Size(134, 17)
|
||||
Me.cbxNichtEroeffneteAntraege.TabIndex = 46
|
||||
Me.cbxNichtEroeffneteAntraege.Text = "nicht eröffnete Anträge"
|
||||
Me.cbxNichtEroeffneteAntraege.UseVisualStyleBackColor = True
|
||||
'
|
||||
'MyComboBox1
|
||||
'
|
||||
Me.MyComboBox1._allowedValuesFreiText = Nothing
|
||||
Me.MyComboBox1._allowFreiText = False
|
||||
Me.MyComboBox1._value = ""
|
||||
Me.MyComboBox1.FormattingEnabled = True
|
||||
Me.MyComboBox1.Location = New System.Drawing.Point(48, 7)
|
||||
Me.MyComboBox1.Name = "MyComboBox1"
|
||||
Me.MyComboBox1.Size = New System.Drawing.Size(72, 21)
|
||||
Me.MyComboBox1.TabIndex = 46
|
||||
'
|
||||
'ContextMenuStrip1
|
||||
'
|
||||
Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.AntragEröffnenToolStripMenuItem})
|
||||
Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
|
||||
Me.ContextMenuStrip1.Size = New System.Drawing.Size(159, 26)
|
||||
'
|
||||
'AntragEröffnenToolStripMenuItem
|
||||
'
|
||||
Me.AntragEröffnenToolStripMenuItem.Name = "AntragEröffnenToolStripMenuItem"
|
||||
Me.AntragEröffnenToolStripMenuItem.Size = New System.Drawing.Size(158, 22)
|
||||
Me.AntragEröffnenToolStripMenuItem.Text = "Antrag eröffnen"
|
||||
'
|
||||
'txtmaxAnz
|
||||
'
|
||||
Me.txtmaxAnz._DateTimeOnly = False
|
||||
@@ -294,54 +336,118 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.txtmaxAnz.Text = "1000"
|
||||
Me.txtmaxAnz.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
|
||||
'
|
||||
'Label3
|
||||
'txtMWST
|
||||
'
|
||||
Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.Label3.AutoSize = True
|
||||
Me.Label3.Location = New System.Drawing.Point(1295, 71)
|
||||
Me.Label3.Name = "Label3"
|
||||
Me.Label3.Size = New System.Drawing.Size(50, 13)
|
||||
Me.Label3.TabIndex = 43
|
||||
Me.Label3.Text = "max. DS:"
|
||||
Me.txtMWST._DateTimeOnly = False
|
||||
Me.txtMWST._numbersOnly = False
|
||||
Me.txtMWST._numbersOnlyKommastellen = ""
|
||||
Me.txtMWST._numbersOnlyTrennzeichen = True
|
||||
Me.txtMWST._Prozent = False
|
||||
Me.txtMWST._ShortDateNew = False
|
||||
Me.txtMWST._ShortDateOnly = False
|
||||
Me.txtMWST._TimeOnly = False
|
||||
Me.txtMWST._TimeOnly_Seconds = False
|
||||
Me.txtMWST._value = ""
|
||||
Me.txtMWST._Waehrung = True
|
||||
Me.txtMWST._WaehrungZeichen = True
|
||||
Me.txtMWST.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtMWST.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtMWST.Location = New System.Drawing.Point(1321, 658)
|
||||
Me.txtMWST.MaxLineLength = -1
|
||||
Me.txtMWST.MaxLines_Warning = ""
|
||||
Me.txtMWST.MaxLines_Warning_Label = Nothing
|
||||
Me.txtMWST.Name = "txtMWST"
|
||||
Me.txtMWST.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtMWST.TabIndex = 39
|
||||
Me.txtMWST.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
|
||||
'
|
||||
'cbxAlleoffenen
|
||||
'txtAnzahl
|
||||
'
|
||||
Me.cbxAlleoffenen.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.cbxAlleoffenen.AutoSize = True
|
||||
Me.cbxAlleoffenen.Location = New System.Drawing.Point(1137, 70)
|
||||
Me.cbxAlleoffenen.Name = "cbxAlleoffenen"
|
||||
Me.cbxAlleoffenen.Size = New System.Drawing.Size(128, 17)
|
||||
Me.cbxAlleoffenen.TabIndex = 44
|
||||
Me.cbxAlleoffenen.Text = "alle Kunden anzeigen"
|
||||
Me.cbxAlleoffenen.UseVisualStyleBackColor = True
|
||||
Me.txtAnzahl._DateTimeOnly = False
|
||||
Me.txtAnzahl._numbersOnly = False
|
||||
Me.txtAnzahl._numbersOnlyKommastellen = ""
|
||||
Me.txtAnzahl._numbersOnlyTrennzeichen = True
|
||||
Me.txtAnzahl._Prozent = False
|
||||
Me.txtAnzahl._ShortDateNew = False
|
||||
Me.txtAnzahl._ShortDateOnly = False
|
||||
Me.txtAnzahl._TimeOnly = False
|
||||
Me.txtAnzahl._TimeOnly_Seconds = False
|
||||
Me.txtAnzahl._value = ""
|
||||
Me.txtAnzahl._Waehrung = False
|
||||
Me.txtAnzahl._WaehrungZeichen = True
|
||||
Me.txtAnzahl.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.txtAnzahl.ForeColor = System.Drawing.Color.Black
|
||||
Me.txtAnzahl.Location = New System.Drawing.Point(1321, 636)
|
||||
Me.txtAnzahl.MaxLineLength = -1
|
||||
Me.txtAnzahl.MaxLines_Warning = ""
|
||||
Me.txtAnzahl.MaxLines_Warning_Label = Nothing
|
||||
Me.txtAnzahl.Name = "txtAnzahl"
|
||||
Me.txtAnzahl.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtAnzahl.TabIndex = 37
|
||||
Me.txtAnzahl.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
|
||||
'
|
||||
'lblKunde
|
||||
'MyDatagridview1
|
||||
'
|
||||
Me.lblKunde.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.lblKunde.AutoSize = True
|
||||
Me.lblKunde.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.lblKunde.Location = New System.Drawing.Point(455, 74)
|
||||
Me.lblKunde.Name = "lblKunde"
|
||||
Me.lblKunde.Size = New System.Drawing.Size(0, 16)
|
||||
Me.lblKunde.TabIndex = 45
|
||||
Me.MyDatagridview1.AKTUALISIERUNGS_INTERVALL = -1
|
||||
Me.MyDatagridview1.AllowUserToAddRows = False
|
||||
Me.MyDatagridview1.AllowUserToDeleteRows = False
|
||||
Me.MyDatagridview1.AllowUserToResizeColumns = False
|
||||
Me.MyDatagridview1.AllowUserToResizeRows = False
|
||||
Me.MyDatagridview1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
|
||||
DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control
|
||||
DataGridViewCellStyle4.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
|
||||
DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
|
||||
DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
|
||||
DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
|
||||
Me.MyDatagridview1.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
|
||||
Me.MyDatagridview1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
|
||||
DataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window
|
||||
DataGridViewCellStyle5.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
DataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText
|
||||
DataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight
|
||||
DataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText
|
||||
DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
|
||||
Me.MyDatagridview1.DefaultCellStyle = DataGridViewCellStyle5
|
||||
Me.MyDatagridview1.Location = New System.Drawing.Point(12, 98)
|
||||
Me.MyDatagridview1.Name = "MyDatagridview1"
|
||||
Me.MyDatagridview1.ReadOnly = True
|
||||
DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
|
||||
DataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control
|
||||
DataGridViewCellStyle6.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
DataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText
|
||||
DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
|
||||
DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
|
||||
DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
|
||||
Me.MyDatagridview1.RowHeadersDefaultCellStyle = DataGridViewCellStyle6
|
||||
Me.MyDatagridview1.RowHeadersWidth = 62
|
||||
Me.MyDatagridview1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect
|
||||
Me.MyDatagridview1.Size = New System.Drawing.Size(1409, 528)
|
||||
Me.MyDatagridview1.TabIndex = 30
|
||||
'
|
||||
'btnAlle
|
||||
'cbxSteuerNr
|
||||
'
|
||||
Me.btnAlle.BackColor = System.Drawing.Color.FloralWhite
|
||||
Me.btnAlle.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnAlle.Location = New System.Drawing.Point(633, 3)
|
||||
Me.btnAlle.Name = "btnAlle"
|
||||
Me.btnAlle.Size = New System.Drawing.Size(120, 23)
|
||||
Me.btnAlle.TabIndex = 5
|
||||
Me.btnAlle.Text = "ALLE"
|
||||
Me.btnAlle.UseVisualStyleBackColor = False
|
||||
Me.cbxSteuerNr.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.cbxSteuerNr.AutoSize = True
|
||||
Me.cbxSteuerNr.Location = New System.Drawing.Point(1137, 78)
|
||||
Me.cbxSteuerNr.Name = "cbxSteuerNr"
|
||||
Me.cbxSteuerNr.Size = New System.Drawing.Size(105, 17)
|
||||
Me.cbxSteuerNr.TabIndex = 46
|
||||
Me.cbxSteuerNr.Text = " nur mit SteuerNr"
|
||||
Me.cbxSteuerNr.UseVisualStyleBackColor = True
|
||||
'
|
||||
'frmUSTVoffeneAntraege
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(1457, 681)
|
||||
Me.Controls.Add(Me.cbxSteuerNr)
|
||||
Me.Controls.Add(Me.lblKunde)
|
||||
Me.Controls.Add(Me.pnlLand)
|
||||
Me.Controls.Add(Me.cbxAlleoffenen)
|
||||
Me.Controls.Add(Me.Label3)
|
||||
Me.Controls.Add(Me.txtmaxAnz)
|
||||
@@ -356,9 +462,12 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Me.Name = "frmUSTVoffeneAntraege"
|
||||
Me.Text = "nicht eingearbeitet USTV Anträge"
|
||||
Me.FlowLayoutPanel.ResumeLayout(False)
|
||||
CType(Me.MyDatagridview1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.Panel4.ResumeLayout(False)
|
||||
Me.Panel4.PerformLayout()
|
||||
Me.pnlLand.ResumeLayout(False)
|
||||
Me.pnlLand.PerformLayout()
|
||||
Me.ContextMenuStrip1.ResumeLayout(False)
|
||||
CType(Me.MyDatagridview1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
@@ -386,4 +495,11 @@ Partial Class frmUSTVoffeneAntraege
|
||||
Friend WithEvents lblKunde As Label
|
||||
Friend WithEvents Button3 As Button
|
||||
Friend WithEvents btnAlle As Button
|
||||
Friend WithEvents MyComboBox1 As VERAG_PROG_ALLGEMEIN.MyComboBox
|
||||
Friend WithEvents Label4 As Label
|
||||
Friend WithEvents pnlLand As Panel
|
||||
Friend WithEvents cbxNichtEroeffneteAntraege As CheckBox
|
||||
Friend WithEvents ContextMenuStrip1 As ContextMenuStrip
|
||||
Friend WithEvents AntragEröffnenToolStripMenuItem As ToolStripMenuItem
|
||||
Friend WithEvents cbxSteuerNr As CheckBox
|
||||
End Class
|
||||
|
||||
@@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</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>
|
||||
@@ -1,4 +1,8 @@
|
||||
Imports GrapeCity.ActiveReports.FormattedText.Layout.Utils
|
||||
Imports System.Windows.Documents
|
||||
Imports com.sun.org.apache.bcel.internal.generic
|
||||
Imports GrapeCity.ActiveReports.FormattedText.Layout.Utils
|
||||
Imports jdk.nashorn.internal.objects.annotations
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
Public Class frmUSTVoffeneAntraege
|
||||
|
||||
@@ -55,6 +59,8 @@ Public Class frmUSTVoffeneAntraege
|
||||
|
||||
Private Sub initLieferant(l As String, btn As Button)
|
||||
|
||||
pnlLand.Visible = False
|
||||
|
||||
MyDatagridview1.DataSource = Nothing
|
||||
Me.LIEFERANT = l
|
||||
|
||||
@@ -66,6 +72,8 @@ Public Class frmUSTVoffeneAntraege
|
||||
End If
|
||||
Next
|
||||
|
||||
pnlLand.Visible = Me.LIEFERANT = "alle"
|
||||
|
||||
init()
|
||||
|
||||
End Sub
|
||||
@@ -397,13 +405,200 @@ Public Class frmUSTVoffeneAntraege
|
||||
|
||||
End Sub
|
||||
|
||||
Sub initDgv_gesamt(anz As Integer, nichtEroeffneteAntraege As Boolean, Optional kdnr As Integer = -1)
|
||||
|
||||
Dim top = ""
|
||||
'If anz > 0 Then top = "TOP (" & anz & ")"
|
||||
|
||||
Dim sqlwhereIDS = ""
|
||||
Dim sqlwhereUTA = ""
|
||||
Dim sqlwhereRMC = ""
|
||||
Dim sqlwherePLOSE = ""
|
||||
Dim sqlwhereMSE = ""
|
||||
Dim sqlwhereLand = ""
|
||||
Dim sqlwhereSteuerNr = ""
|
||||
|
||||
If kdnr > 0 Then
|
||||
sqlwherePLOSE &= " and plose_POLSEKundennummer = " & kdnr
|
||||
sqlwhereIDS &= " and tblIDSTransactionsNew.KdNrVERAG = " & kdnr
|
||||
sqlwhereUTA &= " and Kundennummer = " & kdnr
|
||||
sqlwhereRMC &= " and rmc_kdNr = " & kdnr
|
||||
sqlwhereMSE &= " and partner_customer_number = " & kdnr
|
||||
End If
|
||||
|
||||
If MyComboBox1._value <> "" Then
|
||||
sqlwhereLand &= " and land = '" & MyComboBox1._value & "'"
|
||||
End If
|
||||
|
||||
If cbxSteuerNr.Checked Then
|
||||
sqlwhereSteuerNr &= " and isnull(tblSteuernummern.UStV,0) <> 0"
|
||||
End If
|
||||
|
||||
If nichtEroeffneteAntraege Then
|
||||
sqlwhereLand &= " and isnull(UStVAn_ID,0) = 0 "
|
||||
End If
|
||||
|
||||
|
||||
With MyDatagridview1
|
||||
.Columns.Clear()
|
||||
'Exit Sub
|
||||
'MsgBox(.sql)
|
||||
Dim sqlstring = "select isnull(UStVAn_ID,0) as antragExisitiert,tblSteuernummern.UStV as SteuerNr , KdNr, Kundenname, Land from ( select " & top & "
|
||||
'PLOSE' as Lieferant,
|
||||
plose_POLSEKundennummer as KdNr,
|
||||
Adressen.[Name 1] as Kundenname,
|
||||
'' as Land,
|
||||
[plose_RechnungsDatum] AS Rechnungsdatum,
|
||||
sum([plose_MWSTBetrag]) as MWST
|
||||
FROM [tblPLOSE_Details]
|
||||
INNER JOIN Adressen on PLOSEKundenNr=plose_POLSEKundennummer
|
||||
WHERE plose_Archiv <> 1 AND plose_LieferantCode IN (0,1,7) AND
|
||||
cast(plose_RechnungsDatum as date) between '" & dat_Sum_Von.Value & "' and '" & dat_Sum_Bis.Value & "' and plose_RechnungsNr is not null " & sqlwherePLOSE & "
|
||||
group by plose_POLSEKundennummer, Adressen.[Name 1] ,[plose_RechnungsDatum]
|
||||
having sum(plose_MWSTBetrag)>0
|
||||
|
||||
UNION ALL
|
||||
|
||||
Select " & top & "
|
||||
'RMC' as Lieferant,
|
||||
[rmc_kdNr] as KdNr,
|
||||
[rmc_kdName] as Kundenname,
|
||||
[rmc_landKZ] as Land,
|
||||
[rmc_reDatum] AS Rechnungsdatum,
|
||||
[rmc_betragMWST] as MWST
|
||||
FROM [tblRMCImport]
|
||||
where cast(rmc_reDatum As Date) between '" & dat_Sum_Von.Value & "' And '" & dat_Sum_Bis.Value & "'
|
||||
And UStVAn_ID is null " & sqlwhereRMC & "
|
||||
group by rmc_reDatum, rmc_kdNr,[rmc_kdName], [rmc_landKZ],[rmc_reNr], [rmc_betragMWST]
|
||||
having [rmc_betragMWST] > 0
|
||||
|
||||
UNION ALL
|
||||
|
||||
Select " & top & "
|
||||
'UTA' as Lieferant,
|
||||
Adressen.AdressenNr as KdNr,
|
||||
Adressen.[Name 1] as Kundenname,
|
||||
[Lieferland_ISO2] as Land,
|
||||
[Rechnungsdatum] AS Rechnungsdatum,
|
||||
sum([Gesamtbetrag_Umsatzsteuer_in_Darstellwährung]) as MWSt
|
||||
FROM [tblUTAImportNew]
|
||||
INNER JOIN Adressen on Adressen.UTAKundenNr = tblUTAImportNew.Kundennummer
|
||||
where cast([Rechnungsdatum] As Date) between '" & dat_Sum_Von.Value & "' And '" & dat_Sum_Bis.Value & "' And [tblUTAImportNew].UStVAn_ID is null
|
||||
" & sqlwhereUTA & "group by Adressen.AdressenNr, Kundennummer,Adressen.[Name 1],[Rechnungsdatum], [Lieferland_ISO2]
|
||||
|
||||
|
||||
UNION ALL
|
||||
|
||||
Select " & top & "
|
||||
'MSE' as Lieferant,
|
||||
partner_customer_number as KdNr,
|
||||
customer_name as Kundenname,
|
||||
country as Land,
|
||||
invoice_date AS Rechnungsdatum,
|
||||
sum(total_vat_amount_euro) as MWST
|
||||
FROM [VERAG].[dbo].[tblMSEInvoices] inner join [tblMSECustomers] on [customer_number] = [customer_id]
|
||||
|
||||
where cast(invoice_date As Date) between '" & dat_Sum_Von.Value & "' And '" & dat_Sum_Bis.Value & "'
|
||||
|
||||
And [UStVAn_ID] is null " & sqlwhereMSE & "
|
||||
|
||||
group by invoice_date, partner_customer_number,customer_name, country
|
||||
|
||||
UNION ALL
|
||||
|
||||
--IDS
|
||||
SELECT " & top & "
|
||||
'IDS' as Lieferant,
|
||||
tblIDSTransactionsNew.KdNrVERAG as KdNr,
|
||||
Adressen.[Name 1] as Kundenname,
|
||||
tbl_IDS_Länder.Lieferland_ISO2 as Land,
|
||||
cast(tblIDSTransactionsNew.[YearMonthDay] as date) AS Rechnungsdatum,
|
||||
SUM(tblIDSTransactionsNew.[VATAmount]) AS MWST
|
||||
FROM
|
||||
tblIDSTransactionsNew
|
||||
INNER JOIN
|
||||
tbl_IDS_Länder
|
||||
ON tblIDSTransactionsNew.[OutletCountryCode] = tbl_IDS_Länder.OutletCountryCode
|
||||
INNER JOIN
|
||||
Adressen on Adressen.AdressenNr = tblIDSTransactionsNew.KdNrVERAG
|
||||
LEFT JOIN
|
||||
tblIDSInvoicesNew on tblIDSInvoicesNew.CustomerCode = tblIDSTransactionsNew.CustomerCode and tblIDSInvoicesNew.Invoicenumber = Paymentsummarynumber
|
||||
WHERE
|
||||
tblIDSTransactionsNew.[YearMonthDay] BETWEEN '" & dat_Sum_Von.Value & "' And '" & dat_Sum_Bis.Value & "' " & sqlwhereIDS & "
|
||||
AND tblIDSTransactionsNew.[VATAmount] <> 0
|
||||
AND tblIDSTransactionsNew.UStVAn_ID IS NULL
|
||||
GROUP BY
|
||||
tblIDSTransactionsNew.KdNrVERAG,
|
||||
Adressen.[Name 1],
|
||||
tbl_IDS_Länder.Lieferland_ISO2,
|
||||
tblIDSTransactionsNew.[YearMonthDay] ) as temp
|
||||
inner join tblKundenErweitert on temp.kdnr = kde_KundenNr
|
||||
left join tblUStVAntrag on UStVAn_KuNr = temp.kdnr and UStVAn_ReDatVon <= temp.Rechnungsdatum and UStVAn_ReDatBis >= temp.Rechnungsdatum
|
||||
left JOIN tblSteuernummern On temp.Land = tblSteuernummern.LandKz and KdNr = tblSteuernummern.AdressenNr
|
||||
where 1 = 1 and isnull(kde_keineMWSt,0) = 0 " & sqlwhereLand & sqlwhereSteuerNr &
|
||||
" group by isnull(UStVAn_ID,0) , KdNr, Kundenname, Land, tblSteuernummern.UStV"
|
||||
|
||||
.SET_SQL(sqlstring, "FMZOLL")
|
||||
.LOAD()
|
||||
If .Columns.Count > 0 Then
|
||||
|
||||
.Columns("KdNr").HeaderText = "KdNr"
|
||||
.Columns("SteuerNr").HeaderText = "SteuerNr"
|
||||
.Columns("Kundenname").HeaderText = "Kunde"
|
||||
.Columns("Land").HeaderText = "Land"
|
||||
.Columns("Kundenname").AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
|
||||
.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells
|
||||
|
||||
|
||||
End If
|
||||
|
||||
|
||||
If kdnr > 0 Then
|
||||
|
||||
MyComboBox1.Items.Clear()
|
||||
MyComboBox1.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("", ""))
|
||||
|
||||
End If
|
||||
|
||||
Dim sumMwSt As Double = 0
|
||||
If Not MyComboBox1._value <> "" Then
|
||||
MyComboBox1.Items.Clear()
|
||||
MyComboBox1.Items.Add(New VERAG_PROG_ALLGEMEIN.MyListItem("", ""))
|
||||
Dim list As New List(Of String)
|
||||
For Each r As DataGridViewRow In .Rows
|
||||
|
||||
If r.Cells("Land").Value IsNot Nothing And r.Cells("Land").Value <> "" Then
|
||||
|
||||
If Not list.Any(Function(c) c = r.Cells("Land").Value) Then
|
||||
list.Add(r.Cells("Land").Value)
|
||||
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
For Each l In list
|
||||
Dim listItem As New VERAG_PROG_ALLGEMEIN.MyListItem(l, l)
|
||||
MyComboBox1.Items.Add(listItem)
|
||||
Next
|
||||
End If
|
||||
|
||||
|
||||
txtAnzahl.Text = .Rows.Count
|
||||
txtMWST.Text = sumMwSt
|
||||
|
||||
|
||||
End With
|
||||
|
||||
End Sub
|
||||
|
||||
Sub init()
|
||||
Select Case LIEFERANT.ToString.ToLower
|
||||
Case "plose" : initDgv_PLOSE(txtmaxAnz.Text, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
Case "rmc" : initDgv_RMC(txtmaxAnz.Text, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
Case "mse" : initDgv_MSE(txtmaxAnz.Text, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
Case "uta" : initDgv_UTA(txtmaxAnz.Text, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
Case "ids" : initDgv_IDS(txtmaxAnz.Text, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
Case "plose" : initDgv_PLOSE(txtmaxAnz.Text, kdNr)
|
||||
Case "rmc" : initDgv_RMC(txtmaxAnz.Text, kdNr)
|
||||
Case "mse" : initDgv_MSE(txtmaxAnz.Text, kdNr)
|
||||
Case "uta" : initDgv_UTA(txtmaxAnz.Text, kdNr)
|
||||
Case "ids" : initDgv_IDS(txtmaxAnz.Text, kdNr)
|
||||
Case "alle" : initDgv_gesamt(txtmaxAnz.Text, cbxNichtEroeffneteAntraege.Checked, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
@@ -422,7 +617,7 @@ Public Class frmUSTVoffeneAntraege
|
||||
initLieferant("IDS", sender)
|
||||
End Sub
|
||||
|
||||
Private Sub cbxAlleoffenen_CheckedChanged(sender As Object, e As EventArgs) Handles cbxAlleoffenen.CheckedChanged
|
||||
Private Sub cbxAlleoffenen_CheckedChanged(sender As Object, e As EventArgs) Handles cbxAlleoffenen.CheckedChanged, cbxSteuerNr.CheckedChanged
|
||||
init()
|
||||
End Sub
|
||||
|
||||
@@ -430,6 +625,9 @@ Public Class frmUSTVoffeneAntraege
|
||||
|
||||
|
||||
Try
|
||||
|
||||
If Not MyDatagridview1.Columns.Contains("daId") Then Exit Sub
|
||||
|
||||
If e.RowIndex >= 0 AndAlso e.ColumnIndex = 7 Then
|
||||
Dim dsID = MyDatagridview1.Rows(e.RowIndex).Cells("daId").Value
|
||||
|
||||
@@ -455,10 +653,55 @@ Public Class frmUSTVoffeneAntraege
|
||||
|
||||
Private Sub MyDatagridview1_Sorted(sender As Object, e As EventArgs) Handles MyDatagridview1.Sorted
|
||||
|
||||
If Not MyDatagridview1.Columns.Contains("daId") Then Exit Sub
|
||||
|
||||
For Each r As DataGridViewRow In MyDatagridview1.Rows
|
||||
|
||||
If Not IsDBNull(r.Cells("daId").Value) AndAlso r.Cells("daId").Value > 0 Then DirectCast(r.Cells("clmnPDF"), DataGridViewImageCell).Value = My.Resources.pdf
|
||||
Next
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub btnAlle_Click(sender As Object, e As EventArgs) Handles btnAlle.Click
|
||||
initLieferant("ALLE", sender)
|
||||
End Sub
|
||||
|
||||
Private Sub MyComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles MyComboBox1.SelectedIndexChanged
|
||||
initDgv_gesamt(txtmaxAnz.Text, cbxNichtEroeffneteAntraege.Checked, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
End Sub
|
||||
|
||||
Private Sub AntragEröffnenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AntragEröffnenToolStripMenuItem.Click
|
||||
|
||||
If MyDatagridview1.SelectedRows.Count = 0 Then Exit Sub
|
||||
Dim index As Integer = -1
|
||||
If (MyDatagridview1.SelectedRows.Count > 0) Then index = MyDatagridview1.SelectedRows(0).Index
|
||||
|
||||
Dim frm = New frmMDM_USTVAntrag(MyDatagridview1.SelectedRows(0).Cells("KdNr").Value, MyDatagridview1.SelectedRows(0).Cells("Land").Value, dat_Sum_Von.Value, dat_Sum_Bis.Value)
|
||||
frm.ShowDialog()
|
||||
|
||||
MyDatagridview1.GetOrder()
|
||||
initDgv_gesamt(txtmaxAnz.Text, cbxNichtEroeffneteAntraege.Checked, IIf(cbxAlleoffenen.Checked, -1, kdNr))
|
||||
MyDatagridview1.SetOrder()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub MyDatagridview1_CellMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles MyDatagridview1.CellMouseClick
|
||||
|
||||
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_USTVA_bearbeiten", Me.FindForm) Then Exit Sub
|
||||
If e.RowIndex < 0 Then Exit Sub
|
||||
|
||||
DirectCast(sender, DataGridView).Rows(e.RowIndex).Selected = True
|
||||
If e.Button = MouseButtons.Right Then
|
||||
|
||||
If sender Is MyDatagridview1 AndAlso LIEFERANT.ToString.ToLower = "alle" Then
|
||||
If MyDatagridview1.SelectedRows.Count = 0 Then Exit Sub '
|
||||
MyDatagridview1.CurrentCell = MyDatagridview1.Rows(e.RowIndex).Cells(e.ColumnIndex)
|
||||
ContextMenuStrip1.Show(Cursor.Position)
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
@@ -370,12 +370,15 @@ Public Class usrCntlUSTV
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
End If
|
||||
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("ploseneu") Then
|
||||
Dim plose = New ToolStripMenuItem() With {.Text = "Plose-NEUE LOGIK", .Name = "ploseneu", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
ContextMenuStrip2.Items.Add(plose)
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
If False Then 'wenn INFO von PLOSE WÄHRUNGSCODE IN INV_DATA, dann freischalten
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("ploseneu") Then
|
||||
Dim plose = New ToolStripMenuItem() With {.Text = "Plose-NEUE LOGIK", .Name = "ploseneu", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
ContextMenuStrip2.Items.Add(plose)
|
||||
AddHandler plose.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("rmc") Then
|
||||
Dim rmc = New ToolStripMenuItem() With {.Text = "RMC", .Name = "rmc", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
AddHandler rmc.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
@@ -538,7 +541,7 @@ Public Class usrCntlUSTV
|
||||
End If
|
||||
|
||||
If Not ContextMenuStrip1.Items.ContainsKey("offeneAntraege") Then
|
||||
Dim oa = New ToolStripMenuItem() With {.Text = "offene Anträge", .Name = "offeneAntraege", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
Dim oa = New ToolStripMenuItem() With {.Text = "nicht eingearbeitet USTV-Anträge", .Name = "offeneAntraege", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
AddHandler oa.Click, AddressOf mnuItem_Clicked
|
||||
ContextMenuStrip1.Items.Add(oa)
|
||||
End If
|
||||
@@ -690,12 +693,63 @@ Public Class usrCntlUSTV
|
||||
|
||||
Private Sub btnNeuerUSTVA_Click(sender As Object, e As EventArgs) Handles btnNeuerUSTVA.Click
|
||||
|
||||
MsgBox("Bevor das Antragsformular geöffnet werden kann," & vbNewLine & " müssen Sie Angaben zum Antrag in der Antragserfassung machen." & vbNewLine & "Aktuell noch im FM-Zoll durchzuführen!")
|
||||
'frmUStVAntrag im SDL bauen!
|
||||
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_USTVA_bearbeiten", Me.FindForm) Then
|
||||
MsgBox("Nicht berechtigt!")
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
Dim frm = New frmMDM_USTVAntrag(-1, "AT", New Date(Now.Year(), 1, 1), New Date(Now.Year(), 12, 31))
|
||||
frm.ShowDialog()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub btnUSTVAloeschen_Click(sender As Object, e As EventArgs) Handles btnUSTVAloeschen.Click
|
||||
MsgBox("NOCH NICHT IMPLEMENTIERT!")
|
||||
|
||||
If Not dgvUSTV.SelectedRows.Count = 0 Then
|
||||
|
||||
If Not VERAG_PROG_ALLGEMEIN.cBerechtignunen.CHECK_BERECHTIGUNG_bool("MDM_USTVA_bearbeiten", Me.FindForm) Then
|
||||
MsgBox("Nicht berechtigt!")
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If vbYes = MsgBox("Möchten Sie den " & dgvUSTV.SelectedRows(0).Cells("LandKz").Value & " Antrag von " & dgvUSTV.SelectedRows(0).Cells("UStVAn_Name").Value & "( " & dgvUSTV.SelectedRows(0).Cells("UStVAn_ReDatVon").Value & " - " & dgvUSTV.SelectedRows(0).Cells("UStVAn_ReDatBis").Value & ") wirklich löschen?", vbYesNoCancel) Then
|
||||
|
||||
Dim del_antrag As New cUSTVAntrag(dgvUSTV.SelectedRows(0).Cells("UStVAn_ID").Value)
|
||||
|
||||
If del_antrag.UStVAn_AntragEingereichtAm IsNot Nothing Then
|
||||
MsgBox("Dieser Antrag wurde bereits eingereicht. Der Antrag kann nicht gelöscht werden.",, "UStV-Antrag " & del_antrag.UStVAn_ID)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If del_antrag.UStVAn_3470 IsNot Nothing Then
|
||||
MsgBox("Dieser Antrag enthält einen 3470-Betrag. Der Antrag kann nicht gelöscht werden.",, "UStV-Antrag " & del_antrag.UStVAn_ID)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If del_antrag.UStVAn_VZBetrag IsNot Nothing Then
|
||||
MsgBox("Dieser Antrag enthält einen VZ-Betrag. Der Antrag kann nicht gelöscht werden.",, "UStV-Antrag " & del_antrag.UStVAn_ID)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If del_antrag.UStVAn_Erstattungsbetrag IsNot Nothing Then
|
||||
MsgBox("Dieser Antrag enthält einen Erstattungsbetrag. Der Antrag kann nicht gelöscht werden.",, "UStV-Antrag " & del_antrag.UStVAn_ID)
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
|
||||
For Each pos In del_antrag.POSITIONEN
|
||||
If pos.UStVPo_SchnittstellenNr > 0 Then
|
||||
MsgBox("Antrag enthält Positionen, die über die Schnittstelle geladen wurden." & vbNewLine & "Positionen manuell löschen.")
|
||||
Exit Sub
|
||||
End If
|
||||
Next
|
||||
|
||||
If del_antrag.DELETE() Then
|
||||
init()
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
@@ -73,7 +73,7 @@ Public Class ustCntlUSTV_AntragPosition
|
||||
Case 7 : da_id = sql.getValueTxtBySql("SELECT TOP(1) [rmc_daId] FROM [tblRMCImport] where rmc_reDatum='" & UStV_POS.UStVPo_ReDat & "' and rmc_reNr='" & UStV_POS.UStVPo_ReNr & "' and rmc_landKZ='" & Antrag_LandKz & "' AND [rmc_daId] is not null", "FMZOLL",,, -1)
|
||||
Case 4, 9 : da_id = sql.getValueTxtBySql("SELECT TOP(1) [daId] FROM [tblMSEInvoices] as inv inner join tblMSECustomers on inv.customer_number = customer_id where invoice_date='" & UStV_POS.UStVPo_ReDat & "' and country='" & Antrag_LandKz & "' AND partner_customer_number = " & kdnr & " AND daId is not null", "FMZOLL",,, -1)
|
||||
Case 10 : da_id = sql.getValueTxtBySql("SELECT TOP(1) [daId] FROM [tblUTAImportNew] where Rechnungsdatum='" & UStV_POS.UStVPo_ReDat & "' and Abrechnungsnummer='" & UStV_POS.UStVPo_ReNr & "' and Lieferland_ISO2='" & Antrag_LandKz & "' AND daId is not null", "FMZOLL",,, -1)
|
||||
Case 8 : da_id = sql.getValueTxtBySql("SELECT TOP(1) tblIDSInvoicesNew.daId FROM [tblIDSTransactionsNew] INNER JOIN tbl_IDS_Länder ON tblIDSTransactionsNew.[OutletCountryCode] = tbl_IDS_Länder.OutletCountryCode LEFT JOIN tblIDSInvoicesNew on tblIDSInvoicesNew.CustomerCode = tblIDSTransactionsNew.CustomerCode and tblIDSInvoicesNew.Invoicenumber = Paymentsummarynumber where tblIDSTransactionsNew.[YearMonthDay] ='" & UStV_POS.UStVPo_ReDat & "' and tblIDSTransactionsNew.[Paymentsummarynumber]='" & UStV_POS.UStVPo_ReNr & "' and tbl_IDS_Länder.Lieferland_ISO2='" & Antrag_LandKz & "' AND tblIDSInvoicesNew.daId is not null", "FMZOLL",,, -1)
|
||||
Case 8 : da_id = sql.getValueTxtBySql("SELECT TOP(1) tblIDSInvoicesNew.daId FROM [tblIDSTransactionsNew] INNER JOIN tbl_IDS_Länder ON tblIDSTransactionsNew.[OutletCountryCode] = tbl_IDS_Länder.OutletCountryCode LEFT JOIN tblIDSInvoicesNew on tblIDSInvoicesNew.CustomerCode = tblIDSTransactionsNew.CustomerCode and tblIDSInvoicesNew.Invoicenumber = Paymentsummarynumber where tblIDSTransactionsNew.[YearMonthDay] ='" & UStV_POS.UStVPo_ReDat & "' and ISNULL(tblIDSTransactionsNew.[OBONumber], ISNULL(tblIDSTransactionsNew.[VRNumber], tblIDSTransactionsNew.[Paymentsummarynumber])) ='" & UStV_POS.UStVPo_ReNr & "' and tbl_IDS_Länder.Lieferland_ISO2='" & Antrag_LandKz & "' AND tblIDSInvoicesNew.daId is not null", "FMZOLL",,, -1)
|
||||
|
||||
End Select
|
||||
scanSonstiges.INIT_daId(da_id)
|
||||
|
||||
2
SDL/kunden/frmKundenblatt.Designer.vb
generated
2
SDL/kunden/frmKundenblatt.Designer.vb
generated
@@ -2241,7 +2241,7 @@ Partial Class frmKundenblatt
|
||||
'
|
||||
Me.cntxtCntxtMDM.ImageScalingSize = New System.Drawing.Size(24, 24)
|
||||
Me.cntxtCntxtMDM.Name = "cntxtCntxtMDM"
|
||||
Me.cntxtCntxtMDM.OwnerItem = Me.ToolStripMenuItem4
|
||||
Me.cntxtCntxtMDM.OwnerItem = Me.ToolStripMenuItem8
|
||||
Me.cntxtCntxtMDM.Size = New System.Drawing.Size(61, 4)
|
||||
Me.cntxtCntxtMDM.Text = "cntxtMDM"
|
||||
'
|
||||
|
||||
@@ -1685,6 +1685,7 @@ Public Class frmMDMDatenverarbetiung
|
||||
outFile.WriteLine(clmns)
|
||||
|
||||
Next
|
||||
outFile.Flush()
|
||||
outFile.Close()
|
||||
Next
|
||||
End If
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Reflection
|
||||
Imports Org.BouncyCastle.Ocsp
|
||||
|
||||
Public Class cUSTVAntrag
|
||||
|
||||
@@ -201,6 +202,24 @@ Public Class cUSTVAntrag
|
||||
Return SQL.doSQLVarList(sqlstr, "FMZOLL", , list)
|
||||
End Function
|
||||
|
||||
Public Function SAVEID() As Integer
|
||||
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM tblUStVAntrag WITH(updlock,serializable) WHERE UStVAn_ID=@UStVAn_ID ) " &
|
||||
" BEGIN " & getUpdateCmd() & " END " &
|
||||
" Else " &
|
||||
" BEGIN " & getInsertCmd() & " END " &
|
||||
" commit tran "
|
||||
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||
|
||||
UStVAn_ID = SQL.doSQLVarListID(UStVAn_ID, sqlstr, "FMZOLL", , list)
|
||||
|
||||
Return UStVAn_ID
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Public Function getInsertCmd() As String
|
||||
Try
|
||||
@@ -255,6 +274,13 @@ Public Class cUSTVAntrag
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
Public Function DELETE() As Boolean
|
||||
|
||||
Dim sqlstr = " DELETE FROM tblUStVAntrag WITH(updlock,serializable) WHERE UStVAn_ID=" & Me.UStVAn_ID
|
||||
Return SQL.doSQL(sqlstr, "FMZOLL")
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ Public Class cIDS
|
||||
Public Function SAVE() As Boolean
|
||||
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM tblIDSTransactionsNew WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode) " &
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM tblIDSTransactionsNew WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode and isnull(charged,0) = 0) " &
|
||||
" BEGIN " & getUpdateCmd() & " END " &
|
||||
" Else " &
|
||||
" BEGIN " & getInsertCmd() & " END " &
|
||||
@@ -155,7 +155,7 @@ Public Class cIDS
|
||||
Try
|
||||
hasEntry = False
|
||||
Using conn As SqlConnection = SQL.GetNewOpenConnectionFMZOLL()
|
||||
Using cmd As New SqlCommand("SELECT * FROM tblIDSTransactionsNew WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode ", conn)
|
||||
Using cmd As New SqlCommand("SELECT * FROM tblIDSTransactionsNew WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode", conn)
|
||||
cmd.Parameters.AddWithValue("@YearMonthDay", YearMonthDay)
|
||||
cmd.Parameters.AddWithValue("@Paymentsummarynumber", Paymentsummarynumber)
|
||||
cmd.Parameters.AddWithValue("@CustomerCode", CustomerCode)
|
||||
@@ -196,7 +196,7 @@ Public Class cIDS
|
||||
End If
|
||||
Next
|
||||
str = str.Substring(0, str.Length - 1) 'wg. ','
|
||||
Return (" UPDATE [tblIDSTransactionsNew] SET " & str & " WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode ")
|
||||
Return (" UPDATE [tblIDSTransactionsNew] SET " & str & " WHERE YearMonthDay=@YearMonthDay AND Paymentsummarynumber=@Paymentsummarynumber AND CustomerCode=@CustomerCode AND OutletCountryCode=@OutletCountryCode AND OutletCode=@OutletCode AND ProductTypeCode=@ProductTypeCode AND isnull(charged,0) = 0 ")
|
||||
|
||||
Catch ex As Exception
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
@@ -349,8 +349,8 @@ Public Class cIDS
|
||||
AND tblIDSTransactionsNew.KdNrVERAG = @AdressenNr
|
||||
AND tbl_IDS_Länder.[Lieferland_ISO2] = @LandKZ
|
||||
AND tblIDSTransactionsNew.[VATAmount] <> 0
|
||||
AND UStVAn_ID is null
|
||||
GROUP BY
|
||||
AND isnull(UStVAn_ID,0) = " & IIf(Archiv IsNot Nothing AndAlso Archiv, 1, 0) &
|
||||
"GROUP BY
|
||||
tblIDSTransactionsNew.KdNrVERAG,
|
||||
tblIDSTransactionsNew.[YearMonthDay],
|
||||
ISNULL(tblIDSTransactionsNew.[OBONumber],
|
||||
@@ -365,7 +365,7 @@ Public Class cIDS
|
||||
cmd.Parameters.AddWithValue("@von", von)
|
||||
cmd.Parameters.AddWithValue("@bis", bis)
|
||||
cmd.Parameters.AddWithValue("@AdressenNr", KundenNr)
|
||||
'If Archiv IsNot Nothing Then cmd.Parameters.AddWithValue("@Archiv", If(Archiv, 1, 0))
|
||||
If Archiv IsNot Nothing Then cmd.Parameters.AddWithValue("@Archiv", If(Archiv, 1, 0))
|
||||
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
dt.Load(dr)
|
||||
|
||||
@@ -1228,14 +1228,14 @@ Public Class cUTA
|
||||
Sum([Gesamtbetrag_Brutto_in_Lieferlandwährung]-[Gesamtbetrag_Netto_in_Lieferlandwährung]) AS Umsatzsteuerbetrag_in_Lieferlandwährung, Lieferlandwährung_ISO,
|
||||
Sum([Gesamtbetrag_Brutto_in_Darstellwährung]-[Gesamtbetrag_Netto_in_Darstellwährung]) AS Umsatzsteuerbetrag_in_Darstellwährung, Darstellwährung_ISO
|
||||
FROM [tblUTAImportNew] INNER JOIN Adressen ON [tblUTAImportNew].Kundennummer = Adressen.UTAKundenNr
|
||||
WHERE ([tblUTAImportNew].Rechnungsdatum Between '" & von.ToShortDateString & "' And '" & bis.ToShortDateString & "' AND [tblUTAImportNew].Lieferland_ISO2='" & LandKZ & "' AND [tblUTAImportNew].Lieferlandwährung_ISO='" & Wahrungscode & "' AND Adressen.AdressenNr=" & KundenNr & " AND abgerechnet = 1)
|
||||
WHERE ([tblUTAImportNew].Rechnungsdatum Between '" & von.ToShortDateString & "' And '" & bis.ToShortDateString & "' AND [tblUTAImportNew].Lieferland_ISO2='" & LandKZ & "' AND [tblUTAImportNew].Lieferlandwährung_ISO='" & Wahrungscode & "' AND Adressen.AdressenNr=" & KundenNr & " AND charged = 1 AND isnull(tblUTAImportNew.UStVAn_ID,0) = " & IIf(Archiv IsNot Nothing AndAlso Archiv, 1, 0) & " )
|
||||
GROUP BY [tblUTAImportNew].Rechnungsdatum, [tblUTAImportNew].Rechnungsnummer_pro_Lieferland, Lieferlandwährung_ISO ,Darstellwährung_ISO,Adressen.AdressenNr
|
||||
HAVING (((Sum([Gesamtbetrag_Brutto_in_Lieferlandwährung]-[Gesamtbetrag_Netto_in_Lieferlandwährung]))<>0));", conn)
|
||||
|
||||
cmd.Parameters.AddWithValue("@von", von)
|
||||
cmd.Parameters.AddWithValue("@bis", bis)
|
||||
cmd.Parameters.AddWithValue("@AdressenNr", KundenNr)
|
||||
'If Archiv IsNot Nothing Then cmd.Parameters.AddWithValue("@Archiv", If(Archiv, 1, 0))
|
||||
If Archiv IsNot Nothing Then cmd.Parameters.AddWithValue("@Archiv", If(Archiv, 1, 0))
|
||||
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
dt.Load(dr)
|
||||
|
||||
@@ -175,7 +175,7 @@ Public Class cATEZ_ncts_api
|
||||
'--> EUR
|
||||
If GRT.nctsGRT_AmountToBeCoveredFremdWaehrung IsNot Nothing Then
|
||||
If If(GRT.nctsGRT_Currency, "") <> "EUR" Then
|
||||
Dim betragEUR = VERAG_PROG_ALLGEMEIN.cEZB_Waehrungskurse.EXCHANGE(GRT.nctsGRT_AmountToBeCoveredFremdWaehrung, GRT.nctsGRT_Currency, NCTS_FREMD.ncts_Trans_DatumZeit.ToShortDateString)
|
||||
Dim betragEUR = VERAG_PROG_ALLGEMEIN.cEZB_Waehrungskurse.EXCHANGE_CURTOEUR(GRT.nctsGRT_AmountToBeCoveredFremdWaehrung, GRT.nctsGRT_Currency, NCTS_FREMD.ncts_Trans_DatumZeit.ToShortDateString)
|
||||
GRT.nctsGRT_AmountToBeCovered = If(betragEUR > 0, betragEUR, GRT.nctsGRT_AmountToBeCoveredFremdWaehrung)
|
||||
Else
|
||||
GRT.nctsGRT_AmountToBeCovered = GRT.nctsGRT_AmountToBeCoveredFremdWaehrung
|
||||
|
||||
@@ -525,12 +525,10 @@ Public Class cMSEAPI
|
||||
transactionID.Columns("batch_seq_nr").ReadOnly = True
|
||||
End If
|
||||
|
||||
|
||||
'If json.StringOf("receiver") = "10738" Then saveTransactions(num, dt, transactions, json.StringOf("receiver"))
|
||||
saveTransactions(num, dt, transactions, json.StringOf("receiver"), True,) ' wenn ID explizit aufgerufen keine Prüfung auf receivcer und purchaseDate
|
||||
End If
|
||||
|
||||
|
||||
Next row
|
||||
|
||||
|
||||
@@ -1371,7 +1369,7 @@ Public Class cMSEAPI
|
||||
left join [VERAG].[dbo].[tblMSETransactions] as trans on bills.[transaction_id] = trans.[transaction_id]
|
||||
left join [VERAG].[dbo].[tblMSECustomers] as cust on cust.partner_customer_number = trans.partner_haulier_id
|
||||
left join [VERAG].[dbo].[tblMSEInvoices] as inv on inv.customer_number = cust.customer_id and bills.invoice_date = inv.invoice_date and inv.country = trans.transaction_country
|
||||
where bills.invoice_date Between '" & von & "' And '" & bis & "'and trans.charged = 1 and cust.[partner_customer_number] = " & KundenNr & " and trans.transaction_country = '" & LandKZ & "' and trans.original_currency = '" & Wahrungscode & "' AND isnull(inv.archiv,0) = " & IIf(Archiv IsNot Nothing AndAlso Archiv, 1, 0) & "
|
||||
where bills.invoice_date Between '" & von & "' And '" & bis & "'and trans.charged = 1 and cust.[partner_customer_number] = " & KundenNr & " and trans.transaction_country = '" & LandKZ & "' and trans.original_currency = '" & Wahrungscode & "' AND isnull(UStVAn_ID,0) = " & IIf(Archiv IsNot Nothing AndAlso Archiv, 1, 0) & "
|
||||
group by bills.invoice_date, bills.invoice_number, cust.[customer_id], bills.specification_page_name, trans.original_currency) as temp
|
||||
where temp.UST <> 0", conn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user