MS Changes Items
This commit is contained in:
@@ -414,7 +414,8 @@ Public Class frmMain
|
||||
btnAddPaket.Enabled = True
|
||||
tsinfolabel.Text = "Vorgang abgebrochen"
|
||||
tsinfolabel.Visible = True
|
||||
ListBoxFortras.Items.Clear()
|
||||
ListBoxFortras.DataSource = Nothing
|
||||
'ListBoxFortras.Items.Clear()
|
||||
txtFreitext.Text = ""
|
||||
txtHinweistext.Text = ""
|
||||
Catch ex As Exception
|
||||
@@ -668,7 +669,8 @@ Public Class frmMain
|
||||
btnAddPaket.Enabled = True
|
||||
tsinfolabel.Text = "Vorgang abgebrochen"
|
||||
tsinfolabel.Visible = True
|
||||
ListBoxFortras.Items.Clear()
|
||||
'ListBoxFortras.Items.Clear()
|
||||
ListBoxFortras.DataSource = Nothing
|
||||
|
||||
frmPrintOptions.ShowDialog()
|
||||
GridControlLHM.DataSource = Nothing
|
||||
@@ -743,7 +745,13 @@ Public Class frmMain
|
||||
Dim ins = String.Format("INSERT INTO TBKOMMCOLLI_HINWEIS (SENDUNGNR,TEXTSCHLUSSEL_ID,TEXT,ERSTELLTWER) VALUES ({0},{1},'{2}','{3}')", CURRENT_SENDUNG, cmbTextschlüssel.SelectedValue, txtHinweistext.Text, Environment.UserName)
|
||||
If ClassDatabase.Execute_non_Query(ins) = True Then
|
||||
Me.txtHinweistext.Text = ""
|
||||
If IsNothing(ListBoxFortras.DataSource) Then
|
||||
Me.ListBoxFortras.DataSource = Me.TBKOMMCOLLI_HINWEISBindingSource
|
||||
Me.ListBoxFortras.DisplayMember = "BEZEICHNUNG"
|
||||
Me.ListBoxFortras.ValueMember = "GUID"
|
||||
End If
|
||||
Me.TBKOMMCOLLI_HINWEISTableAdapter.Fill(Me.MyDataset.TBKOMMCOLLI_HINWEIS, CURRENT_SENDUNG)
|
||||
|
||||
tsinfolabel.Visible = True
|
||||
tsinfolabel.Text = "Update Textschlüssel erfolgreich - " & Now.ToString
|
||||
End If
|
||||
@@ -774,7 +782,13 @@ Public Class frmMain
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
Dim del = String.Format("DELETE FROM TBKOMMCOLLI_HINWEIS WHERE GUID = (SELECT MAX(GUID) FROM TBKOMMCOLLI_HINWEIS WHERE SENDUNGNR = {0})", CURRENT_SENDUNG)
|
||||
If ClassDatabase.Execute_non_Query(del) = True Then
|
||||
If IsNothing(ListBoxFortras.DataSource) Then
|
||||
Me.ListBoxFortras.DataSource = Me.TBKOMMCOLLI_HINWEISBindingSource
|
||||
Me.ListBoxFortras.DisplayMember = "BEZEICHNUNG"
|
||||
Me.ListBoxFortras.ValueMember = "GUID"
|
||||
End If
|
||||
Me.TBKOMMCOLLI_HINWEISTableAdapter.Fill(Me.MyDataset.TBKOMMCOLLI_HINWEIS, CURRENT_SENDUNG)
|
||||
|
||||
tsinfolabel.Visible = True
|
||||
tsinfolabel.Text = "Löschen Textschlüssel erfolgreich - " & Now.ToString
|
||||
End If
|
||||
@@ -828,8 +842,9 @@ Public Class frmMain
|
||||
Private Sub pnlHuP_VisibleChanged(sender As Object, e As EventArgs) Handles pnlHuP.VisibleChanged
|
||||
|
||||
txtFreitext.Text = ""
|
||||
txtHinweistext.Text = ""
|
||||
ListBoxFortras.Items.Clear()
|
||||
txtHinweistext.Text = ""
|
||||
ListBoxFortras.DataSource = Nothing
|
||||
'ListBoxFortras.Items.Clear()
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user