select * from S_dept where CODE in(select sd.code from s_dept sd start with sd.code='GDKB' connect by prior sd.code= sd.parent_code) 查找一个节点(GDKB)的所有直属子节点(所有后代). select * from S_deptwhere CODEin(select sd.code from s_dept sdstart with sd.code='GDKB'c
整理一下项目中常用的找控件功能,包括找父/子控件.找到所有同类型子控件(比如ListBox找到所有Item). using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; namespace MyDemo.Utils { ///