private static List<GridActionItem> BuildGridActionList(EventOccurrenceDto occurrence) { var list = CommonUtils.CreateGridActionItemList(true); //cancel if (!occurrence.IsCanceled) { var cancel = new GridActionItem { ActionType = GridActionType.Custom, CssClass = Constants.GridActionsCssClass + "fa-ban", Command = CancelOccurrencesCommand, Title = "Cancel this occurrence" }; list.Add(cancel); } //copy var copy = new GridActionItem { ActionType = GridActionType.Custom, CssClass = Constants.GridActionsCssClass + "fa-clone", Command = CopyOcurrenceCommand, Title = "Copy occurrence" }; list.Add(copy); return list; }
private string GetStatus(EventOccurrenceDto o) { var statusText = string.Empty; var status = MEDSEEK.eHealth.Apps.Events.Common.Admin.Events.EventUtils.DetermineOccurrenceStatus(o); if (status.StartsWith("Can", StringComparison.OrdinalIgnoreCase)) { if (status == "CanVis") statusText = "Cancelled, Enabled"; else statusText = "Cancelled, Disabled"; } else { statusText = status; } return statusText; }