Skip to content

Commit ffec33b

Browse files
committed
feat: se agrega un modal para que acepte terminos y condiciones. Se agrega en la bd la fecha y el log de Aceptacion de los terminos
1 parent bdf9035 commit ffec33b

8 files changed

Lines changed: 425 additions & 131 deletions

File tree

Business/Business.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<Compile Include="Data\Laboratorio\Ficha.cs" />
149149
<Compile Include="Data\Laboratorio\ItemMuestra.cs" />
150150
<Compile Include="Data\Laboratorio\ItemPresentacion.cs" />
151+
<Compile Include="Data\Laboratorio\LogAccesoTerminosCondiciones.cs" />
151152
<Compile Include="Data\Laboratorio\LoteDerivacionEstado.cs" />
152153
<Compile Include="Data\Laboratorio\LoteDerivacion.cs" />
153154
<Compile Include="Data\Laboratorio\Marca.cs" />
@@ -321,6 +322,7 @@
321322
<Content Include="bin\Debug\Iesi.Collections.dll" />
322323
<Content Include="bin\Debug\log4net.dll" />
323324
<Content Include="bin\Debug\NHibernate.dll" />
325+
<EmbeddedResource Include="Data\Laboratorio\LogAccesoTerminosCondiciones.hbm.xml" />
324326
<EmbeddedResource Include="Data\Laboratorio\MecanismoResistencia.hbm.xml" />
325327
<EmbeddedResource Include="Data\Laboratorio\ProtocoloAtbMecanismo.hbm.xml" />
326328
<EmbeddedResource Include="Data\Laboratorio\Ficha.hbm.xml" />
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
insert license info here
3+
*/
4+
using System;
5+
using System.Collections;
6+
7+
namespace Business.Data.Laboratorio
8+
{
9+
/// <summary>
10+
/// Generated by MyGeneration using the NHibernate Object Mapping template
11+
/// </summary>
12+
[Serializable]
13+
public sealed class LogAccesoTerminosCondiciones: Business.BaseDataAccess
14+
{
15+
16+
#region Private Members
17+
private bool m_isChanged;
18+
19+
private int m_idlogacceso;
20+
private int m_idusuario;
21+
private DateTime m_fecha;
22+
#endregion
23+
24+
#region Default ( Empty ) Class Constuctor
25+
/// <summary>
26+
/// default constructor
27+
/// </summary>
28+
public LogAccesoTerminosCondiciones()
29+
{
30+
m_idlogacceso = 0;
31+
m_idusuario = 0;
32+
m_fecha = DateTime.MinValue;
33+
}
34+
#endregion // End of Default ( Empty ) Class Constuctor
35+
36+
#region Required Fields Only Constructor
37+
/// <summary>
38+
/// required (not null) fields only constructor
39+
/// </summary>
40+
public LogAccesoTerminosCondiciones(
41+
int idusuario,
42+
DateTime fecha)
43+
: this()
44+
{
45+
m_idusuario = idusuario;
46+
m_fecha = fecha;
47+
}
48+
#endregion // End Required Fields Only Constructor
49+
50+
#region Public Properties
51+
52+
/// <summary>
53+
///
54+
/// </summary>
55+
public int IdLogAcceso
56+
{
57+
get { return m_idlogacceso; }
58+
set
59+
{
60+
m_isChanged |= ( m_idlogacceso != value );
61+
m_idlogacceso = value;
62+
}
63+
64+
}
65+
66+
/// <summary>
67+
///
68+
/// </summary>
69+
public int IdUsuario
70+
{
71+
get { return m_idusuario; }
72+
set
73+
{
74+
m_isChanged |= ( m_idusuario != value );
75+
m_idusuario = value;
76+
}
77+
78+
}
79+
80+
/// <summary>
81+
///
82+
/// </summary>
83+
public DateTime Fecha
84+
{
85+
get { return m_fecha; }
86+
set
87+
{
88+
m_isChanged |= ( m_fecha != value );
89+
m_fecha = value;
90+
}
91+
92+
}
93+
94+
/// <summary>
95+
/// Returns whether or not the object has changed it's values.
96+
/// </summary>
97+
public bool IsChanged
98+
{
99+
get { return m_isChanged; }
100+
}
101+
102+
#endregion
103+
}
104+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
3+
<class name="Business.Data.Laboratorio.LogAccesoTerminosCondiciones,Business" table="LAB_LogAccesoTerminosCondiciones">
4+
5+
<id name="IdLogAcceso" column="idLogAcceso" type="Int32" unsaved-value="0">
6+
<generator class="native"/>
7+
</id>
8+
<property column="idUsuario" type="Int32" name="IdUsuario" not-null="true" />
9+
<property column="fecha" type="DateTime" name="Fecha" not-null="true" />
10+
11+
</class>
12+
</hibernate-mapping>

Business/Data/Usuario.cs

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ public sealed class Usuario: Business.BaseDataAccess
3333
private int m_idarea;
3434
private bool m_requiereCambioPass;
3535
private bool m_administrador;
36-
private bool m_externo;
36+
private bool m_externo;
3737
private string m_email;
3838
private string m_telefono;
39+
private DateTime m_fechaTerminosCondiciones;
3940
#endregion
4041

4142
#region Default ( Empty ) Class Constuctor
@@ -63,7 +64,7 @@ public Usuario()
6364
m_externo = false;
6465
m_email= String.Empty;
6566
m_telefono = String.Empty;
66-
67+
m_fechaTerminosCondiciones = new DateTime(1900,01,01);
6768

6869
}
6970

@@ -93,7 +94,7 @@ public Usuario(
9394
m_requiereCambioPass = false;
9495
m_administrador = false;
9596
m_externo = false;
96-
97+
m_fechaTerminosCondiciones = new DateTime(1900, 01, 01);
9798
}
9899
#endregion // End Required Fields Only Constructor
99100

@@ -330,7 +331,7 @@ public bool Activo
330331
}
331332

332333
}
333-
public bool Externo
334+
public bool Externo
334335
{
335336
get { return m_externo; }
336337
set
@@ -429,24 +430,32 @@ public bool IsChanged
429430
get { return m_isChanged; }
430431
}
431432

432-
433433

434-
#endregion
435434

435+
#endregion
436436

437-
#region Metodos
438437

438+
#region Metodos
439439

440-
#endregion
441440

442-
//public bool esHemoterapia()
443-
//{
444-
// var index=this.IdPerfil.Nombre.ToUpper().IndexOf("HEMOTERAPIA");
445-
// if (index > -1) return true;
446-
// else return false;
441+
#endregion
447442

448-
//}
443+
//public bool esHemoterapia()
444+
//{
445+
// var index=this.IdPerfil.Nombre.ToUpper().IndexOf("HEMOTERAPIA");
446+
// if (index > -1) return true;
447+
// else return false;
449448

449+
//}
450+
451+
452+
public DateTime FechaAceptaTerminosCondiciones {
453+
get { return m_fechaTerminosCondiciones; }
454+
set {
455+
m_isChanged |= (m_fechaTerminosCondiciones != value);
456+
m_fechaTerminosCondiciones = value;
457+
}
450458

451459
}
460+
}
452461
}

Business/Data/Usuario.hbm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030

3131
<!--<property column="matricula" type="String" name="Matricula" length="50" />-->
3232
<many-to-one name="IdEfectorDestino" column="idEfectorDestino" class="Business.Data.Efector,Business" />
33+
34+
<property column="fechaAceptaTerminosCondiciones" type="DateTime" name="FechaAceptaTerminosCondiciones" not-null="true" />
3335
</class>
3436
</hibernate-mapping>

WebLab/loginSIL.ascx

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
PasswordRequiredErrorMessage="Contraseña es requerida"
1818
TitleText="Nueva autenticación de usuario" UserNameLabelText="Usuario:"
1919
UserNameRequiredErrorMessage="Usuario es requerido"
20-
>
20+
FailureText="" >
2121
<LayoutTemplate>
2222
<div class="container" >
2323
<div class="row">
@@ -61,3 +61,84 @@
6161
</div>
6262
</LayoutTemplate>
6363
</asp:Login>
64+
65+
<!-- Terminos y condiciones de uso-->
66+
<div class="modal fade" tabindex="-1" role="dialog" id="modalTerminosCondiciones">
67+
<div class="modal-dialog modal-lg" role="document">
68+
<div class="modal-content">
69+
<div class="modal-header">
70+
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
71+
<h4 class="modal-title">Condiciones de Uso - Sistema Informático de Laboratorios</h4>
72+
</div>
73+
<div class="modal-body">
74+
<section>
75+
<article>
76+
<p>
77+
El <strong>Ministerio de Salud de la Provincia de Neuquén</strong>, en el contexto del <strong>Sistema Informático de Laboratorios</strong>, se encuentra comprometido y comparte la responsabilidad de resguardar los derechos a la intimidad y confidencialidad de la información de los pacientes.
78+
</p>
79+
80+
<p>
81+
Cualquier integrante de los equipos de salud que, en función de hacer posible el proceso de asistencia sanitaria a dichas personas, tenga acceso a esta información almacenada en el Sistema Informático de Laboratorios, debe cumplir con la normativa jurídica que protege estos derechos:
82+
</p>
83+
84+
<h4>Leyes Nacionales:</h4>
85+
<ol>
86+
<li>Artículos 18, 19 y 43 de la Constitución Nacional (derechos a la intimidad y habeas data).</li>
87+
<li>Artículo 52 del Código Civil y Comercial Nacional (derecho a la intimidad).</li>
88+
<li>Artículo 11 de la Ley Nacional 17.132 de Ejercicio de la Medicina, Odontología y actividades de colaboración con ambas disciplinas (secreto profesional).</li>
89+
<li>Artículo 2, incisos c y d, de la Ley Nacional 26.529 de Derechos del Paciente en su Relación con los Profesionales e Instituciones de la Salud (derechos a la intimidad y confidencialidad).</li>
90+
<li>Artículos 8 y 10 de la Ley Nacional 25.326 de Protección de Datos Personales.</li>
91+
</ol>
92+
93+
<h4>Leyes Provinciales:</h4>
94+
<ol>
95+
<li>Ley 578 de Ejercicio de la medicina, odontología y actividades de colaboración.</li>
96+
<li>Artículo 8 de la Ley 2611, de derechos y obligaciones de los pacientes y usuarios de los servicios de salud públicos y privados de la Provincia (derecho a la confidencialidad y a la intimidad).</li>
97+
<li>Ley 2399 de Protección de Datos Personales.</li>
98+
</ol>
99+
100+
<p>
101+
Ante incumplimiento de estas obligaciones debe saber que puede tener consecuencias legales. Asimismo, desde el Ministerio de Salud se procederá a:
102+
</p>
103+
104+
<ul>
105+
<li>Iniciar sumario administrativo por falta grave.</li>
106+
<li>Suspender en forma automática los permisos de acceso al Sistema Informático de Laboratorios.</li>
107+
<li>En caso de ser profesional, se informará al comité de ética deontológico correspondiente.</li>
108+
</ul>
109+
110+
<asp:CheckBox runat="server" ID="cb_aceptaTerminos" Text="Acepto las condiciones de uso del Sistema Informático de Laboratorios" onchange="habilitarBotonAceptar();" />
111+
112+
</article>
113+
</section>
114+
</div>
115+
<div class="modal-footer">
116+
<div class="col-md-4">
117+
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
118+
</div>
119+
120+
<div class="col-md-4">
121+
<asp:Button runat="server" Enabled="false" ID="btn_aceptarTerminosCondiciones" CssClass="btn btn-success" Text="Aceptar" OnClick="btn_aceptarTerminosCondiciones_Click" UseSubmitBehavior="true" CausesValidation="false" />
122+
</div>
123+
124+
</div>
125+
</div>
126+
</div>
127+
</div><!-- /.modal -->
128+
129+
<script type="text/javascript">
130+
131+
document.getElementById('<%= cb_aceptaTerminos.ClientID %>').checked = false;
132+
133+
function habilitarBotonAceptar() {
134+
check = document.getElementById('<%= cb_aceptaTerminos.ClientID %>');
135+
btnAceptar = document.getElementById('<%= btn_aceptarTerminosCondiciones.ClientID %>');
136+
if (check.checked) {
137+
btnAceptar.disabled = false;
138+
} else {
139+
btnAceptar.disabled = true;
140+
}
141+
142+
}
143+
144+
</script>

0 commit comments

Comments
 (0)