Ejemplo n.º 1
0
        public ProblemConfigurationDialog(string dbFolder, string dbFile1, string FechaIni1, string FechaOriginal, string Description)
        {
            InitializeComponent();
            CreateConstraintsGrid();
            CreateConfigurationParametersGrid();
            CreateCplexParametersGrid();
            //CreateConstraintsGridRutas();
            // CreateRutasDhogParametersGrid();
            this.dbFolder = dbFolder;
            this.dbFile   = dbFile1;
            this.FechaIni = FechaIni1;

            FechaInicial = FechaIni;
            executionParametersViewModel = new ExecutionParametersViewModel();



            ConfigCasoPanel.DataContext = executionParametersViewModel;
            Calendario.Visibility       = Visibility.Hidden;
            StatusProgress.Visibility   = Visibility.Hidden;
            Progress.Visibility         = Visibility.Hidden;
            //this.dbFolder = dbFolder;
            basedatos          = dbFile;
            this.PInicial.Text = executionParametersViewModel.InitialPeriod.ToString();
            this.Pfinal.Text   = executionParametersViewModel.FinalPeriod.ToString();

            this.FechaInicial1.Text = FechaOriginal; // FechaInicial.ToString();
            this.Description1.Text  = Description.ToString();
            //FechaInicial1.Text = string.Format("{0:d}", FechaInicial);
        }
Ejemplo n.º 2
0
        public ConfigCasoDialog(string dbFolder, string dbFile, string FechaInicial)
        {
            InitializeComponent();



            executionParametersViewModel = new ExecutionParametersViewModel();
            ConfigCasoPanel.DataContext  = executionParametersViewModel;
            Calendario.Visibility        = Visibility.Hidden;
            StatusProgress.Visibility    = Visibility.Hidden;
            Progress.Visibility          = Visibility.Hidden;
            this.dbFolder           = dbFolder;
            basedatos               = dbFile;
            this.FechaInicial1.Text = FechaInicial.ToString();
            FechaInicial1.Text      = string.Format("{0:d}", FechaInicial);


            worker.WorkerSupportsCancellation = true;
            worker.WorkerReportsProgress      = true;
            worker.DoWork += worker_Dowork;
            // worker.DoWork += new DoWorkEventHandler(worker_Dowork);
            worker.RunWorkerCompleted += worker_runworkedcompleto;
            // worker.DoWork += new DoWorkEventHandler(Avance);
            worker.ProgressChanged += CambioAvance;
            // worker.ProgressChanged += new ProgressChangedEventHandler(CambioAvance);
        }
Ejemplo n.º 3
0
        public ExecutionDialog(string dbFolder, string dbFile, string fechaIni, string tipobd)
        {
            InitializeComponent();
            Ejecutado = 0;
            executionParametersViewModel = new ExecutionParametersViewModel();
            ExecutionPanel.DataContext   = executionParametersViewModel;
            this.dbFolder = dbFolder;

            basedatos = dbFile;
            ruta      = dbFolder;

            if (tipobd == "Sql Server")
            {
                int jj = basedatos.IndexOf("Initial Catalog=") + 16;
                basedatos     = basedatos.Substring(basedatos.IndexOf("Initial Catalog=") + 16);
                Tipobasedatos = 2;
            }
            else
            {
                Tipobasedatos = 1;
            }
        }