Beispiel #1
0
        private void fastBarcodes_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                FastObjectListView fastBarcodes = sender as FastObjectListView;
                if (fastBarcodes.SelectedObject != null)
                {
                    BarcodeDTO barcodeDTO = fastBarcodes.SelectedObject as BarcodeDTO;
                    if (barcodeDTO != null)
                    {
                        if (true)
                        {
                            WebapiGettsa webapiGettsa = new WebapiGettsa(barcodeDTO.Label);
                            webapiGettsa.ShowDialog(); webapiGettsa.Dispose();
                        }
                        else
                        {
                            PrintViewModel printViewModel = new PrintViewModel();
                            printViewModel.ReportPath = "SearchBarcode";
                            printViewModel.ReportParameters.Add(new Microsoft.Reporting.WinForms.ReportParameter("Barcode", barcodeDTO.Code));

                            SsrsViewer ssrsViewer = new SsrsViewer(printViewModel);
                            ssrsViewer.Show();
                        }
                    }
                }
            }
            catch (Exception exception)
            {
                ExceptionHandlers.ShowExceptionMessageBox(this, exception);
            }
        }
Beispiel #2
0
 public void Print(GlobalEnums.PrintDestination printDestination)
 {
     try
     {
         SsrsViewer ssrsViewer = new SsrsViewer(this.InitPrintViewModel());
         ssrsViewer.Show();
     }
     catch (Exception exception)
     {
         ExceptionHandlers.ShowExceptionMessageBox(this, exception);
     }
 }