This commit is contained in:
JenneJ
2015-12-02 13:00:30 +01:00
parent 6a353192b0
commit 161f8c9c2e
2 changed files with 16 additions and 12 deletions

View File

@@ -330,7 +330,7 @@ Public Class ClassControlCommandsUI
InsertAllControls(FormID, RecordID, DirectCast(ctrl, GroupBox).Controls) InsertAllControls(FormID, RecordID, DirectCast(ctrl, GroupBox).Controls)
End If End If
Else Else
InsertControlValue(ctrl.Name, RecordID, CONTROL_VALUE) InsertControlValue(CONTROL_ID, RecordID, CONTROL_VALUE)
End If End If
Next Next
End Sub End Sub
@@ -574,7 +574,7 @@ Public Class ClassControlCommandsUI
End Select End Select
End Function End Function
Public Shared Function InsertControlValue(ControlID As String, RecordID As Integer, Value As String) Public Shared Function InsertControlValue(ControlID As Integer, RecordID As Integer, Value As String)
Try Try
Dim AddedWho = Environment.UserName Dim AddedWho = Environment.UserName
Dim FORMAT_TYPE As String = ClassDatabase.Execute_Scalar("SELECT FORMAT_TYPE FROM TBPMO_CONTROL WHERE GUID = " & ControlID) Dim FORMAT_TYPE As String = ClassDatabase.Execute_Scalar("SELECT FORMAT_TYPE FROM TBPMO_CONTROL WHERE GUID = " & ControlID)

View File

@@ -425,7 +425,7 @@ Public Class frmForm_Constructor_Main_2
Return grvwGridPos.GetFocusedRowCellValue(grvwGrid.Columns(columnName)) Return grvwGridPos.GetFocusedRowCellValue(grvwGrid.Columns(columnName))
End Function End Function
Private Sub grvwGrid_FocusedColumnChanged(sender As Object, e As FocusedColumnChangedEventArgs) Handles grvwGrid.FocusedColumnChanged Private Sub grvwGrid_FocusedColumnChanged(sender As Object, e As FocusedColumnChangedEventArgs) Handles grvwGrid.FocusedColumnChanged
Column_Row_Handler Column_Row_Handler()
End Sub End Sub
Private Sub GridView_FocusedRowChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs) Handles grvwGrid.FocusedRowChanged, grvwTiles.FocusedRowChanged, grvwCarousel.FocusedRowChanged Private Sub GridView_FocusedRowChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs) Handles grvwGrid.FocusedRowChanged, grvwTiles.FocusedRowChanged, grvwCarousel.FocusedRowChanged
Column_Row_Handler() Column_Row_Handler()
@@ -858,7 +858,11 @@ Public Class frmForm_Constructor_Main_2
EBENE1_RECID = recid EBENE1_RECID = recid
For Each row As DataRow In DT_SELECTION.Rows For Each row As DataRow In DT_SELECTION.Rows
If row.Item("Record-ID") = SELECTED_RECORD_ID Then If row.Item("Record-ID") = SELECTED_RECORD_ID Then
EBENE1_GRID_RESULT = row.Item(EBENE1_COLUMNNAME) If EBENE1_COLUMNNAME = "" Then
EBENE1_GRID_RESULT = "No Column configured"
Else
EBENE1_GRID_RESULT = row.Item(EBENE1_COLUMNNAME)
End If
End If End If
Next Next
Case 2 Case 2
@@ -901,7 +905,7 @@ Public Class frmForm_Constructor_Main_2
End If End If
End If End If
End If End If
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Save Data:" & vbNewLine & ex.Message, MsgBoxStyle.Critical) MsgBox("Error in Save Data:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try
@@ -1033,7 +1037,7 @@ Public Class frmForm_Constructor_Main_2
LOAD_DIRECT = ClassDatabase.Execute_Scalar("SELECT LOAD_DIRECT FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = " & CONSTRUCTORID & " AND FORM_ID = " & CURRENT_FORM_ID) LOAD_DIRECT = ClassDatabase.Execute_Scalar("SELECT LOAD_DIRECT FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = " & CONSTRUCTORID & " AND FORM_ID = " & CURRENT_FORM_ID)
CURRENT_CONSTRUCTOR_DETAIL_ID = ClassDatabase.Execute_Scalar("SELECT GUID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = " & CONSTRUCTORID & " AND FORM_ID = " & CURRENT_FORM_ID) CURRENT_CONSTRUCTOR_DETAIL_ID = ClassDatabase.Execute_Scalar("SELECT GUID FROM VWPMO_CONSTRUCTOR_FORMS WHERE CONSTRUCT_ID = " & CONSTRUCTORID & " AND FORM_ID = " & CURRENT_FORM_ID)
POS_ENTITY = ClassDatabase.Execute_Scalar("SELECT POS_ENTITY FROM TBPMO_FORM WHERE GUID = " & CURRENT_FORM_ID) POS_ENTITY = ClassDatabase.Execute_Scalar("SELECT POS_ENTITY FROM TBPMO_FORM WHERE GUID = " & CURRENT_FORM_ID)
If VIEW_ID_RUNTIME <> -1 Then If VIEW_ID_RUNTIME <> -1 Then
GRID_TYPE_ID = VIEW_ID_RUNTIME GRID_TYPE_ID = VIEW_ID_RUNTIME
@@ -1254,7 +1258,7 @@ Public Class frmForm_Constructor_Main_2
Dim Grid_RecordID = Get_Focused_Row_Cell_Value("Record-ID") Dim Grid_RecordID = Get_Focused_Row_Cell_Value("Record-ID")
If Not IsNothing(Grid_RecordID) Then If Not IsNothing(Grid_RecordID) Then
Select ACT_EBENE Select Case ACT_EBENE
Case 1 Case 1
PARENT_RECORDID = Grid_RecordID PARENT_RECORDID = Grid_RecordID
CURRENT_PARENTID = PARENT_RECORDID CURRENT_PARENTID = PARENT_RECORDID
@@ -1383,7 +1387,7 @@ Public Class frmForm_Constructor_Main_2
Catch ex As Exception Catch ex As Exception
MsgBox("Error in LoadGrid_Selection:" & vbNewLine & ex.Message, MsgBoxStyle.Critical) MsgBox("Error in LoadGrid_Selection:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try
End Sub End Sub
Private Sub Check_Record_Changed() Private Sub Check_Record_Changed()
@@ -1603,7 +1607,7 @@ Public Class frmForm_Constructor_Main_2
If CURRENT_FORM_TYPE = 5 Or IS_SINGLE_RECORD = True Then '#### Es sind untergeordnete Entitäten geöffnet#### If CURRENT_FORM_TYPE = 5 Or IS_SINGLE_RECORD = True Then '#### Es sind untergeordnete Entitäten geöffnet####
If LogErrorsOnly = False Then ClassLogger.Add(">> Grid_RecordID: " & Grid_RecordID.ToString, False) If LogErrorsOnly = False Then ClassLogger.Add(">> Grid_RecordID: " & Grid_RecordID.ToString, False)
Dim pID As Integer Dim pID As Integer
Select Case ACT_EBENE '#### Hier muss nun der Parent-Record gewählt werden #### Select Case ACT_EBENE '#### Hier muss nun der Parent-Record gewählt werden ####
@@ -1803,7 +1807,7 @@ Public Class frmForm_Constructor_Main_2
Catch ex As Exception Catch ex As Exception
MsgBox("Error in Load_Pos_Data:" & vbNewLine & ex.Message, MsgBoxStyle.Critical) MsgBox("Error in Load_Pos_Data:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try
End Sub End Sub
Function Get_GridResult(Columnname As String) Function Get_GridResult(Columnname As String)
Dim result = Get_Focused_Row_Cell_Value(Columnname) Dim result = Get_Focused_Row_Cell_Value(Columnname)
@@ -2358,7 +2362,7 @@ Public Class frmForm_Constructor_Main_2
If TCDetails.SelectedTabPage.Text.StartsWith("Wieder") Then If TCDetails.SelectedTabPage.Text.StartsWith("Wieder") Then
Refresh_FollowUps() Refresh_FollowUps()
End If End If
Select Case TCDetails.SelectedTabPageIndex Select Case TCDetails.SelectedTabPageIndex
Case 0 Case 0
'If RECORD_NEEDS_REFRESH = True Then 'If RECORD_NEEDS_REFRESH = True Then
@@ -2369,7 +2373,7 @@ Public Class frmForm_Constructor_Main_2
'Refresh_CreatedChangedRecordByID(CURRENT_RECORD_ID) 'Refresh_CreatedChangedRecordByID(CURRENT_RECORD_ID)
' RECORD_CHANGED = False ' RECORD_CHANGED = False
Case 1 'windream-Dokumente Case 1 'windream-Dokumente
Case 2 Case 2
'Refresh_FollowUps() 'Refresh_FollowUps()