MDM, Vorschausummen, USTV
This commit is contained in:
@@ -370,6 +370,11 @@ 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
|
||||
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)}
|
||||
@@ -395,6 +400,12 @@ Public Class usrCntlUSTV
|
||||
ContextMenuStrip2.Items.Add(ids)
|
||||
End If
|
||||
|
||||
If Not ContextMenuStrip2.Items.ContainsKey("verag") Then
|
||||
Dim ids = New ToolStripMenuItem() With {.Text = "VERAG", .Name = "verag", .Font = New Font(Me.Font.FontFamily, Me.Font.Size)}
|
||||
AddHandler ids.Click, AddressOf mnuItemAuftrauege_Clicked
|
||||
ContextMenuStrip2.Items.Add(ids)
|
||||
End If
|
||||
|
||||
ContextMenuStrip2.Show(Cursor.Position)
|
||||
|
||||
|
||||
@@ -418,13 +429,13 @@ Public Class usrCntlUSTV
|
||||
If cnt = 0 Then MsgBox("Keine einreichbaren Anträge gefunden!") : Exit Sub
|
||||
|
||||
If item IsNot Nothing Then
|
||||
If item.Name = "plose" Then
|
||||
If item.Name = "plose" Or item.Name = "ploseneu" Then
|
||||
|
||||
If vbYes = MsgBox("Es werden " & item.Text & " Daten für " & cnt & " USTV-Anträge eingearbeitet. Möchten Sie fortfahren?", vbYesNoCancel) Then
|
||||
For Each r As DataGridViewRow In dgvUSTV.Rows
|
||||
If r.Cells("UStVAn_AntragEingereichtAm").Value Is DBNull.Value Then ' OrElse r.Cells("UStVAn_AntragEingereichtAm").Value = "" Then
|
||||
'Dim Antrag_LandKz = SQL.DLookup("LandKz", "[Länderverzeichnis für die Außenhandelsstatistik]", "Landnr='" & r.Cells("UStVAn_LandNr").Value & "'", "FMZOLL")
|
||||
frmMDM_USTVAntrag.loadUSTVFrom_PLOSE(r.Cells("UStVAn_ID").Value, r.Cells("LandKz").Value, False)
|
||||
frmMDM_USTVAntrag.loadUSTVFrom_PLOSE(r.Cells("UStVAn_ID").Value, r.Cells("LandKz").Value, False, IIf(item.Name = "ploseneu", True, False))
|
||||
End If
|
||||
Next
|
||||
init()
|
||||
@@ -482,6 +493,19 @@ Public Class usrCntlUSTV
|
||||
MsgBox("Fertig!")
|
||||
End If
|
||||
|
||||
|
||||
ElseIf item.Name = "verag" Then
|
||||
|
||||
If vbYes = MsgBox("Es werden " & item.Text & " Daten für " & cnt & " USTV-Anträge eingearbeitet. Möchten Sie fortfahren?", vbYesNoCancel) Then
|
||||
For Each r As DataGridViewRow In dgvUSTV.Rows
|
||||
If r.Cells("UStVAn_AntragEingereichtAm").Value Is DBNull.Value Then
|
||||
frmMDM_USTVAntrag.loadUSTVFrom_VERAG(r.Cells("UStVAn_ID").Value, r.Cells("LandKz").Value, False)
|
||||
End If
|
||||
Next
|
||||
init()
|
||||
MsgBox("Fertig!")
|
||||
End If
|
||||
|
||||
Else
|
||||
MsgBox("Funktion nicht implementiert!")
|
||||
End If
|
||||
@@ -664,5 +688,14 @@ Public Class usrCntlUSTV
|
||||
Me.Cursor = Cursors.Default
|
||||
End Sub
|
||||
|
||||
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!
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub btnUSTVAloeschen_Click(sender As Object, e As EventArgs) Handles btnUSTVAloeschen.Click
|
||||
MsgBox("NOCH NICHT IMPLEMENTIERT!")
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user