private void menuReports_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { ToolStripItem item = e.ClickedItem; string reportType = item.Tag as string; if (reportType != null) { ShowReport?.Invoke(sender, new ShowReportEventArgs((OrderReportType)Enum.Parse(typeof(OrderReportType), reportType))); } }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Movie = await _context.ReportList.FirstOrDefaultAsync(m => m.ID == id); if (Movie == null) { return(NotFound()); } return(Page()); }
private async void btnPrint_Click(object sender, EventArgs e) { _logicOrders = new LogicOrders(); try { RepairOrder currentOrder = await _logicOrders.GetOrderData(MapFromList()); ShowReport showReport = new ShowReport(); showReport.LoadData(currentOrder); showReport.Show(); } catch (LoggedException loggex) { base.ShowError(loggex.Message, "Consultar Ordenes."); } }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } Movie = await _context.ReportList.FindAsync(id); if (Movie != null) { _context.ReportList.Remove(Movie); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }
public ReportForm(ShowReport t) : this(t, 0) { }
public ReportForm(ShowReport t, int userid) { report = t; this.userid = userid; InitializeComponent(); }
public void ResetTokens(On.EntityStates.GameOver.ShowReport.orig_OnEnter orig, ShowReport self) { _lastStageTokenAmount = 0; orig(self); }