示例#1
0
    public bool DisponibilidadeServidor(int IDEmpresa, int IDSetor)
    {
        //UtilLog.EscreveLog(DateTime.Now.ToLocalTime() + " DisponibilidadeServidor");
        //MetodosPontoFrequencia.DataSetPontoFrequenciaTableAdapters.TBDisponibilidadeServidorTableAdapter adpDisp = new MetodosPontoFrequencia.DataSetPontoFrequenciaTableAdapters.TBDisponibilidadeServidorTableAdapter();

        //Trocado por enquanto até definir novo meio de verificar a disponibilidade dos client em cada órgão. -- 07/03/2016

        //MetodosPontoFrequencia.DataSetPontoFrequenciaTableAdapters.vwHorasTableAdapter adpHoras = new MetodosPontoFrequencia.DataSetPontoFrequenciaTableAdapters.vwHorasTableAdapter();
        //DataSetPontoFrequencia.vwHorasDataTable vwhoras = new DataSetPontoFrequencia.vwHorasDataTable();

        try
        {
            //adpHoras.Fill(vwhoras);
            return(true);
        }
        catch (Exception ex)
        {
            UtilLog.EscreveLog(DateTime.Now.ToLocalTime() + " Disponibilidade ERRO " + ex.Message);
            return(false);
        }
        //try
        //{
        //if (adpDisp.Insert(System.DateTime.Now, IDSetor, IDEmpresa) > 0)
        //{
        //return true;
        //}

        //else return false;
        //}
        //catch (Exception ex)
        //{
        //ex.ToString();
        //return false;
        //}
    }
示例#2
0
    public DataSetUsuario UsuariosPontoHash(int IDEmpresa, string TokenAcesso, string HashMaquina)
    {
        DataSetUsuario dsU = new DataSetUsuario();

        if (TokenAcesso == "TentoWebServiceNovamente7x24dm12")
        {
            PreencheTabela PT = new PreencheTabela();
            try
            {
                PT.PreenchevwUsuarioWebServiceHash3(dsU, IDEmpresa, HashMaquina);
            }
            catch (Exception ex)
            {
                UtilLog.EscreveLog(DateTime.Now.ToLocalTime() + " UsuariosPontoHash ERRO " + ex.Message);
            }
            finally
            {
            }
        }
        return(dsU);
    }
示例#3
0
 public void MonitoramentoClientHash(string SerialHD, string SerialProcessador, string MACRede, string IPLocal, string NomeComputador,
                                     string SistemaOperacional, DateTime DTultimaConexao, int IDEmpresa, int IDSetor, string VersaoClient, string MemoriaTotal,
                                     string EspacoLivreHD, string CapacidadeHD, string ArquiteturaMaquina, string Processador, string HashMaquina)
 {
     if ("V_2.9_BETA" != VersaoClient)
     {
         VersaoClient = "V_2.8_BETA";
     }
     try
     {
         InfoClints info = new InfoClints();
         info.InsereNovoClientHash(SerialHD, SerialProcessador, MACRede, IPLocal, NomeComputador, SistemaOperacional, DTultimaConexao, IDEmpresa, IDSetor,
                                   VersaoClient, MemoriaTotal, EspacoLivreHD, CapacidadeHD, ArquiteturaMaquina, Processador, string.Format("{0}{1}{2}", SerialProcessador, SerialHD, MACRede), HashMaquina);
     }
     catch (Exception ex)
     {
         UtilLog.EscreveLog(DateTime.Now.ToLocalTime() + " MonitoramentoClientHash ERRO " + ex.Message);
     }
     //CD.InsereNovoClientHash(SerialHD, SerialProcessador, MACRede, IPLocal, NomeComputador, SistemaOperacional, DTultimaConexao, IDEmpresa, IDSetor,
     //    VersaoClient, MemoriaTotal, EspacoLivreHD, CapacidadeHD, ArquiteturaMaquina, Processador, string.Format("{0}{1}{2}", SerialProcessador, SerialHD, MACRede), HashMaquina);
 }