feat: se implementan informantes

This commit is contained in:
Leonel Toro 2025-07-21 10:42:34 -04:00
parent 92ce18173e
commit e83a41cd54
4 changed files with 11 additions and 4 deletions

View file

@ -59,9 +59,9 @@ namespace BLL.Recuperacion_DGA
{
Autenticacion = new Autenticacion
{
Password = CredencialDGA.Password,
RutEmpresa = medicion.TIPO_EMPRESA == "EV" ? CredencialDGA.RutEsval : CredencialDGA.RutAv,
RutUsuario = CredencialDGA.RutUsuario
Password = medicion.Password,
RutEmpresa = medicion.Empresa_Informante == "EV" ? CredencialDGA.RutEsval : CredencialDGA.RutAv,
RutUsuario = medicion.RUT
},
MedicionSubterranea = new Medicion
{

View file

@ -33,7 +33,8 @@ namespace DAL
await connection.ExecuteAsync(query, new { Ids = medicionesGuardadas });
return true;
}
catch(Exception ex) {
catch (Exception ex)
{
throw new Exception($"Error {ex.Message}");
}

View file

@ -6,6 +6,7 @@
public string? CODIGO_DGA { get; set; }
public string? ID_COMUNA { get; set; }
public string? MACRO { get; set; }
public string? SENSOR { get; set; }

View file

@ -7,6 +7,8 @@
public string? CAUDAL { get; set; }
public string? ID_COMUNA { get; set; }
public string? TOTALIZADOR_CAUDAL { get; set; }
public DateTime? FECHA_MEDICION_CAUDAL { get; set; }
@ -14,5 +16,8 @@
public string? NIVEL_FREATICO_DEL_POZO { get; set; }
public string? TIPO_EMPRESA { get; set; }
public string? RUT { get; set; }
public string? Password { get; set; }
public string? Empresa_Informante { get; set; }
}
}