feat: se implementan informantes
This commit is contained in:
parent
92ce18173e
commit
e83a41cd54
4 changed files with 11 additions and 4 deletions
|
@ -59,9 +59,9 @@ namespace BLL.Recuperacion_DGA
|
||||||
{
|
{
|
||||||
Autenticacion = new Autenticacion
|
Autenticacion = new Autenticacion
|
||||||
{
|
{
|
||||||
Password = CredencialDGA.Password,
|
Password = medicion.Password,
|
||||||
RutEmpresa = medicion.TIPO_EMPRESA == "EV" ? CredencialDGA.RutEsval : CredencialDGA.RutAv,
|
RutEmpresa = medicion.Empresa_Informante == "EV" ? CredencialDGA.RutEsval : CredencialDGA.RutAv,
|
||||||
RutUsuario = CredencialDGA.RutUsuario
|
RutUsuario = medicion.RUT
|
||||||
},
|
},
|
||||||
MedicionSubterranea = new Medicion
|
MedicionSubterranea = new Medicion
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,7 +33,8 @@ namespace DAL
|
||||||
await connection.ExecuteAsync(query, new { Ids = medicionesGuardadas });
|
await connection.ExecuteAsync(query, new { Ids = medicionesGuardadas });
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch(Exception ex) {
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
|
||||||
throw new Exception($"Error {ex.Message}");
|
throw new Exception($"Error {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
public string? CODIGO_DGA { get; set; }
|
public string? CODIGO_DGA { get; set; }
|
||||||
|
|
||||||
|
public string? ID_COMUNA { get; set; }
|
||||||
public string? MACRO { get; set; }
|
public string? MACRO { get; set; }
|
||||||
|
|
||||||
public string? SENSOR { get; set; }
|
public string? SENSOR { get; set; }
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
public string? CAUDAL { get; set; }
|
public string? CAUDAL { get; set; }
|
||||||
|
|
||||||
|
public string? ID_COMUNA { get; set; }
|
||||||
|
|
||||||
public string? TOTALIZADOR_CAUDAL { get; set; }
|
public string? TOTALIZADOR_CAUDAL { get; set; }
|
||||||
|
|
||||||
public DateTime? FECHA_MEDICION_CAUDAL { get; set; }
|
public DateTime? FECHA_MEDICION_CAUDAL { get; set; }
|
||||||
|
@ -14,5 +16,8 @@
|
||||||
public string? NIVEL_FREATICO_DEL_POZO { get; set; }
|
public string? NIVEL_FREATICO_DEL_POZO { get; set; }
|
||||||
|
|
||||||
public string? TIPO_EMPRESA { get; set; }
|
public string? TIPO_EMPRESA { get; set; }
|
||||||
|
public string? RUT { get; set; }
|
||||||
|
public string? Password { get; set; }
|
||||||
|
public string? Empresa_Informante { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue