private void BindOrgTree() { SysOrgInfoBus bus = new SysOrgInfoBus(); DataTable dt = bus.Query(); if (dt != null) { treedv = dt.DefaultView; } BuildTree(null, 0); }
private void BindTree(int parentId) { var dt = _bus.Query("IsDel=0", null); if (dt != null) { _dv = dt.DefaultView; _dv.Sort = "OrderBy"; BuildTree(null, parentId); } }
private void BindOrgTree() { SysOrgInfoBus bus = new SysOrgInfoBus(); DataTable dt = bus.Query(); if (dt != null) { _dv = dt.DefaultView; } BuildTree(0); this.tree.Text = _html; }