示例#1
0
        public ActionResult Delete(string id)
        {
            string parentId = _service.GetOrgById(id).ParentId;

            if (string.IsNullOrEmpty(id))
            {
                return(this.Direct());
            }

            _service.DeleteOrganization(id);
            _service.DeleteUser(id);
            _service.Save();

            //this.GetCmp<TreeStore>("storeSAOrganization").Reload();
            TreePanel treePanel = this.GetCmp <TreePanel>("treePanelSAOrganization");

            treePanel.GetNodeById(parentId).Reload();
            return(this.Direct());
        }