Ejemplo n.º 1
0
 public MainToolbarVM(MainWindowVM mainWindowVM)
 {
     _main = mainWindowVM;
     _args = _main.AppArgs;
     WithOverduesReportCmd = WithOverduesReport.CreateLauncherCmd(_args);
     PrintCurrentListCmd   = R2Command.Relay(PrintCurrentList, null, "Print Current List");
     ExportListToExcelCmd  = R2Command.Relay(ExportListToExcel, null, "Export List to Excel");
     //RunAdHocTask1Cmd      = R2Command.Relay(_ => RunAdHocTask(1), _ => _args.CanRunAdHocTask(false), "Run Ad Hoc Script 1");
     //RunAdHocTask2Cmd      = R2Command.Relay(_ => RunAdHocTask(2), _ => _args.CanRunAdHocTask(false), "Run Ad Hoc Script 2");
     //RunAdHocTask3Cmd      = R2Command.Relay(_ => RunAdHocTask(3), _ => _args.CanRunAdHocTask(false), "Run Ad Hoc Script 3");
 }
Ejemplo n.º 2
0
        private void LaunchReport(AppArguments args)
        {
            switch (args.Param1.ToUpper())
            {
            case "OVERDUES": WithOverduesReport.Show(args);        break;

            case "COLXNSMRY": ColxnSummaryExcelWriter.Launch(args); break;

            case "DAILYSTATUS": DailyStatusReportVM.Launch(args);     break;

            case "GLRECAP": GLRecapExcelWriter.Launch(args);      break;

            case "COLLECTORS": CollectorsMainVM.Launch(args);        break;

            case "CHKVOUCHERS": CheckVouchersReporter.Launch(args);   break;

            default: throw Bad.Arg("Param1", args.Param1);
            }
        }