1
This commit is contained in:
@@ -1284,6 +1284,42 @@ namespace Pilot_KD_Parino.QPHY_AutoWrire
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//全部展开
|
||||
if (e.BarItemKey.ToString().Equals("VRYF_tbButton"))
|
||||
{
|
||||
//处理树形表单的样式
|
||||
TreeEntryGrid entryGrid = this.View.GetControl("FEntity2") as TreeEntryGrid;
|
||||
DynamicObjectCollection entryGrid2 = this.View.Model.DataObject["FEntity2"] as DynamicObjectCollection;
|
||||
if (entryGrid != null)
|
||||
{
|
||||
var entityKey = "FEntity2";
|
||||
var grid = this.View.GetControl<EntryGrid>(entityKey);
|
||||
|
||||
for (int i = 0; i < entryGrid2.Count; i++)
|
||||
{
|
||||
entryGrid.ExpandedRow(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//全部折叠
|
||||
if (e.BarItemKey.ToString().Equals("VRYF_tbButton_1"))
|
||||
{
|
||||
//处理树形表单的样式
|
||||
TreeEntryGrid entryGrid = this.View.GetControl("FEntity2") as TreeEntryGrid;
|
||||
DynamicObjectCollection entryGrid2 = this.View.Model.DataObject["FEntity2"] as DynamicObjectCollection;
|
||||
if (entryGrid != null)
|
||||
{
|
||||
var entityKey = "FEntity2";
|
||||
var grid = this.View.GetControl<EntryGrid>(entityKey);
|
||||
|
||||
for (int i = 0; i < entryGrid2.Count; i++)
|
||||
{
|
||||
entryGrid.CollapsedRow(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user