private ReactiveCommand GetCommandPrinterLabelForActSelectionOfProbeDepartment(IObservable <bool> canExecute)
        {
            var command = new ReactiveCommand(canExecute);

            command.RegisterAsyncAction(_ =>
            {
                var report = new LabelActSelectionOfProbe(SelectedActSelectionOfProbeDepartment.Rn);
                _printManager.OpenReportInBrowser(report);
            });

            return(command);
        }
Exemplo n.º 2
0
        private ReactiveCommand CreatePrintCommand(IObservable <bool> canExecuteObservable)
        {
            var command = new ReactiveCommand(canExecuteObservable);

            command.ObserveOnUiSafeScheduler()
            .Subscribe(_ =>
            {
                var demandreport = new TheDemandReport
                {
                    CountDSE         = CountDSE,
                    DSE              = SelectedDeficiency.DSE,
                    Shop             = SelectedDeficiency.StageWorkshopManufacturer,
                    EmployeeGiver    = SelectedEmployeeGiver.Fullname,
                    EmployeeOTK      = SelectedEmployeeOtk.Fullname,
                    EmployeeReceiver = SelectedEmployeeReceiver.Fullname,
                    KeyRn            = SelectedWarehouseQualityCertificate.Rn
                };
                _printManager.OpenReportInBrowser(demandreport);
            });

            return(command);
        }
Exemplo n.º 3
0
        private void Print(long certificateUid)
        {
            var report = new CertificateSSHReport(certificateUid, Quantity);

            _printManager.OpenReportInBrowser(report);
        }
Exemplo n.º 4
0
        private void PrintLabel()
        {
            var report = new LabelActSelectionOfProbe(EditableObject.Rn);

            _printManager.OpenReportInBrowser(report);
        }