예제 #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)));
            }
        }
예제 #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());
        }
예제 #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.");
            }
        }
예제 #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"));
        }
예제 #5
0
 public ReportForm(ShowReport t)
     : this(t, 0)
 {
 }
예제 #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);
 }