예제 #1
0
        private void btnPrintPreview_Click(object sender, RoutedEventArgs e)
        {
            var reportName = "RouteCardReportAr";

            if (TabRouteCard.SelectedIndex == 1)
            {
                var reportChild = new ReportsChildWindow(PermissionItemName.RouteCardForm.ToString(), MyViewModel.LastTransaction);
                reportChild.Show();
                return;
            }
            if (MyViewModel.RouteTypeInt == 9)
            {
                reportName = "StyleCostAndEstimatedCost";
            }

            var para = new ObservableCollection <string> {
                MyViewModel.LastTransaction.ToString(CultureInfo.InvariantCulture)
            };

            var reportViewmodel = new GenericReportViewModel();

            reportViewmodel.GenerateReport(reportName, para);
        }
예제 #2
0
        private void btnPrint_Click(object sender, RoutedEventArgs e)
        {
            var reportChild = new ReportsChildWindow("Marker", _viewModel.MarkerHeader.Iserial);

            reportChild.Show();
        }