private void tlFunc_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
 {
     if (e.Node != null)
     {
         TreeListNode node = e.Node;
         object       Id   = e.Node.GetValue("Id");
         model = funcManage.GetOneFuncionById((Guid)Id);
         if (model == null)
         {
             return;
         }
         txtID.EditValue    = model.Id;
         txtSortCode.Text   = model.SortCode;
         txtName.Text       = model.FuncName;
         txtFuncHandle.Text = funcManage.GetFuncHandleText(model.FuncHandle);
         txtFuncHandle.Tag  = model.FuncHandle;
         tlPID.EditValue    = model.ParentId;
         if (model.ParentId == Guid.Empty || model.ParentId == null)
         {
             sbtnSave.Enabled = false;
         }
         else
         {
             sbtnSave.Enabled = true;
         }
     }
 }
 public override void AddNew()
 {
     txtID.Text         = "新ID";
     txtSortCode.Text   = "";
     txtName.Text       = "";
     txtFuncHandle.Text = "";
     txtFuncHandle.Tag  = 0;
     tlPID.EditValue    = null;
     sbtnSave.Enabled   = true;
     model = new RightingSys.Models.ACL_Function();
 }