TFS_ANTIGUO/SIGPC/ControlUsuario/cuwVentanaEmergenteRequisitos.ascx.cs
kledezma 290b81b54d SIGPC
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C518
2021-01-22 14:59:35 +00:00

82 lines
No EOL
3.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*===========================================================================================================================
* Instituto Costarricense de Acueductos y Alcantarillados. - 2015
* Gestion de trabajo
* Nombre del control de usuario: cuwVentanaEmergenteRequisitos.ascx
*
* Explicación de los contenidos del archivo
*===========================================================================================================================
* HISTORIAL
*
* PERSONA DIA MES - AÑO DESCRIPCIÓN
* Juan Pablo Monge Delgad 26 06 - 2016 Se inicia con el diseño del control
* Juan Pablo Monge Delgad 27 06 - 2016 Se finaliza con el desarrollo del control
* …………………………………………………………
*===========================================================================================================================
* Derechos Reservados (C) 2015 AyA.
* ESTE CÓDIGO ES PROVEÍDO “TAL CUAL ES” SIN GARANTÍA ALGUNA
* DE NINGÚN TIPO, SEA IMPLICITA O EXPLICITA.
* NO SE PERMITE SU REPRODUCCIÓN PARCIAL O TOTAL, NI SU COMERCIALIZACIÓN
*===========================================================================================================================
*
Para utilizarlo debera agregar el siguiente tag a la ventana en el archivo .aspx:
* <%@ Register Src="~/ControlUsuario/cuwVentanaEmergenteRequisitos.ascx" TagPrefix="uc1" TagName="cuwVentanaEmergenteRequisitos" %>
Se deben agregar los siguientes metodos al archivo .cs
En inicializarFormulario(): cuwVentanaEmergenteRequisitos.AbrirVentanaEmergente += new ControlUsuario_cuwVentanaEmergenteRequisitos.SearchEvent(AbrirVentanaEmergente);
private void AbrirVentanaEmergente()
{
int nContador = 0;
foreach (GridViewRow row in grvListaDatos.Rows)
{
HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[0].Controls[1];
if (chkTemp != null)
{
// si el registro esta marcado
if (chkTemp.Checked)
{
nContador += 1;
if (nContador == 1)
{
Session["PKPROGRAMACION"] = row.Cells[2].Text;
Session["PKSOLICITUD"] = row.Cells[12].Text;
Session["SOLICITUD"] = row.Cells[3].Text;
EjecutarScript("VentanaEmergenteAbrir('frwRequisitosSolicitud.aspx');");
}
else
break;
}
}
}
if (nContador > 1)
MensajeAlerta("Solo se puede mostrar el detalle de una solicitud a la vez");
}
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class ControlUsuario_cuwVentanaEmergenteRequisitos : System.Web.UI.UserControl
{
public delegate void SearchEvent();
public event SearchEvent AbrirVentanaEmergente;
protected void Page_Load(object sender, EventArgs e)
{
}
public void btnAbrir_Click(object sender, ImageClickEventArgs e)
{
AbrirVentanaEmergente();
}
}