示例#1
0
        private bool getPeriodo(out DateTime DataInicial, out DateTime DataFinal)
        {
            bool Result = false;

            ImportacaoMarcacoes frmImportacaoMarcacoes = new ImportacaoMarcacoes();

            DataInicial = Convert.ToDateTime(Registro.getValue(getRepFabricante(), "Data inicial importacao", DateTime.Today.ToShortDateString()));
            DataFinal   = Convert.ToDateTime(Registro.getValue(getRepFabricante(), "Data Final importacao", DateTime.Today.ToShortDateString()));;

            frmImportacaoMarcacoes.edDataInicial.Value = DataInicial;
            frmImportacaoMarcacoes.edDataFinal.Value   = DataFinal;

            if (frmImportacaoMarcacoes.ShowDialog() == DialogResult.OK)
            {
                DataInicial = frmImportacaoMarcacoes.edDataInicial.Value;
                DataFinal   = frmImportacaoMarcacoes.edDataFinal.Value;

                Registro.setValue(getRepFabricante(), "Data inicial importacao", DataInicial.ToShortDateString());
                Registro.setValue(getRepFabricante(), "Data Final importacao", DataFinal.ToShortDateString());

                Result = true;
            }

            return(Result);
        }
示例#2
0
 public static string getArquivoImportacao(WinRegistry Registro)
 {
     return(Registro.getValue(Consts.TERMINALNOME, "Ultimo arquivo importado", ""));
 }