private void ShowTimeTracking_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) { Validator.RuleSet.Validate(View.ObjectSpace, this.TimeTrackingMultiple, "Immediate"); this.TimeTrackingMultiple.Save(); WorkFlowTimeTrackingMultipleHelper.Execute(this.TimeTrackingMultiple); this.Session.CommitTransaction(); this._timeTrackingMultiple = null; ToastMessageHelper.ShowSuccessMessage(this.Application, "Times successfully addeed and saved", InformationPosition.Bottom); }
private void ShowEmailAction_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) { Validator.RuleSet.Validate(View.ObjectSpace, this._emailParameter, "Immediate"); this.EmailParameter.CommunicationLog.Add(new CommunicationLog(this.EmailParameter.Session) { Description = "Email Queued" }); this.EmailParameter.Save(); this.Session.CommitTransaction(); ToastMessageHelper.ShowSuccessMessage(this.Application, string.Concat("Email Message ", this.EmailParameter.Status.ToString()), InformationPosition.Bottom); this._emailParameter = null; this.dvDetailView = null; }
private void SetReportAction_Execute(object sender, SingleChoiceActionExecuteEventArgs args) { var objectSpace = View is ListView?Application.CreateObjectSpace() : View.ObjectSpace; var objectsToProcess = new ArrayList(args.SelectedObjects); if (args.SelectedChoiceActionItem.ParentItem == this._setPriorityItem) { foreach (Object obj in objectsToProcess) { IStatusPriorityHelper.UpdatePriority(objectSpace.GetObject(obj) as IStatusPriority <Status, Priority>, (Priority)args.SelectedChoiceActionItem.Data); } this.ObjectSpace.Refresh(); this.View.Refresh(); ToastMessageHelper.ShowSuccessMessage(WebApplication.Instance, "Successfully Updated Priority of Selected Workflows", InformationPosition.Bottom); } else if (args.SelectedChoiceActionItem.ParentItem == this._setStatusItem) { foreach (Object obj in objectsToProcess) { IStatusPriorityHelper.UpdateStatus(objectSpace.GetObject(obj) as IStatusPriority <Status, Priority>, (Status)objectSpace.GetObject(args.SelectedChoiceActionItem.Data)); } this.ObjectSpace.Refresh(); this.View.Refresh(); ToastMessageHelper.ShowSuccessMessage(WebApplication.Instance, "Successfully Updated Status of Selected Workflows", InformationPosition.Bottom); } this.ObjectSpace.Refresh(); this.View.Refresh(); ToastMessageHelper.ShowSuccessMessage(WebApplication.Instance, "Successfully Updated Status of Selected Workflows", InformationPosition.Bottom); }
private void ExecuteInfoMessage(Controller Controller, string Message, InformationPosition Position) { ToastMessageHelper.ShowSuccessMessage(Controller.Application, Message, Position); }