updaet 20250226

This commit is contained in:
Stefan Hutter
2025-02-26 07:54:12 +01:00
parent 0f76b2b376
commit d745bb8ead
47 changed files with 205 additions and 39 deletions

View File

@@ -202,6 +202,7 @@ namespace OnDoc.UIControls
}
else
{
db.Exec_SQL("Update dokument set approval1=1 where dokumentid='" + dr["dokumentid"].ToString()+"'");
}
@@ -212,6 +213,8 @@ namespace OnDoc.UIControls
db.Get_Tabledata("Select * from dokument where dokumentid='" + dr["dokumentid"].ToString() + "'", false, true);
if (db.dsdaten.Tables[0].Rows[0]["approved"].ToString()=="True")
{
panelsign.Visible = true;
Application.DoEvents();
Cursor = Cursors.WaitCursor;
DOCGEN.DocGen dg = new DocGen(AppParams.connectionstring, AppParams.RESTURI, AppParams.apikey);
if (dg.signdoc(dr["dokumentid"].ToString(), AppParams.tempdir))
@@ -219,6 +222,8 @@ namespace OnDoc.UIControls
db.Exec_SQL("Update Dokument set signiert=1, mutierer=" + AppParams.CurrentMitarbeiter.ToString() + ", mutiertam=getdate() where dokumentid='" + dr["dokumentid"].ToString() + "'");
}
dg = null;
panelsign.Visible = false;
Application.DoEvents();
Cursor = Cursors.Default;
}