/// <summary> /// 启用内置操作类型 /// </summary> /// <param name="gridOperatorTypes">内置操作类型</param> /// <returns></returns> public GridTable <T> BuiltInOperation(GridOperators gridOperatorTypes) { if (gridOperatorTypes.HasFlag(GridOperators.Add)) { GridConfiguration.GridOperation.Add = true; } if (gridOperatorTypes.HasFlag(GridOperators.Edit)) { GridConfiguration.GridOperation.Edit = true; } if (gridOperatorTypes.HasFlag(GridOperators.Delete)) { GridConfiguration.GridOperation.Delete = true; } return(this); }
/// <summary> /// 启用内置操作类型 /// </summary> /// <param name="gridOperatorTypes">内置操作类型</param> /// <returns></returns> public GridGenerator <T> BuiltInOperation(GridOperators gridOperatorTypes) { if (gridOperatorTypes.HasFlag(GridOperators.Add)) { GridConfiguration.GridOperation.Add = true; } if (gridOperatorTypes.HasFlag(GridOperators.Edit)) { GridConfiguration.GridOperation.Edit = true; } if (gridOperatorTypes.HasFlag(GridOperators.Delete)) { GridConfiguration.GridOperation.Delete = true; } if (gridOperatorTypes.HasFlag(GridOperators.Search)) { GridConfiguration.GridOperation.Search = true; } if (gridOperatorTypes.HasFlag(GridOperators.Refresh)) { GridConfiguration.GridOperation.Refresh = true; } return(this); }