Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Business/Business.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
<Compile Include="Data\Laboratorio\Ficha.cs" />
<Compile Include="Data\Laboratorio\ItemMuestra.cs" />
<Compile Include="Data\Laboratorio\ItemPresentacion.cs" />
<Compile Include="Data\Laboratorio\LogAccesoTerminosCondiciones.cs" />
<Compile Include="Data\Laboratorio\LoteDerivacionEstado.cs" />
<Compile Include="Data\Laboratorio\LoteDerivacion.cs" />
<Compile Include="Data\Laboratorio\Marca.cs" />
Expand Down Expand Up @@ -321,6 +322,7 @@
<Content Include="bin\Debug\Iesi.Collections.dll" />
<Content Include="bin\Debug\log4net.dll" />
<Content Include="bin\Debug\NHibernate.dll" />
<EmbeddedResource Include="Data\Laboratorio\LogAccesoTerminosCondiciones.hbm.xml" />
<EmbeddedResource Include="Data\Laboratorio\MecanismoResistencia.hbm.xml" />
<EmbeddedResource Include="Data\Laboratorio\ProtocoloAtbMecanismo.hbm.xml" />
<EmbeddedResource Include="Data\Laboratorio\Ficha.hbm.xml" />
Expand Down
104 changes: 104 additions & 0 deletions Business/Data/Laboratorio/LogAccesoTerminosCondiciones.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/*
insert license info here
*/
using System;
using System.Collections;

namespace Business.Data.Laboratorio
{
/// <summary>
/// Generated by MyGeneration using the NHibernate Object Mapping template
/// </summary>
[Serializable]
public sealed class LogAccesoTerminosCondiciones: Business.BaseDataAccess
{

#region Private Members
private bool m_isChanged;

private int m_idlogacceso;
private int m_idusuario;
private DateTime m_fecha;
#endregion

#region Default ( Empty ) Class Constuctor
/// <summary>
/// default constructor
/// </summary>
public LogAccesoTerminosCondiciones()
{
m_idlogacceso = 0;
m_idusuario = 0;
m_fecha = DateTime.MinValue;
}
#endregion // End of Default ( Empty ) Class Constuctor

#region Required Fields Only Constructor
/// <summary>
/// required (not null) fields only constructor
/// </summary>
public LogAccesoTerminosCondiciones(
int idusuario,
DateTime fecha)
: this()
{
m_idusuario = idusuario;
m_fecha = fecha;
}
#endregion // End Required Fields Only Constructor

#region Public Properties

/// <summary>
///
/// </summary>
public int IdLogAcceso
{
get { return m_idlogacceso; }
set
{
m_isChanged |= ( m_idlogacceso != value );
m_idlogacceso = value;
}

}

/// <summary>
///
/// </summary>
public int IdUsuario
{
get { return m_idusuario; }
set
{
m_isChanged |= ( m_idusuario != value );
m_idusuario = value;
}

}

/// <summary>
///
/// </summary>
public DateTime Fecha
{
get { return m_fecha; }
set
{
m_isChanged |= ( m_fecha != value );
m_fecha = value;
}

}

/// <summary>
/// Returns whether or not the object has changed it's values.
/// </summary>
public bool IsChanged
{
get { return m_isChanged; }
}

#endregion
}
}
12 changes: 12 additions & 0 deletions Business/Data/Laboratorio/LogAccesoTerminosCondiciones.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="Business.Data.Laboratorio.LogAccesoTerminosCondiciones,Business" table="LAB_LogAccesoTerminosCondiciones">

<id name="IdLogAcceso" column="idLogAcceso" type="Int32" unsaved-value="0">
<generator class="native"/>
</id>
<property column="idUsuario" type="Int32" name="IdUsuario" not-null="true" />
<property column="fecha" type="DateTime" name="Fecha" not-null="true" />

</class>
</hibernate-mapping>
54 changes: 40 additions & 14 deletions Business/Data/Usuario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public sealed class Usuario: Business.BaseDataAccess
private int m_idarea;
private bool m_requiereCambioPass;
private bool m_administrador;
private bool m_externo;
private bool m_externo;
private string m_email;
private string m_telefono;
private DateTime m_fechaTerminosCondiciones;
private string m_tipoAutenticacion;
#endregion

#region Default ( Empty ) Class Constuctor
Expand Down Expand Up @@ -63,7 +65,8 @@ public Usuario()
m_externo = false;
m_email= String.Empty;
m_telefono = String.Empty;

m_tipoAutenticacion = String.Empty;
m_fechaTerminosCondiciones = new DateTime(1900,01,01);

}

Expand Down Expand Up @@ -93,7 +96,8 @@ public Usuario(
m_requiereCambioPass = false;
m_administrador = false;
m_externo = false;

m_tipoAutenticacion = String.Empty;
m_fechaTerminosCondiciones = new DateTime(1900, 01, 01);
}
#endregion // End Required Fields Only Constructor

Expand Down Expand Up @@ -330,7 +334,7 @@ public bool Activo
}

}
public bool Externo
public bool Externo
{
get { return m_externo; }
set
Expand Down Expand Up @@ -429,24 +433,46 @@ public bool IsChanged
get { return m_isChanged; }
}



#endregion
/// <summary>
///
/// </summary>
public string TipoAutenticacion
{
get { return m_tipoAutenticacion; }

set
{
if (value != null && value.Length > 10)
throw new ArgumentOutOfRangeException("Invalid value for m_tipoAutenticacion", value, value.ToString());

m_isChanged |= (m_tipoAutenticacion != value); m_tipoAutenticacion = value;
}
}
#endregion


#region Metodos

#region Metodos

#endregion

#endregion
//public bool esHemoterapia()
//{
// var index=this.IdPerfil.Nombre.ToUpper().IndexOf("HEMOTERAPIA");
// if (index > -1) return true;
// else return false;

//public bool esHemoterapia()
//{
// var index=this.IdPerfil.Nombre.ToUpper().IndexOf("HEMOTERAPIA");
// if (index > -1) return true;
// else return false;
//}

//}

public DateTime FechaAceptaTerminosCondiciones {
get { return m_fechaTerminosCondiciones; }
set {
m_isChanged |= (m_fechaTerminosCondiciones != value);
m_fechaTerminosCondiciones = value;
}

}
}
}
4 changes: 3 additions & 1 deletion Business/Data/Usuario.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
<property column="externo" type="Boolean" name="Externo" not-null="true" />
<property column="email" type="String" name="Email" length="100" />
<property column="telefono" type="String" name="Telefono" length="50" />

<property column="tipoAutenticacion" type="String" name="TipoAutenticacion" length="10" />
<!--<property column="matricula" type="String" name="Matricula" length="50" />-->
<many-to-one name="IdEfectorDestino" column="idEfectorDestino" class="Business.Data.Efector,Business" />

<property column="fechaAceptaTerminosCondiciones" type="DateTime" name="FechaAceptaTerminosCondiciones" not-null="true" />
</class>
</hibernate-mapping>
8 changes: 4 additions & 4 deletions ImprimeLocal/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</connectionStrings>

<appSettings>
<add key="impresora" value="ZebraLCentral" />
<add key="idEfector" value="185" />
<add key="impresora" value="SATO Laboratorio" />
<add key="idEfector" value="70" />
<add key="numeroProtocolo" value="30630" />
<!--<add key="urlAPILaboratorio" value="https://www.saludnqn.gob.ar:7118/" />-->
<add key="urlAPILaboratorio" value="https://www.saludnqn.gob.ar:7118/" />
<add key="tokenAPI" value="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJKV1RTZXJ2aWNlc0FjY2Vzc1Rva2VuIiwianRpIjoiMWQxNzEzOWUtYThjZS00OWNjLThlYjktYjRlODE5MWJjN2QxIiwiaWF0IjoiMy8xMS8yMDI0IDM6NTM6MjcgUE0iLCJ1c3VhcmlvIjoiQURNSU4iLCJleHAiOjIwMjU3MDUyMDcsImlzcyI6Ind3dy5zYWx1ZG5xbi5nb2IuYXIiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjcxMTgvIn0.cARfD5fdg5JGqvfBDjN2dd4yStHE648fSS2Ifw9KeV8" />
<add key="urlAPILaboratorio" value="https://localhost:7118/" />
<!--<add key="urlAPILaboratorio" value="https://localhost:7118/" />-->

<add key="aspnet:MaxHttpCollectionKeys" value="30000" />
<add key="aspnet:MaxJsonDeserializerMembers" value="30000" />
Expand Down
1 change: 1 addition & 0 deletions WebLab/Protocolos/ProtocoloEdit2.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,7 @@
OrdenarDatos();

contadorfilas = contadorfilas - 1;
document.getElementById('<%= Page.Master.FindControl("ContentPlaceHolder1").FindControl("TxtCantidadFilas").ClientID %>').value = contadorfilas; //para no perder el valor luego de un postback
}
else {

Expand Down
Loading