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
41 changes: 28 additions & 13 deletions Business/Data/Usuario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public sealed class Usuario: Business.BaseDataAccess
private bool m_externo;
private string m_email;
private string m_telefono;
private string m_tipoAutenticacion;
#endregion

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

m_tipoAutenticacion = String.Empty;

}

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

m_tipoAutenticacion = String.Empty;
}
#endregion // End Required Fields Only Constructor

Expand Down Expand Up @@ -429,24 +430,38 @@ 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());

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


#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;

//}
//}


}
}
}
2 changes: 1 addition & 1 deletion Business/Data/Usuario.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<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" />
</class>
Expand Down
2 changes: 1 addition & 1 deletion WebLab/Protocolos/ProtocoloEdit2.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ private void ImprimirCodigoBarrasAreas(Protocolo oProt, string s_listaAreas, str
// ticket.AddSubHeaderLine("PRACTICAS SOLICITADAS");
// for (int i = 1; i <= cantidadFilas; i++)
// {
// int l = i * 90;
// int td = i * 90;
// analisis = analisis.Insert(l, "&");

// }
Expand Down
Loading