diff --git a/API_NetFramework/bin/DOCGEN.dll b/API_NetFramework/bin/DOCGEN.dll
index 6208b04e..6bced055 100644
Binary files a/API_NetFramework/bin/DOCGEN.dll and b/API_NetFramework/bin/DOCGEN.dll differ
diff --git a/API_NetFramework/bin/DOCGEN.pdb b/API_NetFramework/bin/DOCGEN.pdb
index fe1bc972..83dccb67 100644
Binary files a/API_NetFramework/bin/DOCGEN.pdb and b/API_NetFramework/bin/DOCGEN.pdb differ
diff --git a/API_NetFramework/bin/Database.dll b/API_NetFramework/bin/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/API_NetFramework/bin/Database.dll and b/API_NetFramework/bin/Database.dll differ
diff --git a/API_NetFramework/bin/Database.pdb b/API_NetFramework/bin/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/API_NetFramework/bin/Database.pdb and b/API_NetFramework/bin/Database.pdb differ
diff --git a/API_NetFramework/bin/Helper.dll b/API_NetFramework/bin/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/API_NetFramework/bin/Helper.dll and b/API_NetFramework/bin/Helper.dll differ
diff --git a/API_NetFramework/bin/Helper.pdb b/API_NetFramework/bin/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/API_NetFramework/bin/Helper.pdb and b/API_NetFramework/bin/Helper.pdb differ
diff --git a/API_NetFramework/bin/OnDocOffice.dll b/API_NetFramework/bin/OnDocOffice.dll
index 5162d87b..b2b78e1e 100644
Binary files a/API_NetFramework/bin/OnDocOffice.dll and b/API_NetFramework/bin/OnDocOffice.dll differ
diff --git a/API_NetFramework/bin/OnDocOffice.pdb b/API_NetFramework/bin/OnDocOffice.pdb
index 22598eb0..54f79700 100644
Binary files a/API_NetFramework/bin/OnDocOffice.pdb and b/API_NetFramework/bin/OnDocOffice.pdb differ
diff --git a/API_NetFramework/bin/OnDoc_NetFramework.dll b/API_NetFramework/bin/OnDoc_NetFramework.dll
index d26022be..e3f15468 100644
Binary files a/API_NetFramework/bin/OnDoc_NetFramework.dll and b/API_NetFramework/bin/OnDoc_NetFramework.dll differ
diff --git a/API_NetFramework/bin/OnDoc_NetFramework.pdb b/API_NetFramework/bin/OnDoc_NetFramework.pdb
index 588e97a5..eb07fb30 100644
Binary files a/API_NetFramework/bin/OnDoc_NetFramework.pdb and b/API_NetFramework/bin/OnDoc_NetFramework.pdb differ
diff --git a/API_NetFramework/log.txt b/API_NetFramework/log.txt
index 3a98d4ab..c4c9a1c6 100644
--- a/API_NetFramework/log.txt
+++ b/API_NetFramework/log.txt
@@ -2049,3 +2049,107 @@ Parametername: encoder
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
+2024-12-15 09:31:17.2668|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:31:31.8959|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:31:54.3288|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:33:27.9020|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:33:32.2823|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:33:38.8179|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:33:39.0720|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:33:42.5540|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_1
+2024-12-15 09:33:42.5730|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_1
+2024-12-15 09:33:43.0122|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:34:04.2326|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:34:06.8948|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:34:06.9250|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:34:06.9250|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_3
+2024-12-15 09:34:06.9250|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_3
+2024-12-15 09:34:06.9250|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:34:09.5521|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:34:34.9817|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:34:35.0175|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:34:35.0325|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:34:35.0455|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_2
+2024-12-15 09:34:35.0515|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_2
+2024-12-15 09:34:35.0515|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:35:05.5047|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:35:05.7117|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:05.8077|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:05.8297|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_1
+2024-12-15 09:35:05.8367|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_1
+2024-12-15 09:35:05.8367|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:35:13.3374|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:35:13.3794|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:13.3994|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:13.4302|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_3
+2024-12-15 09:35:13.4302|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_3
+2024-12-15 09:35:13.4302|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:35:19.1632|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:35:19.1632|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:19.1912|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:19.2102|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_2
+2024-12-15 09:35:19.2102|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_2
+2024-12-15 09:35:19.2102|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:35:56.8096|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:35:56.8696|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:35:56.8696|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:56.9836|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:56.9836|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_1
+2024-12-15 09:35:56.9949|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_1
+2024-12-15 09:35:56.9949|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:35:58.0631|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:35:58.0720|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:35:58.0720|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:58.0940|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:58.0970|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_3
+2024-12-15 09:35:58.0970|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_3
+2024-12-15 09:35:58.0970|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:35:58.9182|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:35:58.9283|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:35:58.9283|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:35:58.9463|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:35:58.9463|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_2
+2024-12-15 09:35:58.9463|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_2
+2024-12-15 09:35:58.9463|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:36:54.6565|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:36:54.7173|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:36:54.7173|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:36:54.8253|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:36:54.8373|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_1
+2024-12-15 09:36:54.8373|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_1
+2024-12-15 09:36:54.8373|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460869
+2024-12-15 09:36:54.9594|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:36:54.9594|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:36:54.9594|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:36:54.9764|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:36:54.9944|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_3
+2024-12-15 09:36:54.9944|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_3
+2024-12-15 09:36:55.0034|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461225
+2024-12-15 09:36:55.0375|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:36:55.0375|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:36:55.0375|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:36:55.0565|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:36:55.0695|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_30_2
+2024-12-15 09:36:55.0695|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_30_2
+2024-12-15 09:36:55.0695|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002460877
+2024-12-15 09:38:22.6733|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:38:22.7066|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461353
+2024-12-15 09:38:22.7066|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:38:22.8162|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:38:22.8162|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_31_1
+2024-12-15 09:38:22.8382|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_31_1
+2024-12-15 09:38:22.8382|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461353
+2024-12-15 09:47:39.1143|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:47:39.1453|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461369
+2024-12-15 09:47:39.1453|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:47:39.2603|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:47:39.2603|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_32_1
+2024-12-15 09:47:39.2740|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_32_1
+2024-12-15 09:47:39.2740|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461369
+2024-12-15 09:50:22.6946|ERROR|OnDoc|Unberechtigter Zugriff
+2024-12-15 09:50:22.7249|DEBUG|OnDoc|Start ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461377
+2024-12-15 09:50:22.7249|DEBUG|OnDoc|Start Transfer to OnBase
+2024-12-15 09:50:22.8394|DEBUG|OnDoc|Ende Transfer to OnBase
+2024-12-15 09:50:22.8635|DEBUG|OnDoc|Start Updaet IL_Log: DokumentID:SB_34_1
+2024-12-15 09:50:22.8635|DEBUG|OnDoc|Ende Update IL_Log: DokumentID:SB_34_1
+2024-12-15 09:50:22.8635|DEBUG|OnDoc|Ende ArchivSBDoc DokumentID: DokumentID:OFFEDK0082024002461377
diff --git a/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache b/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache
index a9df33d0..ca4adcca 100644
Binary files a/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache and b/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache differ
diff --git a/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll b/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll
index d26022be..e3f15468 100644
Binary files a/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll and b/API_NetFramework/obj/Debug/OnDoc_NetFramework.dll differ
diff --git a/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb b/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb
index 588e97a5..eb07fb30 100644
Binary files a/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb and b/API_NetFramework/obj/Debug/OnDoc_NetFramework.pdb differ
diff --git a/BarcodeLib/bin/Debug/Database.dll b/BarcodeLib/bin/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/BarcodeLib/bin/Debug/Database.dll and b/BarcodeLib/bin/Debug/Database.dll differ
diff --git a/BarcodeLib/bin/Debug/Database.pdb b/BarcodeLib/bin/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/BarcodeLib/bin/Debug/Database.pdb and b/BarcodeLib/bin/Debug/Database.pdb differ
diff --git a/BarcodeLib/bin/Debug/Helper.dll b/BarcodeLib/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/BarcodeLib/bin/Debug/Helper.dll and b/BarcodeLib/bin/Debug/Helper.dll differ
diff --git a/BarcodeLib/bin/Debug/Helper.pdb b/BarcodeLib/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/BarcodeLib/bin/Debug/Helper.pdb and b/BarcodeLib/bin/Debug/Helper.pdb differ
diff --git a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache
index d410ba67..8fa7a989 100644
Binary files a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache and b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache differ
diff --git a/Client/Client.csproj b/Client/Client.csproj
index b95faf0b..e0094057 100644
--- a/Client/Client.csproj
+++ b/Client/Client.csproj
@@ -52,8 +52,7 @@
OnDoc.Program
-
-
+ OnDoc6_Transparent.ico
diff --git a/Client/Diverses/SplashScreen.Designer.cs b/Client/Diverses/SplashScreen.Designer.cs
index 0331df4a..8bbe17cc 100644
--- a/Client/Diverses/SplashScreen.Designer.cs
+++ b/Client/Diverses/SplashScreen.Designer.cs
@@ -52,9 +52,9 @@
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(164, 304);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(122, 26);
+ this.label1.Size = new System.Drawing.Size(134, 26);
this.label1.TabIndex = 1;
- this.label1.Text = "Version 0.8";
+ this.label1.Text = "Version 0.85";
//
// label2
//
@@ -64,7 +64,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(203, 26);
this.label2.TabIndex = 2;
- this.label2.Text = "13. Dezember 2024";
+ this.label2.Text = "15. Dezember 2024";
//
// SplashScreen
//
diff --git a/Client/Diverses/valueselector.Designer.cs b/Client/Diverses/valueselector.Designer.cs
index fcbe22a0..5e7e59bb 100644
--- a/Client/Diverses/valueselector.Designer.cs
+++ b/Client/Diverses/valueselector.Designer.cs
@@ -30,7 +30,14 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(valueselector));
this.GridData = new Syncfusion.WinForms.DataGrid.SfDataGrid();
+ this.sfCalendar1 = new Syncfusion.WinForms.Input.SfCalendar();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.GridData)).BeginInit();
+ this.panel1.SuspendLayout();
this.SuspendLayout();
//
// GridData
@@ -50,11 +57,74 @@
this.GridData.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellClick);
this.GridData.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.GridData_CellDoubleClick);
//
+ // sfCalendar1
+ //
+ this.sfCalendar1.FirstDayOfWeek = System.DayOfWeek.Monday;
+ this.sfCalendar1.Location = new System.Drawing.Point(3, 3);
+ this.sfCalendar1.MinimumSize = new System.Drawing.Size(196, 196);
+ this.sfCalendar1.Name = "sfCalendar1";
+ this.sfCalendar1.ShowWeekNumbers = true;
+ this.sfCalendar1.Size = new System.Drawing.Size(357, 342);
+ this.sfCalendar1.TabIndex = 2;
+ this.sfCalendar1.Text = "sfCalendar1";
+ this.sfCalendar1.Click += new System.EventHandler(this.sfCalendar1_Click);
+ this.sfCalendar1.DoubleClick += new System.EventHandler(this.sfCalendar1_DoubleClick);
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.button1);
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.label1);
+ this.panel1.Controls.Add(this.panel2);
+ this.panel1.Controls.Add(this.sfCalendar1);
+ this.panel1.Location = new System.Drawing.Point(5, 5);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(363, 425);
+ this.panel1.TabIndex = 3;
+ //
+ // panel2
+ //
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Location = new System.Drawing.Point(79, 351);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(32, 16);
+ this.panel2.TabIndex = 3;
+ this.panel2.Click += new System.EventHandler(this.panel2_Click);
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(118, 353);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(36, 13);
+ this.label1.TabIndex = 4;
+ this.label1.Text = "Heute";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(160, 353);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(35, 13);
+ this.label2.TabIndex = 5;
+ this.label2.Text = "label2";
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(136, 390);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(86, 23);
+ this.button1.TabIndex = 6;
+ this.button1.Text = "übernehmen";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
// valueselector
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(373, 450);
+ this.Controls.Add(this.panel1);
this.Controls.Add(this.GridData);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "valueselector";
@@ -63,6 +133,8 @@
this.Text = "Werte-Auwahl";
this.Load += new System.EventHandler(this.valueselector_Load);
((System.ComponentModel.ISupportInitialize)(this.GridData)).EndInit();
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
this.ResumeLayout(false);
}
@@ -70,5 +142,11 @@
#endregion
private Syncfusion.WinForms.DataGrid.SfDataGrid GridData;
+ private Syncfusion.WinForms.Input.SfCalendar sfCalendar1;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Button button1;
}
}
\ No newline at end of file
diff --git a/Client/Diverses/valueselector.cs b/Client/Diverses/valueselector.cs
index d9cc41d7..be235aa2 100644
--- a/Client/Diverses/valueselector.cs
+++ b/Client/Diverses/valueselector.cs
@@ -18,15 +18,29 @@ namespace OnDoc.Diverses
public string partnernr { get; set; } = "";
public string datenherkunft { get; set; } = "";
- public string selected_value { get; set; }
+ public string selected_value { get; set; }
+
+ public DateTime selected_datetime { get; set; } = DateTime.Now;
public valueselector()
{
InitializeComponent();
+ this.panel1.Visible = false;
+ this.GridData.Visible = true;
+
}
+ public valueselector(Boolean Showcalendar)
+ {
+ InitializeComponent();
+ this.panel1.Visible = true;
+ this.GridData.Visible = false;
+ label2.Text = DateTime.Now.ToString("dd.MM.yyyy");
+ }
+
private void valueselector_Load(object sender, EventArgs e)
{
this.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
+ this.sfCalendar1.SelectedDate = DateTime.Now;
}
public void load_data()
@@ -68,5 +82,29 @@ namespace OnDoc.Diverses
DialogResult = DialogResult.OK;
this.Close();
}
+
+ private void sfCalendar1_Click(object sender, EventArgs e)
+ {
+ this.selected_datetime = (DateTime)sfCalendar1.SelectedDate;
+ }
+
+ private void sfCalendar1_DoubleClick(object sender, EventArgs e)
+ {
+ sfCalendar1_Click(sender, e);
+ DialogResult = DialogResult.OK;
+ this.Close();
+
+ }
+
+ private void panel2_Click(object sender, EventArgs e)
+ {
+ sfCalendar1.SelectedDate = DateTime.Now;
+ sfCalendar1_DoubleClick(sender, e);
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ sfCalendar1_DoubleClick(sender, e);
+ }
}
}
diff --git a/Client/DocMgmt/DokTypSelect.Designer.cs b/Client/DocMgmt/DokTypSelect.Designer.cs
index 9fd0ab36..78db5ed2 100644
--- a/Client/DocMgmt/DokTypSelect.Designer.cs
+++ b/Client/DocMgmt/DokTypSelect.Designer.cs
@@ -65,6 +65,7 @@ namespace OnDoc.DocMgmt
this.neuerUnterordnerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.umbenennenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ordnerLöschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.detailsAnzeigenToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.tsbtnNewRoot = new System.Windows.Forms.ToolStripButton();
@@ -202,6 +203,7 @@ namespace OnDoc.DocMgmt
//
// ribbonPanel5
//
+ this.ribbonPanel5.ButtonMoreVisible = false;
this.ribbonPanel5.Items.Add(this.RibbonButtonVorlagen);
this.ribbonPanel5.Name = "ribbonPanel5";
this.ribbonPanel5.Text = "Vorlagen";
@@ -318,7 +320,7 @@ namespace OnDoc.DocMgmt
this.zuFavoritenHinzufügenToolStripMenuItem,
this.detailsAnzeigenToolStripMenuItem});
this.contextMenuStripVorlagen.Name = "contextMenuStrip1";
- this.contextMenuStripVorlagen.Size = new System.Drawing.Size(204, 92);
+ this.contextMenuStripVorlagen.Size = new System.Drawing.Size(204, 70);
this.contextMenuStripVorlagen.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
//
// ctxmenuerstellen
@@ -411,9 +413,10 @@ namespace OnDoc.DocMgmt
this.neuerOrdnerAufObesterEbeneToolStripMenuItem,
this.neuerUnterordnerToolStripMenuItem,
this.umbenennenToolStripMenuItem,
- this.ordnerLöschenToolStripMenuItem});
+ this.ordnerLöschenToolStripMenuItem,
+ this.detailsAnzeigenToolStripMenuItem1});
this.contextMenuStripFavoriten.Name = "contextMenuStrip1";
- this.contextMenuStripFavoriten.Size = new System.Drawing.Size(309, 92);
+ this.contextMenuStripFavoriten.Size = new System.Drawing.Size(309, 114);
//
// neuerOrdnerAufObesterEbeneToolStripMenuItem
//
@@ -443,6 +446,13 @@ namespace OnDoc.DocMgmt
this.ordnerLöschenToolStripMenuItem.Text = "Vorlage / Ordner mit Unterlementen löschen";
this.ordnerLöschenToolStripMenuItem.Click += new System.EventHandler(this.ordnerLöschenToolStripMenuItem_Click);
//
+ // detailsAnzeigenToolStripMenuItem1
+ //
+ this.detailsAnzeigenToolStripMenuItem1.Name = "detailsAnzeigenToolStripMenuItem1";
+ this.detailsAnzeigenToolStripMenuItem1.Size = new System.Drawing.Size(308, 22);
+ this.detailsAnzeigenToolStripMenuItem1.Text = "Details anzeigen";
+ this.detailsAnzeigenToolStripMenuItem1.Click += new System.EventHandler(this.detailsAnzeigenToolStripMenuItem1_Click);
+ //
// groupBox1
//
this.groupBox1.Controls.Add(this.treeViewAdv2);
@@ -693,5 +703,6 @@ namespace OnDoc.DocMgmt
private System.Windows.Forms.ToolStripComboBox toolstripCombobox_Fachverantwortung;
private System.Windows.Forms.ToolStripButton toolStripButton4;
private System.Windows.Forms.ToolStripMenuItem detailsAnzeigenToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem detailsAnzeigenToolStripMenuItem1;
}
}
\ No newline at end of file
diff --git a/Client/DocMgmt/DokTypSelect.cs b/Client/DocMgmt/DokTypSelect.cs
index 1ea59152..2adb9f01 100644
--- a/Client/DocMgmt/DokTypSelect.cs
+++ b/Client/DocMgmt/DokTypSelect.cs
@@ -83,10 +83,20 @@ namespace OnDoc.DocMgmt
}
- if (this.favoriten) { Load_Favoriten(""); }
+ if (this.favoriten) {
+ RibbonButtonFavoriten.Checked = true;
+ RibbonButtonVorlagen.Checked = false;
+ RibbonButtonFavoriten_Click(sender, e);
+ treeViewAdv1.Visible = false;
+ //Load_Favoriten("");
+ }
else { load_standard(""); }
toolstriptextboxsearch.Focus();
-
+ RibbonButtonVorlagen.Checked = true;
+ RibbonButtonFavoriten.Checked = false;
+ treeViewAdv2.Visible = false;
+ favoriten = false;
+ treeViewAdv2_VisibleChanged(sender, e);
}
TreeNodeAdv[] nodestoexpand = new TreeNodeAdv[50];
@@ -418,6 +428,7 @@ namespace OnDoc.DocMgmt
try
{
dokumenttypnr = Convert.ToInt32(treeViewAdv1.SelectedNode.Tag);
+ if (dokumenttypnr < 0) { return; }
DialogResult = DialogResult.OK;
}
catch { }
@@ -429,6 +440,7 @@ namespace OnDoc.DocMgmt
{
System.Data.DataRow row = treeViewAdv1.SelectedNode.TagObject as System.Data.DataRow;
dokumenttypnr = Convert.ToInt32(row["id"]);
+ if (dokumenttypnr < 0) { return; }
DialogResult = DialogResult.OK;
}
catch { }
@@ -457,8 +469,10 @@ namespace OnDoc.DocMgmt
private void treeViewAdv2_VisibleChanged(object sender, EventArgs e)
{
+ toolStrip1.Visible = treeViewAdv2.Visible;
if (treeViewAdv2.Visible == false)
{
+
this.Width = treeViewAdv1.Width + 10;
}
else
@@ -522,6 +536,15 @@ namespace OnDoc.DocMgmt
}
}
+ public void New_Favoriten()
+ {
+ RibbonButtonVorlagen.Checked = false;
+ this.favoriten= true;
+ RibbonButtonVorlagen_Click(null, null);
+
+ RibbonButtonFavoriten_Click(null, null);
+ }
+
private void treeViewAdv1_VisibleChanged(object sender, EventArgs e)
{
treevisibility();
@@ -855,5 +878,13 @@ namespace OnDoc.DocMgmt
DokTypDetails dd = new DokTypDetails(dokumenttypnr);
dd.ShowDialog();
}
+
+ private void detailsAnzeigenToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ System.Data.DataRow row = treeViewAdv2.SelectedNode.TagObject as System.Data.DataRow;
+ dokumenttypnr = Convert.ToInt32(row[6]);
+ DokTypDetails dd = new DokTypDetails(dokumenttypnr);
+ dd.ShowDialog();
+ }
}
}
diff --git a/Client/DocMgmt/DokTypSelect.resx b/Client/DocMgmt/DokTypSelect.resx
index 9e0cc847..54a180e0 100644
--- a/Client/DocMgmt/DokTypSelect.resx
+++ b/Client/DocMgmt/DokTypSelect.resx
@@ -284,7 +284,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAi
- DAAAAk1TRnQBSQFMAgEBBgEAAbABAAGwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
+ DAAAAk1TRnQBSQFMAgEBBgEAAcABAAHAAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
diff --git a/Client/DocMgmt/Dokumenterstellung.cs b/Client/DocMgmt/Dokumenterstellung.cs
index c086f407..037cf86b 100644
--- a/Client/DocMgmt/Dokumenterstellung.cs
+++ b/Client/DocMgmt/Dokumenterstellung.cs
@@ -36,6 +36,7 @@ namespace OnDoc.DocMgmt
public bool interop { get; set; } = false;
public bool runmacros { get; set; } = false;
public string dokumentid = "";
+ public string filename { get; set; } = "";
public Dokumenterstellung()
{
@@ -107,6 +108,7 @@ namespace OnDoc.DocMgmt
}
public void Dokument_Erstellen()
{
+ this.filename = "";
if (ucAllgemeineDokumentParam1.check_fields()==false) {
MessageBox.Show(ucAllgemeineDokumentParam1.check_error,"Feldwerte",MessageBoxButtons.OK,MessageBoxIcon.Error);
return; };
@@ -143,7 +145,22 @@ namespace OnDoc.DocMgmt
interop = ucAllgemeineDokumentParam1.interop;
- if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.DokumentBearbeiten || ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.ErstellungInOffice)
+ //Erstellung Office
+ if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.ErstellungInOffice)
+ {
+ string filename = AppParams.tempdir + dokumentid + "_Erstellt_." + dok.extension;
+ System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
+ DB db = new DB(AppParams.connectionstring);
+ db.Save_To_DB(dokdata.Dokumentid, filename);
+ db = null;
+ filename = AppParams.tempdir + dokumentid +"." + dok.extension;
+ this.filename = filename;
+ DocFunction = 6;
+ this.Close();
+ return;
+ }
+ //Bearbeiten
+ if (ucAllgemeineDokumentParam1.docgendata.erstellungsart == Erstellungsart.DokumentBearbeiten)
{
string filename = AppParams.tempdir + dokumentid + "." + dok.extension;
System.IO.File.WriteAllBytes(filename, Convert.FromBase64String(dok.dokument));
@@ -203,6 +220,17 @@ namespace OnDoc.DocMgmt
}
if (ucAllgemeineDokumentParam1.docgendata.versandstrasse_moeglich == false) { ribbonButtonVersandstrasse.Enabled = false; }
docPreview1.Show_Doc(dokumentid);
+ DB dB = new DB(AppParams.connectionstring);
+ dB.Get_Tabledata("Select * from dokument where dokumentid='"+dokumentid+"'",false,true);
+ if (Convert.ToBoolean(dB.dsdaten.Tables[0].Rows[0]["ToApprove"])==true && Convert.ToBoolean(dB.dsdaten.Tables[0].Rows[0]["approved"]) == false)
+ {
+ ribbonButtonArchiv.Enabled = false;
+ }
+ if (Convert.ToBoolean(dB.dsdaten.Tables[0].Rows[0]["bearbeitung_zwingend"]) == true)
+ {
+ ribbonButtonArchiv.Enabled = false;
+ }
+ dB = null;
docPreview1.Hide_Editbuttons();
}
}
diff --git a/Client/DocMgmt/Serienbrief.Designer.cs b/Client/DocMgmt/Serienbrief.Designer.cs
index dfad0c44..68963de8 100644
--- a/Client/DocMgmt/Serienbrief.Designer.cs
+++ b/Client/DocMgmt/Serienbrief.Designer.cs
@@ -82,6 +82,11 @@
this.partnerLöschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.erneutGenerierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.treeViewAdv1 = new Syncfusion.Windows.Forms.Tools.TreeViewAdv();
+ this.ctxmenutree = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.partnerlistePrüfenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.druckstapelAufbereitenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.archivierenUndAbschliessenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.GridEmpfänger = new Syncfusion.WinForms.DataGrid.SfDataGrid();
this.ribbon1 = new System.Windows.Forms.Ribbon();
this.ribbonTab1 = new System.Windows.Forms.RibbonTab();
@@ -115,14 +120,9 @@
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.panelLoad = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
- this.ctxmenutree = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.partnerlistePrüfenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.dokumentgenerierungZurücksetzenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.druckstapelAufbereitenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.archivierenUndAbschliessenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.GrpDokumentInhalt.SuspendLayout();
this.groupBox1.SuspendLayout();
this.grpDruckstapel.SuspendLayout();
@@ -143,6 +143,7 @@
((System.ComponentModel.ISupportInitialize)(this.sfDataGridEmpfaenger)).BeginInit();
this.ctxmenuEmpfaenger.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).BeginInit();
+ this.ctxmenutree.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GridEmpfänger)).BeginInit();
this.pnlLoad.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sfdatagridsbload)).BeginInit();
@@ -152,7 +153,6 @@
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.panelLoad.SuspendLayout();
- this.ctxmenutree.SuspendLayout();
this.SuspendLayout();
//
// GrpDokumentInhalt
@@ -773,6 +773,45 @@
this.treeViewAdv1.ToolTipControl.Visible = true;
this.treeViewAdv1.AfterSelect += new System.EventHandler(this.treeViewAdv1_AfterSelect);
//
+ // ctxmenutree
+ //
+ this.ctxmenutree.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.partnerlistePrüfenToolStripMenuItem,
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem,
+ this.druckstapelAufbereitenToolStripMenuItem,
+ this.archivierenUndAbschliessenToolStripMenuItem});
+ this.ctxmenutree.Name = "ctxmenutree";
+ this.ctxmenutree.Size = new System.Drawing.Size(266, 92);
+ this.ctxmenutree.Opening += new System.ComponentModel.CancelEventHandler(this.ctxmenutree_Opening);
+ //
+ // partnerlistePrüfenToolStripMenuItem
+ //
+ this.partnerlistePrüfenToolStripMenuItem.Name = "partnerlistePrüfenToolStripMenuItem";
+ this.partnerlistePrüfenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
+ this.partnerlistePrüfenToolStripMenuItem.Text = "Partnerliste prüfen";
+ this.partnerlistePrüfenToolStripMenuItem.Click += new System.EventHandler(this.partnerlistePrüfenToolStripMenuItem_Click);
+ //
+ // dokumentgenerierungZurücksetzenToolStripMenuItem
+ //
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem.Name = "dokumentgenerierungZurücksetzenToolStripMenuItem";
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem.Text = "Dokumentgenerierung zurücksetzen";
+ this.dokumentgenerierungZurücksetzenToolStripMenuItem.Click += new System.EventHandler(this.dokumentgenerierungZurücksetzenToolStripMenuItem_Click);
+ //
+ // druckstapelAufbereitenToolStripMenuItem
+ //
+ this.druckstapelAufbereitenToolStripMenuItem.Name = "druckstapelAufbereitenToolStripMenuItem";
+ this.druckstapelAufbereitenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
+ this.druckstapelAufbereitenToolStripMenuItem.Text = "Druckstapel aufbereiten";
+ this.druckstapelAufbereitenToolStripMenuItem.Click += new System.EventHandler(this.druckstapelAufbereitenToolStripMenuItem_Click);
+ //
+ // archivierenUndAbschliessenToolStripMenuItem
+ //
+ this.archivierenUndAbschliessenToolStripMenuItem.Name = "archivierenUndAbschliessenToolStripMenuItem";
+ this.archivierenUndAbschliessenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
+ this.archivierenUndAbschliessenToolStripMenuItem.Text = "Archivieren und abschliessen";
+ this.archivierenUndAbschliessenToolStripMenuItem.Click += new System.EventHandler(this.archivierenUndAbschliessenToolStripMenuItem_Click);
+ //
// GridEmpfänger
//
this.GridEmpfänger.AccessibleName = "Table";
@@ -1105,11 +1144,20 @@
this.splitContainer1.SplitterDistance = 900;
this.splitContainer1.TabIndex = 5;
//
+ // docPreview1
+ //
+ this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.docPreview1.Location = new System.Drawing.Point(0, 0);
+ this.docPreview1.Name = "docPreview1";
+ this.docPreview1.Size = new System.Drawing.Size(725, 598);
+ this.docPreview1.TabIndex = 4;
+ this.docPreview1.ZoomPercentage = 0;
+ //
// panelLoad
//
this.panelLoad.BackColor = System.Drawing.Color.Silver;
this.panelLoad.Controls.Add(this.label4);
- this.panelLoad.Location = new System.Drawing.Point(466, 87);
+ this.panelLoad.Location = new System.Drawing.Point(463, 97);
this.panelLoad.Name = "panelLoad";
this.panelLoad.Size = new System.Drawing.Size(578, 100);
this.panelLoad.TabIndex = 6;
@@ -1125,54 +1173,6 @@
this.label4.TabIndex = 0;
this.label4.Text = "Serienbrief wird initialisiert - bitte einen Moment warten....";
//
- // ctxmenutree
- //
- this.ctxmenutree.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.partnerlistePrüfenToolStripMenuItem,
- this.dokumentgenerierungZurücksetzenToolStripMenuItem,
- this.druckstapelAufbereitenToolStripMenuItem,
- this.archivierenUndAbschliessenToolStripMenuItem});
- this.ctxmenutree.Name = "ctxmenutree";
- this.ctxmenutree.Size = new System.Drawing.Size(266, 114);
- this.ctxmenutree.Opening += new System.ComponentModel.CancelEventHandler(this.ctxmenutree_Opening);
- //
- // partnerlistePrüfenToolStripMenuItem
- //
- this.partnerlistePrüfenToolStripMenuItem.Name = "partnerlistePrüfenToolStripMenuItem";
- this.partnerlistePrüfenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
- this.partnerlistePrüfenToolStripMenuItem.Text = "Partnerliste prüfen";
- this.partnerlistePrüfenToolStripMenuItem.Click += new System.EventHandler(this.partnerlistePrüfenToolStripMenuItem_Click);
- //
- // dokumentgenerierungZurücksetzenToolStripMenuItem
- //
- this.dokumentgenerierungZurücksetzenToolStripMenuItem.Name = "dokumentgenerierungZurücksetzenToolStripMenuItem";
- this.dokumentgenerierungZurücksetzenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
- this.dokumentgenerierungZurücksetzenToolStripMenuItem.Text = "Dokumentgenerierung zurücksetzen";
- this.dokumentgenerierungZurücksetzenToolStripMenuItem.Click += new System.EventHandler(this.dokumentgenerierungZurücksetzenToolStripMenuItem_Click);
- //
- // druckstapelAufbereitenToolStripMenuItem
- //
- this.druckstapelAufbereitenToolStripMenuItem.Name = "druckstapelAufbereitenToolStripMenuItem";
- this.druckstapelAufbereitenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
- this.druckstapelAufbereitenToolStripMenuItem.Text = "Druckstapel aufbereiten";
- this.druckstapelAufbereitenToolStripMenuItem.Click += new System.EventHandler(this.druckstapelAufbereitenToolStripMenuItem_Click);
- //
- // archivierenUndAbschliessenToolStripMenuItem
- //
- this.archivierenUndAbschliessenToolStripMenuItem.Name = "archivierenUndAbschliessenToolStripMenuItem";
- this.archivierenUndAbschliessenToolStripMenuItem.Size = new System.Drawing.Size(265, 22);
- this.archivierenUndAbschliessenToolStripMenuItem.Text = "Archivieren und abschliessen";
- this.archivierenUndAbschliessenToolStripMenuItem.Click += new System.EventHandler(this.archivierenUndAbschliessenToolStripMenuItem_Click);
- //
- // docPreview1
- //
- this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.docPreview1.Location = new System.Drawing.Point(0, 0);
- this.docPreview1.Name = "docPreview1";
- this.docPreview1.Size = new System.Drawing.Size(725, 598);
- this.docPreview1.TabIndex = 4;
- this.docPreview1.ZoomPercentage = 0;
- //
// Serienbrief
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -1215,6 +1215,7 @@
((System.ComponentModel.ISupportInitialize)(this.sfDataGridEmpfaenger)).EndInit();
this.ctxmenuEmpfaenger.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.treeViewAdv1)).EndInit();
+ this.ctxmenutree.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.GridEmpfänger)).EndInit();
this.pnlLoad.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sfdatagridsbload)).EndInit();
@@ -1226,7 +1227,6 @@
this.splitContainer1.ResumeLayout(false);
this.panelLoad.ResumeLayout(false);
this.panelLoad.PerformLayout();
- this.ctxmenutree.ResumeLayout(false);
this.ResumeLayout(false);
}
diff --git a/Client/DocMgmt/Serienbrief.cs b/Client/DocMgmt/Serienbrief.cs
index 61890e5b..ecbe50cd 100644
--- a/Client/DocMgmt/Serienbrief.cs
+++ b/Client/DocMgmt/Serienbrief.cs
@@ -187,6 +187,17 @@ namespace OnDoc.UIControls
docPreview1.Visible = false;
treeViewAdv1.Enabled = true;
}
+ if (type == 7){
+ this.ribbonPanel3.Enabled = enabled;
+ this.ribbonPanel5.Enabled= enabled;
+ this.ribbonPanel6.Enabled=enabled;
+ this.ribbonPanel7.Enabled = enabled;
+ this.ribbonPanel8.Enabled = enabled;
+ this.ribbonPanel9.Enabled = enabled;
+ this.ribbonButtonDelete.Enabled=enabled;
+ erneutGenerierenToolStripMenuItem.Enabled=enabled;
+
+ }
}
private void Refresh_Lists()
{
@@ -584,7 +595,7 @@ namespace OnDoc.UIControls
db.Get_Tabledata("Select beschreibung from physischesarchiv where physischesarchivnr = " + db.dsdaten.Tables[0].Rows[0][3].ToString(), false, true);
sb.barcode_zusatz = db.dsdaten.Tables[0].Rows[0][0].ToString();
- if (sb.barcode_zusatz != "") { sb.barcode_zusatz = " / " + sb.barcode_zusatz; }
+ if (sb.barcode_zusatz != "") { sb.barcode_zusatz = " " + sb.barcode_zusatz; }
}
}
@@ -669,6 +680,10 @@ namespace OnDoc.UIControls
{
enable_disable_functions(3, false);
}
+ if (inbearbeitung==0 && generiert==0 && fehlerhaft==0 && abgeschlossen > 0)
+ {
+ enable_disable_functions(7, false);
+ }
}
catch { }
@@ -800,6 +815,7 @@ namespace OnDoc.UIControls
update_screen();
refresh_empfaenger(sb.dsempfaenger.Tables[0]);
enable_disable_functions(6, false);
+ if (sb.status == 1) { enable_disable_functions(7, false); }
db = null;
}
private void update_screen()
@@ -1812,6 +1828,7 @@ namespace OnDoc.UIControls
}
}
}
+ sb.status = 1;
sb.dsempfaenger.AcceptChanges();
update_serienbriefdaten(false);
update_zahlen();
diff --git a/Client/Klassen/clsProcessWatch.cs b/Client/Klassen/clsProcessWatch.cs
index e345a6d4..d749bc40 100644
--- a/Client/Klassen/clsProcessWatch.cs
+++ b/Client/Klassen/clsProcessWatch.cs
@@ -22,8 +22,9 @@ namespace OnDoc.Klassen
public static void AddToList(string dokumentid, string filename, string application)
{
FilestoCheck.Add(new FileToCheck(dokumentid, filename, application));
- if (watchtimer.Enabled == false) { watchtimer.Enabled = true; }
watchtimer.Elapsed += WatchProcesses;
+ if (watchtimer.Enabled == false) { watchtimer.Enabled = true; }
+
}
public static void RemoveFromList(string dokumentid)
@@ -52,6 +53,7 @@ namespace OnDoc.Klassen
found= false;
foreach (FileToCheck fc in FilestoCheck)
{
+ Logging.Logging.Debug("FileChek "+fc.filename+" / " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"), "OnDoc.Processwatch", fc.dokumentid);
if (fc.application == "Word") { word = true; }
if (fc.application == "Excel") { excel = true; }
if (fc.application == "PDF") { pdf = true; }
@@ -61,7 +63,7 @@ namespace OnDoc.Klassen
Process[] localByName = Process.GetProcessesByName("WINWORD");
foreach (Process p in localByName)
{
- if (p.MainWindowTitle.IndexOf(fc.dokumentid) > 0) { found = true; }
+ if (p.MainWindowTitle.IndexOf(fc.dokumentid) > -1) { found = true; }
}
}
if (excel)
@@ -74,6 +76,7 @@ namespace OnDoc.Klassen
}
if (!found)
{
+ Logging.Logging.Debug("Not Found "+fc.filename+" / "+ DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"), "OnDoc.Processwatch", fc.dokumentid);
if (Check_Modified(fc) == true)
{
Save_File(fc.dokumentid, fc.filename);
diff --git a/Client/Start.Designer.cs b/Client/Start.Designer.cs
index f5a676a5..7d7aa1d4 100644
--- a/Client/Start.Designer.cs
+++ b/Client/Start.Designer.cs
@@ -140,6 +140,7 @@
this.menuStrip1.Size = new System.Drawing.Size(1683, 24);
this.menuStrip1.TabIndex = 5;
this.menuStrip1.Text = "menuStrip1";
+ this.menuStrip1.Visible = false;
//
// dateiToolStripMenuItem
//
diff --git a/Client/UIControls/DocPreview.cs b/Client/UIControls/DocPreview.cs
index ecfc6309..1e8a32f5 100644
--- a/Client/UIControls/DocPreview.cs
+++ b/Client/UIControls/DocPreview.cs
@@ -21,6 +21,7 @@ namespace OnDoc.UIControls
{
public partial class DocPreview : UserControl
{
+ string PrintDokID = "";
public int ZoomPercentage { get; set; }
public DocPreview()
{
@@ -51,6 +52,7 @@ namespace OnDoc.UIControls
}
public void Show_Doc(string dokumentid)
{
+ PrintDokID= dokumentid;
clsdok dok = new clsdok("", "", "");
if (dokumentid.Length > 25) { dok.dokument = dokumentid; } else { dok = GetDoc(true, dokumentid); }
var stream = new MemoryStream(Convert.FromBase64String(dok.dokument));
@@ -70,8 +72,9 @@ namespace OnDoc.UIControls
}
}
- public void show_base64(string image)
+ public void show_base64(string image,string Logtext)
{
+ PrintDokID = "Vorschau Vorlage: " + Logtext; ;
var stream = new MemoryStream(Convert.FromBase64String(image));
if (stream.Length > 0)
{
@@ -98,6 +101,7 @@ namespace OnDoc.UIControls
var stream = new MemoryStream(Convert.FromBase64String(db.dsdaten.Tables[0].Rows[0][0].ToString()));
if (stream.Length > 0)
{
+ PrintDokID = "Serienbrief: Nr:" + Serienbriefnr.ToString() + " / " + dokumentid.ToString();
this.pdfViewerControl1.Load(stream);
this.pdfViewerControl1.Visible = true;
pdfViewerControl1.ZoomMode = ZoomMode.FitWidth;
@@ -283,11 +287,13 @@ namespace OnDoc.UIControls
private void toolStripButton1_Click(object sender, EventArgs e)
{
pdfViewerControl1.Print(true);
+ Logging.DocLog.Info("Preview gedruckt", "OnDoc", PrintDokID,"","");
}
public void printpdf()
{
pdfViewerControl1.Print(true);
+ Logging.DocLog.Info("Preview gedruckt", "OnDoc", PrintDokID, "", "");
}
}
}
diff --git a/Client/UIControls/DokList.Designer.cs b/Client/UIControls/DokList.Designer.cs
index 862facf7..34b07918 100644
--- a/Client/UIControls/DokList.Designer.cs
+++ b/Client/UIControls/DokList.Designer.cs
@@ -38,16 +38,17 @@ namespace OnDoc.UICintrols
this.dokumentBearbeitenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dokumentLöschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.archivierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.druckenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.dokumentKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.barcodeDemoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.vertragPDFDEMOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.zellenwertInZwischenablageKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.druckenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pDFGenerierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dokumentAnVersandstrasseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wordInterOPEditToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.attributeAnzeigenVersteckenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.historyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.dokumentKopierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.tsrbvorschau = new System.Windows.Forms.ToolStripComboBox();
@@ -182,6 +183,7 @@ namespace OnDoc.UICintrols
this.sfDataGrid1.FilterChanged += new Syncfusion.WinForms.DataGrid.Events.FilterChangedEventHandler(this.sfDataGrid1_FilterChanged);
this.sfDataGrid1.DataSourceChanged += new Syncfusion.WinForms.DataGrid.Events.DataSourceChangedEventHandler(this.sfDataGrid1_DataSourceChanged);
this.sfDataGrid1.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfDataGrid1_CellClick);
+ this.sfDataGrid1.CellDoubleClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfDataGrid1_CellDoubleClick);
this.sfDataGrid1.CopyContent += new Syncfusion.WinForms.DataGrid.Events.CutCopyPasteEventHandler(this.sfDataGrid1_CopyContent);
//
// ctxMenuDokList
@@ -191,18 +193,19 @@ namespace OnDoc.UICintrols
this.dokumentBearbeitenToolStripMenuItem,
this.dokumentLöschenToolStripMenuItem,
this.archivierenToolStripMenuItem,
+ this.druckenToolStripMenuItem,
+ this.dokumentKopierenToolStripMenuItem,
+ this.toolStripMenuItem1,
this.barcodeDemoToolStripMenuItem,
this.vertragPDFDEMOToolStripMenuItem,
this.zellenwertInZwischenablageKopierenToolStripMenuItem,
- this.druckenToolStripMenuItem,
this.pDFGenerierenToolStripMenuItem,
this.dokumentAnVersandstrasseToolStripMenuItem,
this.wordInterOPEditToolStripMenuItem,
this.attributeAnzeigenVersteckenToolStripMenuItem,
- this.historyToolStripMenuItem,
- this.dokumentKopierenToolStripMenuItem});
+ this.historyToolStripMenuItem});
this.ctxMenuDokList.Name = "ctxMenuDokList";
- this.ctxMenuDokList.Size = new System.Drawing.Size(280, 312);
+ this.ctxMenuDokList.Size = new System.Drawing.Size(280, 318);
//
// dokumentAnzeigenToolStripMenuItem
//
@@ -236,6 +239,27 @@ namespace OnDoc.UICintrols
this.archivierenToolStripMenuItem.Text = "Archivieren";
this.archivierenToolStripMenuItem.Click += new System.EventHandler(this.archivierenToolStripMenuItem_Click);
//
+ // druckenToolStripMenuItem
+ //
+ this.druckenToolStripMenuItem.Image = global::OnDoc.Properties.Resources.Printer_16x16_32;
+ this.druckenToolStripMenuItem.Name = "druckenToolStripMenuItem";
+ this.druckenToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
+ this.druckenToolStripMenuItem.Text = "Drucken";
+ this.druckenToolStripMenuItem.Click += new System.EventHandler(this.druckenToolStripMenuItem_Click);
+ //
+ // dokumentKopierenToolStripMenuItem
+ //
+ this.dokumentKopierenToolStripMenuItem.Image = global::OnDoc.Properties.Resources.Copy_16x16_32;
+ this.dokumentKopierenToolStripMenuItem.Name = "dokumentKopierenToolStripMenuItem";
+ this.dokumentKopierenToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
+ this.dokumentKopierenToolStripMenuItem.Text = "Dokument kopieren";
+ this.dokumentKopierenToolStripMenuItem.Click += new System.EventHandler(this.dokumentKopierenToolStripMenuItem_Click);
+ //
+ // toolStripMenuItem1
+ //
+ this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(276, 6);
+ //
// barcodeDemoToolStripMenuItem
//
this.barcodeDemoToolStripMenuItem.Name = "barcodeDemoToolStripMenuItem";
@@ -259,13 +283,6 @@ namespace OnDoc.UICintrols
this.zellenwertInZwischenablageKopierenToolStripMenuItem.Text = "Zellenwert in Zwischenablage kopieren";
this.zellenwertInZwischenablageKopierenToolStripMenuItem.Click += new System.EventHandler(this.zellenwertInZwischenablageKopierenToolStripMenuItem_Click);
//
- // druckenToolStripMenuItem
- //
- this.druckenToolStripMenuItem.Name = "druckenToolStripMenuItem";
- this.druckenToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
- this.druckenToolStripMenuItem.Text = "Drucken";
- this.druckenToolStripMenuItem.Click += new System.EventHandler(this.druckenToolStripMenuItem_Click);
- //
// pDFGenerierenToolStripMenuItem
//
this.pDFGenerierenToolStripMenuItem.Name = "pDFGenerierenToolStripMenuItem";
@@ -304,13 +321,6 @@ namespace OnDoc.UICintrols
this.historyToolStripMenuItem.Text = "History";
this.historyToolStripMenuItem.Click += new System.EventHandler(this.historyToolStripMenuItem_Click);
//
- // dokumentKopierenToolStripMenuItem
- //
- this.dokumentKopierenToolStripMenuItem.Name = "dokumentKopierenToolStripMenuItem";
- this.dokumentKopierenToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
- this.dokumentKopierenToolStripMenuItem.Text = "Dokument kopieren";
- this.dokumentKopierenToolStripMenuItem.Click += new System.EventHandler(this.dokumentKopierenToolStripMenuItem_Click);
- //
// toolStrip1
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -428,6 +438,7 @@ namespace OnDoc.UICintrols
this.lblTitel.TabIndex = 2;
this.lblTitel.Text = "Pendente Dokumente";
this.lblTitel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.lblTitel.Visible = false;
//
// ribbonPanel2
//
@@ -1053,6 +1064,7 @@ namespace OnDoc.UICintrols
//
// RibbonPanelDiverses
//
+ this.RibbonPanelDiverses.ButtonMoreVisible = false;
this.RibbonPanelDiverses.Items.Add(this.ribbonButtonBCK);
this.RibbonPanelDiverses.Name = "RibbonPanelDiverses";
this.RibbonPanelDiverses.Text = "Diverse Funktionen";
@@ -1368,5 +1380,6 @@ namespace OnDoc.UICintrols
private System.Windows.Forms.RibbonPanel ribbonPanelZuweisung;
private System.Windows.Forms.ToolStripMenuItem historyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem dokumentKopierenToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
}
}
diff --git a/Client/UIControls/DokList.cs b/Client/UIControls/DokList.cs
index 4677ce10..2cacdbc2 100644
--- a/Client/UIControls/DokList.cs
+++ b/Client/UIControls/DokList.cs
@@ -662,7 +662,9 @@ namespace OnDoc.UICintrols
if (dokumenttypnr == 0)
{
DokTypSelect DokTypSelect = new DokTypSelect(Favoriten);
+ //;
DokTypSelect.vorlagentype = 1;
+
DokTypSelect.ShowDialog(this);
if (DokTypSelect.DialogResult == DialogResult.OK)
{
@@ -685,6 +687,8 @@ namespace OnDoc.UICintrols
else
{
frmnewdok.ShowDialog();
+
+ refresh_dokumente();
}
switch (frmnewdok.DocFunction)
{
@@ -713,6 +717,17 @@ namespace OnDoc.UICintrols
break;
case 5:
break;
+ case 6:
+ selected_dokumentid = frmnewdok.dokumentid;
+ selected_partnernr = frmnewdok.partnernr.ToString(); ;
+ interop = frmnewdok.interop;
+ runmacros = frmnewdok.runmacros;
+ string filename = frmnewdok.filename;
+ DB db = new DB(AppParams.connectionstring);
+ db.Dok_in_Bearbeietung(1, selected_dokumentid, AppParams.CurrentMitarbieter);
+ db = null;
+ clsProcessWatch.AddToList(selected_dokumentid, filename, "Word");
+ break;
default:
break;
}
@@ -1200,6 +1215,7 @@ namespace OnDoc.UICintrols
else
{
this.lblToApprove.Text = db.dsdaten.Tables[0].Rows[0][0].ToString();
+ lblToApprove.Visible = true;
}
db = null;
}
@@ -1635,6 +1651,10 @@ namespace OnDoc.UICintrols
RibbonButtonArchivToOnBase.Enabled = false;
dokumentBearbeitenToolStripMenuItem.Enabled = false;
dokumentLöschenToolStripMenuItem.Enabled = false;
+ druckenToolStripMenuItem.Enabled = false;
+ dokumentKopierenToolStripMenuItem.Enabled = false;
+ attributeAnzeigenVersteckenToolStripMenuItem.Enabled = false;
+ historyToolStripMenuItem.Enabled = false;
archivierenToolStripMenuItem.Enabled = false;
zellenwertInZwischenablageKopierenToolStripMenuItem.Enabled = false;
selected_dokumentid = "";
@@ -1652,6 +1672,10 @@ namespace OnDoc.UICintrols
dokumentLöschenToolStripMenuItem.Enabled = true;
archivierenToolStripMenuItem.Enabled = true;
zellenwertInZwischenablageKopierenToolStripMenuItem.Enabled = true;
+ druckenToolStripMenuItem.Enabled = true;
+ dokumentKopierenToolStripMenuItem.Enabled = true;
+ attributeAnzeigenVersteckenToolStripMenuItem.Enabled = true;
+ historyToolStripMenuItem.Enabled = true;
this.sfDataGrid1.SelectedItem = this.sfDataGrid1.View.Records[0];
sfDataGrid1.SelectedIndex = 0;
@@ -1771,16 +1795,41 @@ namespace OnDoc.UICintrols
private void historyToolStripMenuItem_Click(object sender, EventArgs e)
{
+ var records = sfDataGrid1.View.GetSelectedRecords();
+ if (records.Count < 1) { return; }
DokHistory dh = new DokHistory(selected_dokumentid);
dh.ShowDialog();
}
private void dokumentKopierenToolStripMenuItem_Click(object sender, EventArgs e)
{
- DB db = new DB(AppParams.connectionstring);
- db.copydoc(selected_dokumentid);
- db = null;
-
+ var records = sfDataGrid1.View.GetSelectedRecords();
+ if (records.Count < 1) { return; }
+ if (MessageBox.Show("Gewähltes Dokument kopieren?", "Dokument kopieren", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+ {
+ DB db = new DB(AppParams.connectionstring);
+ string newdocid = db.copydoc(selected_dokumentid, AppParams.CurrentMitarbieter);
+ db = null;
+ if (newdocid == "")
+ {
+ MessageBox.Show("Das Dokument ID:'" + selected_dokumentid + "' konnte nicht kopiert werden.", "Dokument kopieren", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ else
+ {
+
+ MessageBox.Show("Das Dokument wurde erfolgreich kopiert. Neue Dokument.ID:'" + newdocid + "'.", "Dokument kopieren", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ Logging.DocLog.Info("Dokumentkopie von '" + selected_dokumentid + "' erstellt", "OnDoc.DocList'", newdocid, "", "Dokumentkopie erstellt");
+ refresh_dokumente();
+ }
+ }
+
+ }
+
+ private void sfDataGrid1_CellDoubleClick(object sender, CellClickEventArgs e)
+ {
+ sfDataGrid1_CellClick(sender, e);
+ dokumentBearbeitenToolStripMenuItem_Click(sender, e);
+
}
}
diff --git a/Client/UIControls/DokTypDetail.cs b/Client/UIControls/DokTypDetail.cs
index a7d352c9..f510ecad 100644
--- a/Client/UIControls/DokTypDetail.cs
+++ b/Client/UIControls/DokTypDetail.cs
@@ -45,37 +45,51 @@ namespace OnDoc.UIControls
DataRow dr = details.NewRow();
dr[0] = dc.ColumnName.ToString().Replace("_", "");
dr[1] = dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString();
- if (dc.ColumnName.ToString().Replace("_", "") == "Vertrag")
+ try
{
+ if (dB.dsdaten.Tables[0].Columns[0].DataType == typeof(Boolean)) {
if (Convert.ToBoolean(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName]) == false)
{
dr[1] = "Nein";
}
else
{ dr[1] = "Ja"; }
+ }
+ else
+ {
+
+ }
}
- details.Rows.Add(dr);
+ catch { }
+
+
+ details.Rows.Add(dr);
}
else
{
- DocGet dg = new DocGet(AppParams.connectionstring);
- clsdok dok = new clsdok(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString(), dB.dsdaten.Tables[0].Rows[0]["Applikation"].ToString(), "");
- string PDF = "";
- switch (dB.dsdaten.Tables[0].Rows[0]["Applikation"].ToString().ToUpper())
+ if (dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString() != "")
{
- case "WORD":
- PDF = dg.Convert_Word_To_PDF(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString());
- break;
- case "EXCEL":
- PDF = dg.Convert_Excel_To_PDF(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString());
- break;
- case "PDF":
- PDF = dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString();
- break;
- default:
- break;
+ DocGet dg = new DocGet(AppParams.connectionstring);
+ clsdok dok = new clsdok(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString(), dB.dsdaten.Tables[0].Rows[0]["Applikation"].ToString(), "");
+ string PDF = "";
+ switch (dB.dsdaten.Tables[0].Rows[0]["Applikation"].ToString().ToUpper())
+ {
+ case "WORD":
+ PDF = dg.Convert_Word_To_PDF(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString());
+ break;
+ case "EXCEL":
+ PDF = dg.Convert_Excel_To_PDF(dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString());
+ break;
+ case "PDF":
+ PDF = dB.dsdaten.Tables[0].Rows[0][dc.ColumnName].ToString();
+ break;
+ default:
+ break;
+ }
+ docPreview1.show_base64(PDF, "Dokumenttyp: " + dokumenttypnr.ToString());
+ dg = null;
+ dok = null;
}
- docPreview1.show_base64(PDF);
}
}
sfDataGrid1.DataSource = details;
diff --git a/Client/UIControls/Partnersuche.cs b/Client/UIControls/Partnersuche.cs
index 58064609..82809993 100644
--- a/Client/UIControls/Partnersuche.cs
+++ b/Client/UIControls/Partnersuche.cs
@@ -32,6 +32,8 @@ namespace OnDoc.UIControls
public bool personendokument { get; set; } = false;
public bool check_bp_person { get; set; } = false;
+ public int dokumenttypnr { get; set; } = 0;
+
public Partnersuche()
{
InitializeComponent();
@@ -47,6 +49,18 @@ namespace OnDoc.UIControls
clsPartner.set_connectionstring(AppParams.connectionstring);
this.trefferlistedata.TableControl.DoubleClick += TableControl_DoubleClick;
}
+
+ public Partnersuche(bool personendokument, bool check_bp_person, int dokumenttypnr=0)
+ {
+ InitializeComponent();
+ this.personendokument = personendokument;
+ this.check_bp_person = check_bp_person;
+ clsPartner.set_connectionstring(AppParams.connectionstring);
+ this.trefferlistedata.TableControl.DoubleClick += TableControl_DoubleClick;
+ this.dokumenttypnr = dokumenttypnr;
+ }
+
+
private void Form1_Load(object sender, EventArgs e)
{
this.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
@@ -223,6 +237,23 @@ namespace OnDoc.UIControls
catch { return false; }
finally { db=null; }
}
+ if (partnersaldiert)
+ {
+ DB db = new DB(AppParams.connectionstring);
+ try
+ {
+ db.Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + dokumenttypnr.ToString(),false,true);
+ if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["vertrag"]) == true)
+ {
+ MessageBox.Show("Das Dokument " + db.dsdaten.Tables[0].Rows[0]["Bezeichnung"].ToString() + " kann nicht für einen saldierten Partner erstellt werden.","Dokument erstellen", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return false;
+ }
+ }
+ catch { return false; }
+ finally { db = null; }
+
+
+ }
return true;
@@ -257,7 +288,7 @@ namespace OnDoc.UIControls
{
try
{
- get_details();
+ if (!get_details()) { return; };
//partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref this.trefferlistedata, "nrpar00"));
//partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
//partnersaldiert = Convert.ToBoolean(TableHelper.GetCellCValue(ref this.trefferlistedata, "saldiert"));
diff --git a/Client/UIControls/UCAllgemeineDokumentParam.cs b/Client/UIControls/UCAllgemeineDokumentParam.cs
index 837db67f..f54827bc 100644
--- a/Client/UIControls/UCAllgemeineDokumentParam.cs
+++ b/Client/UIControls/UCAllgemeineDokumentParam.cs
@@ -504,7 +504,7 @@ namespace OnDoc.UIControls
private void show_partnerdialog()
{
- Partnersuche ps = new Partnersuche(personendokument,true);
+ Partnersuche ps = new Partnersuche(personendokument,true,dokumenttypnr);
ps.ShowDialog();
if (ps.DialogResult == DialogResult.OK)
{
@@ -539,10 +539,11 @@ namespace OnDoc.UIControls
switch (feldtyp.ToUpper())
{
case "DATUMSHORT":
+
case "DATUMMEDIUM":
case "DATUMLONG":
- break;
- frmCalendar f = new frmCalendar();
+
+ valueselector f = new valueselector(true);
f.ShowDialog();
string res = "";
if (f.DialogResult == DialogResult.OK)
@@ -550,15 +551,15 @@ namespace OnDoc.UIControls
if (feldtyp.ToUpper() == "DATUMSHORT")
{
- res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datumshort);
+ res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.selected_datetime), Helper.ConvertHelper.DateTimeFormat.datumshort);
}
if (feldtyp.ToUpper() == "DATUMMEDIUM")
{
- res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datummedium);
+ res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.selected_datetime), Helper.ConvertHelper.DateTimeFormat.datummedium);
}
if (feldtyp.ToUpper() == "DATUMLONG")
{
- res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.sfCalendar1.SelectedDate), Helper.ConvertHelper.DateTimeFormat.datummedium);
+ res = Helper.ConvertHelper.Datum(Convert.ToDateTime(f.selected_datetime), Helper.ConvertHelper.DateTimeFormat.datummedium);
}
}
f.Dispose();
diff --git a/Client/bin/Debug/DOCGEN.dll b/Client/bin/Debug/DOCGEN.dll
index 6208b04e..6bced055 100644
Binary files a/Client/bin/Debug/DOCGEN.dll and b/Client/bin/Debug/DOCGEN.dll differ
diff --git a/Client/bin/Debug/DOCGEN.pdb b/Client/bin/Debug/DOCGEN.pdb
index fe1bc972..83dccb67 100644
Binary files a/Client/bin/Debug/DOCGEN.pdb and b/Client/bin/Debug/DOCGEN.pdb differ
diff --git a/Client/bin/Debug/Database.dll b/Client/bin/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/Client/bin/Debug/Database.dll and b/Client/bin/Debug/Database.dll differ
diff --git a/Client/bin/Debug/Database.pdb b/Client/bin/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/Client/bin/Debug/Database.pdb and b/Client/bin/Debug/Database.pdb differ
diff --git a/Client/bin/Debug/Helper.dll b/Client/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/Client/bin/Debug/Helper.dll and b/Client/bin/Debug/Helper.dll differ
diff --git a/Client/bin/Debug/Helper.pdb b/Client/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/Client/bin/Debug/Helper.pdb and b/Client/bin/Debug/Helper.pdb differ
diff --git a/Client/bin/Debug/OnDoc.exe b/Client/bin/Debug/OnDoc.exe
index 402155fd..770ed52e 100644
Binary files a/Client/bin/Debug/OnDoc.exe and b/Client/bin/Debug/OnDoc.exe differ
diff --git a/Client/bin/Debug/OnDoc.pdb b/Client/bin/Debug/OnDoc.pdb
index 325b331b..6fa01970 100644
Binary files a/Client/bin/Debug/OnDoc.pdb and b/Client/bin/Debug/OnDoc.pdb differ
diff --git a/Client/bin/Debug/OnDocClient.zip b/Client/bin/Debug/OnDocClient.zip
index 54c5daf2..0fb7e850 100644
Binary files a/Client/bin/Debug/OnDocClient.zip and b/Client/bin/Debug/OnDocClient.zip differ
diff --git a/Client/bin/Debug/OnDocOffice.dll b/Client/bin/Debug/OnDocOffice.dll
index 5162d87b..b2b78e1e 100644
Binary files a/Client/bin/Debug/OnDocOffice.dll and b/Client/bin/Debug/OnDocOffice.dll differ
diff --git a/Client/bin/Debug/OnDocOffice.pdb b/Client/bin/Debug/OnDocOffice.pdb
index 22598eb0..54f79700 100644
Binary files a/Client/bin/Debug/OnDocOffice.pdb and b/Client/bin/Debug/OnDocOffice.pdb differ
diff --git a/Client/bin/Debug/de-DE/OnDoc.resources.dll b/Client/bin/Debug/de-DE/OnDoc.resources.dll
index 4cb8f753..d29b3209 100644
Binary files a/Client/bin/Debug/de-DE/OnDoc.resources.dll and b/Client/bin/Debug/de-DE/OnDoc.resources.dll differ
diff --git a/Client/obj/Debug/Client.csproj.AssemblyReference.cache b/Client/obj/Debug/Client.csproj.AssemblyReference.cache
index 5d8b4dc6..fda8cf7f 100644
Binary files a/Client/obj/Debug/Client.csproj.AssemblyReference.cache and b/Client/obj/Debug/Client.csproj.AssemblyReference.cache differ
diff --git a/Client/obj/Debug/Client.csproj.GenerateResource.cache b/Client/obj/Debug/Client.csproj.GenerateResource.cache
index e387fe12..39250b15 100644
Binary files a/Client/obj/Debug/Client.csproj.GenerateResource.cache and b/Client/obj/Debug/Client.csproj.GenerateResource.cache differ
diff --git a/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache
index c8cb98be..a7dfa560 100644
Binary files a/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/Client/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Client/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
index ed755013..7c538587 100644
Binary files a/Client/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Client/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/Client/obj/Debug/OnDoc.DocMgmt.DokTypSelect.resources b/Client/obj/Debug/OnDoc.DocMgmt.DokTypSelect.resources
index 6f50db89..391aa08c 100644
Binary files a/Client/obj/Debug/OnDoc.DocMgmt.DokTypSelect.resources and b/Client/obj/Debug/OnDoc.DocMgmt.DokTypSelect.resources differ
diff --git a/Client/obj/Debug/OnDoc.exe b/Client/obj/Debug/OnDoc.exe
index 402155fd..770ed52e 100644
Binary files a/Client/obj/Debug/OnDoc.exe and b/Client/obj/Debug/OnDoc.exe differ
diff --git a/Client/obj/Debug/OnDoc.pdb b/Client/obj/Debug/OnDoc.pdb
index 325b331b..6fa01970 100644
Binary files a/Client/obj/Debug/OnDoc.pdb and b/Client/obj/Debug/OnDoc.pdb differ
diff --git a/Client/obj/Debug/de-DE/OnDoc.resources.dll b/Client/obj/Debug/de-DE/OnDoc.resources.dll
index 4cb8f753..d29b3209 100644
Binary files a/Client/obj/Debug/de-DE/OnDoc.resources.dll and b/Client/obj/Debug/de-DE/OnDoc.resources.dll differ
diff --git a/DOCGEN/Klassen/DocGenerator_from_EDOKA.cs b/DOCGEN/Klassen/DocGenerator_from_EDOKA.cs
index ae667feb..087779e7 100644
--- a/DOCGEN/Klassen/DocGenerator_from_EDOKA.cs
+++ b/DOCGEN/Klassen/DocGenerator_from_EDOKA.cs
@@ -60,10 +60,12 @@ namespace DOCGEN.Generator
DataTable dt = new DataTable();
DataTable dt2 = new DataTable();
string Apptype = "";
+ string Extension = "";
dt = db.Get_Vorlage_By_DokumentID(dokumentid,useoffice);
db.dsdaten.Tables.Clear();
dt2 = db.Get_ApplicationType_from_Vorlage(Convert.ToInt32(dt.Rows[0]["nr"].ToString()));
Apptype = dt2.Rows[0][0].ToString();
+ Extension = dt2.Rows[0][1].ToString();
switch (Apptype.ToUpper())
{
case "DOCX": case "DOCM": case "DOC": case "DOT":
@@ -76,7 +78,7 @@ namespace DOCGEN.Generator
} else
{
OnDocOffice.clsWordEdit oo = new OnDocOffice.clsWordEdit("", "","");
- dok.dokument = oo.Generate_Word_in_Office(ref docdata, ref dok, dt.Rows[0][0].ToString(), connectionstring, tempdir, dokumentid, Apptype);
+ dok.dokument = oo.Generate_Word_in_Office(ref docdata, ref dok, dt.Rows[0][0].ToString(), connectionstring, tempdir, dokumentid, Apptype,Extension);
}
dok.doktype = "D";
diff --git a/DOCGEN/bin/Debug/DOCGEN.dll b/DOCGEN/bin/Debug/DOCGEN.dll
index 6208b04e..6bced055 100644
Binary files a/DOCGEN/bin/Debug/DOCGEN.dll and b/DOCGEN/bin/Debug/DOCGEN.dll differ
diff --git a/DOCGEN/bin/Debug/DOCGEN.pdb b/DOCGEN/bin/Debug/DOCGEN.pdb
index fe1bc972..83dccb67 100644
Binary files a/DOCGEN/bin/Debug/DOCGEN.pdb and b/DOCGEN/bin/Debug/DOCGEN.pdb differ
diff --git a/DOCGEN/bin/Debug/Database.dll b/DOCGEN/bin/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/DOCGEN/bin/Debug/Database.dll and b/DOCGEN/bin/Debug/Database.dll differ
diff --git a/DOCGEN/bin/Debug/Database.pdb b/DOCGEN/bin/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/DOCGEN/bin/Debug/Database.pdb and b/DOCGEN/bin/Debug/Database.pdb differ
diff --git a/DOCGEN/bin/Debug/Helper.dll b/DOCGEN/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/DOCGEN/bin/Debug/Helper.dll and b/DOCGEN/bin/Debug/Helper.dll differ
diff --git a/DOCGEN/bin/Debug/Helper.pdb b/DOCGEN/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/DOCGEN/bin/Debug/Helper.pdb and b/DOCGEN/bin/Debug/Helper.pdb differ
diff --git a/DOCGEN/bin/Debug/OnDocOffice.dll b/DOCGEN/bin/Debug/OnDocOffice.dll
index 5162d87b..b2b78e1e 100644
Binary files a/DOCGEN/bin/Debug/OnDocOffice.dll and b/DOCGEN/bin/Debug/OnDocOffice.dll differ
diff --git a/DOCGEN/bin/Debug/OnDocOffice.pdb b/DOCGEN/bin/Debug/OnDocOffice.pdb
index 22598eb0..54f79700 100644
Binary files a/DOCGEN/bin/Debug/OnDocOffice.pdb and b/DOCGEN/bin/Debug/OnDocOffice.pdb differ
diff --git a/DOCGEN/clsDocGen.cs b/DOCGEN/clsDocGen.cs
index 0303a858..df79c1e5 100644
--- a/DOCGEN/clsDocGen.cs
+++ b/DOCGEN/clsDocGen.cs
@@ -17,6 +17,9 @@ using System.Runtime.Serialization;
using System.Xml.Linq;
using NLog.LayoutRenderers;
using System.Configuration;
+using Syncfusion.DocIO;
+using Syncfusion.Pdf;
+using System.IO;
namespace DOCGEN
{
@@ -115,5 +118,30 @@ namespace DOCGEN
sfword = null;
return dok.dokument;
}
+
+ //public void createpdf(string filename)
+ //{
+ // WordDocument document = new WordDocument(filename, FormatType.Automatic);
+ // CompatibilityMode compatibilityMode = document.Settings.CompatibilityMode;
+ // //document.UpdateDocumentFields();
+ // //document.UpdateDocumentFields();
+ // //TextSelection textSelection = document.Find("den Kunden", false, true);
+ // //WTextRange textRange = textSelection.GetAsOneRange();
+ // //Modifies the text
+ // //textRange.Text = "Replaced text";
+ // using (Syncfusion.DocToPDFConverter.DocToPDFConverter converter = new Syncfusion.DocToPDFConverter.DocToPDFConverter())
+ // {
+ // converter.Settings.EmbedFonts = true;
+ // //converter.Settings.UpdateDocumentFields = true;
+ // //converter.Settings.EnableAlternateChunks = true;
+ // //converter.Settings.AutoDetectComplexScript = true;
+
+ // //Converts Word document into PDF document
+ // using (PdfDocument pdfDocument = converter.ConvertToPDF(document))
+ // {
+ // pdfDocument.Save(filename + ".pdf");
+ // }
+ // };
+ //}
}
}
diff --git a/DOCGEN/clsDocGet.cs b/DOCGEN/clsDocGet.cs
index 04bb431b..119a8f45 100644
--- a/DOCGEN/clsDocGet.cs
+++ b/DOCGEN/clsDocGet.cs
@@ -285,7 +285,7 @@ namespace DOCGEN
}
- public string Convert_Word_To_PDF(string document, DataTable pdfparameters = null)
+ public string Convert_Word_To_PDF(string document, DataTable pdfparameters = null, bool useseettings = false)
{
//Dokument erstellen
@@ -298,10 +298,12 @@ namespace DOCGEN
using (Syncfusion.DocToPDFConverter.DocToPDFConverter converter = new Syncfusion.DocToPDFConverter.DocToPDFConverter())
{
converter.Settings.EmbedFonts = true;
- converter.Settings.UpdateDocumentFields = true;
- converter.Settings.EnableAlternateChunks = true;
- converter.Settings.AutoDetectComplexScript = true;
-
+ if (useseettings)
+ {
+ converter.Settings.UpdateDocumentFields = true;
+ converter.Settings.EnableAlternateChunks = true;
+ converter.Settings.AutoDetectComplexScript = true;
+ }
//Converts Word document into PDF document
using (PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument))
{
@@ -457,13 +459,16 @@ namespace DOCGEN
//Initialize ExcelToPdfConverter
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
+ ExcelToPdfConverterSettings settings = new ExcelToPdfConverterSettings();
+ settings.EmbedFonts = true;
+
//Initialize PDF document
PdfDocument pdfDocument = new PdfDocument();
//Convert Excel document into PDF document
- pdfDocument = converter.Convert();
+ pdfDocument = converter.Convert(settings);
//Save the converted PDF document
diff --git a/DOCGEN/obj/Debug/DOCGEN.dll b/DOCGEN/obj/Debug/DOCGEN.dll
index 6208b04e..6bced055 100644
Binary files a/DOCGEN/obj/Debug/DOCGEN.dll and b/DOCGEN/obj/Debug/DOCGEN.dll differ
diff --git a/DOCGEN/obj/Debug/DOCGEN.pdb b/DOCGEN/obj/Debug/DOCGEN.pdb
index fe1bc972..83dccb67 100644
Binary files a/DOCGEN/obj/Debug/DOCGEN.pdb and b/DOCGEN/obj/Debug/DOCGEN.pdb differ
diff --git a/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache b/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache
index 8e4ab5b4..e36bf7ce 100644
Binary files a/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache and b/DOCGEN/obj/Debug/DocGen.csproj.AssemblyReference.cache differ
diff --git a/Database/bin/Debug/Database.dll b/Database/bin/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/Database/bin/Debug/Database.dll and b/Database/bin/Debug/Database.dll differ
diff --git a/Database/bin/Debug/Database.pdb b/Database/bin/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/Database/bin/Debug/Database.pdb and b/Database/bin/Debug/Database.pdb differ
diff --git a/Database/bin/Debug/Helper.dll b/Database/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/Database/bin/Debug/Helper.dll and b/Database/bin/Debug/Helper.dll differ
diff --git a/Database/bin/Debug/Helper.pdb b/Database/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/Database/bin/Debug/Helper.pdb and b/Database/bin/Debug/Helper.pdb differ
diff --git a/Database/db.cs b/Database/db.cs
index ee1d7490..3f4674eb 100644
--- a/Database/db.cs
+++ b/Database/db.cs
@@ -195,7 +195,7 @@ namespace Database
dbkey = "0" + dbkey;
}
skey = skey + dbkey;
- s = Helper.DivFnkt.modulo10(dt + dbkey).ToString();
+ s = Helper.DivFnkt.modulo10(skey.Substring(skey.Length-15,15)).ToString();
skey = skey + s;
return skey;
}
@@ -1911,7 +1911,7 @@ namespace Database
}
}
- public bool copydoc(string dokumentid)
+ public string copydoc(string dokumentid, int manr)
{
try
{
@@ -1919,12 +1919,85 @@ namespace Database
clear_parameter();
add_parameter("UrsprungID", dokumentid);
add_parameter("NewDokID", newdokumentid);
- Get_Tabledata("sp_ondoc_copy_doc");
+
+ clsDokument dok = new clsDokument();
+ clsConnectionProvider edoka_conn = new clsConnectionProvider();
+ edoka_conn.sConnectionString = this.connectionstring;
+ dok.cpMainConnectionProvider = edoka_conn;
+ edoka_conn.OpenConnection();
+ dok.sDokumentid = dokumentid;
+ dok.SelectOne();
+ dok.sDokumentid=newdokumentid;
+ dok.daErstelltam = DateTime.Now;
+ dok.daMutiertam = DateTime.Now;
+ dok.iErsteller = manr;
+ dok.iMutierer = manr;
+ dok.Insert();
+
+ COLD_Index_Sichern(1, newdokumentid);
+ if (dok.bZu_retournieren == true)
+ {
+ COLD_Index_Sichern(2, newdokumentid);
+ }
+ Status_Erstellen(newdokumentid, false);
+ dok.iStatusnr = Convert.ToInt32(get_current_Status(newdokumentid).ToString());
+ //edoka_conn.OpenConnection();
+ dok.Update();
+ edoka_conn.CloseConnection(true);
+
+ //Get_Tabledata("Select * from dokumentcoldindexwert where dokumentid='" + dokumentid + "'", false, true);
+ //Get_Tabledata_for_Update("Select * from dokumentcoldindexwert where dokumentid='" + newdokumentid + "'", false, true);
+ //foreach (DataRow dr in dsdaten.Tables[0].Rows)
+ //{
+ // daten.Tables[0].Rows.Add(dr);
+ //}
+ //daten.AcceptChanges();
+ //Update_Data();
+
+ Get_Tabledata("Select * from dokumentcoldindexwert where dokumentid='" + dokumentid + "'", false, true);
+ Get_Tabledata_for_Update("Select * from dokumentcoldindexwert where dokumentid='" + newdokumentid + "'", false, true);
+ foreach (DataRow dr in dsdaten.Tables[0].Rows)
+ {
+ dr["dokumentid"] = newdokumentid;
+ daten.Tables[0].ImportRow(dr);
+ }
+ daten.AcceptChanges();
+ Update_Data();
+ Get_Tabledata("Select * from dokumentinfo_wert where dokumentid='" + dokumentid + "'", false, true);
+ Get_Tabledata_for_Update("Select * from dokumentinfo_wert where dokumentid='" + newdokumentid + "'", false, true);
+ foreach (DataRow dr in dsdaten.Tables[0].Rows)
+ {
+ dr["dokumentid"] = newdokumentid;
+ daten.Tables[0].ImportRow(dr);
+ }
+ daten.AcceptChanges();
+ Update_Data();
+
+ Exec_SQL("insert doks (dokumentid, dokument, doktype) select '" + newdokumentid + "', dokument,doktype from doks where dokumentid='" + dokumentid + "'");
+
+ Get_Tabledata("Select * from dokumenttyp where dokumenttypnr=" + dok.iDokumenttypnr.ToString(), false, true);
+ int toapprove = 0;
+ int approved = 0;
+ int approved1 = 0;
+ int approved2 = 0;
+ if (Convert.ToBoolean(dsdaten.Tables[0].Rows[0]["Unterschrift_Pruefung"]) == true)
+ {
+ toapprove = 1;
+ if (dok.iUnterschriftlinks == dok.iErsteller) { approved1 = 1; }
+ if (dok.iUnterschriftrechts == dok.iErsteller) { approved2 = 1; }
+ }
+ int unterschriftlinks = Convert.ToInt32(dsdaten.Tables[0].Rows[0]["Unterschrift_links"]);
+ int unterschriftrechts = Convert.ToInt32(dsdaten.Tables[0].Rows[0]["Unterschrift_rechts"]);
+ int bearbeitung_zwingend = Convert.ToInt32(dsdaten.Tables[0].Rows[0]["bearbeitung_zwingend"]);
+ if (unterschriftlinks == 1 && unterschriftrechts == 0 && approved1 == 1) { approved = 1; }
+ Exec_SQL("Update dokument set bearbeitung_zwingend = " + bearbeitung_zwingend.ToString() + ", toapprove=" + toapprove.ToString() + ", approved=" + approved.ToString() + ", approval1=" + approved1.ToString() + ", approval2=" + approved2.ToString() + " where dokumentid = '" + newdokumentid + "'");
+
+ return newdokumentid;
}
- catch{ }
- return true;
+ catch { return ""; }
+ //return true;
}
}
diff --git a/Database/obj/Debug/Database.csproj.AssemblyReference.cache b/Database/obj/Debug/Database.csproj.AssemblyReference.cache
index 064ea016..0876a57d 100644
Binary files a/Database/obj/Debug/Database.csproj.AssemblyReference.cache and b/Database/obj/Debug/Database.csproj.AssemblyReference.cache differ
diff --git a/Database/obj/Debug/Database.dll b/Database/obj/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/Database/obj/Debug/Database.dll and b/Database/obj/Debug/Database.dll differ
diff --git a/Database/obj/Debug/Database.pdb b/Database/obj/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/Database/obj/Debug/Database.pdb and b/Database/obj/Debug/Database.pdb differ
diff --git a/Helper/bin/Debug/Helper.dll b/Helper/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/Helper/bin/Debug/Helper.dll and b/Helper/bin/Debug/Helper.dll differ
diff --git a/Helper/bin/Debug/Helper.pdb b/Helper/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/Helper/bin/Debug/Helper.pdb and b/Helper/bin/Debug/Helper.pdb differ
diff --git a/Helper/helper.cs b/Helper/helper.cs
index c503cd43..a139562e 100644
--- a/Helper/helper.cs
+++ b/Helper/helper.cs
@@ -25,6 +25,7 @@ namespace Helper
{
return value.All(char.IsNumber);
}
+
}
}
diff --git a/Helper/obj/Debug/Helper.dll b/Helper/obj/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/Helper/obj/Debug/Helper.dll and b/Helper/obj/Debug/Helper.dll differ
diff --git a/Helper/obj/Debug/Helper.pdb b/Helper/obj/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/Helper/obj/Debug/Helper.pdb and b/Helper/obj/Debug/Helper.pdb differ
diff --git a/ILMocup/bin/ILMocup.dll b/ILMocup/bin/ILMocup.dll
index 7161b981..1c2b6f17 100644
Binary files a/ILMocup/bin/ILMocup.dll and b/ILMocup/bin/ILMocup.dll differ
diff --git a/ILMocup/bin/ILMocup.pdb b/ILMocup/bin/ILMocup.pdb
index 868995bc..7db6fee2 100644
Binary files a/ILMocup/bin/ILMocup.pdb and b/ILMocup/bin/ILMocup.pdb differ
diff --git a/ILMocup/obj/Debug/ILMocup.csproj.AssemblyReference.cache b/ILMocup/obj/Debug/ILMocup.csproj.AssemblyReference.cache
index 19de7555..de5986a5 100644
Binary files a/ILMocup/obj/Debug/ILMocup.csproj.AssemblyReference.cache and b/ILMocup/obj/Debug/ILMocup.csproj.AssemblyReference.cache differ
diff --git a/ILMocup/obj/Debug/ILMocup.dll b/ILMocup/obj/Debug/ILMocup.dll
index 7161b981..1c2b6f17 100644
Binary files a/ILMocup/obj/Debug/ILMocup.dll and b/ILMocup/obj/Debug/ILMocup.dll differ
diff --git a/ILMocup/obj/Debug/ILMocup.pdb b/ILMocup/obj/Debug/ILMocup.pdb
index 868995bc..7db6fee2 100644
Binary files a/ILMocup/obj/Debug/ILMocup.pdb and b/ILMocup/obj/Debug/ILMocup.pdb differ
diff --git a/OnDocOffice/bin/Debug/Database.dll b/OnDocOffice/bin/Debug/Database.dll
index 3538e5ef..ddf1f5fe 100644
Binary files a/OnDocOffice/bin/Debug/Database.dll and b/OnDocOffice/bin/Debug/Database.dll differ
diff --git a/OnDocOffice/bin/Debug/Database.pdb b/OnDocOffice/bin/Debug/Database.pdb
index 695e7480..79f9d482 100644
Binary files a/OnDocOffice/bin/Debug/Database.pdb and b/OnDocOffice/bin/Debug/Database.pdb differ
diff --git a/OnDocOffice/bin/Debug/Helper.dll b/OnDocOffice/bin/Debug/Helper.dll
index d220c229..f1146cfb 100644
Binary files a/OnDocOffice/bin/Debug/Helper.dll and b/OnDocOffice/bin/Debug/Helper.dll differ
diff --git a/OnDocOffice/bin/Debug/Helper.pdb b/OnDocOffice/bin/Debug/Helper.pdb
index bdaebe17..e56cc077 100644
Binary files a/OnDocOffice/bin/Debug/Helper.pdb and b/OnDocOffice/bin/Debug/Helper.pdb differ
diff --git a/OnDocOffice/bin/Debug/OnDocOffice.dll b/OnDocOffice/bin/Debug/OnDocOffice.dll
index 5162d87b..b2b78e1e 100644
Binary files a/OnDocOffice/bin/Debug/OnDocOffice.dll and b/OnDocOffice/bin/Debug/OnDocOffice.dll differ
diff --git a/OnDocOffice/bin/Debug/OnDocOffice.pdb b/OnDocOffice/bin/Debug/OnDocOffice.pdb
index 22598eb0..54f79700 100644
Binary files a/OnDocOffice/bin/Debug/OnDocOffice.pdb and b/OnDocOffice/bin/Debug/OnDocOffice.pdb differ
diff --git a/OnDocOffice/clsoffice.cs b/OnDocOffice/clsoffice.cs
index 89fc3ed6..17f62b03 100644
--- a/OnDocOffice/clsoffice.cs
+++ b/OnDocOffice/clsoffice.cs
@@ -183,10 +183,10 @@ namespace OnDocOffice
}
}
- public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype)
+ public string Generate_Word_in_Office(ref clsDocData docdata, ref clsdok dok, string vorlage, string connectionstring, string tempdir, string dokumentid, string apptype, string extension)
{
this.dokumentid = docdata.Dokumentid;
- string filename = tempdir + dokumentid + "." + apptype;
+ string filename = tempdir + dokumentid + "." + extension;
int pos = 0;
int pos2 = 0;
@@ -313,10 +313,13 @@ namespace OnDocOffice
worddoc.Save();
worddoc.Close();
- word.Quit(SaveChanges: false);
+ //word.Quit(SaveChanges: false);
+ string b64 = fh.Base64FromFile(filename);
+ word.Documents.Open(filename);
worddoc = null;
word = null;
- return fh.Base64FromFile(filename);
+ return b64;
+ //return fh.Base64FromFile(filename);
}
private void Kopfzeile_generieren()
diff --git a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache
index da7d440e..3d630877 100644
Binary files a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache and b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache differ
diff --git a/OnDocOffice/obj/Debug/OnDocOffice.dll b/OnDocOffice/obj/Debug/OnDocOffice.dll
index 5162d87b..b2b78e1e 100644
Binary files a/OnDocOffice/obj/Debug/OnDocOffice.dll and b/OnDocOffice/obj/Debug/OnDocOffice.dll differ
diff --git a/OnDocOffice/obj/Debug/OnDocOffice.pdb b/OnDocOffice/obj/Debug/OnDocOffice.pdb
index 22598eb0..54f79700 100644
Binary files a/OnDocOffice/obj/Debug/OnDocOffice.pdb and b/OnDocOffice/obj/Debug/OnDocOffice.pdb differ
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/App.g.i.cs b/OnDocWPF/obj/Debug/net8.0-windows/App.g.i.cs
index 7d432e25..2976caaa 100644
--- a/OnDocWPF/obj/Debug/net8.0-windows/App.g.i.cs
+++ b/OnDocWPF/obj/Debug/net8.0-windows/App.g.i.cs
@@ -45,7 +45,7 @@ namespace OnDocWPF {
/// InitializeComponent
///
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.10.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.11.0")]
public void InitializeComponent() {
#line 5 "..\..\..\App.xaml"
@@ -60,7 +60,7 @@ namespace OnDocWPF {
///
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.10.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.11.0")]
public static void Main() {
OnDocWPF.App app = new OnDocWPF.App();
app.InitializeComponent();
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/MainWindow.g.i.cs b/OnDocWPF/obj/Debug/net8.0-windows/MainWindow.g.i.cs
index 3e0bac19..528b5119 100644
--- a/OnDocWPF/obj/Debug/net8.0-windows/MainWindow.g.i.cs
+++ b/OnDocWPF/obj/Debug/net8.0-windows/MainWindow.g.i.cs
@@ -102,13 +102,13 @@ namespace OnDocWPF {
/// InitializeComponent
///
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.10.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.11.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
- System.Uri resourceLocater = new System.Uri("/OnDocWPF;component/mainwindow.xaml", System.UriKind.Relative);
+ System.Uri resourceLocater = new System.Uri("/OnDocWPF;V1.0.0.0;component/mainwindow.xaml", System.UriKind.Relative);
#line 1 "..\..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
@@ -118,7 +118,7 @@ namespace OnDocWPF {
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.10.0")]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.11.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfo.cs b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfo.cs
index 0b9c9f61..b34f8ff2 100644
--- a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfo.cs
+++ b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfo.cs
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("OnDocWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2c42687a409e21f11fb588f6c6361ef8df3802ab")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8f74cec1ab2dc3f797285924d529408504fc365d")]
[assembly: System.Reflection.AssemblyProductAttribute("OnDocWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("OnDocWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfoInputs.cache b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfoInputs.cache
index 307d2910..0c1cec45 100644
--- a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfoInputs.cache
+++ b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF.AssemblyInfoInputs.cache
@@ -1 +1 @@
-e215958530108d9bd3afc5dc719299b68782a9fb8845a54a880b2756be5075f2
+be30e3ceff62128b27c6666203ddb92d9531cb6c79d962f60097571d436432e1
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF_MarkupCompile.i.cache b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF_MarkupCompile.i.cache
index 253754da..b7ecef50 100644
--- a/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF_MarkupCompile.i.cache
+++ b/OnDocWPF/obj/Debug/net8.0-windows/OnDocWPF_MarkupCompile.i.cache
@@ -13,7 +13,7 @@ E:\Software-Projekte\OnDoc\OnDoc\OnDocWPF\App.xaml
11407045341
6309023871
-292-320235837
+2921418804000
MainWindow.xaml;
False
diff --git a/OnDocWPF/obj/Debug/net8.0-windows/apphost.exe b/OnDocWPF/obj/Debug/net8.0-windows/apphost.exe
index 7af9826b..a636e31e 100644
Binary files a/OnDocWPF/obj/Debug/net8.0-windows/apphost.exe and b/OnDocWPF/obj/Debug/net8.0-windows/apphost.exe differ
diff --git a/OnDocWPF/obj/OnDocWPF.csproj.nuget.dgspec.json b/OnDocWPF/obj/OnDocWPF.csproj.nuget.dgspec.json
index 5529f1e3..2d95a6ae 100644
--- a/OnDocWPF/obj/OnDocWPF.csproj.nuget.dgspec.json
+++ b/OnDocWPF/obj/OnDocWPF.csproj.nuget.dgspec.json
@@ -83,7 +83,7 @@
"privateAssets": "none"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.306/PortableRuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.307/PortableRuntimeIdentifierGraph.json"
}
}
}
diff --git a/OnDocWPF/obj/project.assets.json b/OnDocWPF/obj/project.assets.json
index 1a789b1e..e5997bfb 100644
--- a/OnDocWPF/obj/project.assets.json
+++ b/OnDocWPF/obj/project.assets.json
@@ -902,7 +902,7 @@
"privateAssets": "none"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.306/PortableRuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.307/PortableRuntimeIdentifierGraph.json"
}
}
}
diff --git a/OnDocWPF/obj/project.nuget.cache b/OnDocWPF/obj/project.nuget.cache
index da9a9010..245d655c 100644
--- a/OnDocWPF/obj/project.nuget.cache
+++ b/OnDocWPF/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "4KcG+NltZ1Y=",
+ "dgSpecHash": "h4C+NpIR+d8=",
"success": true,
"projectFilePath": "E:\\Software-Projekte\\OnDoc\\OnDoc\\OnDocWPF\\OnDocWPF.csproj",
"expectedPackageFiles": [