Ejemplo n.º 1
0
        public void PreencheTBREPEmpresa(DataSetREP ds, int IDEmpresa)
        {
            DataSetREPTableAdapters.TBREPTableAdapter adpREP = new DataSetREPTableAdapters.TBREPTableAdapter();

            try
            {
                adpREP.FillEmpresa(ds.TBREP, IDEmpresa);
            }
            finally
            {
            }
        }
Ejemplo n.º 2
0
    public DateTime UltimaColetaREP(int IDREP)
    {
        DataSetREP dsR = new DataSetREP();
        REP        rep = new REP();
        DateTime   DD  = new DateTime(1900, 01, 01);

        try
        {
            DD = rep.UltimaColetaREP(dsR, IDREP);
        }
        finally
        {
        }
        return(DD);
    }
Ejemplo n.º 3
0
    public DataSetREP REPEmpresa(int IDEmpresa, string TokenAcesso)
    {
        DataSetREP dsR = new DataSetREP();
        REP        rep = new REP();

        if (TokenAcesso == "TentoWebServiceNovamente7x24dm12")
        {
            PreencheTabela PT = new PreencheTabela();

            try
            {
                rep.PreencheTBREPEmpresa(dsR, IDEmpresa);
            }
            finally
            {
            }
        }
        return(dsR);
    }
Ejemplo n.º 4
0
        //Última coleta da REP
        public DateTime UltimaColetaREP(DataSetREP ds, int IDREP)
        {
            DataSetREPTableAdapters.TBREPColetaTableAdapter adpREPColeta = new DataSetREPTableAdapters.TBREPColetaTableAdapter();
            DateTime dd = new DateTime(1900, 01, 01);

            try
            {
                adpREPColeta.FillIDREP(ds.TBREPColeta, IDREP);
                dd = ds.TBREPColeta[0].DTUltimaColeta;
            }
            catch (System.Data.OleDb.OleDbException ex)
            {
                ex.ToString();
            }
            catch (Exception ex)
            {
                ex.ToString();
            }

            return(dd);
        }