public void PreencheTBREPEmpresa(DataSetREP ds, int IDEmpresa) { DataSetREPTableAdapters.TBREPTableAdapter adpREP = new DataSetREPTableAdapters.TBREPTableAdapter(); try { adpREP.FillEmpresa(ds.TBREP, IDEmpresa); } finally { } }
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); }
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); }
//Ú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); }