Skip to content
Merged
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: 29 additions & 12 deletions Business/Data/Laboratorio/HojaTrabajo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ public sealed class HojaTrabajo: Business.BaseDataAccess
private bool m_agrupafecha;

private Usuario m_idusuarioregistro;
private DateTime m_fecharegistro;
#endregion
private DateTime m_fecharegistro;
private bool m_mequiereTodasLasDeterminaciones;
#endregion

#region Default ( Empty ) Class Constuctor
/// <summary>
/// default constructor
/// </summary>
public HojaTrabajo()
#region Default ( Empty ) Class Constuctor
/// <summary>
/// default constructor
/// </summary>
public HojaTrabajo()
{
m_idhojatrabajo = 0;
m_idefector = new Efector();
Expand Down Expand Up @@ -86,8 +87,10 @@ public HojaTrabajo()
//m_datospaciente = false;
m_formatoancho = 0;
m_idusuarioregistro = new Usuario();
m_fecharegistro = DateTime.MinValue;
}
m_fecharegistro = DateTime.MinValue;
m_mequiereTodasLasDeterminaciones = false;

}
#endregion // End of Default ( Empty ) Class Constuctor

#region Required Fields Only Constructor
Expand Down Expand Up @@ -155,7 +158,9 @@ public HojaTrabajo(
m_formatoancho = formatoancho;
m_idusuarioregistro = idusuarioregistro;
m_fecharegistro = fecharegistro;
}
m_mequiereTodasLasDeterminaciones = false;

}
#endregion // End Required Fields Only Constructor

#region Public Properties
Expand Down Expand Up @@ -531,8 +536,20 @@ public bool IsChanged
{
get { return m_isChanged; }
}

#endregion

public bool RequiereTodasLasDeterminaciones
{
get
{
return m_mequiereTodasLasDeterminaciones;
}
set
{
m_isChanged |= (m_mequiereTodasLasDeterminaciones != value);
m_mequiereTodasLasDeterminaciones = value;
}
}
#endregion



Expand Down
2 changes: 1 addition & 1 deletion Business/Data/Laboratorio/HojaTrabajo.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
<many-to-one name="IdUsuarioRegistro" column="idUsuarioRegistro" class="Business.Data.Usuario,Business" />

<property column="fechaRegistro" type="DateTime" name="FechaRegistro" not-null="true" />
<property column="requiereTodasLasDeterminaciones" type="Boolean" name="RequiereTodasLasDeterminaciones" not-null="true" />
</class>
</hibernate-mapping>
7 changes: 6 additions & 1 deletion WebLab/HojasTrabajo/HTList.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,12 @@ private void Imprimir(object p)
else
nombre_reporte = "../iNFORMES/HojasdeTRabajo/HTrabajoProtocolo4";
} break;
}
case 4: //Lista continua
{
nombre_reporte = "../Informes/HojasdeTrabajo/HTrabajoProtocolo5";
} break;

}
}
//if (oRegistro.Formato == 1)
//{
Expand Down
19 changes: 13 additions & 6 deletions WebLab/HojasTrabajo/HojaTrabajoEdit.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
$("#tabContainer").tabs();
var currTab = $("#<%= HFCurrTabIndex.ClientID %>").val();

$("#tabContainer").tabs({ selected: currTab });
$("#tabContainer").tabs('select', parseInt(currTab)); // Cuando usamos jQuery UI 1.8.1 tenemos que usar el metodo 'select'

});
</script>

Expand Down Expand Up @@ -141,12 +142,13 @@
<td class="style1" >
Formato Ancho Columnas:</td>
<td class="style2">
<asp:DropDownList ID="ddlAnchoColumnas" runat="server" class="form-control input-sm">
<anthem:DropDownList ID="ddlAnchoColumnas" runat="server" class="form-control input-sm" OnSelectedIndexChanged="ddlAnchoColumnas_SelectedIndexChanged" AutoCallBack="true">
<asp:ListItem Selected="True" Value="0">Texto corto</asp:ListItem>
<asp:ListItem Value="1">Texto mediano</asp:ListItem>
<asp:ListItem Value="2">Texto grande</asp:ListItem>
<asp:ListItem Value="3">Texto corto c/Nro. Fila</asp:ListItem>
</asp:DropDownList>
<asp:ListItem Value="4">Lista Continua</asp:ListItem>
</anthem:DropDownList>
</td>

</tr>
Expand Down Expand Up @@ -177,12 +179,12 @@
Datos del Paciente a Imprimir:<br />
</td>
<td class="style2">
<asp:CheckBoxList ID="chkDatosPaciente" runat="server" CssClass="myLabel"
<anthem:CheckBoxList ID="chkDatosPaciente" runat="server" CssClass="myLabel" AutoCallBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="1">Apellido y Nombre</asp:ListItem>
<asp:ListItem Value="2">Edad</asp:ListItem>
<asp:ListItem Value="3">Sexo</asp:ListItem>
</asp:CheckBoxList>
</anthem:CheckBoxList>
</td>

</tr>
Expand Down Expand Up @@ -372,6 +374,11 @@
&nbsp;</td>

</tr>
<tr>
<td colspan="2">
<asp:CheckBox ID="cbRequiereDeterminacionesCompletas" runat="server" Text="Mostrar solo pacientes con todas las determinaciones solicitadas" />
</td>
</tr>
</table>
</div>
</div>
Expand Down Expand Up @@ -589,7 +596,7 @@ var textoNuevo= document.getElementById('<%= Page.Master.FindControl(
}

function CargarDetalle()
{
{
var datos= document.getElementById('<%= Page.Master.FindControl("ContentPlaceHolder1").FindControl("TxtDatos").ClientID %>').value ;

if (datos!="")
Expand Down
35 changes: 33 additions & 2 deletions WebLab/HojasTrabajo/HojaTrabajoEdit.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,18 @@ private void MostrarDatos()
}

TxtDatos.Value = sDatos;

cbRequiereDeterminacionesCompletas.Checked = oRegistro.RequiereTodasLasDeterminaciones;

if (oRegistro.FormatoAncho.ToString() == "4") //Lista continua
{
chkDatosPaciente.Items[0].Selected = true;
chkDatosPaciente.Items[1].Selected = true;
chkDatosPaciente.Items[2].Selected = true;
chkDatosPaciente.Items[0].Enabled = false;
chkDatosPaciente.Items[1].Enabled = false;
chkDatosPaciente.Items[2].Enabled = false;
}

}
private void VerificaPermisos(string sObjeto)
{
Expand Down Expand Up @@ -335,6 +346,7 @@ private void Guardar(HojaTrabajo oRegistro)
///////////////////////////////////
oRegistro.IdUsuarioRegistro =oUser;
oRegistro.FechaRegistro = DateTime.Now;
oRegistro.RequiereTodasLasDeterminaciones = cbRequiereDeterminacionesCompletas.Checked;

oRegistro.Save();

Expand Down Expand Up @@ -457,6 +469,25 @@ protected void lnkRegresar_Click(object sender, EventArgs e)
Response.Redirect("HTList.aspx", false);
}


protected void ddlAnchoColumnas_SelectedIndexChanged(object sender, EventArgs e)
{
if(ddlAnchoColumnas.SelectedValue == "4") //Lista continua
{
chkDatosPaciente.Items[0].Selected = true;
chkDatosPaciente.Items[1].Selected = true;
chkDatosPaciente.Items[2].Selected = true;
chkDatosPaciente.Items[0].Enabled = false;
chkDatosPaciente.Items[1].Enabled = false;
chkDatosPaciente.Items[2].Enabled = false;
}
else
{
chkDatosPaciente.Items[0].Enabled = true;
chkDatosPaciente.Items[1].Enabled = true;
chkDatosPaciente.Items[2].Enabled = true;
}
HFCurrTabIndex.Value = "1"; //Opciones de Impresión
chkDatosPaciente.UpdateAfterCallBack = true;
}
}
}
Loading
Loading