Update 20241215
This commit is contained in:
@@ -52,20 +52,23 @@ namespace OnDoc.UIControls.Administrator
|
||||
_sqlOrder = "id ";
|
||||
}
|
||||
else _sqlOrder = "Bezeichnung";
|
||||
|
||||
System.Data.DataTable _newDataTable = treedata.Select(_sqlWhere, _sqlOrder).CopyToDataTable();
|
||||
|
||||
foreach (DataRow r in _newDataTable.Rows)
|
||||
try
|
||||
{
|
||||
TreeNodeAdv nodeAdv = new TreeNodeAdv();
|
||||
nodeAdv.Text = r["id"].ToString() + " " + r["Bezeichnung"].ToString();
|
||||
nodeAdv.Tag = r["id"].ToString();
|
||||
if (Convert.ToBoolean(r["aktiv"]) == false)
|
||||
System.Data.DataTable _newDataTable = treedata.Select(_sqlWhere, _sqlOrder).CopyToDataTable();
|
||||
|
||||
foreach (DataRow r in _newDataTable.Rows)
|
||||
{
|
||||
nodeAdv.Font = new System.Drawing.Font(nodeAdv.Font, FontStyle.Strikeout);
|
||||
TreeNodeAdv nodeAdv = new TreeNodeAdv();
|
||||
nodeAdv.Text = r["id"].ToString() + " " + r["Bezeichnung"].ToString();
|
||||
nodeAdv.Tag = r["id"].ToString();
|
||||
if (Convert.ToBoolean(r["aktiv"]) == false)
|
||||
{
|
||||
nodeAdv.Font = new System.Drawing.Font(nodeAdv.Font, FontStyle.Strikeout);
|
||||
}
|
||||
TreeDokumenttyp.Nodes.Add(nodeAdv);
|
||||
}
|
||||
TreeDokumenttyp.Nodes.Add(nodeAdv);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
private void Dokumenttyp_Load(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user