Update 20250204
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Database;
|
||||
using DOCGEN;
|
||||
using OnDoc.DocMgmt;
|
||||
using OnDoc.Klassen;
|
||||
using Syncfusion.Windows.Forms.Edit;
|
||||
@@ -192,8 +193,26 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
db.Exec_SQL("Update dokument set approval1=1 where dokumentid='" + dr["dokumentid"].ToString()+"'");
|
||||
}
|
||||
db = null;
|
||||
Logging.DocLog.Info("Dokument geprüft", "Dokumentprüfung", dr["dokumentid"].ToString(), "", "");
|
||||
|
||||
db.Get_Tabledata("Select * from dokument where dokumentid='" + dr["dokumentid"].ToString() + "'", false, true);
|
||||
if (db.dsdaten.Tables[0].Rows[0]["approved"].ToString()=="True")
|
||||
{
|
||||
Cursor = Cursors.WaitCursor;
|
||||
DOCGEN.DocGen dg = new DocGen(AppParams.connectionstring, AppParams.RESTURI, AppParams.apikey);
|
||||
if (dg.signdoc(dr["dokumentid"].ToString(), AppParams.tempdir))
|
||||
{
|
||||
db.Exec_SQL("Update Dokument set signiert=1, mutierer=" + AppParams.CurrentMitarbeiter.ToString() + ", mutiertam=getdate() where dokumentid='" + dr["dokumentid"].ToString() + "'");
|
||||
}
|
||||
dg = null;
|
||||
Cursor = Cursors.Default;
|
||||
|
||||
}
|
||||
|
||||
db = null;
|
||||
|
||||
|
||||
|
||||
remove_node();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user