MS27062016

This commit is contained in:
SchreiberM
2016-06-27 13:43:47 +02:00
parent 59371f3fba
commit c5f276c37d
27 changed files with 1192 additions and 626 deletions

View File

@@ -884,4 +884,28 @@ Public Class frmConstructorDesigner
MsgBox("Error in Load SQL for User:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try
End Sub
Private Sub BindingNavigatorDeleteItem_Click(sender As Object, e As EventArgs) Handles BindingNavigatorDeleteItem.Click
Dim msg As String = "Wollen Sie diesen Constructor wirklich löschen?"
If USER_LANGUAGE <> "de-DE" Then
msg = "Do You really want to delete this constructor?"
End If
Dim result As MsgBoxResult = MsgBox(msg, MsgBoxStyle.YesNo)
If result = MsgBoxResult.Yes Then
Try
Dim CurrentID = CONSTRUCTOR_IDTextBox.Text
Dim sql = "EXEC PRPMO_DELETE_CONSTRUCTOR " & CurrentID
If ClassDatabase.Execute_non_Query(sql) = True Then
MsgBox("Constructor was deleted!", MsgBoxStyle.Information)
Load_Head()
Load_TreeViewEbene()
Load_ConstructorUser()
End If
Catch ex As Exception
MsgBox("Unexpected Error in delete Constructor:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try
Else
MsgBox("Unexpected error in executing delete-statement! Check log!", MsgBoxStyle.Exclamation)
End If
End Sub
End Class