Update 20240807 - nach NUGET-Update Syncfusion
This commit is contained in:
@@ -37,6 +37,7 @@ namespace OnDoc.DocMgmt
|
||||
|
||||
public void load_standard(string filter)
|
||||
{
|
||||
Cursor = Cursors.WaitCursor;
|
||||
if (AppParams.connectionstring == "")
|
||||
{
|
||||
AppParams.init();
|
||||
@@ -65,7 +66,8 @@ namespace OnDoc.DocMgmt
|
||||
ds.Tables[0].TableName = "Struktur";
|
||||
ds.Tables.Add(vorlagen.Copy());
|
||||
ds.Relations.Add("TreeParentChild", ds.Tables[0].Columns["ID"], ds.Tables[0].Columns["ParentID"],false);
|
||||
ds.Relations.Add("VorlagenParent", ds.Tables[0].Columns["id"], ds.Tables[1].Columns["node"], false);
|
||||
ds.Relations.Add("VorlagenParent", ds.Tables[0].Columns["ID"], ds.Tables[1].Columns["node"], false);
|
||||
|
||||
|
||||
|
||||
foreach ( System.Data. DataRow dr in ds.Tables[0].Rows)
|
||||
@@ -93,6 +95,7 @@ namespace OnDoc.DocMgmt
|
||||
TreeViewAdvFindReplaceDialog dialog = new TreeViewAdvFindReplaceDialog(this.treeViewAdv1);
|
||||
dialog.Find(ExternalCall.struktur, Syncfusion.Windows.Forms.Tools.TreeViewSearchOption.MatchWholeText, Syncfusion.Windows.Forms.Tools.TreeViewSearchRange.TreeView);
|
||||
}
|
||||
Cursor = Cursors.Default;
|
||||
}
|
||||
void treeViewAdv1_OnNodeAfterFound(object sender, Syncfusion.Windows.Forms.Tools.TreeNodeAdvAfterFindArgs e)
|
||||
{
|
||||
@@ -117,7 +120,11 @@ namespace OnDoc.DocMgmt
|
||||
}
|
||||
public void PopulateTree(System.Data.DataRow dr, TreeNodeAdv pNode)
|
||||
{
|
||||
//To iterate through all the rows in the DataSet
|
||||
if (dr.GetChildRows("TreeParentChild").Count() == 0)
|
||||
{
|
||||
PopulateSubTree(dr, pNode);
|
||||
}
|
||||
//To iterate through all the rows in the DataSet
|
||||
foreach (System.Data.DataRow row in dr.GetChildRows("TreeParentChild"))
|
||||
{
|
||||
//Creating a TreeNode for each row
|
||||
|
||||
Reference in New Issue
Block a user