|
|
|
@ -53,6 +53,7 @@ using Syncfusion.Windows.Forms.Edit.Utils;
|
|
|
|
using Syncfusion.WinForms.DataGrid.Serialization;
|
|
|
|
using Syncfusion.WinForms.DataGrid.Serialization;
|
|
|
|
using NLog.LayoutRenderers;
|
|
|
|
using NLog.LayoutRenderers;
|
|
|
|
using Syncfusion.Windows.Forms.PivotAnalysis;
|
|
|
|
using Syncfusion.Windows.Forms.PivotAnalysis;
|
|
|
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -559,12 +560,32 @@ namespace OnDoc.UICintrols
|
|
|
|
interop = dokbearbeitung.interop;
|
|
|
|
interop = dokbearbeitung.interop;
|
|
|
|
//runmacros = dokbearbeitung.runmacros;
|
|
|
|
//runmacros = dokbearbeitung.runmacros;
|
|
|
|
string filename = dokbearbeitung.filename;
|
|
|
|
string filename = dokbearbeitung.filename;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logging.Logging.Debug("Doklist Docfunction=6", "Doklist", "");
|
|
|
|
string ext = System.IO.Path.GetExtension(filename);
|
|
|
|
|
|
|
|
string apptype = "";
|
|
|
|
|
|
|
|
switch (ext.ToUpper())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case ".DOCX":
|
|
|
|
|
|
|
|
case ".DOCM":
|
|
|
|
|
|
|
|
case ".DOC":
|
|
|
|
|
|
|
|
case ".DOT":
|
|
|
|
|
|
|
|
case ".WORD":
|
|
|
|
|
|
|
|
case ".DOTM":
|
|
|
|
|
|
|
|
apptype = "Word";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ".XLSM":
|
|
|
|
|
|
|
|
case ".XLSX":
|
|
|
|
|
|
|
|
case ".XLST":
|
|
|
|
|
|
|
|
case ".XLS":
|
|
|
|
|
|
|
|
case ".XLT":
|
|
|
|
|
|
|
|
apptype = "Excel";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logging.Logging.Debug("Doklist Docfunction=6", "Doklist", "");
|
|
|
|
//db1.Dok_in_Bearbeitung(1, selected_dokumentid, AppParams.CurrentMitarbeiter);
|
|
|
|
//db1.Dok_in_Bearbeitung(1, selected_dokumentid, AppParams.CurrentMitarbeiter);
|
|
|
|
//db1 = null;
|
|
|
|
//db1 = null;
|
|
|
|
clsProcessWatch.AddToList(selected_dokumentid, filename, "Word");
|
|
|
|
clsProcessWatch.AddToList(selected_dokumentid, filename, apptype);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
@ -670,6 +691,7 @@ namespace OnDoc.UICintrols
|
|
|
|
|
|
|
|
|
|
|
|
tempfilename = fh.save_temp_file(dok.dokument, selected_dokumentid, AppParams.tempdir, dok.extension);
|
|
|
|
tempfilename = fh.save_temp_file(dok.dokument, selected_dokumentid, AppParams.tempdir, dok.extension);
|
|
|
|
//System.Diagnostics.Process.Start(tempfilename);
|
|
|
|
//System.Diagnostics.Process.Start(tempfilename);
|
|
|
|
|
|
|
|
interop = true;
|
|
|
|
if (interop == true)
|
|
|
|
if (interop == true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OnDocOffice.clsWordEdit WordInterOP = new OnDocOffice.clsWordEdit(AppParams.connectionstring, tempfilename, selected_dokumentid, AppParams.RESTURI, AppParams.apikey);
|
|
|
|
OnDocOffice.clsWordEdit WordInterOP = new OnDocOffice.clsWordEdit(AppParams.connectionstring, tempfilename, selected_dokumentid, AppParams.RESTURI, AppParams.apikey);
|
|
|
|
@ -960,7 +982,27 @@ namespace OnDoc.UICintrols
|
|
|
|
Logging.Logging.Debug("Doklist Docfunction=6", "Doklist", "");
|
|
|
|
Logging.Logging.Debug("Doklist Docfunction=6", "Doklist", "");
|
|
|
|
db.Dok_in_Bearbeitung(1, selected_dokumentid, AppParams.CurrentMitarbeiter);
|
|
|
|
db.Dok_in_Bearbeitung(1, selected_dokumentid, AppParams.CurrentMitarbeiter);
|
|
|
|
db = null;
|
|
|
|
db = null;
|
|
|
|
clsProcessWatch.AddToList(selected_dokumentid, filename, "Word");
|
|
|
|
string ext = System.IO.Path.GetExtension(filename);
|
|
|
|
|
|
|
|
string apptype = "";
|
|
|
|
|
|
|
|
switch (ext.ToUpper())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case ".DOCX":
|
|
|
|
|
|
|
|
case ".DOCM":
|
|
|
|
|
|
|
|
case ".DOC":
|
|
|
|
|
|
|
|
case ".DOT":
|
|
|
|
|
|
|
|
case ".WORD":
|
|
|
|
|
|
|
|
case ".DOTM":
|
|
|
|
|
|
|
|
apptype = "Word";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case ".XLSM":
|
|
|
|
|
|
|
|
case ".XLSX":
|
|
|
|
|
|
|
|
case ".XLST":
|
|
|
|
|
|
|
|
case ".XLS":
|
|
|
|
|
|
|
|
case ".XLT":
|
|
|
|
|
|
|
|
apptype = "Excel";
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
clsProcessWatch.AddToList(selected_dokumentid, filename, apptype);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|