Update 20241118
This commit is contained in:
@@ -57,6 +57,7 @@ namespace OnDoc.DocMgmt
|
||||
cbboxunterschriftrechts.Enabled = false;
|
||||
pxapproval2.Visible = true;
|
||||
}
|
||||
|
||||
if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["approved"])){
|
||||
cbboxunterschriftlinks.Enabled = false;
|
||||
pxapproval1.Visible = true;
|
||||
@@ -64,13 +65,29 @@ namespace OnDoc.DocMgmt
|
||||
pxapproval2.Visible = true;
|
||||
btntoapproval.Enabled = false;
|
||||
}
|
||||
|
||||
if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["approval1"]))
|
||||
{
|
||||
cbboxunterschriftlinks.Enabled = false;
|
||||
pxapproval1.Visible = true;
|
||||
}
|
||||
if (Convert.ToBoolean(db.dsdaten.Tables[0].Rows[0]["approval2"]))
|
||||
{
|
||||
cbboxunterschriftrechts.Enabled = false;
|
||||
pxapproval2.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void btntoapproval_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
DB dB = new DB(AppParams.connectionstring);
|
||||
|
||||
|
||||
|
||||
|
||||
string sql = "Update dokument_Bewilligung set aktiv=0, mutiert_am=getdate(), mutierer = " + AppParams.CurrentMitarbieter.ToString();
|
||||
sql = sql + " where dokumentid='" + dokumentid + "' and abgelehnt=0 and bewilligt=0";
|
||||
dB.Exec_SQL(sql);
|
||||
|
||||
dB.Get_Tabledata_for_Update("select top 1 * from dokument_bewilligung where id=-2", false, true);
|
||||
|
||||
if (pxapproval1.Visible == false)
|
||||
|
||||
Reference in New Issue
Block a user