update 20260220
This commit is contained in:
@@ -12,6 +12,21 @@
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -94,5 +109,17 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.8 %28x86 und x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
13
API_DocTest/API_DocTest.csproj.user
Normal file
13
API_DocTest/API_DocTest.csproj.user
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory />
|
||||
<InstallUrlHistory />
|
||||
<SupportUrlHistory />
|
||||
<UpdateUrlHistory />
|
||||
<BootstrapperUrlHistory />
|
||||
<ErrorReportUrlHistory />
|
||||
<FallbackCulture>de-DE</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -14,12 +14,14 @@
|
||||
<value>data source=shu01\shu00;initial catalog=edoka_dms;packet size=4096;user id=sa;password=*shu29</value>
|
||||
</setting>
|
||||
<setting name="DogGenURI" serializeAs="String">
|
||||
<!--<value>https://localhost:2034/API/DokumentGenerator</value>-->
|
||||
<value>https://localhost:44334/API/DokumentGenerator</value>
|
||||
</setting>
|
||||
<value>https://localhost:44334/API/DokumentGenerator</value>
|
||||
</setting>
|
||||
<setting name="Token" serializeAs="String">
|
||||
<value>pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98=</value>
|
||||
</setting>
|
||||
<setting name="tempdir" serializeAs="String">
|
||||
<value>x:\jsonfiles\</value>
|
||||
</setting>
|
||||
</API_DocTest.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
287
API_DocTest/Form1.Designer.cs
generated
287
API_DocTest/Form1.Designer.cs
generated
@@ -37,23 +37,45 @@
|
||||
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.txtKey = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.editControl1 = new Syncfusion.Windows.Forms.Edit.EditControl();
|
||||
this.pdfViewerControl1 = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl();
|
||||
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
|
||||
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.txtfilename = new System.Windows.Forms.TextBox();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.listBox1 = new System.Windows.Forms.ListBox();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.txtfilekey = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.txtdbkey = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.editControl1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// toolStrip1
|
||||
@@ -68,32 +90,45 @@
|
||||
this.toolStripComboBox1,
|
||||
this.toolStripButton1,
|
||||
this.toolStripSeparator2,
|
||||
this.toolStripButton4,
|
||||
this.toolStripButton2,
|
||||
this.toolStripSeparator3,
|
||||
this.toolStripButton3});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1724, 50);
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1724, 216);
|
||||
this.toolStrip1.TabIndex = 0;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
this.toolStrip1.Visible = false;
|
||||
//
|
||||
// toolStripLabel1
|
||||
//
|
||||
this.toolStripLabel1.Font = new System.Drawing.Font("Segoe UI", 13F);
|
||||
this.toolStripLabel1.Name = "toolStripLabel1";
|
||||
this.toolStripLabel1.Size = new System.Drawing.Size(49, 47);
|
||||
this.toolStripLabel1.Size = new System.Drawing.Size(40, 213);
|
||||
this.toolStripLabel1.Text = "Key";
|
||||
//
|
||||
// txtKey
|
||||
//
|
||||
this.txtKey.Font = new System.Drawing.Font("Segoe UI", 13F);
|
||||
this.txtKey.Name = "txtKey";
|
||||
this.txtKey.Size = new System.Drawing.Size(250, 50);
|
||||
this.txtKey.Size = new System.Drawing.Size(250, 216);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50);
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 216);
|
||||
//
|
||||
// toolStripSeparator4
|
||||
//
|
||||
this.toolStripSeparator4.Name = "toolStripSeparator4";
|
||||
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 216);
|
||||
//
|
||||
// toolStripComboBox1
|
||||
//
|
||||
this.toolStripComboBox1.Name = "toolStripComboBox1";
|
||||
this.toolStripComboBox1.Size = new System.Drawing.Size(150, 216);
|
||||
this.toolStripComboBox1.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
@@ -102,14 +137,25 @@
|
||||
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(75, 47);
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(63, 213);
|
||||
this.toolStripButton1.Text = "Laden";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 50);
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 216);
|
||||
//
|
||||
// toolStripButton4
|
||||
//
|
||||
this.toolStripButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.toolStripButton4.Font = new System.Drawing.Font("Segoe UI", 13F);
|
||||
this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
|
||||
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new System.Drawing.Size(93, 213);
|
||||
this.toolStripButton4.Text = "FileExport";
|
||||
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
|
||||
//
|
||||
// toolStripButton2
|
||||
//
|
||||
@@ -118,14 +164,14 @@
|
||||
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
|
||||
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(113, 47);
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(93, 213);
|
||||
this.toolStripButton2.Text = "Speichern";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
//
|
||||
// toolStripSeparator3
|
||||
//
|
||||
this.toolStripSeparator3.Name = "toolStripSeparator3";
|
||||
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50);
|
||||
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 216);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
@@ -134,21 +180,14 @@
|
||||
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(143, 47);
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(118, 213);
|
||||
this.toolStripButton3.Text = "PDF erstellen";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
||||
//
|
||||
// toolStripComboBox1
|
||||
//
|
||||
this.toolStripComboBox1.Font = new System.Drawing.Font("Segoe UI", 9F);
|
||||
this.toolStripComboBox1.Name = "toolStripComboBox1";
|
||||
this.toolStripComboBox1.Size = new System.Drawing.Size(150, 50);
|
||||
this.toolStripComboBox1.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 50);
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 170);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
@@ -158,7 +197,7 @@
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.pdfViewerControl1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1724, 838);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1724, 718);
|
||||
this.splitContainer1.SplitterDistance = 574;
|
||||
this.splitContainer1.TabIndex = 1;
|
||||
//
|
||||
@@ -183,7 +222,7 @@
|
||||
this.editControl1.ScrollPosition = new System.Drawing.Point(0, 0);
|
||||
this.editControl1.SelectionTextColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(214)))), ((int)(((byte)(255)))));
|
||||
this.editControl1.ShowEndOfLine = false;
|
||||
this.editControl1.Size = new System.Drawing.Size(574, 838);
|
||||
this.editControl1.Size = new System.Drawing.Size(574, 718);
|
||||
this.editControl1.StatusBarSettings.CoordsPanel.Width = 150;
|
||||
this.editControl1.StatusBarSettings.EncodingPanel.Width = 100;
|
||||
this.editControl1.StatusBarSettings.FileNamePanel.Width = 100;
|
||||
@@ -227,7 +266,7 @@
|
||||
this.pdfViewerControl1.ShowHorizontalScrollBar = true;
|
||||
this.pdfViewerControl1.ShowToolBar = true;
|
||||
this.pdfViewerControl1.ShowVerticalScrollBar = true;
|
||||
this.pdfViewerControl1.Size = new System.Drawing.Size(1146, 838);
|
||||
this.pdfViewerControl1.Size = new System.Drawing.Size(1146, 718);
|
||||
this.pdfViewerControl1.SpaceBetweenPages = 8;
|
||||
this.pdfViewerControl1.TabIndex = 0;
|
||||
this.pdfViewerControl1.Text = "pdfViewerControl1";
|
||||
@@ -240,10 +279,183 @@
|
||||
this.pdfViewerControl1.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
|
||||
this.pdfViewerControl1.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.Default;
|
||||
//
|
||||
// toolStripSeparator4
|
||||
// panel1
|
||||
//
|
||||
this.toolStripSeparator4.Name = "toolStripSeparator4";
|
||||
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50);
|
||||
this.panel1.Controls.Add(this.groupBox2);
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1724, 170);
|
||||
this.panel1.TabIndex = 2;
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.label5);
|
||||
this.groupBox2.Controls.Add(this.label4);
|
||||
this.groupBox2.Controls.Add(this.txtfilename);
|
||||
this.groupBox2.Controls.Add(this.button5);
|
||||
this.groupBox2.Controls.Add(this.listBox1);
|
||||
this.groupBox2.Controls.Add(this.button3);
|
||||
this.groupBox2.Controls.Add(this.txtfilekey);
|
||||
this.groupBox2.Controls.Add(this.label3);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox2.Location = new System.Drawing.Point(319, 0);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(901, 170);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Datei";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(326, 36);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(105, 13);
|
||||
this.label5.TabIndex = 11;
|
||||
this.label5.Text = "Vorhandene Dateien";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(6, 59);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(58, 13);
|
||||
this.label4.TabIndex = 10;
|
||||
this.label4.Text = "Dateiname";
|
||||
//
|
||||
// txtfilename
|
||||
//
|
||||
this.txtfilename.Location = new System.Drawing.Point(84, 59);
|
||||
this.txtfilename.Name = "txtfilename";
|
||||
this.txtfilename.Size = new System.Drawing.Size(212, 20);
|
||||
this.txtfilename.TabIndex = 9;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(699, 33);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(131, 23);
|
||||
this.button5.TabIndex = 8;
|
||||
this.button5.Text = "PDF generieren";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// listBox1
|
||||
//
|
||||
this.listBox1.FormattingEnabled = true;
|
||||
this.listBox1.Location = new System.Drawing.Point(437, 36);
|
||||
this.listBox1.Name = "listBox1";
|
||||
this.listBox1.Size = new System.Drawing.Size(235, 121);
|
||||
this.listBox1.TabIndex = 7;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(8, 91);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 6;
|
||||
this.button3.Text = "Datei-Export";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// txtfilekey
|
||||
//
|
||||
this.txtfilekey.Location = new System.Drawing.Point(84, 33);
|
||||
this.txtfilekey.Name = "txtfilekey";
|
||||
this.txtfilekey.Size = new System.Drawing.Size(212, 20);
|
||||
this.txtfilekey.TabIndex = 3;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(5, 36);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(52, 13);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "Schlüssel";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.button4);
|
||||
this.groupBox1.Controls.Add(this.button2);
|
||||
this.groupBox1.Controls.Add(this.button1);
|
||||
this.groupBox1.Controls.Add(this.label2);
|
||||
this.groupBox1.Controls.Add(this.comboBox1);
|
||||
this.groupBox1.Controls.Add(this.txtdbkey);
|
||||
this.groupBox1.Controls.Add(this.label1);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(319, 170);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Datenbank";
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(91, 131);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(131, 23);
|
||||
this.button4.TabIndex = 7;
|
||||
this.button4.Text = "PDF generieren";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.button4_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(228, 91);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 5;
|
||||
this.button2.Text = "Speichern";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(12, 91);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 4;
|
||||
this.button1.Text = "Laden";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 57);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(64, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Gespeichert";
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Location = new System.Drawing.Point(91, 57);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(212, 21);
|
||||
this.comboBox1.TabIndex = 2;
|
||||
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
|
||||
//
|
||||
// txtdbkey
|
||||
//
|
||||
this.txtdbkey.Location = new System.Drawing.Point(91, 30);
|
||||
this.txtdbkey.Name = "txtdbkey";
|
||||
this.txtdbkey.Size = new System.Drawing.Size(212, 20);
|
||||
this.txtdbkey.TabIndex = 1;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 33);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(52, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Schlüssel";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
@@ -252,6 +464,7 @@
|
||||
this.ClientSize = new System.Drawing.Size(1724, 888);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Form1";
|
||||
this.Text = "OnDoc-API-DocTest";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
@@ -263,6 +476,11 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.editControl1)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -284,6 +502,25 @@
|
||||
private System.ComponentModel.BackgroundWorker backgroundWorker1;
|
||||
private System.Windows.Forms.ToolStripComboBox toolStripComboBox1;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton4;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.TextBox txtdbkey;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.TextBox txtfilekey;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.ListBox listBox1;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtfilename;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ using Syncfusion.Windows.Forms.Edit.Interfaces;
|
||||
using Syncfusion.Windows.Forms.Edit.Enums;
|
||||
using Syncfusion.Windows.Forms.Edit.Implementation.Config;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using System.Windows.Forms.Design;
|
||||
|
||||
|
||||
namespace API_DocTest
|
||||
@@ -41,10 +42,25 @@ namespace API_DocTest
|
||||
|
||||
LoadJSON();
|
||||
Form1_Resize(sender, e);
|
||||
|
||||
Refresh_Filelist();
|
||||
|
||||
}
|
||||
|
||||
private void Refresh_Filelist()
|
||||
{
|
||||
listBox1.Items.Clear();
|
||||
DirectoryInfo d = new DirectoryInfo(Properties.Settings.Default.tempdir); //Assuming Test is your Folder
|
||||
|
||||
FileInfo[] Files = d.GetFiles("*.json"); //Getting Text files
|
||||
string str = "";
|
||||
|
||||
foreach (FileInfo file in Files)
|
||||
{
|
||||
listBox1.Items.Add(file.Name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -115,13 +131,11 @@ ELSE
|
||||
|
||||
private string GetKey()
|
||||
{
|
||||
foreach (Control c in Controls)
|
||||
if (c is ToolStrip ts)
|
||||
foreach (ToolStripItem i in ts.Items)
|
||||
if (i.Name == "txtKey")
|
||||
return ((ToolStripTextBox)i).Text;
|
||||
|
||||
return null;
|
||||
return txtdbkey.Text;
|
||||
}
|
||||
private string GetKey1()
|
||||
{
|
||||
return txtfilekey.Text;
|
||||
}
|
||||
|
||||
static readonly string ApiUrl = Properties.Settings.Default.DogGenURI;
|
||||
@@ -222,11 +236,11 @@ ELSE
|
||||
conn.Open();
|
||||
using (SqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
toolStripComboBox1.Items.Clear();
|
||||
comboBox1.Items.Clear();
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
toolStripComboBox1.Items.Add(reader.GetString(0));
|
||||
comboBox1.Items.Add(reader.GetString(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -237,6 +251,138 @@ ELSE
|
||||
this.txtKey.Text= toolStripComboBox1.Text.ToString();
|
||||
toolStripButton1_Click(sender, e);
|
||||
}
|
||||
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
string key = GetKey();
|
||||
string json = null;
|
||||
using (SqlConnection con = new SqlConnection(connectionstring))
|
||||
using (SqlCommand cmd = new SqlCommand(
|
||||
"SELECT JavaScriptObject FROM ProvDokuments WHERE ProvDokumentid = @key", con))
|
||||
{
|
||||
cmd.Parameters.AddWithValue("@key", key);
|
||||
con.Open();
|
||||
json = cmd.ExecuteScalar()?.ToString();
|
||||
}
|
||||
|
||||
if (json == null)
|
||||
{
|
||||
using (SqlConnection con = new SqlConnection(connectionstring))
|
||||
using (SqlCommand cmd = new SqlCommand(
|
||||
"SELECT JsonObjekt FROM _OnDoc_API_TestScripts WHERE id = @key", con))
|
||||
{
|
||||
cmd.Parameters.AddWithValue("@key", key);
|
||||
con.Open();
|
||||
json = cmd.ExecuteScalar()?.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
System.IO.File.WriteAllText(Properties.Settings.Default.tempdir + DateTime.Now.ToString("yyyymmddhhMMss") + ".json",json);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var key = GetKey();
|
||||
if (string.IsNullOrEmpty(key)) return;
|
||||
|
||||
string json = LoadJsonFromDb(key);
|
||||
editControl1.Text = json ?? "{}";
|
||||
|
||||
editControl1.MoveToBeginning();
|
||||
pdfViewerControl1.Unload(); // PDF zurücksetzen
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
var key = GetKey();
|
||||
if (string.IsNullOrEmpty(key)) return;
|
||||
SaveJsonToDb(key, editControl1.Text);
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
string key = GetKey1();
|
||||
string json = null;
|
||||
using (SqlConnection con = new SqlConnection(connectionstring))
|
||||
using (SqlCommand cmd = new SqlCommand(
|
||||
"SELECT JavaScriptObject FROM ProvDokuments WHERE ProvDokumentid = @key", con))
|
||||
{
|
||||
cmd.Parameters.AddWithValue("@key", key);
|
||||
con.Open();
|
||||
json = cmd.ExecuteScalar()?.ToString();
|
||||
}
|
||||
|
||||
if (json == null)
|
||||
{
|
||||
using (SqlConnection con = new SqlConnection(connectionstring))
|
||||
using (SqlCommand cmd = new SqlCommand(
|
||||
"SELECT JsonObjekt FROM _OnDoc_API_TestScripts WHERE id = @key", con))
|
||||
{
|
||||
cmd.Parameters.AddWithValue("@key", key);
|
||||
con.Open();
|
||||
json = cmd.ExecuteScalar()?.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
System.IO.File.WriteAllText(Properties.Settings.Default.tempdir + txtfilename.Text + ".json", json);
|
||||
Refresh_Filelist();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] byteArray = Generate(editControl1.Text);
|
||||
string temp_inBase64 = Convert.ToBase64String(byteArray);
|
||||
var stream = new MemoryStream(Convert.FromBase64String(temp_inBase64));
|
||||
if (stream.Length > 0)
|
||||
{
|
||||
this.pdfViewerControl1.Load(stream);
|
||||
this.pdfViewerControl1.Visible = true;
|
||||
pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex) { MessageBox.Show(ex.Message); }
|
||||
}
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
string filename=Properties.Settings.Default.tempdir+listBox1.SelectedItem.ToString();
|
||||
|
||||
try
|
||||
{
|
||||
byte[] byteArray = Generate(System.IO.File.ReadAllText(filename));
|
||||
string temp_inBase64 = Convert.ToBase64String(byteArray);
|
||||
var stream = new MemoryStream(Convert.FromBase64String(temp_inBase64));
|
||||
if (stream.Length > 0)
|
||||
{
|
||||
this.pdfViewerControl1.Load(stream);
|
||||
this.pdfViewerControl1.Visible = true;
|
||||
pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex) { MessageBox.Show(ex.Message); }
|
||||
}
|
||||
|
||||
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtdbkey.Text = comboBox1.SelectedItem.ToString();
|
||||
button1_Click(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -124,7 +124,22 @@
|
||||
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
|
||||
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
|
||||
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
|
||||
cX79DFKrHHD5d9D26hvicx4pABt2lpg10zYzU0zr7+e3xXGcrkEB2O2TNec9nJFwB3alZn5jZorfeDZh
|
||||
6Q3g8s06BeCoKF4MRURoH1+BY2oNCbeb0TIclIYxOhzf8frTOuo7FxCbbVIAzpni0iceEc8vhzEwGkJD
|
||||
lx83ymxifejdKjRNk/8PWnyIyTQqAJek0jqHwfEVscu31baIu8+90sTE4nY025dQ2/5FIPpnXlzKuK8A
|
||||
HBUzHot52djqQ6HZhfR7IwK4mKpHtvEDMqvfCiQ6zaAAXM8x94aIWTNrLLG4kVUzgaTSPlzLtyJOZxbb
|
||||
1wtfyg4Q+AfA3aZlButjSfxGcUJBk4g5tuP3haQKRKXcUQDOmbvNTpPOJeFFjordZmbWTNvMTHFUcpUC
|
||||
nOccAdABIDXXE1nzAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
|
||||
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
|
||||
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
|
||||
@@ -139,7 +154,7 @@
|
||||
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
|
||||
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
|
||||
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
|
||||
@@ -154,7 +169,7 @@
|
||||
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
|
||||
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
|
||||
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
|
||||
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
|
||||
|
||||
12
API_DocTest/Properties/Settings.Designer.cs
generated
12
API_DocTest/Properties/Settings.Designer.cs
generated
@@ -61,5 +61,17 @@ namespace API_DocTest.Properties {
|
||||
this["Token"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("x:\\")]
|
||||
public string tempdir {
|
||||
get {
|
||||
return ((string)(this["tempdir"]));
|
||||
}
|
||||
set {
|
||||
this["tempdir"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,5 +11,8 @@
|
||||
<Setting Name="Token" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98=</Value>
|
||||
</Setting>
|
||||
<Setting Name="tempdir" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">x:\</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
Binary file not shown.
Binary file not shown.
@@ -14,12 +14,14 @@
|
||||
<value>data source=shu01\shu00;initial catalog=edoka_dms;packet size=4096;user id=sa;password=*shu29</value>
|
||||
</setting>
|
||||
<setting name="DogGenURI" serializeAs="String">
|
||||
<!--<value>https://localhost:2034/API/DokumentGenerator</value>-->
|
||||
<value>https://localhost:44334/API/DokumentGenerator</value>
|
||||
</setting>
|
||||
<value>https://localhost:44334/API/DokumentGenerator</value>
|
||||
</setting>
|
||||
<setting name="Token" serializeAs="String">
|
||||
<value>pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98=</value>
|
||||
</setting>
|
||||
<setting name="tempdir" serializeAs="String">
|
||||
<value>x:\jsonfiles\</value>
|
||||
</setting>
|
||||
</API_DocTest.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
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.
Reference in New Issue
Block a user