Compare commits
14 Commits
820d09da59
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f35fecfa2 | |||
| 45ca73af35 | |||
| 48f9673472 | |||
|
|
a70f006bb1 | ||
|
|
36e2d97b20 | ||
|
|
6add3760bd | ||
|
|
2a76d515cb | ||
|
|
52c3939ad6 | ||
|
|
268e4d595e | ||
|
|
10f417eb7c | ||
|
|
90868864ab | ||
| e2389321ce | |||
| 8fcb422592 | |||
| b9dbd3c4c3 |
@@ -44,12 +44,15 @@
|
|||||||
<OptionInfer>On</OptionInfer>
|
<OptionInfer>On</OptionInfer>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="DigitalData.Modules.Base">
|
||||||
|
<HintPath>..\..\..\DDModules\Base\bin\Debug\DigitalData.Modules.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Logging, Version=2.5.4.2, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="DigitalData.Modules.Logging, Version=2.5.4.2, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Independentsoft.Email">
|
<Reference Include="DigitalData.Modules.Messaging">
|
||||||
<HintPath>P:\Projekte DIGITAL DATA\DIGITAL DATA - Entwicklung\DLL_Bibliotheken\Email .NET\Bin\Independentsoft.Email.dll</HintPath>
|
<HintPath>..\..\..\DDModules\Messaging\bin\Debug\DigitalData.Modules.Messaging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Interop.WINDREAMLib">
|
<Reference Include="Interop.WINDREAMLib">
|
||||||
<HintPath>P:\Visual Studio Projekte\Bibliotheken\windream\Interop.WINDREAMLib.dll</HintPath>
|
<HintPath>P:\Visual Studio Projekte\Bibliotheken\windream\Interop.WINDREAMLib.dll</HintPath>
|
||||||
@@ -105,7 +108,6 @@
|
|||||||
<Compile Include="clsCURRENT.vb" />
|
<Compile Include="clsCURRENT.vb" />
|
||||||
<Compile Include="clsDatabase.vb" />
|
<Compile Include="clsDatabase.vb" />
|
||||||
<Compile Include="clsDateiverarbeitung.vb" />
|
<Compile Include="clsDateiverarbeitung.vb" />
|
||||||
<Compile Include="clsEmail.vb" />
|
|
||||||
<Compile Include="clsEncryption.vb" />
|
<Compile Include="clsEncryption.vb" />
|
||||||
<Compile Include="clsFileWork.vb" />
|
<Compile Include="clsFileWork.vb" />
|
||||||
<Compile Include="clsJob_Work.vb" />
|
<Compile Include="clsJob_Work.vb" />
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
Public CURRENToWMConnect As Object
|
Public CURRENToWMConnect As Object
|
||||||
Public CURRENToWMSession As Object
|
Public CURRENToWMSession As Object
|
||||||
Public CURRENT_WMDriveLetter As String = "W"
|
Public CURRENT_WMDriveLetter As String = "W"
|
||||||
|
Public CURRENT_TempFiles As List(Of String)
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.7.0.0")>
|
<Assembly: AssemblyVersion("3.0.0.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.7.0.0")>
|
<Assembly: AssemblyFileVersion("3.0.0.0")>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Option Explicit On
|
|||||||
Namespace My
|
Namespace My
|
||||||
|
|
||||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0"), _
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0"), _
|
||||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Partial Friend NotInheritable Class MySettings
|
Partial Friend NotInheritable Class MySettings
|
||||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ Imports System.Text
|
|||||||
Imports System.Text.RegularExpressions
|
Imports System.Text.RegularExpressions
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports Newtonsoft.Json
|
Imports Newtonsoft.Json
|
||||||
|
Imports Newtonsoft.Json.Linq
|
||||||
Imports WINDREAMLib
|
Imports WINDREAMLib
|
||||||
|
|
||||||
Public Class clsDateiverarbeitung
|
Public Class clsDateiverarbeitung
|
||||||
@@ -211,7 +212,7 @@ Public Class clsDateiverarbeitung
|
|||||||
Try
|
Try
|
||||||
Const WMObjectEditModeLifeCycleEdit = "&H00000080"
|
Const WMObjectEditModeLifeCycleEdit = "&H00000080"
|
||||||
Const WMLifeCycleTypeArchivePeriod = 2
|
Const WMLifeCycleTypeArchivePeriod = 2
|
||||||
|
Logger.Debug($"ArchiveDate for WMFile shall be changed: pFromDate [{pFromDate}] pDateOperator [{pDateOperator}]...")
|
||||||
pWMObject.LockFor(WMObjectEditModeLifeCycleEdit)
|
pWMObject.LockFor(WMObjectEditModeLifeCycleEdit)
|
||||||
Dim oLC = pWMObject.aWMLifeCycle()
|
Dim oLC = pWMObject.aWMLifeCycle()
|
||||||
|
|
||||||
@@ -236,6 +237,7 @@ Public Class clsDateiverarbeitung
|
|||||||
Return False
|
Return False
|
||||||
End Select
|
End Select
|
||||||
Dim archBis = DateAdd(oDateIntervall, pIntervall, oDateFrom)
|
Dim archBis = DateAdd(oDateIntervall, pIntervall, oDateFrom)
|
||||||
|
Logger.Debug($"...archBis is [{archBis.ToShortDateString}]!")
|
||||||
'Dim pArchiveDate As String = archBis.ToString("yyyy-MM-dd")
|
'Dim pArchiveDate As String = archBis.ToString("yyyy-MM-dd")
|
||||||
oLC.SetPeriodEndDate(WMLifeCycleTypeArchivePeriod, archBis)
|
oLC.SetPeriodEndDate(WMLifeCycleTypeArchivePeriod, archBis)
|
||||||
|
|
||||||
@@ -699,6 +701,18 @@ Public Class clsDateiverarbeitung
|
|||||||
wdIndexwert = wdIndexwert.ToString.TrimEnd
|
wdIndexwert = wdIndexwert.ToString.TrimEnd
|
||||||
wdIndexwert = wdIndexwert.ToString.TrimStart
|
wdIndexwert = wdIndexwert.ToString.TrimStart
|
||||||
Logger.Debug("indexvalue read is: '" & wdIndexwert & "'")
|
Logger.Debug("indexvalue read is: '" & wdIndexwert & "'")
|
||||||
|
Try
|
||||||
|
Dim oConvertDT As DateTime
|
||||||
|
If DateTime.TryParse(wdIndexwert.ToString, oConvertDT) Then
|
||||||
|
Logger.Debug("indexvalue is datetime - converting to date")
|
||||||
|
Dim myDate As Date = wdIndexwert
|
||||||
|
wdIndexwert = Format(myDate, "yyyy-MM-dd")
|
||||||
|
End If
|
||||||
|
Catch ex As Exception
|
||||||
|
Logger.Warn("clsDateiverarbeitung: Error checking datetime: " & ex.Message)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
_STRING = _STRING.Replace(reg_element.Value, wdIndexwert.ToString)
|
_STRING = _STRING.Replace(reg_element.Value, wdIndexwert.ToString)
|
||||||
Logger.Debug("REGEX_String (" & i & ") " & _STRING)
|
Logger.Debug("REGEX_String (" & i & ") " & _STRING)
|
||||||
i += 1
|
i += 1
|
||||||
|
|||||||
@@ -1,84 +0,0 @@
|
|||||||
|
|
||||||
Imports System
|
|
||||||
Imports Independentsoft.Email
|
|
||||||
Imports Independentsoft.Email.Smtp
|
|
||||||
Imports Independentsoft.Email.Mime
|
|
||||||
Imports DigitalData.Modules.Logging
|
|
||||||
Imports System.Net.Mail
|
|
||||||
Imports System.Net
|
|
||||||
Imports System.Net.Mime
|
|
||||||
|
|
||||||
Public Class clsEmail
|
|
||||||
Dim Logger As DigitalData.Modules.Logging.Logger
|
|
||||||
Private Shared MailAktiv As Boolean = False
|
|
||||||
Sub New(MyLogger As LogConfig)
|
|
||||||
Logger = MyLogger.GetLogger()
|
|
||||||
End Sub
|
|
||||||
Public Function Email_Send(ByVal pMailSubject As String, ByVal pMailBody As String, pMailto As String,
|
|
||||||
pMailfrom As String, pMailSmtp As String, pMailport As Integer, pMailUser As String, pMailPW As String,
|
|
||||||
pAUTH_TYPE As String, Optional pAttment As String = "", Optional pTest As Boolean = False)
|
|
||||||
Try
|
|
||||||
Dim oError As Boolean = False
|
|
||||||
Dim oReceipiants As String()
|
|
||||||
If pMailto.Contains(";") Then
|
|
||||||
oReceipiants = pMailto.Split(";")
|
|
||||||
Else
|
|
||||||
ReDim Preserve oReceipiants(0)
|
|
||||||
oReceipiants(0) = pMailto
|
|
||||||
End If
|
|
||||||
For Each oMailReceipiant As String In oReceipiants
|
|
||||||
Dim sClient = New Net.Mail.SmtpClient(pMailSmtp)
|
|
||||||
Dim mymesssage As New MailMessage
|
|
||||||
sClient.Port = pMailport
|
|
||||||
If pAUTH_TYPE = "SSL" Then
|
|
||||||
sClient.EnableSsl = True
|
|
||||||
Else
|
|
||||||
sClient.EnableSsl = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
sClient.Credentials = New NetworkCredential(pMailUser, pMailPW)
|
|
||||||
sClient.UseDefaultCredentials = False
|
|
||||||
If pTest = True Then
|
|
||||||
mymesssage.Body = $"This is the body (text will be replaced within profile)! <br> mailsmtp: {pMailSmtp} <br> mailport: {pMailport} <br> mailUser: {pMailUser} <br> mailPW: XXXX <br> AUTH_TYPE: {pAUTH_TYPE}"
|
|
||||||
Else
|
|
||||||
mymesssage.Body = pMailBody
|
|
||||||
End If
|
|
||||||
|
|
||||||
'mymesssage.IsBodyHtml = True
|
|
||||||
Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString(mymesssage.Body)
|
|
||||||
htmlView.ContentType = New System.Net.Mime.ContentType("text/html")
|
|
||||||
mymesssage.AlternateViews.Add(htmlView)
|
|
||||||
pAttment = pAttment.Replace("W:\", "\\windream\objects\")
|
|
||||||
If pAttment <> String.Empty Then
|
|
||||||
If System.IO.File.Exists(pAttment) Then
|
|
||||||
Logger.Debug($"working on attachment {pAttment.ToString}...")
|
|
||||||
Dim oAttachment As New System.Net.Mail.Attachment(pAttment)
|
|
||||||
mymesssage.Attachments.Add(oAttachment)
|
|
||||||
Else
|
|
||||||
Logger.Warn($"Attachment {pAttment.ToString} is not existing - Mail won't be send!")
|
|
||||||
oError = True
|
|
||||||
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
mymesssage.From = New MailAddress(pMailfrom)
|
|
||||||
mymesssage.Subject = pMailSubject
|
|
||||||
mymesssage.To.Add(New MailAddress(oMailReceipiant))
|
|
||||||
sClient.Send(mymesssage)
|
|
||||||
Logger.Info($"Email successfully send to: [{oMailReceipiant}]!")
|
|
||||||
Logger.Debug($"Email successfully send to: [{oMailReceipiant}]!")
|
|
||||||
Next
|
|
||||||
If oError = False Then
|
|
||||||
Return True
|
|
||||||
Else
|
|
||||||
Return False
|
|
||||||
End If
|
|
||||||
|
|
||||||
Catch ex As Exception
|
|
||||||
Logger.Error(ex)
|
|
||||||
Return False
|
|
||||||
End Try
|
|
||||||
|
|
||||||
End Function
|
|
||||||
End Class
|
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
|
Imports DigitalData.Modules.Messaging
|
||||||
|
Imports DigitalData.Modules.Messaging.Mail
|
||||||
|
|
||||||
Public Class clsJob_Work
|
Public Class clsJob_Work
|
||||||
Dim Logger As Logger
|
Dim Logger As Logger
|
||||||
Private MyLogger As LogConfig
|
Private MyLogger As LogConfig
|
||||||
Private _mail As clsEmail
|
Private _mail As MailSender
|
||||||
Public Sub New(MyLoggerConf As LogConfig, _email As clsEmail)
|
Public Sub New(MyLoggerConf As LogConfig, _email As MailSender)
|
||||||
Logger = MyLoggerConf.GetLogger()
|
Logger = MyLoggerConf.GetLogger()
|
||||||
MyLogger = MyLoggerConf
|
MyLogger = MyLoggerConf
|
||||||
_mail = _email
|
_mail = _email
|
||||||
@@ -44,11 +47,26 @@ Public Class clsJob_Work
|
|||||||
Logger.Warn("PWPlain is Nothing - Could not decrypt passwort 44")
|
Logger.Warn("PWPlain is Nothing - Could not decrypt passwort 44")
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
If _mail.Email_Send(Email_subject, Email_Body, Email_receipiants, oMAILFROM, oMAILSMTP, oMAIL_PORT, oMAIL_USER, oMAIL_USER_PW, oMAIL_AUTH_TYPE, Attachment_Filename) = True Then
|
Dim oSendto As New List(Of String)
|
||||||
Return True
|
Dim oSplit = Email_receipiants.Split(";")
|
||||||
Else
|
For Each oMailAdress In oSplit
|
||||||
Logger.Warn("Email_Send_Independentsoft was not successfull!")
|
oSendto.Add(oMailAdress)
|
||||||
Return False
|
Next
|
||||||
|
|
||||||
|
Dim oAttMt As New List(Of String)
|
||||||
|
If Attachment_Filename <> String.Empty Then
|
||||||
|
oAttMt.Add(Attachment_Filename)
|
||||||
|
End If
|
||||||
|
Dim oSession = _mail.Connect(oMAILSMTP, oMAIL_PORT, oMAIL_USER, oPWPlain, oMAIL_AUTH_TYPE)
|
||||||
|
If oSession.Connected = True Then
|
||||||
|
Logger.Info($"MAIL: Connection to {oMAILSMTP} successfull!")
|
||||||
|
If _mail.SendMail(oSendto, oMAILFROM, Email_subject, Email_Body, Now, oAttMt, 0) = True Then
|
||||||
|
Return True
|
||||||
|
|
||||||
|
Else
|
||||||
|
Logger.Warn("ConnectToServer was not successfull!")
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Logger.Error(ex)
|
Logger.Error(ex)
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||||
<package id="NLog" version="5.0.5" targetFramework="net461" />
|
<package id="NLog" version="5.0.5" targetFramework="net462" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<section name="DDWDResultHandler.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
<section name="DDWDResultHandler.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
</sectionGroup>
|
</sectionGroup>
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
</configSections>
|
</configSections>
|
||||||
<connectionStrings/>
|
<connectionStrings />
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||||
</startup>
|
</startup>
|
||||||
<applicationSettings>
|
<applicationSettings>
|
||||||
<DDWDResultHandler.My.MySettings>
|
<DDWDResultHandler.My.MySettings>
|
||||||
@@ -27,23 +27,23 @@
|
|||||||
<entityFramework>
|
<entityFramework>
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter value="v11.0"/>
|
<parameter value="v11.0" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</defaultConnectionFactory>
|
</defaultConnectionFactory>
|
||||||
<providers>
|
<providers>
|
||||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
|
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||||
</providers>
|
</providers>
|
||||||
</entityFramework>
|
</entityFramework>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
|
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral"/>
|
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
|||||||
@@ -167,10 +167,21 @@ Public Class DDWDResultHandler
|
|||||||
_PROFIL_ID = CInt(DR.Item("GUID"))
|
_PROFIL_ID = CInt(DR.Item("GUID"))
|
||||||
_profil = New clsProfil(MyLogger, _PROFIL_ID)
|
_profil = New clsProfil(MyLogger, _PROFIL_ID)
|
||||||
'Und nun das Profil durchlaufen
|
'Und nun das Profil durchlaufen
|
||||||
Dim initresult = _profil.Init(_PROFIL_ID)
|
Dim initresult = _profil.Init(_PROFIL_ID, False)
|
||||||
If initresult = True Then
|
If initresult = True Then
|
||||||
'##### Profildurchlauf ########
|
'##### Profildurchlauf ########
|
||||||
_profil.Profil_Durchlauf(False)
|
_profil.Profil_Durchlauf(False)
|
||||||
|
For Each oFile As String In clsCURRENT.TEMP_FILES
|
||||||
|
If File.Exists(oFile) Then
|
||||||
|
Try
|
||||||
|
File.Delete(oFile)
|
||||||
|
Catch ex As Exception
|
||||||
|
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
ElseIf initresult = False Then
|
ElseIf initresult = False Then
|
||||||
Logger.Warn("clsProfil konnte nicht initialisiert werden")
|
Logger.Warn("clsProfil konnte nicht initialisiert werden")
|
||||||
notcompleted = True
|
notcompleted = True
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.1.1.0")>
|
<Assembly: AssemblyVersion("2.4.0.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.1.0.0")>
|
<Assembly: AssemblyFileVersion("2.4.0.0")>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Option Explicit On
|
|||||||
Namespace My
|
Namespace My
|
||||||
|
|
||||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0"), _
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0"), _
|
||||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Partial Friend NotInheritable Class MySettings
|
Partial Friend NotInheritable Class MySettings
|
||||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|||||||
@@ -52,8 +52,7 @@
|
|||||||
<OptionInfer>On</OptionInfer>
|
<OptionInfer>On</OptionInfer>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="DigitalData.Modules.Logging, Version=2.5.4.2, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="DigitalData.Modules.Logging">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="EntityFramework" version="6.4.4" targetFramework="net461" />
|
<package id="EntityFramework" version="6.4.4" targetFramework="net461" />
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||||
<package id="NLog" version="5.0.5" targetFramework="net461" />
|
<package id="NLog" version="5.0.5" targetFramework="net462" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -1,25 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<section name="ResultHandler_Konfig.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
<section name="ResultHandler_Konfig.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
</sectionGroup>
|
</sectionGroup>
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
</configSections>
|
</configSections>
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="ResultHandler_Konfig.My.MySettings.SQLSERVER_CS" connectionString="Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd" providerName="System.Data.SqlClient"/>
|
<add name="ResultHandler_Konfig.My.MySettings.SQLSERVER_CS" connectionString="Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd"
|
||||||
|
providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||||
</startup>
|
</startup>
|
||||||
<userSettings>
|
<userSettings>
|
||||||
<ResultHandler_Konfig.My.MySettings>
|
<ResultHandler_Konfig.My.MySettings>
|
||||||
<setting name="BNSAPI_HOST" serializeAs="String">
|
<setting name="BNSAPI_HOST" serializeAs="String">
|
||||||
<value/>
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="EmailTestReceipiant" serializeAs="String">
|
<setting name="EmailTestReceipiant" serializeAs="String">
|
||||||
<value/>
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="Debug_Active" serializeAs="String">
|
<setting name="Debug_Active" serializeAs="String">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
@@ -35,32 +36,32 @@
|
|||||||
within the resulting "app.config" or "web.config" file.
|
within the resulting "app.config" or "web.config" file.
|
||||||
-->
|
-->
|
||||||
<DbProviderFactories>
|
<DbProviderFactories>
|
||||||
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
|
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
|
||||||
<remove invariant="System.Data.SQLite"/>
|
<remove invariant="System.Data.SQLite" />
|
||||||
<remove invariant="System.Data.SQLite.EF6"/>
|
<remove invariant="System.Data.SQLite.EF6" />
|
||||||
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6"/>
|
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
|
||||||
</DbProviderFactories>
|
</DbProviderFactories>
|
||||||
</system.data>
|
</system.data>
|
||||||
<entityFramework>
|
<entityFramework>
|
||||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter value="v11.0"/>
|
<parameter value="v11.0" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</defaultConnectionFactory>
|
</defaultConnectionFactory>
|
||||||
<providers>
|
<providers>
|
||||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
|
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||||
</providers>
|
</providers>
|
||||||
</entityFramework>
|
</entityFramework>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
|
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral"/>
|
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
|
|||||||
@@ -54,17 +54,6 @@ Namespace My
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
||||||
Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
|
|
||||||
Global.System.Configuration.DefaultSettingValueAttribute("Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Secu"& _
|
|
||||||
"rity Info=True;User ID=sa;Password=dd")> _
|
|
||||||
Public ReadOnly Property SQLSERVER_CS() As String
|
|
||||||
Get
|
|
||||||
Return CType(Me("SQLSERVER_CS"),String)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
Global.System.Configuration.DefaultSettingValueAttribute("")> _
|
Global.System.Configuration.DefaultSettingValueAttribute("")> _
|
||||||
@@ -100,6 +89,17 @@ Namespace My
|
|||||||
Me("Debug_Active") = value
|
Me("Debug_Active") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
|
||||||
|
Global.System.Configuration.DefaultSettingValueAttribute("Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Secu"& _
|
||||||
|
"rity Info=True;User ID=sa;Password=dd")> _
|
||||||
|
Public ReadOnly Property SQLSERVER_CS() As String
|
||||||
|
Get
|
||||||
|
Return CType(Me("SQLSERVER_CS"),String)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
End Class
|
End Class
|
||||||
End Namespace
|
End Namespace
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,6 @@
|
|||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
|
||||||
<Profiles />
|
<Profiles />
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Name="SQLSERVER_CS" Type="(Connection string)" Scope="Application">
|
|
||||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
|
||||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<ConnectionString>Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd</ConnectionString>
|
|
||||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
|
||||||
</SerializableConnectionString></DesignTimeValue>
|
|
||||||
<Value Profile="(Default)">Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="BNSAPI_HOST" Type="System.String" Scope="User">
|
<Setting Name="BNSAPI_HOST" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
@@ -19,5 +11,13 @@
|
|||||||
<Setting Name="Debug_Active" Type="System.Boolean" Scope="User">
|
<Setting Name="Debug_Active" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">False</Value>
|
<Value Profile="(Default)">False</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="SQLSERVER_CS" Type="(Connection string)" Scope="Application">
|
||||||
|
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||||
|
<SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<ConnectionString>Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd</ConnectionString>
|
||||||
|
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||||
|
</SerializableConnectionString></DesignTimeValue>
|
||||||
|
<Value Profile="(Default)">Data Source=SDD-VMP04-SQL17\DD_DEVELOP01;Initial Catalog=DD_ECM_TEST;Persist Security Info=True;User ID=sa;Password=dd</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||||
|
|||||||
@@ -68,11 +68,15 @@
|
|||||||
<Reference Include="DevExpress.XtraGrid.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
<Reference Include="DevExpress.XtraGrid.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||||
<Reference Include="DevExpress.XtraLayout.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
<Reference Include="DevExpress.XtraLayout.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
<Reference Include="DevExpress.XtraPrinting.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
<Reference Include="DevExpress.XtraPrinting.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DigitalData.Modules.Base, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\..\DDModules\Base\bin\Debug\DigitalData.Modules.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Logging, Version=2.5.4.2, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="DigitalData.Modules.Logging, Version=2.5.4.2, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
<HintPath>..\..\..\DDModules\Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Messaging, Version=1.7.3.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="DigitalData.Modules.Messaging, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\..\DDModules\Messaging\bin\Debug\DigitalData.Modules.Messaging.dll</HintPath>
|
<HintPath>..\..\..\DDModules\Messaging\bin\Debug\DigitalData.Modules.Messaging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -98,6 +102,9 @@
|
|||||||
<HintPath>P:\Visual Studio Projekte\Bibliotheken\windream\Interop.WMOTOOLLib.dll</HintPath>
|
<HintPath>P:\Visual Studio Projekte\Bibliotheken\windream\Interop.WMOTOOLLib.dll</HintPath>
|
||||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Mail">
|
||||||
|
<HintPath>P:\Visual Studio Projekte\Bibliotheken\Limilabs\Mail.dll\Mail.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ Imports DigitalData.Modules.Messaging
|
|||||||
Imports DD_WMResulthandler
|
Imports DD_WMResulthandler
|
||||||
Imports System.Net.Mail
|
Imports System.Net.Mail
|
||||||
Imports System.Net
|
Imports System.Net
|
||||||
|
Imports DigitalData.Modules.Messaging.Mail
|
||||||
|
|
||||||
Public Class frmMain
|
Public Class frmMain
|
||||||
Private _windream As clsWindream_allgemein
|
Private _windream As clsWindream_allgemein
|
||||||
@@ -732,7 +733,7 @@ Public Class frmMain
|
|||||||
For Each DR As DataRow In DT.Rows
|
For Each DR As DataRow In DT.Rows
|
||||||
clsCURRENT._PROFIL_ID = CInt(DR.Item("GUID"))
|
clsCURRENT._PROFIL_ID = CInt(DR.Item("GUID"))
|
||||||
'Und nun das Profil durchlaufen
|
'Und nun das Profil durchlaufen
|
||||||
Dim initresult = _profil.Init(clsCURRENT._PROFIL_ID)
|
Dim initresult = _profil.Init(clsCURRENT._PROFIL_ID, True)
|
||||||
If initresult = True Then
|
If initresult = True Then
|
||||||
_profil.Profil_Durchlauf(True)
|
_profil.Profil_Durchlauf(True)
|
||||||
ElseIf initresult = False Then
|
ElseIf initresult = False Then
|
||||||
@@ -910,19 +911,39 @@ Public Class frmMain
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub btnsendtestmail_Click(sender As Object, e As EventArgs) Handles btnsendtestmail.Click
|
Private Sub btnsendtestmail_Click(sender As Object, e As EventArgs) Handles btnsendtestmail.Click
|
||||||
Dim _ss2email As New Email(MyLogger)
|
' Dim _ss2email As New Email(MyLogger)
|
||||||
|
Dim oSender As New MailSender(MyLogger)
|
||||||
|
|
||||||
If txtTestmailTo.Text <> String.Empty Then
|
If txtTestmailTo.Text <> String.Empty Then
|
||||||
My.Settings.Save()
|
My.Settings.Save()
|
||||||
Dim wrapper As New clsEncryption("!35452didalog=")
|
Dim wrapper As New clsEncryption("!35452didalog=")
|
||||||
|
|
||||||
Dim PWPlain = wrapper.DecryptData(EMAIL_PWTextBox.Text)
|
Dim PWPlain = wrapper.DecryptData(EMAIL_PWTextBox.Text)
|
||||||
If _ss2email.NewEmail(txtTestmailTo.Text, "Testmail from GUI WMResultHandler", "This is the body (text will be replaced within profile)", EMAIL_FROMTextBox.Text, EMAIL_SMTPTextBox.Text,
|
Dim oSession = oSender.Connect(EMAIL_SMTPTextBox.Text, PORTTextBox.Text, EMAIL_USERTextBox.Text, PWPlain, AUTH_TYPEComboBox.Text)
|
||||||
PORTTextBox.Text, EMAIL_USERTextBox.Text, PWPlain, AUTH_TYPEComboBox.Text, "GUI WMRH - Test") = True Then
|
If oSession.Connected = True Then
|
||||||
MsgBox("Email(s) has/have been sent successfully.", MsgBoxStyle.Information)
|
Dim oSendto As New List(Of String)
|
||||||
|
oSendto.Add(txtTestmailTo.Text)
|
||||||
|
Dim oAttMt As New List(Of String)
|
||||||
|
If txtAttachment.Text <> String.Empty Then
|
||||||
|
oAttMt.Add(txtAttachment.Text)
|
||||||
|
End If
|
||||||
|
If oSender.SendMail(oSendto, EMAIL_FROMTextBox.Text, "Testmail from GUI WMResultHandler", "TEST", Now, oAttMt, 1) = True Then
|
||||||
|
MsgBox("Email has been sent successfully.", MsgBoxStyle.Information)
|
||||||
|
Else
|
||||||
|
MsgBox("Could not send the testmail. Please check the log.", MsgBoxStyle.Exclamation)
|
||||||
|
End If
|
||||||
|
oSender.Disconnect()
|
||||||
Else
|
Else
|
||||||
MsgBox("Could not send the testmail. Please check the log.", MsgBoxStyle.Exclamation)
|
MsgBox("Could not connect to server. Please check the log.", MsgBoxStyle.Exclamation)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
' Dim oSMTP As SmtpClient = llmail.New_SMTPConnection(Nothing, EMAIL_SMTPTextBox.Text, EMAIL_USERTextBox.Text, PWPlain, AUTH_TYPEComboBox.Text, PORTTextBox.Text)
|
||||||
|
'If _ss2email.NewEmail(txtTestmailTo.Text, "Testmail from GUI WMResultHandler", "This is the body (text will be replaced within profile)", EMAIL_FROMTextBox.Text, EMAIL_SMTPTextBox.Text,
|
||||||
|
' PORTTextBox.Text, EMAIL_USERTextBox.Text, PWPlain, AUTH_TYPEComboBox.Text, "GUI WMRH - Test") = True Then
|
||||||
|
' MsgBox("Email(s) has/have been sent successfully.", MsgBoxStyle.Information)
|
||||||
|
' Else
|
||||||
|
' MsgBox("Could not send the testmail. Please check the log.", MsgBoxStyle.Exclamation)
|
||||||
|
' End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="EntityFramework" version="6.4.4" targetFramework="net461" />
|
<package id="EntityFramework" version="6.4.4" targetFramework="net461" />
|
||||||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
|
||||||
<package id="NLog" version="5.0.5" targetFramework="net461" />
|
<package id="NLog" version="5.0.5" targetFramework="net462" />
|
||||||
<package id="System.Data.SQLite" version="1.0.94.1" targetFramework="net461" />
|
<package id="System.Data.SQLite" version="1.0.94.1" targetFramework="net461" />
|
||||||
</packages>
|
</packages>
|
||||||
Reference in New Issue
Block a user