Exemple #1
0
        void Load103Execute()
        {
            //var open_file_dialog = base.GetService<IOpenFileDialogService>();

            //string title = "Buscar fichero de Reporte 103";
            //string filter = "Reportes|*.csv";

            //if (open_file_dialog.ShowDialog(title, filter) == true)
            //{
            //    Load103Async(open_file_dialog.FileName);
            //}

            var windowManager = base.GetService <IWindowManager>();

            LoadReportDialogViewModel lrdvm = new LoadReportDialogViewModel(appvm, "Cargar reporte 103");

            if (windowManager.ShowDialog(lrdvm, appvm) == true)
            {
                report103FileName = lrdvm.FileName;
                report103FilePath = lrdvm.FilePath;
                report103Date     = lrdvm.SelectedDate;
                report103ShiftId  = lrdvm.SelectedShift.Id;

                Load103Async(report103FileName, report103Date, report103ShiftId);
            }
        }
Exemple #2
0
        void ShowLoadPLUDialog()
        {
            var windowManager = base.GetService <IWindowManager>();

            LoadReportDialogViewModel lrdvm = new LoadReportDialogViewModel(appvm, "Cargar reporte PLU");

            if (windowManager.ShowDialog(lrdvm, appvm) == true)
            {
                LoadReportAsync(lrdvm.FilePath, lrdvm.SelectedDate, lrdvm.SelectedShift.Id);
            }
        }