Update Modules
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
Imports DevExpress.XtraEditors
|
||||
Imports DevExpress.XtraGrid.Views.Grid
|
||||
Imports DigitalData.GUIs.Common
|
||||
Imports DigitalData.Modules.Base
|
||||
Imports DigitalData.Modules.Config
|
||||
Imports DigitalData.Modules.Database
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports DigitalData.Modules.Language
|
||||
Imports MultiTool.Common.Templates
|
||||
Imports MultiTool.Common.Exceptions
|
||||
Imports MultiTool.Common.Winline
|
||||
@@ -21,7 +20,7 @@ Public Class frmExportMain
|
||||
Private WebService As WebServiceData
|
||||
Private Winline As WinlineData
|
||||
Private GridBuilder As GridBuilder
|
||||
Private FileEx As DigitalData.Modules.Filesystem.File
|
||||
Private FileEx As FilesystemEx
|
||||
|
||||
Public Sub New(pLogConfig As LogConfig, pConfigManager As ConfigManager(Of Common.Config), pTemplate As Template)
|
||||
' Dieser Aufruf ist für den Designer erforderlich.
|
||||
@@ -50,7 +49,7 @@ Public Class frmExportMain
|
||||
WithClipboardHandler()
|
||||
|
||||
Winline = My.Winline
|
||||
FileEx = New DigitalData.Modules.Filesystem.File(LogConfig)
|
||||
FileEx = New FilesystemEx(LogConfig)
|
||||
WebService = New WebServiceData(LogConfig, Database, Winline, My.GeneralConfiguration.Webservice, My.GeneralConfiguration, My.FilterConfiguration)
|
||||
AddHandler WebService.WebServiceProgress, AddressOf WebService_Progress
|
||||
|
||||
@@ -181,7 +180,7 @@ Public Class frmExportMain
|
||||
dateDocDateTo.DoValidate()
|
||||
|
||||
Dim oMandator = lookupMandator.EditValue
|
||||
Dim oYear = Utils.NotNull(comboYear.EditValue, 0)
|
||||
Dim oYear = ObjectEx.NotNull(comboYear.EditValue, 0)
|
||||
Dim oAccount = lookupAccount.EditValue
|
||||
Dim oKindsAsObjects As List(Of Object) = comboDocumentKind.EditValue
|
||||
Dim oKinds As List(Of DocumentKind) = oKindsAsObjects.Cast(Of DocumentKind).ToList()
|
||||
@@ -189,8 +188,8 @@ Public Class frmExportMain
|
||||
Dim oDateFrom = dateDocDateFrom.EditValue
|
||||
Dim oDateTo = dateDocDateTo.EditValue
|
||||
Dim oShowExported = chkShowExported.Checked
|
||||
Dim oDocNumberFrom = Utils.NotNull(txtDocumentFrom.EditValue, String.Empty)
|
||||
Dim oDocNumberTo = Utils.NotNull(txtDocumentTo.EditValue, String.Empty)
|
||||
Dim oDocNumberFrom = ObjectEx.NotNull(txtDocumentFrom.EditValue, String.Empty)
|
||||
Dim oDocNumberTo = ObjectEx.NotNull(txtDocumentTo.EditValue, String.Empty)
|
||||
|
||||
Dim oDocType As WinlineData.DocumentType = MapDocumentTypeToEnum(Of WinlineData.DocumentType)(comboDocumentType.EditValue)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ Imports DevExpress.XtraGrid
|
||||
Imports DevExpress.XtraGrid.Views.Grid
|
||||
Imports DevExpress.XtraReports.UI
|
||||
Imports DigitalData.GUIs.Common
|
||||
Imports DigitalData.Modules.Base
|
||||
Imports DigitalData.Modules.Config
|
||||
Imports DigitalData.Modules.Database
|
||||
Imports DigitalData.Modules.Logging
|
||||
@@ -13,7 +14,6 @@ Imports MultiTool.Common.Templates
|
||||
Imports MultiTool.Common.Winline
|
||||
Imports MultiTool.Common.Winline.Entities
|
||||
Imports MultiTool.Common.Constants
|
||||
Imports MultiTool.Common.Exceptions
|
||||
|
||||
Public Class frmImportMain
|
||||
Public LogConfig As LogConfig
|
||||
@@ -22,7 +22,7 @@ Public Class frmImportMain
|
||||
Private Logger As Logger
|
||||
Private Database As MSSQLServer
|
||||
Private Winline As WinlineData
|
||||
Private FileEx As DigitalData.Modules.Filesystem.File
|
||||
Private FileEx As FilesystemEx
|
||||
Private WebService As WebServiceData
|
||||
Private DocumentLoader As Documents.DocumentLoader
|
||||
Private DocumentCleaner As Documents.DocumentCleaner
|
||||
@@ -73,7 +73,7 @@ Public Class frmImportMain
|
||||
GridViewFiles.OptionsView.ShowAutoFilterRow = False
|
||||
|
||||
Winline = My.Winline
|
||||
FileEx = New DigitalData.Modules.Filesystem.File(LogConfig)
|
||||
FileEx = New FilesystemEx(LogConfig)
|
||||
WebService = New WebServiceData(LogConfig, Database, Winline, My.GeneralConfiguration.Webservice, My.GeneralConfiguration, My.FilterConfiguration)
|
||||
AddHandler WebService.WebServiceProgress, AddressOf WebService_Progress
|
||||
|
||||
@@ -707,10 +707,10 @@ Public Class frmImportMain
|
||||
|
||||
Dim oDocument As Document = GridViewFiles.GetRow(GridViewFiles.FocusedRowHandle)
|
||||
Dim oNewDocument = Await DocumentLoader.LoadFile(oDocument.File, CurrentTemplate, lookupMandator.EditValue)
|
||||
Dim oIndex = DocumentLoader.Files.IndexOf(oDocument)
|
||||
DocumentLoader.Files.Item(oIndex) = oNewDocument
|
||||
Dim oIndex = DocumentLoader.Files.IndexOf(oDocument)
|
||||
DocumentLoader.Files.Item(oIndex) = oNewDocument
|
||||
|
||||
LoadDocument(oNewDocument)
|
||||
LoadDocument(oNewDocument)
|
||||
|
||||
Catch ex As Exception
|
||||
FormHelper.ShowError(ex, My.Resources.frmImportMainExtra.Neuladen_des_Dokuments)
|
||||
|
||||
Reference in New Issue
Block a user