update 20241127
This commit is contained in:
@@ -28,7 +28,8 @@ namespace DOCGEN
|
||||
public string connectionstring = "";
|
||||
public clsDocData DocData = new clsDocData();
|
||||
DB db = new DB();
|
||||
|
||||
public string apikey = "";
|
||||
public string resturi = "";
|
||||
|
||||
public void Lic()
|
||||
{
|
||||
@@ -48,6 +49,15 @@ namespace DOCGEN
|
||||
Lic();
|
||||
}
|
||||
|
||||
public DocGen(string Connectionstring, string RestURI, string ApiKey)
|
||||
{
|
||||
this.connectionstring = Connectionstring;
|
||||
this.DocData = DocData;
|
||||
db.connectionstring = this.connectionstring;
|
||||
Lic();
|
||||
this.resturi = RestURI;
|
||||
this.apikey = ApiKey;
|
||||
}
|
||||
public string GenDocID(clsDocData docdata)
|
||||
{
|
||||
this.DocData = docdata;
|
||||
@@ -70,9 +80,9 @@ namespace DOCGEN
|
||||
return "";
|
||||
}
|
||||
|
||||
public string generate_serienbrief(string vorlage,serienbrief sb, string dokumentid)
|
||||
public string generate_serienbrief(string vorlage,serienbrief sb, string dokumentid, string resturi, string apikey)
|
||||
{
|
||||
SyncFWord sfword = new SyncFWord();
|
||||
SyncFWord sfword = new SyncFWord(resturi,apikey);
|
||||
clsdok dok = new clsdok("", "", "");
|
||||
clsDocData dd = new clsDocData();
|
||||
dd.DocMacros = new List<clsDocMacro>();
|
||||
|
||||
Reference in New Issue
Block a user