Exemplo n.º 1
0
        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)));
            }
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
        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.");
            }
        }
Exemplo n.º 4
0
        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"));
        }
Exemplo n.º 5
0
 public ReportForm(ShowReport t)
     : this(t, 0)
 {
 }
Exemplo n.º 6
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);
 }