/// <summary> /// 赋值数据 /// </summary> /// <param name="limit"></param> public void Replace(SysLimits limit) { PId = limit.PId; Key = limit.Key; Code = limit.Code; Depth = limit.Depth; Status = limit.Status; }
/// <summary> /// 根据父级深度设置当前深度 /// </summary> /// <param name="pDepth"></param> public void SetDepth(SysLimits pLimit) { int pdepth = 0; if (pLimit != null) { pdepth = pLimit.Depth; } Depth = (short)(pdepth + 1); }