procedure TBaseOrgDsgnFormChild.tbMoveUpClick(Sender: TObject);
var
iMoveStep: integer;
begin
iMoveStep := 1; //移动个数
//判断移动后是否超过树状结构的顶部
if (OrgTreeView.Selected.Index - iMoveStep) < 0 then
Dialogs.ShowMessage('已经到顶部,不能再向上移动!')
else
begin
if IsBizTreeView then
OrgTreeView.MoveUpNode(OrgTreeView.Selected, iMoveStep)
else if IsBizChart then
OrgChart.MoveUpNode(OrgChart.Selected, iMoveStep);
end;
end;