update 20251210
This commit is contained in:
@@ -193,6 +193,37 @@ namespace DOCGEN
|
||||
return dok.dokument;
|
||||
}
|
||||
|
||||
public bool signdocsf (string dokumentid, string tempdir, int pages = 0)
|
||||
{
|
||||
|
||||
DB db1 = new DB(connectionstring);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
db1.Get_Tabledata("Select * from dokument where dokumentid = '" + dokumentid + "'", false, true);
|
||||
string unterschriftlinks = db1.dsdaten.Tables[0].Rows[0]["unterschriftlinks"].ToString();
|
||||
string unterschriftrechts = db1.dsdaten.Tables[0].Rows[0]["unterschriftrechts"].ToString();
|
||||
string dokumenttypnr = db1.dsdaten.Tables[0].Rows[0]["dokumenttypnr"].ToString();
|
||||
OnDocOffice.clsWordEdit we = new OnDocOffice.clsWordEdit(connectionstring, "", "", resturi, apikey);
|
||||
|
||||
if (we.insert_signaturesf(dokumentid, unterschriftlinks, unterschriftrechts, tempdir, dokumenttypnr, pages))
|
||||
{
|
||||
we = null;
|
||||
return true;
|
||||
|
||||
}
|
||||
we = null;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
finally {
|
||||
db1 = null; }
|
||||
|
||||
return true;
|
||||
}
|
||||
public bool signdoc(string dokumentid, string tempdir, int pages=0)
|
||||
{
|
||||
DB db1 = new DB(connectionstring);
|
||||
@@ -210,6 +241,10 @@ namespace DOCGEN
|
||||
return true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
catch {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user