updaet 20250123

This commit is contained in:
Stefan Hutter
2025-01-24 16:25:47 +01:00
parent 52a3fecee5
commit 608c67d21b
156 changed files with 2055 additions and 1660 deletions

View File

@@ -57,7 +57,7 @@ namespace DOCGEN.Generator
this.Office_Fill_DocIO= Office_Fill_DocIO;
}
public clsdok Generate_Doc_EDOKA(string dokumentid, ref clsDocData docdata, bool useoffice = false, int OfficeSleep=0, bool vbfilemanagement = false)
public clsdok Generate_Doc_EDOKA(string dokumentid, ref clsDocData docdata, bool useoffice = false, int OfficeSleep=0, bool vbfilemanagement = false, bool editdoc=false)
{
useoffice = docdata.Erstellung_in_Office;
try
@@ -72,8 +72,15 @@ namespace DOCGEN.Generator
string Apptype = "";
string Extension = "";
Logging.Logging.Debug("Generate_Doc_EDOKA", "Get_Vorlage", dokumentid);
if (!editdoc)
{
dt = db.Get_Vorlage_By_DokumentID(dokumentid, useoffice, tempdir,false);
}
else
{
dt = db.Get_Vorlage_By_DokumentID(dokumentid, useoffice, tempdir, true);
dt = db.Get_Vorlage_By_DokumentID(dokumentid,useoffice, tempdir);
}
db.dsdaten.Tables.Clear();
dt2 = db.Get_ApplicationType_from_Vorlage(Convert.ToInt32(dt.Rows[0]["nr"].ToString()));
Apptype = dt2.Rows[0][0].ToString();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -62,12 +62,12 @@ namespace DOCGEN
this.resturi = RestURI;
this.apikey = ApiKey;
}
public string GenDocID(clsDocData docdata)
public string GenDocID(clsDocData docdata, bool editdoc, string dokumentid)
{
this.DocData = docdata;
if (DocData.UseEDOKA_Values.ToUpper() == "TRUE")
{
DokumentID=db.Create_EDOKA_Doc(this.DocData);
DokumentID=db.Create_EDOKA_Doc(this.DocData,editdoc,dokumentid);
Logging.DocLog.Info("Dokument erstellt", "DocGen", DokumentID, docdata.PartnerNr.ToString(), docdata.Ersteller.ToString());
}
else { DokumentID = ""; };

Binary file not shown.

Binary file not shown.