MS Push
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
Imports DD_LIB_Standards
|
||||
Imports System.IO
|
||||
Imports DD_LIB_Standards
|
||||
Imports DevExpress.XtraPrinting
|
||||
|
||||
Public Class frmDoc_Links
|
||||
Private Sub frmDoc_DocLinks_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
Try
|
||||
@@ -33,22 +36,24 @@ Public Class frmDoc_Links
|
||||
Try
|
||||
grvwGrid.Columns.Item("DocID").Visible = False
|
||||
grvwGrid.Columns.Item("RecordID").Visible = False
|
||||
grvwGrid.Columns.Item("FULL_FILENAME").Visible = False
|
||||
'grvwGrid.Columns.Item("FULL_FILENAME").Visible = False
|
||||
Try
|
||||
grvwGrid.Columns.Item("VALUE").Visible = False
|
||||
Catch ex1 As Exception
|
||||
LOGGER.Warn("Column VALUE not part of VWPMO_CUST_DOC_OBJECT_LINKS" & ex1.Message)
|
||||
End Try
|
||||
grvwGrid.OptionsView.ColumnAutoWidth = False
|
||||
grvwGrid.BestFitColumns()
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
End Try
|
||||
|
||||
GridControlRecords.RefreshDataSource()
|
||||
If DT_RECORDS.Rows.Count > 10000 Then
|
||||
BarButtonItem2.Enabled = False
|
||||
Else
|
||||
BarButtonItem2.Enabled = True
|
||||
End If
|
||||
'If DT_RECORDS.Rows.Count > 10000 Then
|
||||
' BarButtonItem2.Enabled = False
|
||||
'Else
|
||||
' BarButtonItem2.Enabled = True
|
||||
'End If
|
||||
Else
|
||||
MsgBox($"Please check Your link-object-relation: {oSql}", MsgBoxStyle.Exclamation)
|
||||
End If
|
||||
@@ -68,13 +73,13 @@ Public Class frmDoc_Links
|
||||
Exit Sub
|
||||
End If
|
||||
LOGGER.Debug($"RecordLink will be removed Record: {oRECORD_ID} - DocID: {oDocID} ")
|
||||
Try
|
||||
If ClassFileResult.Delete_ResultFile(oDocID, oRECORD_ID, 0) = True Then
|
||||
ClassHelper.InsertEssential_Log(oDocID, "DOC-ID", $"RECORD LINK {oRECORD_ID} REMOVED FROM DOC-SEARCH")
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error in Removing DocRecord-Link", ex.Message, ex.StackTrace)
|
||||
End Try
|
||||
Try
|
||||
If ClassFileResult.Delete_ResultFile(oDocID, oRECORD_ID, 0) = True Then
|
||||
ClassHelper.InsertEssential_Log(oDocID, "DOC-ID", $"RECORD LINK {oRECORD_ID} REMOVED FROM DOC-SEARCH")
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "Unexpected Error in Removing DocRecord-Link", ex.Message, ex.StackTrace)
|
||||
End Try
|
||||
|
||||
Refresh_Grid_Data()
|
||||
End Sub
|
||||
@@ -86,8 +91,15 @@ Public Class frmDoc_Links
|
||||
saveFileDialogDocSearchResult.Title = "Export to Excel:"
|
||||
saveFileDialogDocSearchResult.ShowDialog()
|
||||
If saveFileDialogDocSearchResult.FileName <> "" Then
|
||||
Dim oOptions As XlsxExportOptionsEx = New XlsxExportOptionsEx
|
||||
oOptions.ShowGridLines = True
|
||||
oOptions.AllowSortingAndFiltering = DevExpress.Utils.DefaultBoolean.True
|
||||
oOptions.ExportType = DevExpress.Export.ExportType.DataAware
|
||||
oOptions.ExportMode = XlsxExportMode.SingleFile
|
||||
oOptions.AllowFixedColumnHeaderPanel = DevExpress.Utils.DefaultBoolean.True
|
||||
|
||||
Cursor = Cursors.WaitCursor
|
||||
GridControlRecords.MainView.ExportToXlsx(saveFileDialogDocSearchResult.FileName)
|
||||
GridControlRecords.MainView.ExportToXlsx(saveFileDialogDocSearchResult.FileName, oOptions)
|
||||
Dim result As MsgBoxResult
|
||||
Dim msg = String.Format("Datei wurde erstellt! Wollen Sie diese nun öffnen?")
|
||||
|
||||
@@ -105,4 +117,25 @@ Public Class frmDoc_Links
|
||||
End Try
|
||||
Cursor = Cursors.Default
|
||||
End Sub
|
||||
|
||||
Private Sub frmDoc_Links_MaximizedBoundsChanged(sender As Object, e As EventArgs) Handles MyBase.MaximizedBoundsChanged
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub frmDoc_Links_SizeChanged(sender As Object, e As EventArgs) Handles Me.SizeChanged
|
||||
Try
|
||||
grvwGrid.OptionsView.ColumnAutoWidth = False
|
||||
grvwGrid.BestFitColumns()
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub OrdnerÖffnenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles OrdnerÖffnenToolStripMenuItem.Click
|
||||
Dim oPAth = grvwGrid.GetFocusedRowCellValue(grvwGrid.Columns("FULL_FILENAME"))
|
||||
Dim oDocID = grvwGrid.GetFocusedRowCellValue(grvwGrid.Columns("DocID"))
|
||||
For Each row As DataRow In ClassWindreamDocGrid.DT_RESULTFILES.Rows
|
||||
ClassHelper.Open_Folder(oPAth, oDocID)
|
||||
Next
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user