update 20241210

This commit is contained in:
Stefan Hutter
2024-12-10 20:36:02 +01:00
parent 8ade484063
commit 2c42687a40
191 changed files with 71919 additions and 482 deletions
+27 -3
View File
@@ -2,10 +2,14 @@
using API_NetFramework.Models;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Cryptography;
using System.Web.Http;
using System.Web.Management;
namespace OnDocAPI_NetFramework.Controllers
{
@@ -27,10 +31,30 @@ namespace OnDocAPI_NetFramework.Controllers
{
return Content(HttpStatusCode.Forbidden, empfaenger + ": Email nicht bei der TKB - Mail nicht versandt");
}
string s = "";
try
{
s = System.Configuration.ConfigurationManager.AppSettings["MailParam"];
return Content(HttpStatusCode.OK, "Mail versand noch nicht implementiert");
//return Content(HttpStatusCode.OK, empfaenger + ": Mail versandt");
s = s.Replace("$$empfaenger$$", empfaenger);
s = s.Replace("$$betreff$$", betreff);
s = s.Replace("$$body$$", message);
string debugdir = System.Configuration.ConfigurationManager.AppSettings["DebugDir"];
string tmpfile = debugdir + @"\Mail_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + ".ps1";
StreamWriter writer = new StreamWriter(tmpfile);
writer.Write(s);
writer.Close();
writer.Dispose();
System.Diagnostics.Process.Start("powershell.exe", tmpfile);
APILogging.Log((HttpRequestMessage)Request, "Mail Versand: " + s, LogLevelType.Debug);
//return Content(HttpStatusCode.OK, "Mail versand noch nicht implementiert");
return Content(HttpStatusCode.OK, empfaenger + ": Mail versandt");
}
catch (Exception e)
{
APILogging.Log((HttpRequestMessage)Request, "Mail Versand NOK: " + e.Message+" " + s, LogLevelType.Debug);
return Content(HttpStatusCode.InternalServerError, e.Message);
}
}
}
}
@@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Project>
<PropertyGroup>
<_PublishTargetUrl>E:\Software-Projekte\OnDoc\PubServices\OnDoc</_PublishTargetUrl>
<History>True|2024-12-02T08:50:13.5426444Z||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||;</History>
<History>True|2024-12-08T08:59:39.7127943Z||;True|2024-12-08T09:26:52.1924006+01:00||;True|2024-12-02T09:50:13.5426444+01:00||;True|2024-12-01T18:53:55.8128003+01:00||;True|2024-11-26T19:32:44.7379810+01:00||;True|2024-11-25T16:02:25.7013060+01:00||;True|2024-11-24T18:56:32.4321643+01:00||;True|2024-11-24T18:48:11.3494435+01:00||;True|2024-11-24T17:50:10.7679996+01:00||;True|2024-11-22T08:35:58.1296657+01:00||;True|2024-11-13T17:47:13.0183160+01:00||;True|2024-11-13T17:46:36.5183689+01:00||;True|2024-11-11T13:42:23.6578245+01:00||;True|2024-11-09T12:11:00.0777236+01:00||;True|2024-11-09T11:54:51.8503924+01:00||;</History>
<LastFailureDetails />
</PropertyGroup>
<ItemGroup>
@@ -82,10 +82,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>09/04/2024 19:25:14</publishTime>
</File>
<File Include="bin/BarcodeLib.dll">
<publishTime>01/12/2024 13:07:40</publishTime>
<publishTime>06/12/2024 13:18:14</publishTime>
</File>
<File Include="bin/BarcodeLib.pdb">
<publishTime>01/12/2024 13:07:40</publishTime>
<publishTime>06/12/2024 13:18:14</publishTime>
</File>
<File Include="bin/CSVNET.dll">
<publishTime>11/23/2024 19:27:07</publishTime>
@@ -94,10 +94,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>11/23/2024 19:27:07</publishTime>
</File>
<File Include="bin/Database.dll">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:49</publishTime>
</File>
<File Include="bin/Database.pdb">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:49</publishTime>
</File>
<File Include="bin/de/System.Net.Http.Formatting.resources.dll">
<publishTime>10/20/2023 22:35:02</publishTime>
@@ -130,13 +130,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>10/20/2023 22:35:04</publishTime>
</File>
<File Include="bin/DOCGEN.dll">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:49</publishTime>
</File>
<File Include="bin/DOCGEN.dll.config">
<publishTime>11/25/2024 07:24:47</publishTime>
</File>
<File Include="bin/DOCGEN.pdb">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:49</publishTime>
</File>
<File Include="bin/FastReport.Bars.dll">
<publishTime>11/27/2023 09:49:58</publishTime>
@@ -214,10 +214,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>11/04/2022 19:09:46</publishTime>
</File>
<File Include="bin/Model.dll">
<publishTime>01/12/2024 18:53:52</publishTime>
<publishTime>08/12/2024 09:26:48</publishTime>
</File>
<File Include="bin/Model.pdb">
<publishTime>01/12/2024 18:53:52</publishTime>
<publishTime>08/12/2024 09:26:48</publishTime>
</File>
<File Include="bin/Newtonsoft.Json.Bson.dll">
<publishTime>11/28/2018 00:10:18</publishTime>
@@ -235,22 +235,22 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>04/30/2024 21:58:24</publishTime>
</File>
<File Include="bin/OfficePrinter.dll">
<publishTime>11/27/2024 13:31:56</publishTime>
<publishTime>07/12/2024 10:39:16</publishTime>
</File>
<File Include="bin/OfficePrinter.pdb">
<publishTime>11/27/2024 13:31:56</publishTime>
<publishTime>07/12/2024 10:39:16</publishTime>
</File>
<File Include="bin/OnDocOffice.dll">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:48</publishTime>
</File>
<File Include="bin/OnDocOffice.pdb">
<publishTime>12/02/2024 09:50:12</publishTime>
<publishTime>08/12/2024 09:26:48</publishTime>
</File>
<File Include="bin/OnDoc_NetFramework.dll">
<publishTime>12/02/2024 10:19:11</publishTime>
<publishTime>12/08/2024 09:59:38</publishTime>
</File>
<File Include="bin/OnDoc_NetFramework.pdb">
<publishTime>12/02/2024 10:19:11</publishTime>
<publishTime>12/08/2024 09:59:38</publishTime>
</File>
<File Include="bin/Owin.dll">
<publishTime>11/13/2012 13:19:34</publishTime>
@@ -634,7 +634,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<publishTime>03/06/2024 08:11:55</publishTime>
</File>
<File Include="Web.config">
<publishTime>01/12/2024 18:53:53</publishTime>
<publishTime>12/08/2024 09:59:38</publishTime>
</File>
</ItemGroup>
</Project>
+2
View File
@@ -30,6 +30,8 @@
<add key="ArchivierungOfficeFormat" value="1983,2396,2397,2421" />
<add key="ExcelValueFile" value="x:\exceldata.csv" />
<add key="ExcelDokType" value="2421" />
<add key="ExcelDokType" value="2421" />
<add key="MailParam" value='Send-MailMessage -from "OnDoc@tkb.ch" -to "$$empfaenger$$" -Subject "$$betreff$$" -Body "$$body$$" -smtpServer smtp.tgcorp.ch'/>
</appSettings>
<connectionStrings>
<add name="EDOKAConnectionstring" connectionString="Po7oIigu4hOz6zXOpaSnrhveCQyfGgFeskvEQsvm3CEgxjJMEYYDEbnWlt9Qr9vGTkzqm5hvURTLA1hKVU++/ozcvT5qIVTpDLBTKd4AM/4YgN3+L9cx3mxMoWmv1JMjqxZVbR6GYiuSo1xuD05sl3IGoUenfugP6hBP/IC7MjUjisDUE6msFpWiraJr53gcfDvIrc2CUBTVUS+f94kewhlKxjtEohtCM71PN2zpoMiPyBIuXDyrYlYyokUOg6uV" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -30,6 +30,8 @@
<add key="ArchivierungOfficeFormat" value="1983,2396,2397,2421" />
<add key="ExcelValueFile" value="x:\exceldata.csv" />
<add key="ExcelDokType" value="2421" />
<add key="ExcelDokType" value="2421" />
<add key="MailParam" value='Send-MailMessage -from "OnDoc@tkb.ch" -to "$$empfaenger$$" -Subject "$$betreff$$" -Body "$$body$$" -smtpServer smtp.tgcorp.ch'/>
</appSettings>
<connectionStrings>
<add name="EDOKAConnectionstring" connectionString="Po7oIigu4hOz6zXOpaSnrhveCQyfGgFeskvEQsvm3CEgxjJMEYYDEbnWlt9Qr9vGTkzqm5hvURTLA1hKVU++/ozcvT5qIVTpDLBTKd4AM/4YgN3+L9cx3mxMoWmv1JMjqxZVbR6GYiuSo1xuD05sl3IGoUenfugP6hBP/IC7MjUjisDUE6msFpWiraJr53gcfDvIrc2CUBTVUS+f94kewhlKxjtEohtCM71PN2zpoMiPyBIuXDyrYlYyokUOg6uV" />
Binary file not shown.
+6
View File
@@ -2043,3 +2043,9 @@ Parametername: encoder
2024-12-02 10:10:17.1969|DEBUG|OnDoc|Mailversand: test@tkb.ch11
2024-12-02 10:11:10.9145|DEBUG|OnDoc|Mailversand: test@tkb.ch324
2024-12-04 10:19:03.3793|ERROR|OnDoc|Unberechtigter Zugriff
2024-12-08 09:00:42.3530|DEBUG|OnDoc|Mailversand: stefan.hutter@tkb.chTest OnDoc-Mail
2024-12-08 09:00:43.1082|ERROR|OnDoc|Unberechtigter Zugriff
2024-12-08 09:03:11.1409|DEBUG|OnDoc|Mailversand: stefan.hutter@tkb.chtest ondoc-mail
2024-12-08 09:03:11.2413|ERROR|OnDoc|Unberechtigter Zugriff
2024-12-08 09:03:54.8170|DEBUG|OnDoc|Mail Versand
2024-12-08 09:58:27.1958|DEBUG|OnDoc|Mailversand: gaga111
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -30,6 +30,8 @@
<add key="ArchivierungOfficeFormat" value="1983,2396,2397,2421" />
<add key="ExcelValueFile" value="x:\exceldata.csv" />
<add key="ExcelDokType" value="2421" />
<add key="ExcelDokType" value="2421" />
<add key="MailParam" value="Send-MailMessage -from &quot;OnDoc@tkb.ch&quot; -to &quot;$$empfaenger$$&quot; -Subject &quot;$$betreff$$&quot; -Body &quot;$$body$$&quot; -smtpServer smtp.tgcorp.ch" />
</appSettings>
<connectionStrings>
<add name="EDOKAConnectionstring" connectionString="Po7oIigu4hOz6zXOpaSnrhveCQyfGgFeskvEQsvm3CEgxjJMEYYDEbnWlt9Qr9vGTkzqm5hvURTLA1hKVU++/ozcvT5qIVTpDLBTKd4AM/4YgN3+L9cx3mxMoWmv1JMjqxZVbR6GYiuSo1xuD05sl3IGoUenfugP6hBP/IC7MjUjisDUE6msFpWiraJr53gcfDvIrc2CUBTVUS+f94kewhlKxjtEohtCM71PN2zpoMiPyBIuXDyrYlYyokUOg6uV" />
@@ -30,6 +30,8 @@
<add key="ArchivierungOfficeFormat" value="1983,2396,2397,2421" />
<add key="ExcelValueFile" value="x:\exceldata.csv" />
<add key="ExcelDokType" value="2421" />
<add key="ExcelDokType" value="2421" />
<add key="MailParam" value='Send-MailMessage -from "OnDoc@tkb.ch" -to "$$empfaenger$$" -Subject "$$betreff$$" -Body "$$body$$" -smtpServer smtp.tgcorp.ch'/>
</appSettings>
<connectionStrings>
<add name="EDOKAConnectionstring" connectionString="Po7oIigu4hOz6zXOpaSnrhveCQyfGgFeskvEQsvm3CEgxjJMEYYDEbnWlt9Qr9vGTkzqm5hvURTLA1hKVU++/ozcvT5qIVTpDLBTKd4AM/4YgN3+L9cx3mxMoWmv1JMjqxZVbR6GYiuSo1xuD05sl3IGoUenfugP6hBP/IC7MjUjisDUE6msFpWiraJr53gcfDvIrc2CUBTVUS+f94kewhlKxjtEohtCM71PN2zpoMiPyBIuXDyrYlYyokUOg6uV" />
@@ -30,6 +30,8 @@
<add key="ArchivierungOfficeFormat" value="1983,2396,2397,2421" />
<add key="ExcelValueFile" value="x:\exceldata.csv" />
<add key="ExcelDokType" value="2421" />
<add key="ExcelDokType" value="2421" />
<add key="MailParam" value="Send-MailMessage -from &quot;OnDoc@tkb.ch&quot; -to &quot;$$empfaenger$$&quot; -Subject &quot;$$betreff$$&quot; -Body &quot;$$body$$&quot; -smtpServer smtp.tgcorp.ch" />
</appSettings>
<connectionStrings>
<add name="EDOKAConnectionstring" connectionString="Po7oIigu4hOz6zXOpaSnrhveCQyfGgFeskvEQsvm3CEgxjJMEYYDEbnWlt9Qr9vGTkzqm5hvURTLA1hKVU++/ozcvT5qIVTpDLBTKd4AM/4YgN3+L9cx3mxMoWmv1JMjqxZVbR6GYiuSo1xuD05sl3IGoUenfugP6hBP/IC7MjUjisDUE6msFpWiraJr53gcfDvIrc2CUBTVUS+f94kewhlKxjtEohtCM71PN2zpoMiPyBIuXDyrYlYyokUOg6uV" />