/// <summary> /// 转换成访问链接 /// </summary> /// <param name="name"></param> /// <param name="url"></param> /// <returns></returns> public static TableAction ToLinkAction(string name, string url, Flaticon flaticon = Flaticon.Interface5) { var tableAction = new TableAction { Name = name, Url = url, IconType = flaticon, Type = ActionLinkType.Link }; return(tableAction); }
/// <summary> /// 转换成删除链接 /// </summary> /// <param name="name"></param> /// <param name="url"></param> /// <returns></returns> public static TableAction ToDialogAction(string name, string url, Flaticon flaticon = Flaticon.Dashboard) { var tableAction = new TableAction { Name = name, Url = url, IconType = flaticon, Type = ActionLinkType.Dialog }; return(tableAction); }
public static TableAction ToLinkAction(string name, TableActionType tableActionType, Type formType, Flaticon flaticon = Flaticon.Interface5) { var tableAction = new TableAction { Name = name, FormType = formType.Name, IconType = flaticon, Type = ActionLinkType.Dialog, ActionType = tableActionType }; return(tableAction); }