82 lines
No EOL
3.4 KiB
C#
82 lines
No EOL
3.4 KiB
C#
/*===========================================================================================================================
|
||
* 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_cuwVentanaEmergenteDevolucion : System.Web.UI.UserControl
|
||
{
|
||
public delegate void SearchEvent();
|
||
public event SearchEvent AbrirVentanaEmergenteDevolucion;
|
||
|
||
protected void Page_Load(object sender, EventArgs e)
|
||
{
|
||
|
||
}
|
||
|
||
public void btnAbrir_Click(object sender, ImageClickEventArgs e)
|
||
{
|
||
AbrirVentanaEmergenteDevolucion();
|
||
|
||
}
|
||
} |