MS
This commit is contained in:
@@ -39,16 +39,18 @@ Public Class ClassWindreamDocGrid
|
||||
End Function
|
||||
Public Shared Sub GetDocItems(gridView As GridView)
|
||||
If Init_Table() = True Then
|
||||
If gridView.SelectedRowsCount > 0 Then
|
||||
If gridView.SelectedRowsCount > 1 Then
|
||||
DT_RESULTFILES.Clear()
|
||||
For Each row In gridView.GetSelectedRows
|
||||
Dim newRow As DataRow = DT_RESULTFILES.NewRow()
|
||||
Try
|
||||
|
||||
Dim DOC_ID = gridView.GetRowCellValue(row, "DocID")
|
||||
SELECTED_DOC_ID = DOC_ID
|
||||
newRow("DOC_ID") = gridView.GetRowCellValue(row, "DocID")
|
||||
Catch ex As Exception
|
||||
newRow("DOC_ID") = 0
|
||||
SELECTED_DOC_ID = 0
|
||||
End Try
|
||||
Try
|
||||
SELECTED_DOC_PATH = gridView.GetRowCellValue(row, "FULLPATH")
|
||||
@@ -86,6 +88,7 @@ Public Class ClassWindreamDocGrid
|
||||
newRow("DOC_ID") = gridView.GetFocusedRowCellValue(gridView.Columns("DocID"))
|
||||
Catch ex As Exception
|
||||
newRow("DOC_ID") = 0
|
||||
SELECTED_DOC_ID = 0
|
||||
End Try
|
||||
Try
|
||||
SELECTED_DOC_PATH = gridView.GetFocusedRowCellValue(gridView.Columns("FULLPATH"))
|
||||
@@ -115,44 +118,7 @@ Public Class ClassWindreamDocGrid
|
||||
DT_RESULTFILES.Rows.Add(newRow)
|
||||
DT_RESULTFILES.AcceptChanges()
|
||||
End If
|
||||
|
||||
End If
|
||||
'If gridView.SelectedRowsCount = 1 Then
|
||||
' Try
|
||||
' RESULT_DOC_PATH = gridView.GetFocusedRowCellValue(gridView.Columns("FULLPATH"))
|
||||
' Catch ex As Exception
|
||||
' ClassLogger.Add(">> Attention: Could not set DocVariable RESULT_DOC_PATH: " & ex.Message, False)
|
||||
' RESULT_DOC_PATH = Nothing
|
||||
' End Try
|
||||
' Try
|
||||
' RESULT_OBJECTTYPE = gridView.GetFocusedRowCellValue(gridView.Columns("OBJECTTYPE"))
|
||||
' Catch ex As Exception
|
||||
' ClassLogger.Add(">> Attention: Could not set DocVariable RESULT_OBJECTTYPE: " & ex.Message, False)
|
||||
' RESULT_OBJECTTYPE = ""
|
||||
' End Try
|
||||
' Try
|
||||
' RESULT_INWORK = gridView.GetFocusedRowCellValue(gridView.Columns("in work?"))
|
||||
' Catch ex As Exception
|
||||
' ClassLogger.Add(">> Attention: Could not set DocVariable RESULT_INWORK: " & ex.Message, False)
|
||||
' RESULT_INWORK = ""
|
||||
' End Try
|
||||
' Try
|
||||
' RESULT_DOC_ID = gridView.GetFocusedRowCellValue(gridView.Columns("DocID"))
|
||||
' Catch ex As Exception
|
||||
' ClassLogger.Add(">> Attention: Could not set DocVariable RESULT_DOC_ID: " & ex.Message, False)
|
||||
' RESULT_DOC_ID = Nothing
|
||||
' End Try
|
||||
' Try
|
||||
' RESULT_DISPLAYNAME = gridView.GetFocusedRowCellValue(gridView.Columns("Displayname"))
|
||||
' Catch ex As Exception
|
||||
' ClassLogger.Add(">> Attention: Could not set DocVariable RESULT_DISPLAYNAME: " & ex.Message, False)
|
||||
' RESULT_DISPLAYNAME = ""
|
||||
' End Try
|
||||
'Else
|
||||
|
||||
|
||||
'End If
|
||||
|
||||
End Sub
|
||||
|
||||
Public Shared Sub FillColumns(gridView As GridView, DT_RESULT As DataTable, DT_WINDREAM_RESULTLIST As DataTable, DT_DOCRESULT_DROPDOWN_ITEMS As DataTable, DropdownValueChangedHandler As EventHandler, DatepickerValueChangedHandler As EventHandler, TextValueChangedHandler As EventHandler)
|
||||
@@ -209,7 +175,6 @@ Public Class ClassWindreamDocGrid
|
||||
gridView.Columns.Item("FULLPATH").Visible = False
|
||||
gridView.Columns.Item("OBJECTTYPE").Visible = False
|
||||
gridView.Columns.Item("DocID").Visible = False
|
||||
|
||||
Dim created, changed As String
|
||||
If USER_LANGUAGE <> "de-DE" Then
|
||||
changed = "Changed"
|
||||
@@ -299,7 +264,7 @@ Public Class ClassWindreamDocGrid
|
||||
col.ColumnEdit = dateedit
|
||||
col.OptionsColumn.AllowEdit = True
|
||||
col.DisplayFormat.FormatType = FormatType.DateTime
|
||||
col.DisplayFormat.FormatString = CURRENT_DATE_FORMAT & " HH:MM:ss"
|
||||
col.DisplayFormat.FormatString = CURRENT_DATE_FORMAT '& " HH:MM:ss"
|
||||
End If
|
||||
|
||||
AddHandler dateedit.EditValueChanged, _datepickerValueChangedHandler
|
||||
|
||||
Reference in New Issue
Block a user