diff --git a/API_NetFramework/bin/DOCGEN.dll b/API_NetFramework/bin/DOCGEN.dll
index 0d9c0c91..3aacd70b 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 f8d3bcb0..75212bdd 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/API_NetFramework/bin/Database.pdb and b/API_NetFramework/bin/Database.pdb differ
diff --git a/API_NetFramework/bin/Model.dll b/API_NetFramework/bin/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/API_NetFramework/bin/Model.dll and b/API_NetFramework/bin/Model.dll differ
diff --git a/API_NetFramework/bin/Model.pdb b/API_NetFramework/bin/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/API_NetFramework/bin/Model.pdb and b/API_NetFramework/bin/Model.pdb differ
diff --git a/API_NetFramework/bin/OfficePrinter.dll b/API_NetFramework/bin/OfficePrinter.dll
index ec8bab14..49203ebf 100644
Binary files a/API_NetFramework/bin/OfficePrinter.dll and b/API_NetFramework/bin/OfficePrinter.dll differ
diff --git a/API_NetFramework/bin/OfficePrinter.pdb b/API_NetFramework/bin/OfficePrinter.pdb
index bf9a752a..04a85dac 100644
Binary files a/API_NetFramework/bin/OfficePrinter.pdb and b/API_NetFramework/bin/OfficePrinter.pdb differ
diff --git a/API_NetFramework/bin/OnDoc_NetFramework.dll b/API_NetFramework/bin/OnDoc_NetFramework.dll
index 65ce110e..65ba109e 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 ea61b297..aa56e082 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 f2088f57..42630d9b 100644
--- a/API_NetFramework/log.txt
+++ b/API_NetFramework/log.txt
@@ -2644,3 +2644,99 @@ Parametername: encoder
2025-01-12 13:59:45.8318|DEBUG|OnDoc|
2025-01-12 13:59:45.8705|DEBUG|OnDoc|
2025-01-12 13:59:47.1193|ERROR|OnDoc|An der Position 0 befindet sich keine Zeile.
+2025-01-13 11:16:25.1516|DEBUG|OnDoc|
+2025-01-13 11:16:25.1786|DEBUG|OnDoc|
+2025-01-13 11:16:25.2053|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 11:16:25.2083|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 11:16:25.2947|DEBUG|OnDoc|
+2025-01-13 11:16:25.2947|DEBUG|OnDoc|
+2025-01-13 11:16:25.3219|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 11:16:25.3219|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 16:22:53.4690|DEBUG|OnDoc|
+2025-01-13 16:22:53.5002|DEBUG|OnDoc|
+2025-01-13 16:22:53.5257|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 16:22:53.5257|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 16:22:53.6198|DEBUG|OnDoc|
+2025-01-13 16:22:53.6198|DEBUG|OnDoc|
+2025-01-13 16:22:53.6524|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 16:22:53.6524|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:03:21.2991|DEBUG|OnDoc|
+2025-01-13 17:03:21.3301|DEBUG|OnDoc|
+2025-01-13 17:03:21.3565|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:03:21.3565|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:03:21.4316|DEBUG|OnDoc|
+2025-01-13 17:03:21.4316|DEBUG|OnDoc|
+2025-01-13 17:03:21.4640|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:03:21.4640|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:15:22.7744|DEBUG|OnDoc|
+2025-01-13 17:15:22.8079|DEBUG|OnDoc|
+2025-01-13 17:15:22.8341|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:15:22.8341|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:15:22.9081|DEBUG|OnDoc|
+2025-01-13 17:15:22.9184|DEBUG|OnDoc|
+2025-01-13 17:15:22.9422|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:15:22.9452|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:16:23.1863|DEBUG|OnDoc|
+2025-01-13 17:16:23.1970|DEBUG|OnDoc|
+2025-01-13 17:16:23.2199|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:16:23.2199|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:16:23.2580|DEBUG|OnDoc|
+2025-01-13 17:16:23.2580|DEBUG|OnDoc|
+2025-01-13 17:16:23.2840|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:16:23.2840|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:16:49.2429|DEBUG|OnDoc|
+2025-01-13 17:16:49.2429|DEBUG|OnDoc|
+2025-01-13 17:16:49.2744|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:16:49.2744|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:16:49.3129|DEBUG|OnDoc|
+2025-01-13 17:16:49.3129|DEBUG|OnDoc|
+2025-01-13 17:16:49.3371|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:16:49.3371|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:18:35.5732|DEBUG|OnDoc|
+2025-01-13 17:18:35.5732|DEBUG|OnDoc|
+2025-01-13 17:18:35.6077|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:18:35.6077|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:18:35.6458|DEBUG|OnDoc|
+2025-01-13 17:18:35.6458|DEBUG|OnDoc|
+2025-01-13 17:18:35.6713|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:18:35.6713|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:24:15.2384|DEBUG|OnDoc|
+2025-01-13 17:24:15.2700|DEBUG|OnDoc|
+2025-01-13 17:24:15.2961|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:24:15.2961|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:24:15.3700|DEBUG|OnDoc|
+2025-01-13 17:24:15.3700|DEBUG|OnDoc|
+2025-01-13 17:24:15.4028|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:24:15.4028|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 17:25:15.9707|DEBUG|OnDoc|
+2025-01-13 17:25:15.9812|DEBUG|OnDoc|
+2025-01-13 17:25:16.0058|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 17:25:16.0058|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 17:25:16.0427|DEBUG|OnDoc|
+2025-01-13 17:25:16.0427|DEBUG|OnDoc|
+2025-01-13 17:25:16.0663|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 17:25:16.0689|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 19:09:18.1032|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:13:11.0842|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:14:31.2028|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:15:28.4290|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:15:44.5462|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:16:04.9376|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:16:35.7533|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:17:15.6827|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 19:18:25.1191|DEBUG|OnDoc|
+2025-01-13 19:18:25.1191|DEBUG|OnDoc|
+2025-01-13 19:18:25.1551|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: 1234
+2025-01-13 19:18:25.1551|INFO|OnDoc|Unterschrift-Bezug: 1234
+2025-01-13 19:18:25.2030|DEBUG|OnDoc|
+2025-01-13 19:18:25.2030|DEBUG|OnDoc|
+2025-01-13 19:18:25.2285|DEBUG|OnDoc|Start GetUnterschriftAsBase64 TGNummer: TG9665
+2025-01-13 19:18:25.2285|INFO|OnDoc|Unterschrift-Bezug: TG9665
+2025-01-13 20:21:06.5013|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:21:37.2176|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:29:40.0378|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:32:13.0395|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:32:34.3629|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:32:42.1541|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:36:12.2796|INFO|OnDoc|Image-Bezug: 1
+2025-01-13 20:36:39.0689|INFO|OnDoc|Image-Bezug: 1
diff --git a/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache b/API_NetFramework/obj/Debug/API_NetFramework.csproj.AssemblyReference.cache
index 5ff61a26..b6803fb2 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 65ce110e..65ba109e 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 ea61b297..aa56e082 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/BarcodeLib/bin/Debug/Database.pdb and b/BarcodeLib/bin/Debug/Database.pdb differ
diff --git a/BarcodeLib/bin/Debug/Model.dll b/BarcodeLib/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/BarcodeLib/bin/Debug/Model.dll and b/BarcodeLib/bin/Debug/Model.dll differ
diff --git a/BarcodeLib/bin/Debug/Model.pdb b/BarcodeLib/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/BarcodeLib/bin/Debug/Model.pdb and b/BarcodeLib/bin/Debug/Model.pdb differ
diff --git a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache
index 8571a936..6a25cb1b 100644
Binary files a/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache and b/BarcodeLib/obj/Debug/BarcodeLib.csproj.AssemblyReference.cache differ
diff --git a/BarcodeLibVBDatamatrix/bin/Debug/Model.dll b/BarcodeLibVBDatamatrix/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/BarcodeLibVBDatamatrix/bin/Debug/Model.dll and b/BarcodeLibVBDatamatrix/bin/Debug/Model.dll differ
diff --git a/BarcodeLibVBDatamatrix/bin/Debug/Model.pdb b/BarcodeLibVBDatamatrix/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/BarcodeLibVBDatamatrix/bin/Debug/Model.pdb and b/BarcodeLibVBDatamatrix/bin/Debug/Model.pdb differ
diff --git a/BarcodeLibVBDatamatrix/obj/Debug/BarcodeLibVBDatamatrix.vbproj.AssemblyReference.cache b/BarcodeLibVBDatamatrix/obj/Debug/BarcodeLibVBDatamatrix.vbproj.AssemblyReference.cache
index cb4efbc3..11421805 100644
Binary files a/BarcodeLibVBDatamatrix/obj/Debug/BarcodeLibVBDatamatrix.vbproj.AssemblyReference.cache and b/BarcodeLibVBDatamatrix/obj/Debug/BarcodeLibVBDatamatrix.vbproj.AssemblyReference.cache differ
diff --git a/Client/Diverses/SplashScreen.Designer.cs b/Client/Diverses/SplashScreen.Designer.cs
index d1a0da2d..234eaa5a 100644
--- a/Client/Diverses/SplashScreen.Designer.cs
+++ b/Client/Diverses/SplashScreen.Designer.cs
@@ -64,7 +64,7 @@
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(168, 26);
this.label2.TabIndex = 2;
- this.label2.Text = "12. Januar 2025";
+ this.label2.Text = "13. Januar 2025";
//
// SplashScreen
//
diff --git a/Client/DocMgmt/Dokumenterstellung.cs b/Client/DocMgmt/Dokumenterstellung.cs
index 73ddcfaf..874c2048 100644
--- a/Client/DocMgmt/Dokumenterstellung.cs
+++ b/Client/DocMgmt/Dokumenterstellung.cs
@@ -336,7 +336,7 @@ namespace OnDoc.DocMgmt
Helper.FileHelper fh = new Helper.FileHelper();
string Filename = AppParams.tempdir + dokumentid + "." + dok.extension;
fh.SaveBase64ToFile(dok.dokument, Filename);
- op.PrintInWord(Filename, AppParams.wordprintmacro);
+ op.PrintInWord(Filename, AppParams.wordprintmacro, AppParams.OfficeSpleep1);
op = null;
}
if (dok.doktype == "P")
diff --git a/Client/DocMgmt/Dokumentpaket.cs b/Client/DocMgmt/Dokumentpaket.cs
index 6db8929e..3be190e6 100644
--- a/Client/DocMgmt/Dokumentpaket.cs
+++ b/Client/DocMgmt/Dokumentpaket.cs
@@ -269,7 +269,7 @@ namespace OnDoc.DocMgmt
{
if (Convert.ToInt32(r[4])==1 && Convert.ToInt32(r[4]) != zwingend)
{
- MessageBox.Show("Zwingende Dokumentte können nicht abgewählt werden");
+ MessageBox.Show("Zwingende Dokumente können nicht abgewählt werden");
dataRow[4] = 1;
return;
}
diff --git a/Client/DocMgmt/Serienbrief.cs b/Client/DocMgmt/Serienbrief.cs
index 24225a34..a7a70e9e 100644
--- a/Client/DocMgmt/Serienbrief.cs
+++ b/Client/DocMgmt/Serienbrief.cs
@@ -51,6 +51,8 @@ namespace OnDoc.UIControls
//private int dokumenttypnr = 0;
private int officevorlagenr = 0;
private int profilnr = 0;
+ private string partnernr = "";
+ private string partnernr_inserted = "";
private serienbrief sb = new serienbrief();
private int serienbriefnr = 0;
private DOCGEN.DocGen dg = null;
@@ -85,8 +87,8 @@ namespace OnDoc.UIControls
{
Refresh_Lists();
Refresh_Team();
- //Broadcaster().AddListener(this);
- //Closing += Form_Closing;
+ Broadcaster().AddListener(this);
+ Closing += Form_Closing;
}
private void Form_Closing(object sender, CancelEventArgs e)
@@ -122,6 +124,18 @@ namespace OnDoc.UIControls
{
ribbonbuttonsave_Click(sender, null);
}
+ if (message== "SBPartnersuche")
+ {
+ this.partnernr=sender.Details.ToString();
+ if (partnernr_inserted == partnernr)
+ {
+ return;
+ }
+
+ partnernr_inserted = partnernr;
+ add_partner(this.partnernr);
+
+ }
}
private void enable_disable_functions(int type, bool enabled)
@@ -925,10 +939,18 @@ namespace OnDoc.UIControls
private void ribbonbuttonaddpartner_Click(object sender, EventArgs e)
{
- Partnersuche ps = new Partnersuche();
+ Partnersuche ps = new Partnersuche(true);
ps.ShowDialog();
if (ps.DialogResult == DialogResult.OK)
{
+ add_partner(ps.partnernr.ToString());
+ }
+ }
+
+ private void add_partner(string ipartnernr)
+ {
+ if (ipartnernr == "") { return; }
+ this.partnernr = "";
bool found = false;
foreach (System.Data.DataColumn dc in sb.dsempfaenger.Tables[0].Columns)
{
@@ -938,7 +960,7 @@ namespace OnDoc.UIControls
int lastid = sb.dsempfaenger.Tables[0].Rows.Count;
DB db = new DB(AppParams.connectionstring);
- db.Get_Tabledata("Select bkpar00 from partner where nrpar00=" + ps.partnernr.ToString(), false, true);
+ db.Get_Tabledata("Select bkpar00 from partner where nrpar00=" + ipartnernr, false, true);
if (db.dsdaten.Tables[0].Rows.Count > 0)
{
System.Data.DataRow dr = sb.dsempfaenger.Tables[0].NewRow();
@@ -946,17 +968,17 @@ namespace OnDoc.UIControls
{
dr[i] = "";
}
- dr["partnernr"] = Convert.ToInt32(ps.partnernr.ToString());
+ dr["partnernr"] = Convert.ToInt32(ipartnernr);
dr["kurzbezeichnung"] = db.dsdaten.Tables[0].Rows[0][0].ToString();
dr["STATUS"] = 0;
dr["FEHLERCODE"] = 0;
dr["IntEintragnr"] = lastid;
sb.dsempfaenger.Tables[0].Rows.Add(dr);
+ this.partnernr = "";
refresh_empfaenger(sb.dsempfaenger.Tables[0]);
}
db = null;
- }
}
@@ -1814,6 +1836,7 @@ namespace OnDoc.UIControls
DB db = new DB(AppParams.connectionstring);
DataView dv = new DataView(sb.dsempfaenger.Tables[0]);
+
init_progressbar("Dokumente archivieren", dv.Count);
dv.RowFilter = "Status = 1";
dv.Sort = "Partnernr";
diff --git a/Client/Klassen/clsPartner.cs b/Client/Klassen/clsPartner.cs
index caddb523..5bbb5ebc 100644
--- a/Client/Klassen/clsPartner.cs
+++ b/Client/Klassen/clsPartner.cs
@@ -22,7 +22,7 @@ namespace OnDoc.Klassen
Connectionstring = connectionstring;
}
- public static DataTable search_partner(string query, int anzahl, int fnkt, bool personendokument, bool bpdokument)
+ public static DataTable search_partner(string query, int anzahl, int fnkt, bool personendokument, bool bpdokument, bool saldiert)
{
DB db = new DB(Connectionstring);
try
@@ -33,11 +33,26 @@ namespace OnDoc.Klassen
db.add_parameter("@anz", anzahl.ToString());
db.add_parameter("@fnkt", fnkt.ToString());
partnerliste = db.Get_Tabledata("sp_partner_search", true, false);
+
+ string selectstring = "";
+ if (saldiert == false)
+ {
+ selectstring = " saldiert = false ";
+ }
+ if (!personendokument && !bpdokument)
+ {
+ DataRow[] rowsToKeep = partnerliste.Select(selectstring);
+ DataTable tempDataTable = rowsToKeep.CopyToDataTable();
+ partnerliste.Clear();
+ partnerliste.Merge(tempDataTable);
+ tempDataTable.Dispose();
+
+ } else { selectstring = selectstring + " and "; }
if (personendokument)
{
try
{
- DataRow[] rowsToKeep = partnerliste.Select("nrpar00 > 100000000");
+ DataRow[] rowsToKeep = partnerliste.Select(selectstring + "nrpar00 > 100000000");
DataTable tempDataTable = rowsToKeep.CopyToDataTable();
partnerliste.Clear();
partnerliste.Merge(tempDataTable);
@@ -52,7 +67,7 @@ namespace OnDoc.Klassen
{
try
{
- DataRow[] rowsToKeep = partnerliste.Select("nrpar00 < 100000000");
+ DataRow[] rowsToKeep = partnerliste.Select(selectstring+ "nrpar00 < 100000000");
DataTable tempDataTable = rowsToKeep.CopyToDataTable();
partnerliste.Clear();
partnerliste.Merge(tempDataTable);
diff --git a/Client/UIControls/DokList.Designer.cs b/Client/UIControls/DokList.Designer.cs
index 9df1eaf6..25e5b4b7 100644
--- a/Client/UIControls/DokList.Designer.cs
+++ b/Client/UIControls/DokList.Designer.cs
@@ -56,7 +56,6 @@ namespace OnDoc.UICintrols
this.tsbtnpreviewright = new System.Windows.Forms.ToolStripButton();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.sfDataGrid1 = new Syncfusion.WinForms.DataGrid.SfDataGrid();
- this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.panel2 = new System.Windows.Forms.Panel();
this.lblTitel = new System.Windows.Forms.Label();
this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel();
@@ -152,6 +151,8 @@ namespace OnDoc.UICintrols
this.pdfConfig2 = new Syncfusion.Pdf.PdfConfig();
this.RibbonButtonCreateNewDoc = new System.Windows.Forms.RibbonButton();
this.ribbonButton5 = new System.Windows.Forms.RibbonButton();
+ this.dokumentFürPartnerErstellenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.docPreview1 = new OnDoc.UIControls.DocPreview();
this.dokwerte1 = new OnDoc.UIControls.Dokwerte();
this.ctxMenuDokList.SuspendLayout();
this.toolStrip1.SuspendLayout();
@@ -180,9 +181,10 @@ namespace OnDoc.UICintrols
this.dokumentAnVersandstrasseToolStripMenuItem,
this.wordInterOPEditToolStripMenuItem,
this.attributeAnzeigenVersteckenToolStripMenuItem,
- this.historyToolStripMenuItem});
+ this.historyToolStripMenuItem,
+ this.dokumentFürPartnerErstellenToolStripMenuItem});
this.ctxMenuDokList.Name = "ctxMenuDokList";
- this.ctxMenuDokList.Size = new System.Drawing.Size(280, 318);
+ this.ctxMenuDokList.Size = new System.Drawing.Size(280, 362);
//
// dokumentAnzeigenToolStripMenuItem
//
@@ -410,16 +412,6 @@ namespace OnDoc.UICintrols
this.sfDataGrid1.ColumnResizing += new Syncfusion.WinForms.DataGrid.Events.ColumnResizingEventHandler(this.sfDataGrid1_ColumnResizing);
this.sfDataGrid1.CopyContent += new Syncfusion.WinForms.DataGrid.Events.CutCopyPasteEventHandler(this.sfDataGrid1_CopyContent);
//
- // docPreview1
- //
- this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
- 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(1709, 347);
- this.docPreview1.TabIndex = 0;
- this.docPreview1.ZoomPercentage = 0;
- //
// panel2
//
this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
@@ -533,6 +525,7 @@ namespace OnDoc.UICintrols
this.RibbonButtonNewDoc.Name = "RibbonButtonNewDoc";
this.RibbonButtonNewDoc.SmallImage = global::OnDoc.Properties.Resources.NewDoc_32x32_32;
this.RibbonButtonNewDoc.Text = "Neu";
+ this.RibbonButtonNewDoc.DoubleClick += new System.EventHandler(this.RibbonButtonNewDoc_DoubleClick);
this.RibbonButtonNewDoc.Click += new System.EventHandler(this.RibbonButtonNewDoc_Click);
//
// RibbonButtonFavoriten
@@ -1248,6 +1241,24 @@ namespace OnDoc.UICintrols
this.ribbonButton5.SmallImage = ((System.Drawing.Image)(resources.GetObject("ribbonButton5.SmallImage")));
this.ribbonButton5.Text = "Load";
//
+ // dokumentFürPartnerErstellenToolStripMenuItem
+ //
+ this.dokumentFürPartnerErstellenToolStripMenuItem.Image = global::OnDoc.Properties.Resources.NewDoc_16x16_32;
+ this.dokumentFürPartnerErstellenToolStripMenuItem.Name = "dokumentFürPartnerErstellenToolStripMenuItem";
+ this.dokumentFürPartnerErstellenToolStripMenuItem.Size = new System.Drawing.Size(279, 22);
+ this.dokumentFürPartnerErstellenToolStripMenuItem.Text = "Dokument für Partner erstellen";
+ this.dokumentFürPartnerErstellenToolStripMenuItem.Click += new System.EventHandler(this.dokumentFürPartnerErstellenToolStripMenuItem_Click);
+ //
+ // docPreview1
+ //
+ this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
+ 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(1709, 347);
+ this.docPreview1.TabIndex = 0;
+ this.docPreview1.ZoomPercentage = 0;
+ //
// dokwerte1
//
this.dokwerte1.Dock = System.Windows.Forms.DockStyle.Right;
@@ -1404,5 +1415,6 @@ namespace OnDoc.UICintrols
private UIControls.DocPreview docPreview1;
private System.Windows.Forms.RibbonPanel ribbonPanel3;
private System.Windows.Forms.RibbonButton ribbonButton4;
+ private System.Windows.Forms.ToolStripMenuItem dokumentFürPartnerErstellenToolStripMenuItem;
}
}
diff --git a/Client/UIControls/DokList.cs b/Client/UIControls/DokList.cs
index 96f9f485..a334387c 100644
--- a/Client/UIControls/DokList.cs
+++ b/Client/UIControls/DokList.cs
@@ -44,6 +44,12 @@ using Syncfusion.Windows.Forms;
using System.Runtime.Remoting.Messaging;
using Syncfusion.WinForms.DataGrid.Enums;
using System.Security.Cryptography;
+using Syncfusion.WinForms.DataGrid.Renderers;
+using Syncfusion.WinForms.DataGrid.Styles;
+using Syncfusion.Data;
+using Syncfusion.WinForms.Input;
+using Syncfusion.Windows.Forms.CellGrid.ScrollAxis;
+using Syncfusion.Windows.Forms.Edit.Utils;
@@ -82,10 +88,21 @@ namespace OnDoc.UICintrols
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
InitializeComponent();
+ //this.sfDataGrid1.AutoGeneratingColumn += datagrid_AutoGeneratingColumn;
Broadcaster().AddListener(this);
//t_functions();
pos_elements();
+ }
+
+ private void datagrid_AutoGeneratingColumn(object sender, AutoGeneratingColumnArgs e)
+ {
+ if (e.Column.MappingName=="Erstellt am" || e.Column.MappingName=="Mutiert am")
+ {
+ GridDateTimeColumn gdt = e.Column as GridDateTimeColumn;
+ gdt.Pattern = (Syncfusion.WinForms.Input.Enums.DateTimePattern)Syncfusion.Windows.Shared.DateTimePattern.FullDateTime;
+ }
+
}
public void OnListen(string message, SenderInfo sender)
{
@@ -111,7 +128,8 @@ namespace OnDoc.UICintrols
// Helper.Security security = new Helper.Security();
// security.set_security(this);
//Refresh_Bewilligungen();
-
+ //this.sfDataGrid1.CellRenderers.Remove("DateTime");
+ //this.sfDataGrid.CellRenderers.Add("DateTime", new GridDateTimeCellRendererExt());
}
public void load_Profile()
@@ -1081,7 +1099,7 @@ namespace OnDoc.UICintrols
OfficePrinter.OnDocOffice op = new OfficePrinter.OnDocOffice();
Filename = AppParams.tempdir + dokumentid + "." + dok.extension;
fh.SaveBase64ToFile(dok.dokument, Filename);
- op.PrintInWord(Filename, AppParams.wordprintmacro);
+ op.PrintInWord(Filename, AppParams.wordprintmacro, AppParams.OfficeSpleep1);
System.IO.File.Delete(Filename);
op = null;
break;
@@ -1564,6 +1582,7 @@ namespace OnDoc.UICintrols
{
this.selected_dokumentid = "";
}
+
System.Windows.Forms.Application.DoEvents();
@@ -2052,6 +2071,23 @@ namespace OnDoc.UICintrols
AdminDokTypGenerierung ag = new AdminDokTypGenerierung();
ag.Show();
}
+
+ private void RibbonButtonNewDoc_DoubleClick(object sender, EventArgs e)
+ {
+
+ }
+
+ private void dokumentFürPartnerErstellenToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ createnewdoc(Convert.ToInt32(selected_partnernr), 0);
+ }
+ catch { }
+
+
+ }
}
+
}
diff --git a/Client/UIControls/DokList.resx b/Client/UIControls/DokList.resx
index e9022caf..65791621 100644
--- a/Client/UIControls/DokList.resx
+++ b/Client/UIControls/DokList.resx
@@ -524,19 +524,19 @@
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wAAADsABataJCQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
+ vQAADr0BR/uQrQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wAAADsABataJCQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
+ vQAADr0BR/uQrQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wAAADsABataJCQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
+ vQAADr0BR/uQrQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
diff --git a/Client/UIControls/Partnersuche.Designer.cs b/Client/UIControls/Partnersuche.Designer.cs
index a7c32a04..addc9716 100644
--- a/Client/UIControls/Partnersuche.Designer.cs
+++ b/Client/UIControls/Partnersuche.Designer.cs
@@ -37,10 +37,12 @@
this.btnsuche = new Syncfusion.WinForms.Controls.SfButton();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.trefferlistedata = new Syncfusion.WinForms.DataGrid.SfDataGrid();
- this.sfButton1 = new Syncfusion.WinForms.Controls.SfButton();
- this.sfButton2 = new Syncfusion.WinForms.Controls.SfButton();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.partnerDetailsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.sfButton1 = new Syncfusion.WinForms.Controls.SfButton();
+ this.sfButton2 = new Syncfusion.WinForms.Controls.SfButton();
+ this.chksaldiert = new System.Windows.Forms.CheckBox();
+ this.label1 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trefferlistedata)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
@@ -66,7 +68,7 @@
//
// txtPartnerNr
//
- this.txtPartnerNr.Location = new System.Drawing.Point(126, 26);
+ this.txtPartnerNr.Location = new System.Drawing.Point(147, 26);
this.txtPartnerNr.Name = "txtPartnerNr";
this.txtPartnerNr.Size = new System.Drawing.Size(164, 20);
this.txtPartnerNr.TabIndex = 2;
@@ -74,7 +76,7 @@
//
// txtKurzname
//
- this.txtKurzname.Location = new System.Drawing.Point(126, 54);
+ this.txtKurzname.Location = new System.Drawing.Point(147, 54);
this.txtKurzname.Name = "txtKurzname";
this.txtKurzname.Size = new System.Drawing.Size(164, 20);
this.txtKurzname.TabIndex = 3;
@@ -83,7 +85,7 @@
// btnsuche
//
this.btnsuche.Font = new System.Drawing.Font("Segoe UI Semibold", 9F);
- this.btnsuche.Location = new System.Drawing.Point(307, 38);
+ this.btnsuche.Location = new System.Drawing.Point(328, 38);
this.btnsuche.Name = "btnsuche";
this.btnsuche.Size = new System.Drawing.Size(96, 28);
this.btnsuche.TabIndex = 4;
@@ -117,6 +119,21 @@
this.trefferlistedata.SelectionChanged += new Syncfusion.WinForms.DataGrid.Events.SelectionChangedEventHandler(this.trefferlistedata_SelectionChanged);
this.trefferlistedata.DoubleClick += new System.EventHandler(this.trefferlistedata_DoubleClick);
//
+ // contextMenuStrip1
+ //
+ this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.partnerDetailsToolStripMenuItem});
+ this.contextMenuStrip1.Name = "contextMenuStrip1";
+ this.contextMenuStrip1.Size = new System.Drawing.Size(153, 26);
+ this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
+ //
+ // partnerDetailsToolStripMenuItem
+ //
+ this.partnerDetailsToolStripMenuItem.Name = "partnerDetailsToolStripMenuItem";
+ this.partnerDetailsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.partnerDetailsToolStripMenuItem.Text = "Partner-Details";
+ this.partnerDetailsToolStripMenuItem.Click += new System.EventHandler(this.partnerDetailsToolStripMenuItem_Click);
+ //
// sfButton1
//
this.sfButton1.Enabled = false;
@@ -138,26 +155,32 @@
this.sfButton2.Text = "Abbruch";
this.sfButton2.Click += new System.EventHandler(this.sfButton2_Click);
//
- // contextMenuStrip1
+ // chksaldiert
//
- this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.partnerDetailsToolStripMenuItem});
- this.contextMenuStrip1.Name = "contextMenuStrip1";
- this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
- this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
+ this.chksaldiert.AutoSize = true;
+ this.chksaldiert.Location = new System.Drawing.Point(147, 80);
+ this.chksaldiert.Name = "chksaldiert";
+ this.chksaldiert.Size = new System.Drawing.Size(15, 14);
+ this.chksaldiert.TabIndex = 8;
+ this.chksaldiert.UseVisualStyleBackColor = true;
+ this.chksaldiert.CheckedChanged += new System.EventHandler(this.chksaldiert_CheckedChanged);
//
- // partnerDetailsToolStripMenuItem
+ // label1
//
- this.partnerDetailsToolStripMenuItem.Name = "partnerDetailsToolStripMenuItem";
- this.partnerDetailsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
- this.partnerDetailsToolStripMenuItem.Text = "Partner-Details";
- this.partnerDetailsToolStripMenuItem.Click += new System.EventHandler(this.partnerDetailsToolStripMenuItem_Click);
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 80);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(114, 13);
+ this.label1.TabIndex = 9;
+ this.label1.Text = "inkl. saldierten Kunden";
//
// Partnersuche
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(564, 376);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.chksaldiert);
this.Controls.Add(this.sfButton2);
this.Controls.Add(this.sfButton1);
this.Controls.Add(this.groupBox1);
@@ -194,5 +217,7 @@
private Syncfusion.WinForms.Controls.SfButton sfButton2;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem partnerDetailsToolStripMenuItem;
+ private System.Windows.Forms.CheckBox chksaldiert;
+ private System.Windows.Forms.Label label1;
}
}
\ No newline at end of file
diff --git a/Client/UIControls/Partnersuche.cs b/Client/UIControls/Partnersuche.cs
index fa07ce9e..646ea657 100644
--- a/Client/UIControls/Partnersuche.cs
+++ b/Client/UIControls/Partnersuche.cs
@@ -19,6 +19,10 @@ using System.IO;
using Database;
using System.Linq.Expressions;
using OnDoc.Diverses;
+using Windows.AI.MachineLearning.Preview;
+using BroadcastListener.Classes;
+using BroadcastListener.Interfaces;
+using static BroadcastListener.Classes.Factory;
namespace OnDoc.UIControls
{
@@ -36,11 +40,15 @@ namespace OnDoc.UIControls
public int dokumenttypnr { get; set; } = 0;
- public Partnersuche()
+ public bool keepalive { get; set; } = false;
+
+
+ public Partnersuche(bool keepalive = false)
{
InitializeComponent();
clsPartner.set_connectionstring(AppParams.connectionstring);
this.trefferlistedata.TableControl.DoubleClick += TableControl_DoubleClick;
+ this.keepalive = keepalive;
}
public Partnersuche(bool personendokument, bool check_bp_person,bool bpdokument)
@@ -94,7 +102,7 @@ namespace OnDoc.UIControls
string s = txtPartnerNr.Text.Replace(".", "").Trim();
if (DivFnkt.IsNumeric(s))
{
- trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 0,personendokument,bpdokument);
+ trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 0,personendokument,bpdokument, chksaldiert.Checked);
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata, true);
try
{
@@ -111,7 +119,7 @@ namespace OnDoc.UIControls
if (txtKurzname.Text.Trim() != "")
{
string s = txtKurzname.Text.Trim();
- trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 1, personendokument, bpdokument);
+ trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 1, personendokument, bpdokument, chksaldiert.Checked);
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata, true);
try
{
@@ -181,8 +189,11 @@ namespace OnDoc.UIControls
if (get_details())
{
- this.DialogResult = DialogResult.OK;
- this.Close();
+ if (!keepalive)
+ {
+ this.DialogResult = DialogResult.OK;
+ this.Close();
+ }
}
} catch { }
}
@@ -303,8 +314,15 @@ namespace OnDoc.UIControls
//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"));
+ if (!keepalive) {
this.DialogResult = DialogResult.OK;
this.Close();
+ }
+ else
+ {
+ //Broadcaster().Broadcast("AdminDokErstellung", new SenderInfo("AdminDokErstellung", "", this.dokumenttypnr.ToString()));
+ Broadcaster().Broadcast("SBPartnersuche", new SenderInfo("Partnersuche","SelectedPartner",this.partnernr.ToString()));
+ }
}
catch { }
@@ -347,5 +365,10 @@ namespace OnDoc.UIControls
PartnerDetails pd = new PartnerDetails(Convert.ToInt32(datarow[0]));
pd.ShowDialog();
}
+
+ private void chksaldiert_CheckedChanged(object sender, EventArgs e)
+ {
+ btnsuche_Click(sender, e);
+ }
}
}
diff --git a/Client/UIControls/UCAllgemeineDokumentParam.Designer.cs b/Client/UIControls/UCAllgemeineDokumentParam.Designer.cs
index 7fa78114..a26491db 100644
--- a/Client/UIControls/UCAllgemeineDokumentParam.Designer.cs
+++ b/Client/UIControls/UCAllgemeineDokumentParam.Designer.cs
@@ -30,6 +30,7 @@
{
this.components = new System.ComponentModel.Container();
this.GrpPartner = new System.Windows.Forms.GroupBox();
+ this.lblAnrede = new System.Windows.Forms.Label();
this.btneditadresse = new System.Windows.Forms.Button();
this.btnweitereadressen = new System.Windows.Forms.Button();
this.txtanrede = new System.Windows.Forms.TextBox();
@@ -69,6 +70,7 @@
this.rbzustaendigmitarbeiter = new System.Windows.Forms.RadioButton();
this.rbzustaendigkube = new System.Windows.Forms.RadioButton();
this.groupBox9 = new System.Windows.Forms.GroupBox();
+ this.DateTerminText = new System.Windows.Forms.TextBox();
this.DateTermin = new Syncfusion.WinForms.Input.SfDateTimeEdit();
this.lblTermin = new System.Windows.Forms.Label();
this.DateDokumentDatum = new Syncfusion.WinForms.Input.SfDateTimeEdit();
@@ -76,9 +78,8 @@
this.cbboxpostzustellung = new Syncfusion.WinForms.ListView.SfComboBox();
this.lblPostzustellung = new System.Windows.Forms.Label();
this.btnErneutGenerierung = new System.Windows.Forms.Button();
- this.lblAnrede = new System.Windows.Forms.Label();
- this.DateTerminText = new System.Windows.Forms.TextBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.lblohneUnterschrift = new System.Windows.Forms.Label();
this.GrpPartner.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
@@ -119,6 +120,15 @@
this.GrpPartner.TabStop = false;
this.GrpPartner.Text = "Partner";
//
+ // lblAnrede
+ //
+ this.lblAnrede.AutoSize = true;
+ this.lblAnrede.Location = new System.Drawing.Point(298, 153);
+ this.lblAnrede.Name = "lblAnrede";
+ this.lblAnrede.Size = new System.Drawing.Size(151, 13);
+ this.lblAnrede.TabIndex = 8;
+ this.lblAnrede.Text = "Anrede (sofern nicht Standard)";
+ //
// btneditadresse
//
this.btneditadresse.Image = global::OnDoc.Properties.Resources.EditDoc_16x16_32;
@@ -399,6 +409,7 @@
//
// GrpUnterschrift
//
+ this.GrpUnterschrift.Controls.Add(this.lblohneUnterschrift);
this.GrpUnterschrift.Controls.Add(this.cbformularohneunterschrfit);
this.GrpUnterschrift.Controls.Add(this.cbfaksimile);
this.GrpUnterschrift.Controls.Add(this.cbboxunterschriftrechts);
@@ -422,6 +433,7 @@
this.cbformularohneunterschrfit.TabIndex = 11;
this.cbformularohneunterschrfit.Text = "Formular ohne Unterschrift";
this.cbformularohneunterschrfit.UseVisualStyleBackColor = true;
+ this.cbformularohneunterschrfit.Visible = false;
//
// cbfaksimile
//
@@ -555,6 +567,13 @@
this.groupBox9.TabStop = false;
this.groupBox9.Text = "Allgemein";
//
+ // DateTerminText
+ //
+ this.DateTerminText.Location = new System.Drawing.Point(406, 43);
+ this.DateTerminText.Name = "DateTerminText";
+ this.DateTerminText.Size = new System.Drawing.Size(69, 20);
+ this.DateTerminText.TabIndex = 6;
+ //
// DateTermin
//
this.DateTermin.DateTimeIcon = null;
@@ -624,27 +643,21 @@
this.btnErneutGenerierung.Visible = false;
this.btnErneutGenerierung.Click += new System.EventHandler(this.btnErneutGenerierung_Click);
//
- // lblAnrede
- //
- this.lblAnrede.AutoSize = true;
- this.lblAnrede.Location = new System.Drawing.Point(298, 153);
- this.lblAnrede.Name = "lblAnrede";
- this.lblAnrede.Size = new System.Drawing.Size(151, 13);
- this.lblAnrede.TabIndex = 8;
- this.lblAnrede.Text = "Anrede (sofern nicht Standard)";
- //
- // DateTerminText
- //
- this.DateTerminText.Location = new System.Drawing.Point(406, 43);
- this.DateTerminText.Name = "DateTerminText";
- this.DateTerminText.Size = new System.Drawing.Size(69, 20);
- this.DateTerminText.TabIndex = 6;
- //
// contextMenuStrip1
//
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
//
+ // lblohneUnterschrift
+ //
+ this.lblohneUnterschrift.AutoSize = true;
+ this.lblohneUnterschrift.Location = new System.Drawing.Point(19, 34);
+ this.lblohneUnterschrift.Name = "lblohneUnterschrift";
+ this.lblohneUnterschrift.Size = new System.Drawing.Size(131, 13);
+ this.lblohneUnterschrift.TabIndex = 12;
+ this.lblohneUnterschrift.Text = "Formular ohne Unterschrift";
+ this.lblohneUnterschrift.Visible = false;
+ //
// UCAllgemeineDokumentParam
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -745,5 +758,6 @@
private System.Windows.Forms.Label lblAnrede;
private System.Windows.Forms.TextBox DateTerminText;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
+ private System.Windows.Forms.Label lblohneUnterschrift;
}
}
diff --git a/Client/UIControls/UCAllgemeineDokumentParam.cs b/Client/UIControls/UCAllgemeineDokumentParam.cs
index d1645f48..d6569d27 100644
--- a/Client/UIControls/UCAllgemeineDokumentParam.cs
+++ b/Client/UIControls/UCAllgemeineDokumentParam.cs
@@ -23,6 +23,7 @@ using System.Web.UI.WebControls;
using Windows.UI;
using edoka_dms;
using Syncfusion.Windows.Forms.Tools.XPMenus;
+using Windows.Graphics.Printing3D;
namespace OnDoc.UIControls
@@ -128,10 +129,23 @@ namespace OnDoc.UIControls
this.cbboxunterschriftlinks.Enabled = Convert.ToBoolean(dr["unterschrift_links"]) == true;
this.cbboxunterschriftrechts.Enabled = Convert.ToBoolean(dr["unterschrift_rechts"]) == true;
this.cbformularohneunterschrfit.Enabled = Convert.ToBoolean(dr["unterschrift_ohne"]) == true;
+
this.cbfaksimile.Enabled = Convert.ToBoolean(dr["unterschrift_faksimile"]) == true;
if (this.cbfaksimile.Enabled == true) { this.cbfaksimile.Checked=true; }
this.cbformularohneunterschrfit.Checked = false;
-
+
+ if (cbformularohneunterschrfit.Enabled)
+ {
+ lblUnterschriftlinks.Visible = false;
+ lblUnterschriftrechts.Visible = false;
+ cbboxunterschriftlinks.Visible = false;
+ cbboxunterschriftrechts.Visible = false;
+ cbfaksimile.Visible = false;
+ lblohneUnterschrift.Visible = true;
+ }
+ if (this.cbfaksimile.Enabled==false) { cbfaksimile.Visible=false; }
+
+
try {
if (Convert.ToBoolean(dr["ErstellungInOffice"]) == true){
this.ErstellungInOffice = true;
@@ -587,6 +601,13 @@ namespace OnDoc.UIControls
{
dokdata.PartnerNr = docgendata.partnernr;
dokdata.UseEDOKA_Values = "True";
+ try
+ {
+ dokdata.postzustellung = cbboxpostzustellung.SelectedValue.ToString();
+ } catch { dokdata.postzustellung = "0"; }
+
+
+
dokdata.DokumenttypNr = docgendata.dokumenttypnr;
dokdata.Unterschrift_Links = docgendata.unterschriftLinks;
dokdata.Unterschrift_Rechts = docgendata.unterschriftRehts;
@@ -601,6 +622,8 @@ namespace OnDoc.UIControls
if (docgendata.erstellungsart == Erstellungsart.DokumentAlsPDF) { dokdata.Result_as_PDF = "True"; } else { dokdata.Result_as_PDF = "False"; }
if (docgendata.digitaleunterschrift == true) { dokdata.As_Faksimile = "True"; } else { dokdata.As_Faksimile = "False"; }
if (docgendata.frormularOhneUnterschrift==true) { dokdata.Form_ohne_Unterschrift = "True" ; } else { dokdata.Form_ohne_Unterschrift = "False"; }
+
+
dokdata.dokumentwerte = docgendata.dokumentwerte;
dokdata.Barcode = barcode;
dokdata.VorlageNr = this.vorlagenr.ToString();
diff --git a/Client/bin/Debug/DOCGEN.dll b/Client/bin/Debug/DOCGEN.dll
index 0d9c0c91..3aacd70b 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 f8d3bcb0..75212bdd 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/Client/bin/Debug/Database.pdb and b/Client/bin/Debug/Database.pdb differ
diff --git a/Client/bin/Debug/Model.dll b/Client/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/Client/bin/Debug/Model.dll and b/Client/bin/Debug/Model.dll differ
diff --git a/Client/bin/Debug/Model.pdb b/Client/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/Client/bin/Debug/Model.pdb and b/Client/bin/Debug/Model.pdb differ
diff --git a/Client/bin/Debug/OfficePrinter.dll b/Client/bin/Debug/OfficePrinter.dll
index ec8bab14..49203ebf 100644
Binary files a/Client/bin/Debug/OfficePrinter.dll and b/Client/bin/Debug/OfficePrinter.dll differ
diff --git a/Client/bin/Debug/OfficePrinter.pdb b/Client/bin/Debug/OfficePrinter.pdb
index bf9a752a..04a85dac 100644
Binary files a/Client/bin/Debug/OfficePrinter.pdb and b/Client/bin/Debug/OfficePrinter.pdb differ
diff --git a/Client/bin/Debug/OnDoc.exe b/Client/bin/Debug/OnDoc.exe
index 5a4ce173..9df4faaa 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 41087af5..db52b56f 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 0efddea6..f1013b39 100644
Binary files a/Client/bin/Debug/OnDocClient.zip and b/Client/bin/Debug/OnDocClient.zip differ
diff --git a/Client/bin/Debug/de-DE/OnDoc.resources.dll b/Client/bin/Debug/de-DE/OnDoc.resources.dll
index df300692..6482ae8c 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 27ea4086..5d95963a 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 781050d3..2653985d 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 34534e6f..d67c4585 100644
Binary files a/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Client/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/Client/obj/Debug/OnDoc.UICintrols.DokList.resources b/Client/obj/Debug/OnDoc.UICintrols.DokList.resources
index 6122ed44..87ce6ce0 100644
Binary files a/Client/obj/Debug/OnDoc.UICintrols.DokList.resources and b/Client/obj/Debug/OnDoc.UICintrols.DokList.resources differ
diff --git a/Client/obj/Debug/OnDoc.exe b/Client/obj/Debug/OnDoc.exe
index 5a4ce173..9df4faaa 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 41087af5..db52b56f 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 df300692..6482ae8c 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/SyncFWord.cs b/DOCGEN/Klassen/SyncFWord.cs
index 0ccc279d..379b54d3 100644
--- a/DOCGEN/Klassen/SyncFWord.cs
+++ b/DOCGEN/Klassen/SyncFWord.cs
@@ -279,7 +279,7 @@ namespace DOCGEN.Klassen
//}
if (docdata.Form_ohne_Unterschrift=="True" || docdata.As_Faksimile == "True")
{
- DB db = new DB();
+ //DB db = new DB();
}
foreach (clsDocValue dv in docdata.DocValues)
{
@@ -379,14 +379,17 @@ namespace DOCGEN.Klassen
}
else
{
- if (dv.TMBeginn.ToString() == "TGEDKAdresseZustellungB99")
- {
- if (img_faktura != "")
+ //if (dv.TMBeginn.ToString() == "TGEDKAdresseZustellungB99")
+ if (dv.TMBeginn.ToString() == "TGEDKZustellungB99")
+ {
+ if (img_faktura != "")
{
+
insert_ppfaktura(document, img_faktura);
bookmarkNavigator.MoveToBookmark(dv.TMBeginn.ToString());
bookmarkNavigator.InsertText(dv.Value.ToString());
+
//bookmarkNavigator.ReplaceBookmarkContent(dv.Value.ToString(), true);
}
@@ -714,17 +717,22 @@ namespace DOCGEN.Klassen
public void insert_ppfaktura(WordDocument document, string ppfakturaimage)
{
+
BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);
- bookmarkNavigator.MoveToBookmark("TGEDKAdresseZustellungB99");
+ //bookmarkNavigator.MoveToBookmark("TGEDKAdresseZustellungB99");
+ bookmarkNavigator.MoveToBookmark("TGEDKZustellungB99");
+
string img = ppfakturaimage;
byte[] b = Convert.FromBase64String(ppfakturaimage);
MemoryStream mssign = new MemoryStream(b);
System.Drawing.Image image = System.Drawing.Image.FromStream(mssign);
IWParagraph paragraph = new WParagraph(document);
paragraph.AppendPicture(image);
+ //paragraph.AppendText(zustellungvalue);
bookmarkNavigator.InsertParagraph(paragraph);
-
+
+
}
private static System.Drawing.Image ResizeImage(System.Drawing.Image imgToResize, Size size)
diff --git a/DOCGEN/bin/Debug/DOCGEN.dll b/DOCGEN/bin/Debug/DOCGEN.dll
index 0d9c0c91..3aacd70b 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 f8d3bcb0..75212bdd 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/DOCGEN/bin/Debug/Database.pdb and b/DOCGEN/bin/Debug/Database.pdb differ
diff --git a/DOCGEN/bin/Debug/Model.dll b/DOCGEN/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/DOCGEN/bin/Debug/Model.dll and b/DOCGEN/bin/Debug/Model.dll differ
diff --git a/DOCGEN/bin/Debug/Model.pdb b/DOCGEN/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/DOCGEN/bin/Debug/Model.pdb and b/DOCGEN/bin/Debug/Model.pdb differ
diff --git a/DOCGEN/bin/Debug/OfficePrinter.dll b/DOCGEN/bin/Debug/OfficePrinter.dll
index ec8bab14..49203ebf 100644
Binary files a/DOCGEN/bin/Debug/OfficePrinter.dll and b/DOCGEN/bin/Debug/OfficePrinter.dll differ
diff --git a/DOCGEN/bin/Debug/OfficePrinter.pdb b/DOCGEN/bin/Debug/OfficePrinter.pdb
index bf9a752a..04a85dac 100644
Binary files a/DOCGEN/bin/Debug/OfficePrinter.pdb and b/DOCGEN/bin/Debug/OfficePrinter.pdb differ
diff --git a/DOCGEN/obj/Debug/DOCGEN.dll b/DOCGEN/obj/Debug/DOCGEN.dll
index 0d9c0c91..3aacd70b 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 f8d3bcb0..75212bdd 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 eea036de..6e11301c 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/Database/bin/Debug/Database.pdb and b/Database/bin/Debug/Database.pdb differ
diff --git a/Database/bin/Debug/Model.dll b/Database/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/Database/bin/Debug/Model.dll and b/Database/bin/Debug/Model.dll differ
diff --git a/Database/bin/Debug/Model.pdb b/Database/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/Database/bin/Debug/Model.pdb and b/Database/bin/Debug/Model.pdb differ
diff --git a/Database/db.cs b/Database/db.cs
index e8ec2b63..475bbf15 100644
--- a/Database/db.cs
+++ b/Database/db.cs
@@ -370,6 +370,12 @@ namespace Database
dok.bUnvollstaendig = false;
dok.iBck = 0;
dok.iColdstatus = 0;
+ dok.iPostzustellung = 0;
+ try
+ {
+ dok.iPostzustellung = Convert.ToInt32(DocData.postzustellung);
+ }
+ catch { }
if (DocData.Unterschrift_Links == "") { DocData.Unterschrift_Links = "0"; }
if (DocData.Unterschrift_Rechts == "") { DocData.Unterschrift_Rechts = "0"; }
dok.iUnterschriftlinks = Convert.ToInt32(DocData.Unterschrift_Links);
@@ -384,7 +390,7 @@ namespace Database
dok.sZustelladresse = "";
dok.sAnredezustelladresse = "";
dok.iZustaendiger = Convert.ToInt32(DocData.Zustaendig);
- dok.iPostzustellung = 0;
+ //dok.iPostzustellung = 0;
dok.bZustaendig_kube = false;
dok.iMa_ausgangsarchivierung = 0;
dok.iMa_eingangsarchivierung = 0;
@@ -496,7 +502,7 @@ namespace Database
int approved = 0;
int approved1 = 0;
int approved2 = 0;
- if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["Unterschrift_Pruefung"]) == true)
+ if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["Unterschrift_Pruefung"]) == true || DocData.As_Faksimile=="True")
{
toapprove = 1;
if (dok.iUnterschriftlinks == dok.iErsteller) { approved1 = 1; }
diff --git a/Database/obj/Debug/Database.csproj.AssemblyReference.cache b/Database/obj/Debug/Database.csproj.AssemblyReference.cache
index 77ce4c45..d5ff27ca 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 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/Database/obj/Debug/Database.pdb and b/Database/obj/Debug/Database.pdb differ
diff --git a/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache b/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache
index 72c7aa07..b52157c6 100644
Binary files a/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache and b/DocIO_Demo_SHU/obj/Debug/DocIO_Demo_SHU.csproj.AssemblyReference.cache differ
diff --git a/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache b/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache
index 49ee5214..a78b6ab1 100644
Binary files a/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache and b/Excel_Test/obj/Debug/Excel_Test.csproj.AssemblyReference.cache differ
diff --git a/Model/bin/Debug/Model.dll b/Model/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/Model/bin/Debug/Model.dll and b/Model/bin/Debug/Model.dll differ
diff --git a/Model/bin/Debug/Model.pdb b/Model/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/Model/bin/Debug/Model.pdb and b/Model/bin/Debug/Model.pdb differ
diff --git a/Model/clsDocData.cs b/Model/clsDocData.cs
index ba1bdc73..6ec9edf5 100644
--- a/Model/clsDocData.cs
+++ b/Model/clsDocData.cs
@@ -17,6 +17,7 @@ namespace Model
public string DokumentDatum { get; set; }
public string Termin { get; set; }
+ public string postzustellung { get; set; }
public string Bezeichnung { get; set; }
public string PartnerNr { get; set; }
public string Ersteller { get; set; }
diff --git a/Model/obj/Debug/Model.dll b/Model/obj/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/Model/obj/Debug/Model.dll and b/Model/obj/Debug/Model.dll differ
diff --git a/Model/obj/Debug/Model.pdb b/Model/obj/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/Model/obj/Debug/Model.pdb and b/Model/obj/Debug/Model.pdb differ
diff --git a/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache b/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache
index 23dc7ed1..dfdd80d3 100644
Binary files a/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache and b/NativVorlagen/obj/Debug/NativVorlagen.csproj.AssemblyReference.cache differ
diff --git a/OfficePrinter/Class1.cs b/OfficePrinter/Class1.cs
index 2b586b7c..6be94a50 100644
--- a/OfficePrinter/Class1.cs
+++ b/OfficePrinter/Class1.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
+using System.Threading;
using System.Threading.Tasks;
using Microsoft.Office.Interop.Word;
@@ -20,6 +21,7 @@ namespace OfficePrinter
Microsoft.Office.Interop.Word.Document wordDocument = new Microsoft.Office.Interop.Word.Document();
wordDocument = appWord.Documents.Open(filename);
appWord.Visible = true;
+
wordDocument.PrintOut(
OutputFileName: pdfname,
PrintToFile: true);
@@ -30,13 +32,15 @@ namespace OfficePrinter
return;
}
- public void PrintInWord(string Filename, string printmacro)
+ public void PrintInWord(string Filename, string printmacro, int OfficeSleep)
{
Application appWord = new Application();
appWord.NormalTemplate.Saved = true;
Microsoft.Office.Interop.Word.Document wordDocument = new Microsoft.Office.Interop.Word.Document();
wordDocument = appWord.Documents.Open(Filename);
+ Thread.Sleep(OfficeSleep);
appWord.Visible = true;
+
if (printmacro == "") return;
try
{
@@ -45,6 +49,7 @@ namespace OfficePrinter
catch
{
}
+ Thread.Sleep(OfficeSleep);
wordDocument.Close();
wordDocument = null;
appWord.Quit(SaveChanges: false);
diff --git a/OfficePrinter/bin/Debug/OfficePrinter.dll b/OfficePrinter/bin/Debug/OfficePrinter.dll
index ec8bab14..49203ebf 100644
Binary files a/OfficePrinter/bin/Debug/OfficePrinter.dll and b/OfficePrinter/bin/Debug/OfficePrinter.dll differ
diff --git a/OfficePrinter/bin/Debug/OfficePrinter.pdb b/OfficePrinter/bin/Debug/OfficePrinter.pdb
index bf9a752a..04a85dac 100644
Binary files a/OfficePrinter/bin/Debug/OfficePrinter.pdb and b/OfficePrinter/bin/Debug/OfficePrinter.pdb differ
diff --git a/OfficePrinter/obj/Debug/OfficePrinter.dll b/OfficePrinter/obj/Debug/OfficePrinter.dll
index ec8bab14..49203ebf 100644
Binary files a/OfficePrinter/obj/Debug/OfficePrinter.dll and b/OfficePrinter/obj/Debug/OfficePrinter.dll differ
diff --git a/OfficePrinter/obj/Debug/OfficePrinter.pdb b/OfficePrinter/obj/Debug/OfficePrinter.pdb
index bf9a752a..04a85dac 100644
Binary files a/OfficePrinter/obj/Debug/OfficePrinter.pdb and b/OfficePrinter/obj/Debug/OfficePrinter.pdb differ
diff --git a/OnDocOffice/bin/Debug/Database.dll b/OnDocOffice/bin/Debug/Database.dll
index 4bb6fc56..238059d4 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 9150410f..751a5659 100644
Binary files a/OnDocOffice/bin/Debug/Database.pdb and b/OnDocOffice/bin/Debug/Database.pdb differ
diff --git a/OnDocOffice/bin/Debug/Model.dll b/OnDocOffice/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/OnDocOffice/bin/Debug/Model.dll and b/OnDocOffice/bin/Debug/Model.dll differ
diff --git a/OnDocOffice/bin/Debug/Model.pdb b/OnDocOffice/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/OnDocOffice/bin/Debug/Model.pdb and b/OnDocOffice/bin/Debug/Model.pdb differ
diff --git a/OnDocOffice/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/OnDocOffice/obj/Debug/DesignTimeResolveAssemblyReferences.cache
index 2f8a9d32..a7dfa560 100644
Binary files a/OnDocOffice/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/OnDocOffice/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache
index d8b0dcb3..d3b32493 100644
Binary files a/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache and b/OnDocOffice/obj/Debug/OnDocOffice.csproj.AssemblyReference.cache differ
diff --git a/OnDocWeb/bin/OnDocWeb.dll b/OnDocWeb/bin/OnDocWeb.dll
index bf1d5c87..c67d636e 100644
Binary files a/OnDocWeb/bin/OnDocWeb.dll and b/OnDocWeb/bin/OnDocWeb.dll differ
diff --git a/OnDocWeb/bin/OnDocWeb.pdb b/OnDocWeb/bin/OnDocWeb.pdb
index be99f7e7..dc37baf3 100644
Binary files a/OnDocWeb/bin/OnDocWeb.pdb and b/OnDocWeb/bin/OnDocWeb.pdb differ
diff --git a/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache b/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache
index 08645df7..0569d7fb 100644
Binary files a/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache and b/OnDocWeb/obj/Debug/OnDocWeb.csproj.AssemblyReference.cache differ
diff --git a/OnDocWeb/obj/Debug/OnDocWeb.dll b/OnDocWeb/obj/Debug/OnDocWeb.dll
index bf1d5c87..c67d636e 100644
Binary files a/OnDocWeb/obj/Debug/OnDocWeb.dll and b/OnDocWeb/obj/Debug/OnDocWeb.dll differ
diff --git a/OnDocWeb/obj/Debug/OnDocWeb.pdb b/OnDocWeb/obj/Debug/OnDocWeb.pdb
index be99f7e7..dc37baf3 100644
Binary files a/OnDocWeb/obj/Debug/OnDocWeb.pdb and b/OnDocWeb/obj/Debug/OnDocWeb.pdb differ
diff --git a/Vorlagen_Viewer/bin/Debug/Database.dll b/Vorlagen_Viewer/bin/Debug/Database.dll
index 4bb6fc56..238059d4 100644
Binary files a/Vorlagen_Viewer/bin/Debug/Database.dll and b/Vorlagen_Viewer/bin/Debug/Database.dll differ
diff --git a/Vorlagen_Viewer/bin/Debug/Database.pdb b/Vorlagen_Viewer/bin/Debug/Database.pdb
index 9150410f..751a5659 100644
Binary files a/Vorlagen_Viewer/bin/Debug/Database.pdb and b/Vorlagen_Viewer/bin/Debug/Database.pdb differ
diff --git a/Vorlagen_Viewer/bin/Debug/Model.dll b/Vorlagen_Viewer/bin/Debug/Model.dll
index 5177cf3e..f67700e0 100644
Binary files a/Vorlagen_Viewer/bin/Debug/Model.dll and b/Vorlagen_Viewer/bin/Debug/Model.dll differ
diff --git a/Vorlagen_Viewer/bin/Debug/Model.pdb b/Vorlagen_Viewer/bin/Debug/Model.pdb
index 532596f2..5664e729 100644
Binary files a/Vorlagen_Viewer/bin/Debug/Model.pdb and b/Vorlagen_Viewer/bin/Debug/Model.pdb differ
diff --git a/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache b/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache
index 3b093f11..850e0f73 100644
Binary files a/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache and b/Vorlagen_Viewer/obj/Debug/Vorlagen_Viewer.csproj.AssemblyReference.cache differ
diff --git a/vbBarcodes/bin/Debug/Database.dll b/vbBarcodes/bin/Debug/Database.dll
index 4bb6fc56..238059d4 100644
Binary files a/vbBarcodes/bin/Debug/Database.dll and b/vbBarcodes/bin/Debug/Database.dll differ
diff --git a/vbBarcodes/bin/Debug/Database.pdb b/vbBarcodes/bin/Debug/Database.pdb
index 9150410f..751a5659 100644
Binary files a/vbBarcodes/bin/Debug/Database.pdb and b/vbBarcodes/bin/Debug/Database.pdb differ
diff --git a/vbBarcodes/bin/Debug/Model.dll b/vbBarcodes/bin/Debug/Model.dll
index dc7a1e44..f67700e0 100644
Binary files a/vbBarcodes/bin/Debug/Model.dll and b/vbBarcodes/bin/Debug/Model.dll differ
diff --git a/vbBarcodes/bin/Debug/Model.pdb b/vbBarcodes/bin/Debug/Model.pdb
index be84dcbc..5664e729 100644
Binary files a/vbBarcodes/bin/Debug/Model.pdb and b/vbBarcodes/bin/Debug/Model.pdb differ
diff --git a/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache b/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache
index 289621eb..4e0408ec 100644
Binary files a/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache and b/vbBarcodes/obj/Debug/vbBarcodes.vbproj.AssemblyReference.cache differ