Ejemplo n.º 1
0
 public bool AtualizHistRegAniel(String senha_master,int id_atualiz_reg, String usuario_aniel)
 {
     bool resultado = false;
     if (!Senha_master_valida(senha_master))
     {
         throw new Exception("Autenticacao invalida. ");
     }
     else
     {
         DAOHistAtualizReg histAtualizRegDAO = new DAOHistAtualizReg();
         histAtualizRegDAO.AtualizHistRegAniel(id_atualiz_reg, usuario_aniel);
         resultado = true;
     }
     return resultado;
 }
Ejemplo n.º 2
0
        public HistAtualizReg RegistroAniel(String senha_master,int id_licenca_cliente)
        {
            if (!Senha_master_valida(senha_master))
            {
                throw new Exception("Autenticacao invalida. ");
            }
            
            DAOHistAtualizReg histAtualizRegDAO = new DAOHistAtualizReg();
            DAOLicenca_cliente licenca_clienteDAO = new DAOLicenca_cliente();
            DAOCliente clienteDAO = new DAOCliente();
            HistAtualizReg result = histAtualizRegDAO.buscarAtualizLicenca(id_licenca_cliente);

            licenca_clienteDAO.buscarID(result.Licenca_cliente);
            clienteDAO.buscarID(result.Licenca_cliente.Cliente);
            return result;
        }