2019-05-27 14:46:35 +00:00
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* Instituto Costarricense de Acueductos y Alcantarillados . - 2019
* Formularios para Proyectos de Inversión
* Nombre de la Pantalla : wfrAprobacion . aspx
*
* Explicación de los contenidos del archivo
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* HISTORIAL
*
* PERSONA DIA – MES - AÑO DESCRIPCIÓN
* Esteban Gutierrez Rapso 24 – 02 - 2019 Se inicia con el diseño de la pagina
* … … … … … … … … … … … … … … … … … … … … … …
* … … … … … … … … … … … … … … … … … … … … … …
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* Derechos Reservados ( C ) 2019 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
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* /
using System ;
using System.Collections ;
using System.Data ;
using System.Web ;
using System.Web.UI ;
using System.Web.UI.WebControls ;
2019-07-11 01:37:41 +00:00
using System.Web.UI.HtmlControls ;
2019-05-27 14:46:35 +00:00
using AyADAL ;
using AyABL.ADM ;
using AyABL.AGP ;
using AyABL.CVP ;
using AyABL.FNP ;
using AyABL.PPP ;
using AyABL.RHP ;
using AyABL.EVP ;
using AyABL.ICP ;
using AyABL.IGP ;
using AyABL.CIP ;
public partial class webforms_FOR_wfrAprobacion : General
{
#region Inicializar Formulario ( R0 )
override protected void OnInit ( EventArgs e ) //M0
{
try
{
base . OnInit ( e ) ;
InicializarFormulario ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R0M0" , ex ) ;
}
}
private void InicializarFormulario ( ) //M1
{
try
{
Response . Cache . SetCacheability ( HttpCacheability . NoCache ) ;
construirGridView ( ) ;
Javascript . CheckAllGridViewItems ( Page ) ;
Buscar + = new SearchEvent ( this . Busqueda ) ;
//*******AGP************
construirgrvObjetivos ( ) ;
construirgrvResultados ( ) ;
//*******CVP************
construirgrvEtapas ( ) ;
//*******FNP************
construirgrvPIRecursosI ( ) ;
construirgrvPIRecursosE ( ) ;
construirgrvEIRecursosI ( ) ;
construirgrvEIRecursosE ( ) ;
construirgrvEndeudamiento ( ) ;
//*******PPP************
construirgrvPartidas ( ) ;
//*******RHP************
//*******EVP************
//*******ICP************
construirgrvObservaciones ( ) ;
//*******IGP************
construirgrvRelacionPE ( ) ;
construirgrvCentroGestor ( ) ;
construirgrvTipoCambio ( ) ;
//*******CIP************
construirgrvObjCumplidos ( ) ;
construirgrvObjNoCumplidos ( ) ;
construirgrvLeccion ( ) ;
construirgrvComentario ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R0M1" , ex ) ;
}
}
#endregion
#region Variables ( R1 )
2019-07-11 01:37:41 +00:00
GridView grvListaDatosTemp , grvUbicacionesTemp ;
2019-05-27 14:46:35 +00:00
ArrayList arlCondicionesFiltroBusqueda = new ArrayList ( ) ;
//Variables para realizar la busqueda
public delegate void SearchEvent ( ) ;
public event SearchEvent Buscar ;
DependenciaBL objDependenciaBL ;
GridView grvObjetivosTemp , grvResultadosTemp , grvEtapasTemp , grvPIRecursosITemp , grvPIRecursosETemp , grvEIRecursosITemp , grvEIRecursosETemp , grvEndeudamientoTemp ,
grvTotalFinancimientoTemp , grvPartidasTemp , grvTotalPartidasTemp , grvObservacionesTemp , grvRelacionPETemp , grvCentroGestorTemp , grvTipoCambioTemp ,
grvComentarioTemp , grvLeccionTemp , grvObjCumplidosTemp , grvObjNoCumplidosTemp ;
//*****************AGP***********************
ProyectoBL objProyectoBL ;
ObjetivoEspecificoBL objObjetivoEspecificoBL ;
ResultadoBL objResultadoBL ;
2019-07-11 01:37:41 +00:00
UbicacionBL objUbicacionBL ;
2019-05-27 14:46:35 +00:00
//*****************CVP***********************
CicloVidaBL objCicloVidaBL ;
EtapaBL objEtapaBL ;
//*****************FNP***********************
FinanciamientoBL objFinanciamientoBL ;
EndeudamientoBL objEndeudamientoBL ;
//*****************PPP***********************
DistribucionPartidaBL objDistribucionPartidaBL ;
//*****************RHP***********************
RequerimientoRecursoBL objRequerimientoRecursoBL ;
//*****************EVP***********************
AnalisisRiesgoBL objAnalisisRiesgoBL ;
AnalisisAmbientalBL objAnalisisAmbientalBL ;
EvaluacionFinancieraBL objEvaluacionFinancieraBL ;
EvaluacionCostosBL objEvaluacionCostosBL ;
EvaluacionSocialBL objEvaluacionSocialBL ;
//*****************ICP***********************
InformacionBL objInformacionBL ;
ObservacionBL objObservacionBL ;
//*****************IGP***********************
InformacionGeneralBL objInformacionGeneralBL ;
RelacionPlanEstrategicoBL objRelacionPlanEstrategicoBL ;
CentroGestorBL objCentroGestorBL ;
TipoCambioBL objTipoCambioBL ;
//*****************CIP***********************
LeccionBL objLeccionBL ;
ComentarioBL objComentarioBL ;
CierreBL objCierreBL ;
#endregion
#region Eventos Formulario ( R2 )
protected void Page_Load ( object sender , EventArgs e ) //M0
{
try
{
if ( ! IsPostBack )
{
llenarGridView ( ) ;
mostrarFilaTabla ( 1 ) ;
}
2019-07-11 01:37:41 +00:00
ScriptManager . RegisterStartupScript ( Page , typeof ( Page ) , "Check" , "validarEstado()" , true ) ;
2019-05-27 14:46:35 +00:00
}
catch ( Exception ex )
{
MensajeError ( "Error en R2M0" , ex ) ;
}
}
#endregion
#region Eventos Controles Web ( R3 )
protected void grvListaDatos_RowCommand ( object sender , GridViewCommandEventArgs e ) //M0
{
try
{
if ( e . CommandName = = "editar" )
{
int i = Convert . ToInt32 ( e . CommandArgument ) ;
GridViewRow selectedRow = grvListaDatos . Rows [ i ] ;
int intPkProyecto = Convert . ToInt32 ( selectedRow . Cells [ 1 ] . Text ) ;
ViewState [ "PkProyecto" ] = intPkProyecto ;
mostrarFilaTabla ( 2 ) ;
mostrarDatos ( ) ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R3M0" , ex ) ;
}
}
protected void grvListaDatos_PageIndexChanging ( object sender , GridViewPageEventArgs e ) //M1
{
try
{
grvListaDatos . PageIndex = e . NewPageIndex ;
llenarGridView ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error R3M1" , ex ) ;
}
}
protected void btnBusqueda_Click ( object sender , ImageClickEventArgs e ) //M2
{
try
{
Buscar ( ) ;
}
catch ( Exception ex )
{
throw ex ;
}
}
protected void btnRefrescar_Click ( object sender , System . Web . UI . ImageClickEventArgs e ) //M3
{
try
{
llenarGridView ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error R3M3" , ex ) ;
}
}
protected void btnAnterior_Click ( object sender , EventArgs e ) //M4
{
try
{
mostrarFilaTabla ( 1 ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R3M4" , ex ) ;
}
}
protected void btnAprobar_Click ( object sender , EventArgs e ) //M5
{
try
{
aprobarProyecto ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error R3M5" , ex ) ;
}
}
2019-07-11 01:37:41 +00:00
protected void grvEtapas_RowDataBound ( object sender , GridViewRowEventArgs e ) //M6
{
try
{
GridViewRow selectedRow = e . Row ;
if ( e . Row . RowType = = DataControlRowType . DataRow )
{
HtmlInputCheckBox cb = ( HtmlInputCheckBox ) selectedRow . FindControl ( "chkItem" ) ;
if ( e . Row . Cells [ 6 ] . Text . Trim ( ) = = "1" )
cb . Checked = true ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R3M6" , ex ) ;
}
}
2019-05-27 14:46:35 +00:00
#endregion
#region Metodos Personalizados ( R4 )
private void mostrarFilaTabla ( int p_intFila ) //M0
{
try
{
divDatosSuperiores . Visible = false ;
divDatosInferiores . Visible = false ;
switch ( p_intFila )
{
case 1 :
llenarGridView ( ) ;
divDatosSuperiores . Visible = true ;
break ;
case 2 :
llenarGridView ( ) ;
divDatosInferiores . Visible = true ;
break ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M0" , ex ) ;
}
}
private void construirGridView ( ) //M1
{
try
{
//Se Instancia la variable con el control
grvListaDatosTemp = ( GridView ) divDatosSuperiores . FindControl ( "grvListaDatos" ) ;
//Se crean las columnas del grid
GridViewBoundField bdfPkProyecto = new GridViewBoundField ( "PKPROYECTO" , "PK" , false , false , false ) ;
GridViewBoundField bdfBPIP = new GridViewBoundField ( "NUMEROBPIPPROYECTO" , "BPIP" , true , false , true ) ;
GridViewBoundField bdfNombre = new GridViewBoundField ( "NOMBREPROYECTO" , "PROYECTO" , true , false , true ) ;
GridViewBoundField bdfDependencia = new GridViewBoundField ( "NOMBREDEPENDENCIA" , "UNIDAD RESP." , true , false , true ) ;
GridViewBoundField bdfProvincia = new GridViewBoundField ( "NOMBREUBICACION" , "PROVINCIA" , true , false , true ) ;
//Asigna las columnas a los campos a la hora de hacer la consulta
grvListaDatosTemp . Columns . Add ( bdfPkProyecto ) ;
grvListaDatosTemp . Columns . Add ( bdfBPIP ) ;
grvListaDatosTemp . Columns . Add ( bdfNombre ) ;
grvListaDatosTemp . Columns . Add ( bdfDependencia ) ;
grvListaDatosTemp . Columns . Add ( bdfProvincia ) ;
//Le damos estilo a las filas (opcional)
grvListaDatosTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvListaDatosTemp . Columns [ 1 ] . ItemStyle . Width = 25 ;
grvListaDatosTemp . Columns [ 2 ] . ItemStyle . Width = 75 ;
grvListaDatosTemp . Columns [ 3 ] . ItemStyle . Width = 500 ;
grvListaDatosTemp . Columns [ 4 ] . ItemStyle . Width = 250 ;
grvListaDatosTemp . Columns [ 5 ] . ItemStyle . Width = 100 ;
//Carga el buscador con las columnas del grid
LlenarDDLBusqueda ( grvListaDatosTemp ) ;
2019-07-11 01:37:41 +00:00
grvUbicacionesTemp = ( GridView ) divDatosInferiores . FindControl ( "grvUbicaciones" ) ;
GridViewBoundField bdFkUbicacion = new GridViewBoundField ( "FKPROYECTO" , "FK" , false , false , false ) ;
GridViewBoundField bdProvincia = new GridViewBoundField ( "PROVINCIA" , "PROVINCIA" , false , false , true ) ;
GridViewBoundField bdCanton = new GridViewBoundField ( "CANTON" , "CANTÓN" , false , false , true ) ;
GridViewBoundField bdDistrito = new GridViewBoundField ( "DISTRITO" , "DISTRITO" , false , false , true ) ;
GridViewBoundField bdBarrios = new GridViewBoundField ( "LISTABARRIOS" , "COMUNIDADES" , false , false , true ) ;
grvUbicacionesTemp . Columns . Add ( bdFkUbicacion ) ;
grvUbicacionesTemp . Columns . Add ( bdProvincia ) ;
grvUbicacionesTemp . Columns . Add ( bdCanton ) ;
grvUbicacionesTemp . Columns . Add ( bdDistrito ) ;
grvUbicacionesTemp . Columns . Add ( bdBarrios ) ;
2019-05-27 14:46:35 +00:00
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M1" , ex ) ;
}
}
private void Busqueda ( ) //M2
{
try
{
llenarGridView ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M2" , ex ) ;
}
}
public void LlenarDDLBusqueda ( GridView gridView ) //M3
{
try
{
foreach ( DataControlField dgcDGTempColumn in gridView . Columns )
{
if ( dgcDGTempColumn . GetType ( ) . ToString ( ) = = "GridViewBoundField" )
{
GridViewBoundField ndbTempDGBoundField = ( GridViewBoundField ) dgcDGTempColumn ;
if ( ndbTempDGBoundField . Visible & & ndbTempDGBoundField . IsSearch )
{
ListItem litTempItem = new ListItem ( ndbTempDGBoundField . HeaderText , ndbTempDGBoundField . DataField ) ;
ddlFiltrosBusqueda . Items . Add ( litTempItem ) ;
}
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M3" , ex ) ;
}
}
private ArrayList condicionesBusqueda ( ) //M4
{
ArrayList arlCondicionesFiltroBusqueda = null ;
CondicionDAL condicion ;
ListItem li = new ListItem ( this . txtValorBusqueda . Text . Trim ( ) , this . ddlFiltrosBusqueda . SelectedItem . Value ) ;
try
{
if ( li . Text ! = string . Empty )
{
arlCondicionesFiltroBusqueda = new ArrayList ( ) ;
condicion = new CondicionDAL ( ) ;
condicion . valorIzquierdo = li . Value + " COLLATE SQL_LATIN1_GENERAL_CP1_CI_AI " ;
condicion . operadorGeneral = operadorGeneral . LIKEALL ;
condicion . operadorLogico = operadorLogico . AND ;
condicion . valorDerecho = "%" + li . Text + "%" ;
arlCondicionesFiltroBusqueda . Add ( condicion ) ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M4" , ex ) ;
}
return arlCondicionesFiltroBusqueda ;
}
//*****************AGP***********************
private void construirgrvObjetivos ( ) //M5
{
try
{
grvObjetivosTemp = ( GridView ) divDatosInferiores . FindControl ( "grvObjetivos" ) ;
GridViewBoundField bdfPkObjetivo = new GridViewBoundField ( "PKOBJETIVOESPECIFICO" , "PK" , false , false , false ) ;
GridViewBoundField bdfNumero = new GridViewBoundField ( "NUMEROOBJETIVOESPECIFICO" , "#" , false , false , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONOBJETIVOESPECIFICO" , "OBJETIVO" , false , false , true ) ;
GridViewBoundField bdfCumplido = new GridViewBoundField ( "CUMPLIDOOBJETIVOESPECIFICO" , "CUMPLIDO" , false , "Si" , "No" , true ) ;
grvObjetivosTemp . Columns . Add ( bdfPkObjetivo ) ;
grvObjetivosTemp . Columns . Add ( bdfNumero ) ;
grvObjetivosTemp . Columns . Add ( bdfDescripcion ) ;
grvObjetivosTemp . Columns . Add ( bdfCumplido ) ;
grvObjetivosTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvObjetivosTemp . Columns [ 1 ] . ItemStyle . Width = 15 ;
grvObjetivosTemp . Columns [ 2 ] . ItemStyle . Width = 100 ;
grvObjetivosTemp . Columns [ 3 ] . ItemStyle . Width = 20 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M5" , ex ) ;
}
}
private void construirgrvResultados ( ) //M6
{
try
{
grvResultadosTemp = ( GridView ) divDatosInferiores . FindControl ( "grvResultados" ) ;
GridViewBoundField bdfPkResultado = new GridViewBoundField ( "PKRESULTADO" , "PK" , false , false , false ) ;
GridViewBoundField bdfNumero = new GridViewBoundField ( "NUMERORESULTADO" , "#" , false , false , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONRESULTADO" , "RESULTADO" , false , false , true ) ;
grvResultadosTemp . Columns . Add ( bdfPkResultado ) ;
grvResultadosTemp . Columns . Add ( bdfNumero ) ;
grvResultadosTemp . Columns . Add ( bdfDescripcion ) ;
grvResultadosTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvResultadosTemp . Columns [ 1 ] . ItemStyle . Width = 15 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M2" , ex ) ;
}
}
//*****************CVP***********************
private void construirgrvEtapas ( ) //M7
{
try
{
2019-07-11 01:37:41 +00:00
grvEtapasTemp = ( GridView ) Tab . FindControl ( "grvEtapas" ) ;
2019-05-27 14:46:35 +00:00
GridViewBoundField bdfPkEtapa = new GridViewBoundField ( "PKETAPA" , "PK" , false , false , false ) ;
GridViewBoundField bdfEtapa = new GridViewBoundField ( "ETAPA" , "ETAPA" , false , false , true ) ;
GridViewBoundField bdfInicio = new GridViewBoundField ( "FECHAINICIOETAPA" , "INICIA" , false , true , true ) ;
GridViewBoundField bdfConclusion = new GridViewBoundField ( "FECHAFINETAPA" , "CONCLUYE" , false , true , true ) ;
GridViewBoundField bdfSituacion = new GridViewBoundField ( "SITUACION" , "SITUACION ACTUAL" , false , false , true ) ;
2019-07-11 01:37:41 +00:00
GridViewBoundField bdfEtapaActual = new GridViewBoundField ( "ETAPAACTUAL" , "ACTUAL" , false , false , true ) ;
2019-05-27 14:46:35 +00:00
grvEtapasTemp . Columns . Add ( bdfPkEtapa ) ;
grvEtapasTemp . Columns . Add ( bdfEtapa ) ;
grvEtapasTemp . Columns . Add ( bdfInicio ) ;
grvEtapasTemp . Columns . Add ( bdfConclusion ) ;
grvEtapasTemp . Columns . Add ( bdfSituacion ) ;
2019-07-11 01:37:41 +00:00
grvEtapasTemp . Columns . Add ( bdfEtapaActual ) ;
2019-05-27 14:46:35 +00:00
grvEtapasTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvEtapasTemp . Columns [ 1 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M7" , ex ) ;
}
}
//*****************FNP***********************
private void construirgrvPIRecursosI ( ) //M8
{
try
{
grvPIRecursosITemp = ( GridView ) divDatosInferiores . FindControl ( "grvPIRecursosRI" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M8" , ex ) ;
}
}
private void construirgrvPIRecursosE ( ) //M9
{
try
{
grvPIRecursosETemp = ( GridView ) divDatosInferiores . FindControl ( "grvPIRecursosE" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M9" , ex ) ;
}
}
private void construirgrvEIRecursosI ( ) //M10
{
try
{
grvEIRecursosITemp = ( GridView ) divDatosInferiores . FindControl ( "grvEIRecursosI" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M10" , ex ) ;
}
}
private void construirgrvEIRecursosE ( ) //M11
{
try
{
grvEIRecursosETemp = ( GridView ) divDatosInferiores . FindControl ( "grvEIRecursosE" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M11" , ex ) ;
}
}
private void construirgrvTotalFinancimiento ( ) //M12
{
try
{
grvTotalFinancimientoTemp = ( GridView ) divDatosInferiores . FindControl ( "grvTotalFinanciamiento" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M12" , ex ) ;
}
}
private void construirgrvEndeudamiento ( ) //M13
{
try
{
grvEndeudamientoTemp = ( GridView ) divDatosInferiores . FindControl ( "grvEndeudamiento" ) ;
GridViewBoundField bdfPkEndeudamiento = new GridViewBoundField ( "PKENDEUDAMIENTO" , "PK" , false , false , false ) ;
GridViewBoundField bdfFuenteFinanciamiento = new GridViewBoundField ( "NOMBREFUENTEFINANCIAMIENTO" , "FUENTE" , true , false , true ) ;
GridViewBoundField bdfMonto = new GridViewBoundField ( "MONTOENDEUDAMIENTO" , "MONTO" , true , false , true ) ;
GridViewBoundField bdfPeriodoGracia = new GridViewBoundField ( "PERIODOGRACIAENDEUDAMIENTO" , "PERIODO GRACIA" , true , false , true ) ;
GridViewBoundField bdfPlazo = new GridViewBoundField ( "PLAZOENDEUDAMIENTO" , "PLAZO" , true , false , true ) ;
GridViewBoundField bdfDesembolsoInicio = new GridViewBoundField ( "DESEMBOLSOINICIOENDEUDAMIENTO" , "DESEMBOLSO INICIAL" , true , false , true ) ;
GridViewBoundField bdfDesembolsoFin = new GridViewBoundField ( "DESEMBOLSOFINENDEUDAMIENTO" , "DESEMBOLSO FINAL" , true , false , true ) ;
GridViewBoundField bdfTipoCambio = new GridViewBoundField ( "TIPOCAMBIOCONTRATOENDEUDAMIENTO" , "TIPO CAMBIO" , true , false , true ) ;
GridViewBoundField bdfFechaContrato = new GridViewBoundField ( "FECHACONTRATOENDEUDAMIENTO" , "FECHA DE CONTRATO" , true , true , true ) ;
GridViewBoundField bdfSituacionActual = new GridViewBoundField ( "SITUACIONACTUALENDEUDAMIENTO" , "SITUACION ACTUAL" , true , false , true ) ;
GridViewBoundField bdfTasa = new GridViewBoundField ( "TASAENDEUDAMIENTO" , "TASA INTERES" , true , false , true ) ;
grvEndeudamientoTemp . Columns . Add ( bdfPkEndeudamiento ) ;
grvEndeudamientoTemp . Columns . Add ( bdfFuenteFinanciamiento ) ;
grvEndeudamientoTemp . Columns . Add ( bdfMonto ) ;
grvEndeudamientoTemp . Columns . Add ( bdfPeriodoGracia ) ;
grvEndeudamientoTemp . Columns . Add ( bdfPlazo ) ;
grvEndeudamientoTemp . Columns . Add ( bdfDesembolsoInicio ) ;
grvEndeudamientoTemp . Columns . Add ( bdfDesembolsoFin ) ;
grvEndeudamientoTemp . Columns . Add ( bdfTipoCambio ) ;
grvEndeudamientoTemp . Columns . Add ( bdfFechaContrato ) ;
grvEndeudamientoTemp . Columns . Add ( bdfSituacionActual ) ;
grvEndeudamientoTemp . Columns . Add ( bdfTasa ) ;
bdfMonto . DataFormatString = "{0:N}" ;
grvEndeudamientoTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M13" , ex ) ;
}
}
//*****************PPP***********************
private void construirgrvPartidas ( ) //M14
{
try
{
grvPartidasTemp = ( GridView ) divDatosInferiores . FindControl ( "grvPartidas" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M14" , ex ) ;
}
}
private void construirgrvTotalPartidas ( ) //M15
{
try
{
grvTotalPartidasTemp = ( GridView ) divDatosInferiores . FindControl ( "grvTotalPartidas" ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M14" , ex ) ;
}
}
//*****************ICP***********************
private void construirgrvObservaciones ( ) //M16
{
try
{
grvObservacionesTemp = ( GridView ) divDatosInferiores . FindControl ( "grvObservaciones" ) ;
GridViewBoundField bdfPkObservacion = new GridViewBoundField ( "PKOBSERVACION" , "PK" , false , false , false ) ;
GridViewBoundField bdfFecha = new GridViewBoundField ( "FECHAINGRESOOBSERVACION" , "FECHA" , true , true , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONOBSERVACION" , "OBSERVACION" , true , false , true ) ;
grvObservacionesTemp . Columns . Add ( bdfPkObservacion ) ;
grvObservacionesTemp . Columns . Add ( bdfFecha ) ;
grvObservacionesTemp . Columns . Add ( bdfDescripcion ) ;
grvObservacionesTemp . Columns [ 1 ] . ItemStyle . Width = 70 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M16" , ex ) ;
}
}
//*****************IGP***********************
private void construirgrvRelacionPE ( ) //M17
{
try
{
grvRelacionPETemp = ( GridView ) divDatosInferiores . FindControl ( "grvRelacionPE" ) ;
GridViewBoundField bdfPkRelacionPE = new GridViewBoundField ( "PKRELACIONPLANESTRATEGICO" , "PK" , false , false , false ) ;
GridViewBoundField bdfTemaEstrategico = new GridViewBoundField ( "NOMBRETEMAESTRATEGICO" , "TEMA ESTRATEGICO" , false , false , true ) ;
GridViewBoundField bdfPerspectiva = new GridViewBoundField ( "NOMBREPERSPECTIVA" , "PERSPECTIVA" , true , false , true ) ;
GridViewBoundField bdfCodigo = new GridViewBoundField ( "CODIGOPERSPECTIVA" , "CODIGO" , true , false , true ) ;
GridViewBoundField bdfObjetivo = new GridViewBoundField ( "DESCRIPCIONOBJETIVO" , "OBJETIVO" , true , false , true ) ;
GridViewBoundField bdfMeta = new GridViewBoundField ( "METAOBJETIVO" , "META" , true , false , true ) ;
GridViewBoundField bdfContribucion = new GridViewBoundField ( "NOMBRECATALOGO" , "CONTRIBUCION" , false , false , true ) ;
grvRelacionPETemp . Columns . Add ( bdfPkRelacionPE ) ;
grvRelacionPETemp . Columns . Add ( bdfTemaEstrategico ) ;
grvRelacionPETemp . Columns . Add ( bdfPerspectiva ) ;
grvRelacionPETemp . Columns . Add ( bdfCodigo ) ;
grvRelacionPETemp . Columns . Add ( bdfObjetivo ) ;
grvRelacionPETemp . Columns . Add ( bdfMeta ) ;
grvRelacionPETemp . Columns . Add ( bdfContribucion ) ;
grvRelacionPETemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M17" , ex ) ;
}
}
private void construirgrvCentroGestor ( ) //M18
{
try
{
grvCentroGestorTemp = ( GridView ) divDatosInferiores . FindControl ( "grvCentroGestor" ) ;
GridViewBoundField bdfPkCentroGestor = new GridViewBoundField ( "PKCENTROGESTOR" , "PK" , false , false , false ) ;
GridViewBoundField bdfProcedencia = new GridViewBoundField ( "NOMBREPROCEDENCIACENTROGESTOR" , "" , false , false , true ) ;
GridViewBoundField bdfPreinversion = new GridViewBoundField ( "PREINVERSIONCENTROGESTOR" , "PREINVERSION" , true , false , true ) ;
GridViewBoundField bdfEjecucion = new GridViewBoundField ( "EJECUCIONCENTROGESTOR" , "EJECUCION" , true , false , true ) ;
grvCentroGestorTemp . Columns . Add ( bdfPkCentroGestor ) ;
grvCentroGestorTemp . Columns . Add ( bdfProcedencia ) ;
grvCentroGestorTemp . Columns . Add ( bdfPreinversion ) ;
grvCentroGestorTemp . Columns . Add ( bdfEjecucion ) ;
grvCentroGestorTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvCentroGestorTemp . Columns [ 2 ] . ItemStyle . HorizontalAlign = HorizontalAlign . Center ;
grvCentroGestorTemp . Columns [ 3 ] . ItemStyle . HorizontalAlign = HorizontalAlign . Center ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M18" , ex ) ;
}
}
private void construirgrvTipoCambio ( ) //M19
{
try
{
grvTipoCambioTemp = ( GridView ) divDatosInferiores . FindControl ( "grvTipoCambio" ) ;
GridViewBoundField bdfPkTipoCambio = new GridViewBoundField ( "PKTIPOCAMBIO" , "PK" , false , false , false ) ;
GridViewBoundField bdfMoneda = new GridViewBoundField ( "MONEDATIPOCAMBIO" , "MONEDA" , false , false , true ) ;
GridViewBoundField bdfAnio = new GridViewBoundField ( "ANIOTIPOCAMBIO" , "AÑO" , true , false , true ) ;
GridViewBoundField bdfMonto = new GridViewBoundField ( "MONTOTIPOCAMBIO" , "MONTO" , true , false , true ) ;
grvTipoCambioTemp . Columns . Add ( bdfPkTipoCambio ) ;
grvTipoCambioTemp . Columns . Add ( bdfMoneda ) ;
grvTipoCambioTemp . Columns . Add ( bdfAnio ) ;
grvTipoCambioTemp . Columns . Add ( bdfMonto ) ;
grvTipoCambioTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvTipoCambioTemp . Columns [ 2 ] . ItemStyle . HorizontalAlign = HorizontalAlign . Center ;
grvTipoCambioTemp . Columns [ 3 ] . ItemStyle . HorizontalAlign = HorizontalAlign . Right ;
bdfMonto . DataFormatString = "{0:N2}" ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M19" , ex ) ;
}
}
//*****************CIP***********************
private void construirgrvComentario ( ) //M20
{
try
{
grvComentarioTemp = ( GridView ) divDatosInferiores . FindControl ( "grvComentario" ) ;
GridViewBoundField bdfPkComentario = new GridViewBoundField ( "PKCOMENTARIO" , "PK" , false , false , false ) ;
GridViewBoundField bdfEvento = new GridViewBoundField ( "FECHAINGRESOCOMENTARIO" , "FECHA" , true , true , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "COMENTARIO" , "COMENTARIO" , true , false , true ) ;
grvComentarioTemp . Columns . Add ( bdfPkComentario ) ;
grvComentarioTemp . Columns . Add ( bdfEvento ) ;
grvComentarioTemp . Columns . Add ( bdfDescripcion ) ;
grvComentarioTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M20" , ex ) ;
}
}
private void construirgrvLeccion ( ) //M21
{
try
{
grvLeccionTemp = ( GridView ) divDatosInferiores . FindControl ( "grvLeccion" ) ;
GridViewBoundField bdfPkLeccion = new GridViewBoundField ( "PKLECCION" , "PK" , false , false , false ) ;
GridViewBoundField bdfEvento = new GridViewBoundField ( "EVENTOLECCION" , "EVENTO" , true , false , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONLECCION" , "DESCRIPCION" , true , false , true ) ;
grvLeccionTemp . Columns . Add ( bdfPkLeccion ) ;
grvLeccionTemp . Columns . Add ( bdfEvento ) ;
grvLeccionTemp . Columns . Add ( bdfDescripcion ) ;
grvLeccionTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
grvLeccionTemp . Columns [ 1 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M21" , ex ) ;
}
}
private void construirgrvObjCumplidos ( ) //M22
{
try
{
grvObjCumplidosTemp = ( GridView ) divDatosInferiores . FindControl ( "grvObjCumplidos" ) ;
GridViewBoundField bdfPkObjetivo = new GridViewBoundField ( "PKOBJETIVOESPECIFICO" , "PK" , false , false , false ) ;
GridViewBoundField bdfNumero = new GridViewBoundField ( "NUMEROOBJETIVOESPECIFICO" , "#" , true , false , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONOBJETIVOESPECIFICO" , "OBJETIVO" , true , false , true ) ;
grvObjCumplidosTemp . Columns . Add ( bdfPkObjetivo ) ;
grvObjCumplidosTemp . Columns . Add ( bdfNumero ) ;
grvObjCumplidosTemp . Columns . Add ( bdfDescripcion ) ;
grvObjCumplidosTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M22" , ex ) ;
}
}
private void construirgrvObjNoCumplidos ( ) //M23
{
try
{
grvObjNoCumplidosTemp = ( GridView ) divDatosInferiores . FindControl ( "grvObjNoCumplidos" ) ;
GridViewBoundField bdfPkObjetivo = new GridViewBoundField ( "PKOBJETIVOESPECIFICO" , "PK" , false , false , false ) ;
GridViewBoundField bdfNumero = new GridViewBoundField ( "NUMEROOBJETIVOESPECIFICO" , "#" , true , false , true ) ;
GridViewBoundField bdfDescripcion = new GridViewBoundField ( "DESCRIPCIONOBJETIVOESPECIFICO" , "OBJETIVO" , true , false , true ) ;
grvObjNoCumplidosTemp . Columns . Add ( bdfPkObjetivo ) ;
grvObjNoCumplidosTemp . Columns . Add ( bdfNumero ) ;
grvObjNoCumplidosTemp . Columns . Add ( bdfDescripcion ) ;
grvObjNoCumplidosTemp . Columns [ 0 ] . ItemStyle . Width = 25 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R4M23" , ex ) ;
}
}
//*******************************************
#endregion
#region Metodos Controles a Datos ( R5 )
private bool aprobarProyecto ( ) //M0
{
bool blnAprobado = false ;
try
{
objProyectoBL = new ProyectoBL ( ) ;
objProyectoBL . objProyectoEL . PK = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsListaDatos = objProyectoBL . getFichaProyecto ( ) ;
if ( dsListaDatos . Tables [ 0 ] . Rows . Count ! = 0 )
{
if ( Session [ "ROL" ] . ToString ( ) = = "Aprobador Nivel 1" )
{
objProyectoBL . objProyectoEL . VistoBuenoOficina = true ;
imgNivel1Aprobado . Visible = true ;
imgNivel1NoAprobado . Visible = false ;
blnAprobado = true ;
objProyectoBL . actualizaNivel1 ( ) ;
}
else if ( Session [ "ROL" ] . ToString ( ) = = "Aprobador Nivel 2" )
{
if ( bool . Parse ( dsListaDatos . Tables [ 0 ] . Rows [ 0 ] [ "VISTOBUENOOFICINAPROYECTO" ] . ToString ( ) ) = = true )
{
objProyectoBL . objProyectoEL . VistoBuenoSubGerencia = true ;
imgNivel2Aprobado . Visible = true ;
imgNivel2NoAprobado . Visible = false ;
blnAprobado = true ;
objProyectoBL . actualizaNivel2 ( ) ;
}
else
MensajeAdvertencia ( "Para que se lleve a cabo la aprobación del Nivel 2, el proyecto debe ser aprobado en Nivel 1, inicialmente. Por favor comuniquese con el encargado." ) ;
}
else if ( Session [ "ROL" ] . ToString ( ) = = "Administrador Formularios" )
{
if ( bool . Parse ( dsListaDatos . Tables [ 0 ] . Rows [ 0 ] [ "VISTOBUENOOFICINAPROYECTO" ] . ToString ( ) ) = = true & &
bool . Parse ( dsListaDatos . Tables [ 0 ] . Rows [ 0 ] [ "VISTOBUENOSUBGERENCIAPROYECTO" ] . ToString ( ) ) = = true )
{
objProyectoBL . objProyectoEL . VistoBuenoPlanificacion = true ;
imgNivel3Aprobado . Visible = true ;
imgNivel3NoAprobado . Visible = false ;
blnAprobado = true ;
objProyectoBL . actualizaPlanificacion ( ) ;
}
else
MensajeAdvertencia ( "El proyecto no cuenta con la aprobación de uno o de dos de los niveles anteriores" ) ;
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R5M0" , ex ) ;
}
return blnAprobado ;
}
#endregion
#region Metodos Datos a Controles ( R6 )
/// <summary>
/// Carga el grid principal
/// </summary>
private void llenarGridView ( ) //M0
{
ArrayList arlCondicionesFiltroBusqueda = condicionesBusqueda ( ) ;
try
{
if ( ! IsPostBack )
{
}
objProyectoBL = new ProyectoBL ( ) ;
objProyectoBL . objProyectoEL . CodigoAcceso = Session [ "CODIGOACCESO" ] . ToString ( ) ;
DataSet dsListaDatos = objProyectoBL . getListadoProyectos ( arlCondicionesFiltroBusqueda ) ;
General . detalleGridView ( dsListaDatos , grvListaDatosTemp , lblTotalDatos ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M0" , ex ) ;
}
}
private void mostrarDatos ( ) //M1
{
try
{
hdfPKInformacion . Value = "-1" ;
mostrarAGP ( ) ;
mostrarCVP ( ) ;
llenarGRVPIRecursosI ( ) ;
llenarGRVPIRecursosE ( ) ;
llenarGRVEIRecursosI ( ) ;
llenarGRVEIRecursosE ( ) ;
llenarGRVTotalFinanciamiento ( ) ;
llenarGRVEndeudamiento ( ) ;
llenarGRVPartida ( ) ;
llenarGRVTotalPartida ( ) ;
mostrarRecurso ( ) ;
mostrarEvaluacion ( ) ;
mostrarInformacionComplementaria ( ) ;
llenarGRVObservaciones ( ) ;
mostrarInformacionGeneral ( ) ;
llenarGRVRelacionPE ( ) ;
llenarGRVCentrosGestor ( ) ;
llenarGRVTipoCambio ( ) ;
mostrarCierre ( ) ;
llenarGRVObjCumplidos ( ) ;
llenarGRVObjNoCumplidos ( ) ;
llenarGRVLeccion ( ) ;
llenarGRVComentario ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M1" , ex ) ;
}
}
//***************************************************** AGP ********************************************
private void mostrarAGP ( ) //M2
{
2019-07-11 01:37:41 +00:00
2019-05-27 14:46:35 +00:00
try
{
objProyectoBL = new ProyectoBL ( ) ;
objProyectoBL . objProyectoEL . PK = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsProyecto = objProyectoBL . getFichaProyecto ( ) ;
if ( dsProyecto . Tables [ 0 ] . Rows . Count > 0 )
{
txtProyecto . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREPROYECTO" ] . ToString ( ) ;
txtNumeroBPIP . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NUMEROBPIPPROYECTO" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtEstadoProyecto . Text = string . IsNullOrEmpty ( dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREESTADO" ] . ToString ( ) ) ? "Sin Asignar" : dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREESTADO" ] . ToString ( ) ;
//RELACION PND
2019-05-27 14:46:35 +00:00
txtNumeroAccion . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NUMEROACCIONESTRATEGICAPROYECTO" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtNumeroAccion . ToolTip = txtNumeroAccion . Text ;
2019-05-27 14:46:35 +00:00
txtMetaAccion . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "METAACCIONESTRATEGICAPROYECTO" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtMetaAccion . ToolTip = txtMetaAccion . Text ;
2019-05-27 14:46:35 +00:00
txtMetaInstitucional . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "METAINSTITUCIONALPROYECTO" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtMetaInstitucional . ToolTip = txtMetaInstitucional . Text ;
/******************/
2019-05-27 14:46:35 +00:00
txtPrioridad . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "PRIORIDAD" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtComplejidad . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBRECOMPLEJIDAD" ] . ToString ( ) ;
2019-05-27 14:46:35 +00:00
txtDescripcion . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "DESCRIPCIONPROYECTO" ] . ToString ( ) ;
txtAreaTematica . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "AREATEMATICA" ] . ToString ( ) ;
txtObjetivo . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "OBJETIVOGENERALPROYECTO" ] . ToString ( ) ;
txtBeneficioDir . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "BENEFICIARIODIRECTOPROYECTO" ] . ToString ( ) ;
txtBeneficioIndir . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "BENEFICIARIOINDIRECTOPROYECTO" ] . ToString ( ) ;
txtDependencia . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREDEPENDENCIA" ] . ToString ( ) ;
txtCategoria . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "CATEGORIA" ] . ToString ( ) ;
txtSector . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "SECTOR" ] . ToString ( ) ;
txtRegion . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREREGION" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtPatrocinador . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "PATROCINADORPROYECTO" ] . ToString ( ) ;
txtTotalEstimado . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "COSTOESTIMADOPROYECTO" ] . ToString ( ) ;
txtLider . Text = dsProyecto . Tables [ 0 ] . Rows [ 0 ] [ "LIDERPROYECTO" ] . ToString ( ) ;
2019-05-27 14:46:35 +00:00
2019-07-11 01:37:41 +00:00
if ( ! string . IsNullOrWhiteSpace ( txtNumeroBPIP . Text ) )
txtProyecto . ReadOnly = true ;
2019-05-27 14:46:35 +00:00
//MOSTRAR OBJETIVOS Y RESULTADOS
llenarGridObjetivos ( ) ;
llenarGridResultados ( ) ;
2019-07-11 01:37:41 +00:00
llenarGridUbicaciones ( ) ;
2019-05-27 14:46:35 +00:00
}
}
catch ( Exception ex )
{
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
MensajeError ( "Error en R6M2" , ex ) ;
}
}
private void llenarGridObjetivos ( ) //M3
{
try
{
objObjetivoEspecificoBL = new ObjetivoEspecificoBL ( ) ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . PK = 0 ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsObjetivos = objObjetivoEspecificoBL . getObjetivoEspecifico ( ) ;
detalleGRVDatos ( dsObjetivos , grvObjetivosTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M3" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGridResultados ( ) //M4
{
try
{
objResultadoBL = new ResultadoBL ( ) ;
objResultadoBL . objResultadoEL . PK = 0 ;
objResultadoBL . objResultadoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsResultados = objResultadoBL . getResultados ( ) ;
detalleGRVDatos ( dsResultados , grvResultadosTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M4" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
2019-07-11 01:37:41 +00:00
private void llenarGridUbicaciones ( ) //M29
{
try
{
objUbicacionBL = new UbicacionBL ( ) ;
DataSet dsUbicaciones = objUbicacionBL . getUbicacion ( Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ) ;
detalleGRVDatos ( dsUbicaciones , grvUbicacionesTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M29" , ex ) ;
}
}
2019-05-27 14:46:35 +00:00
//***************************************************** CVP ********************************************
private int mostrarCVP ( ) //M5
{
int intValorRetornado = 0 ;
try
{
objCicloVidaBL = new CicloVidaBL ( ) ;
objCicloVidaBL . objCicloVidaEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsCicloVida = objCicloVidaBL . getFichaCicloVida ( ) ;
if ( dsCicloVida . Tables [ 0 ] . Rows . Count > 0 )
{
txtEtapaActual . Text = dsCicloVida . Tables [ 0 ] . Rows [ 0 ] [ "ETAPAACTUAL" ] . ToString ( ) ;
txtAvanceEtapa . Text = Decimal . Parse ( dsCicloVida . Tables [ 0 ] . Rows [ 0 ] [ "PORCENTAJECICLOVIDA" ] . ToString ( ) ) . ToString ( "###.#0" ) ; ;
txtMontoEtapa . Text = Decimal . Parse ( dsCicloVida . Tables [ 0 ] . Rows [ 0 ] [ "MONTOCICLOVIDA" ] . ToString ( ) ) . ToString ( "###,###,###.#0" ) ;
txtFaseEjecucion2 . Text = dsCicloVida . Tables [ 0 ] . Rows [ 0 ] [ "FASEEJECUCION" ] . ToString ( ) ;
}
llenarGRVEtapa ( ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M0" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
return intValorRetornado ;
}
private void llenarGRVEtapa ( ) //M6
{
try
{
objEtapaBL = new EtapaBL ( ) ;
objEtapaBL . objEtapaEL . Etapa = 0 ;
objEtapaBL . objEtapaEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsEtapas = objEtapaBL . getEtapa ( ) ;
detalleGRVDatos ( dsEtapas , grvEtapas ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M6" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** FNP ********************************************
private void llenarGRVPIRecursosI ( ) //M7
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
//Limpiar el datagrid
detalleGRVDatos ( null , grvPIRecursosI ) ;
objFinanciamientoBL = new FinanciamientoBL ( ) ;
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objFinanciamientoBL . objFinanciamientoEL . TipoFinanciamiento = "PI" ;
objFinanciamientoBL . objFinanciamientoEL . TipoRecurso = "RI" ;
DataSet dsRecursos = objFinanciamientoBL . getFinanciamiento ( ) ;
if ( dsRecursos . Tables . Count = = 0 )
dsRecursos . Tables . Add ( ) ;
detalleGRVDatos ( dsRecursos , grvPIRecursosI ) ;
if ( grvPIRecursosI . HeaderRow ! = null )
{
grvPIRecursosI . HeaderRow . Cells [ 1 ] . Text = "Recurso Interno" ;
//Invisiviliza el titulo de la columna de la PK
grvPIRecursosI . HeaderRow . Cells [ 0 ] . Visible = false ;
for ( int i = 0 ; i < = grvPIRecursosI . Rows . Count - 1 ; + + i )
{
grvPIRecursosI . Rows [ i ] . Cells [ 0 ] . Visible = false ;
}
//Dar formato a las cifras por año
for ( int i = 0 ; i < = grvPIRecursosI . Rows . Count - 1 ; + + i )
{
for ( int j = 2 ; j < = grvPIRecursosI . Rows [ i ] . Cells . Count - 1 ; + + j )
{
if ( grvPIRecursosI . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvPIRecursosI . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvPIRecursosI . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
grvPIRecursosI . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
}
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M7" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVPIRecursosE ( ) //M8
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
//Limpiar el datagrid
//detalleGRVDatos(null, grvPIRecursosE);
objFinanciamientoBL = new FinanciamientoBL ( ) ;
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objFinanciamientoBL . objFinanciamientoEL . TipoFinanciamiento = "PI" ;
objFinanciamientoBL . objFinanciamientoEL . TipoRecurso = "RE" ;
DataSet dsRecursos = objFinanciamientoBL . getFinanciamiento ( ) ;
if ( dsRecursos . Tables . Count = = 0 )
dsRecursos . Tables . Add ( ) ;
detalleGRVDatos ( dsRecursos , grvPIRecursosE ) ;
if ( grvPIRecursosE . HeaderRow ! = null )
{
grvPIRecursosE . HeaderRow . Cells [ 1 ] . Text = "Recurso Externo" ;
//Invisiviliza el titulo de la columna de la PK
grvPIRecursosE . HeaderRow . Cells [ 0 ] . Visible = false ;
//Invisibiliza la columna de PK
for ( int i = 0 ; i < = grvPIRecursosE . Rows . Count - 1 ; + + i )
{
grvPIRecursosE . Rows [ i ] . Cells [ 0 ] . Visible = false ;
}
//Dar formato a las cifras por año
for ( int i = 0 ; i < = grvPIRecursosE . Rows . Count - 1 ; + + i )
{
for ( int j = 2 ; j < = grvPIRecursosE . Rows [ i ] . Cells . Count - 1 ; + + j )
{
if ( grvPIRecursosE . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvPIRecursosE . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvPIRecursosE . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
grvPIRecursosE . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
}
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M8" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVEIRecursosI ( ) //M9
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
//Limpiar el datagrid
detalleGRVDatos ( null , grvEIRecursosI ) ;
objFinanciamientoBL = new FinanciamientoBL ( ) ;
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objFinanciamientoBL . objFinanciamientoEL . TipoFinanciamiento = "EI" ;
objFinanciamientoBL . objFinanciamientoEL . TipoRecurso = "RI" ;
DataSet dsRecursos = objFinanciamientoBL . getFinanciamiento ( ) ;
if ( dsRecursos . Tables . Count = = 0 )
dsRecursos . Tables . Add ( ) ;
detalleGRVDatos ( dsRecursos , grvEIRecursosI ) ;
if ( grvEIRecursosI . HeaderRow ! = null )
{
grvEIRecursosI . HeaderRow . Cells [ 1 ] . Text = "Recurso Interno" ;
//Invisiviliza el titulo de la columna de la PK
grvEIRecursosI . HeaderRow . Cells [ 0 ] . Visible = false ;
//Invisibiliza la columna de PK
for ( int i = 0 ; i < = grvEIRecursosI . Rows . Count - 1 ; + + i )
{
grvEIRecursosI . Rows [ i ] . Cells [ 0 ] . Visible = false ;
}
//Dar formato a las cifras por año
for ( int i = 0 ; i < = grvEIRecursosI . Rows . Count - 1 ; + + i )
{
for ( int j = 2 ; j < = grvEIRecursosI . Rows [ i ] . Cells . Count - 1 ; + + j )
{
if ( grvEIRecursosI . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvEIRecursosI . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvEIRecursosI . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
grvEIRecursosI . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
}
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M9" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVEIRecursosE ( ) //M10
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
//Limpiar el datagrid
detalleGRVDatos ( null , grvEIRecursosE ) ;
objFinanciamientoBL = new FinanciamientoBL ( ) ;
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objFinanciamientoBL . objFinanciamientoEL . TipoFinanciamiento = "EI" ;
objFinanciamientoBL . objFinanciamientoEL . TipoRecurso = "RE" ;
DataSet dsRecursos = objFinanciamientoBL . getFinanciamiento ( ) ;
if ( dsRecursos . Tables . Count = = 0 )
dsRecursos . Tables . Add ( ) ;
detalleGRVDatos ( dsRecursos , grvEIRecursosE ) ;
if ( grvEIRecursosE . HeaderRow ! = null )
{
grvEIRecursosE . HeaderRow . Cells [ 1 ] . Text = "Recurso Externo" ;
//Invisiviliza el titulo de la columna de la PK
grvEIRecursosE . HeaderRow . Cells [ 0 ] . Visible = false ;
//Invisibiliza la columna de PK
for ( int i = 0 ; i < = grvEIRecursosE . Rows . Count - 1 ; + + i )
{
grvEIRecursosE . Rows [ i ] . Cells [ 0 ] . Visible = false ;
}
//Dar formato a las cifras por año
for ( int i = 0 ; i < = grvEIRecursosE . Rows . Count - 1 ; + + i )
{
for ( int j = 2 ; j < = grvEIRecursosE . Rows [ i ] . Cells . Count - 1 ; + + j )
{
if ( grvEIRecursosE . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvEIRecursosE . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvEIRecursosE . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
grvEIRecursosE . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
}
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M10" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVTotalFinanciamiento ( ) //M11
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
//Limpiar el datagrid
detalleGRVDatos ( null , grvTotalFinanciamiento ) ;
objFinanciamientoBL = new FinanciamientoBL ( ) ;
2019-07-11 01:37:41 +00:00
objDistribucionPartidaBL = new DistribucionPartidaBL ( ) ;
2019-05-27 14:46:35 +00:00
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
2019-07-11 01:37:41 +00:00
objDistribucionPartidaBL . objDistribucionPartidaEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
2019-05-27 14:46:35 +00:00
DataSet dsRecursos = objFinanciamientoBL . getTotalFinanciamiento ( ) ;
2019-07-11 01:37:41 +00:00
DataSet dsPartidas = objDistribucionPartidaBL . getTotalPartida ( ) ;
2019-05-27 14:46:35 +00:00
if ( dsRecursos . Tables . Count = = 0 )
dsRecursos . Tables . Add ( ) ;
detalleGRVDatos ( dsRecursos , grvTotalFinanciamiento ) ;
2019-07-11 01:37:41 +00:00
decimal vMontoTotalFinanciamiento = 0 M ;
decimal vMontoTotalPartidas = 0 M ;
#region VERIFICAR MONTO PARTIDAS
if ( dsPartidas ! = null | | dsPartidas . Tables . Count > 0 | | dsPartidas . Tables [ 0 ] . Rows . Count > 0 )
{
for ( int i = 1 ; i < = dsPartidas . Tables [ 0 ] . Columns . Count - 1 ; + + i )
{
vMontoTotalPartidas + = Convert . ToDecimal ( dsPartidas . Tables [ 0 ] . Rows [ 0 ] [ i ] . ToString ( ) ) ;
}
}
#endregion
2019-05-27 14:46:35 +00:00
if ( grvTotalFinanciamiento . HeaderRow ! = null )
{
grvTotalFinanciamiento . HeaderRow . Cells [ 0 ] . Text = "" ;
//Dar formato a las cifras por año
for ( int i = 0 ; i < = grvTotalFinanciamiento . Rows . Count - 1 ; + + i )
{
for ( int j = 1 ; j < = grvTotalFinanciamiento . Rows [ i ] . Cells . Count - 1 ; + + j )
{
2019-07-11 01:37:41 +00:00
vMontoTotalFinanciamiento + = Convert . ToDecimal ( grvTotalFinanciamiento . Rows [ i ] . Cells [ j ] . Text ) ;
2019-05-27 14:46:35 +00:00
if ( grvTotalFinanciamiento . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvTotalFinanciamiento . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvTotalFinanciamiento . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
2019-07-11 01:37:41 +00:00
2019-05-27 14:46:35 +00:00
grvTotalFinanciamiento . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
2019-07-11 01:37:41 +00:00
grvTotalFinanciamiento . FooterRow . Cells [ j ] . BorderStyle = BorderStyle . None ;
2019-05-27 14:46:35 +00:00
}
grvTotalFinanciamiento . Rows [ i ] . Font . Bold = true ;
}
}
2019-07-11 01:37:41 +00:00
#region Mostrar Total
if ( grvTotalFinanciamiento . Rows . Count > 0 )
{
grvTotalFinanciamiento . Rows [ 0 ] . Cells [ 0 ] . Text = "TOTAL ANUAL" ;
}
var vMontosCoinciden = vMontoTotalPartidas = = vMontoTotalFinanciamiento ;
grvTotalFinanciamiento . FooterRow . Cells [ 0 ] . Text = "TOTAL GENERAL" ;
grvTotalFinanciamiento . FooterRow . Cells [ 0 ] . Font . Bold = true ;
grvTotalFinanciamiento . FooterRow . Cells [ 0 ] . HorizontalAlign = HorizontalAlign . Left ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . Text = vMontoTotalFinanciamiento . ToString ( "###,###,###,###.#0" ) ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . Font . Bold = true ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . HorizontalAlign = HorizontalAlign . Right ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . BackColor = vMontosCoinciden ? System . Drawing . Color . Green : System . Drawing . Color . IndianRed ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . ForeColor = System . Drawing . Color . White ;
grvTotalFinanciamiento . FooterRow . Cells [ 0 ] . BorderStyle = BorderStyle . Solid ;
grvTotalFinanciamiento . FooterRow . Cells [ 1 ] . BorderStyle = BorderStyle . Solid ;
#endregion
2019-05-27 14:46:35 +00:00
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M11" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVEndeudamiento ( ) //M12
{
try
{
objEndeudamientoBL = new EndeudamientoBL ( ) ;
objEndeudamientoBL . objEndeudamientoEL . PK = 0 ;
objEndeudamientoBL . objEndeudamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsEndeudamiento = objEndeudamientoBL . getEndeudamiento ( ) ;
detalleGRVDatos ( dsEndeudamiento , grvEndeudamientoTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M12" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** PPP ********************************************
private void llenarGRVPartida ( ) //M13
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
objDistribucionPartidaBL = new DistribucionPartidaBL ( ) ;
objDistribucionPartidaBL . objDistribucionPartidaEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsPartidas = objDistribucionPartidaBL . getDistribucionPartida ( ) ;
if ( dsPartidas . Tables . Count = = 0 )
dsPartidas . Tables . Add ( ) ;
detalleGRVDatos ( dsPartidas , grvPartidas ) ;
for ( int i = 0 ; i < = grvPartidas . Rows . Count - 1 ; + + i )
{
for ( int j = 2 ; j < = grvPartidas . Rows [ i ] . Cells . Count - 1 ; + + j )
{
if ( grvPartidas . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvPartidas . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvPartidas . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
grvPartidas . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M13" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVTotalPartida ( ) //M14
{
string strTipoFinanciamiento = string . Empty ;
string strTipoRecurso = string . Empty ;
try
{
objDistribucionPartidaBL . objDistribucionPartidaEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
2019-07-11 01:37:41 +00:00
objFinanciamientoBL . objFinanciamientoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
2019-05-27 14:46:35 +00:00
DataSet dsPartidas = objDistribucionPartidaBL . getTotalPartida ( ) ;
2019-07-11 01:37:41 +00:00
DataSet dsRecursos = objFinanciamientoBL . getTotalFinanciamiento ( ) ;
2019-05-27 14:46:35 +00:00
if ( dsPartidas . Tables . Count = = 0 )
dsPartidas . Tables . Add ( ) ;
detalleGRVDatos ( dsPartidas , grvTotalPartidas ) ;
2019-07-11 01:37:41 +00:00
decimal vMontoTotalPartidas = 0 M ;
decimal vMontoTotalFinanciamiento = 0 M ;
#region VERIFICAR MONTO FINANCIAMIENTO
if ( dsRecursos ! = null | | dsRecursos . Tables . Count > 0 | | dsRecursos . Tables [ 0 ] . Rows . Count > 0 )
{
for ( int i = 1 ; i < = dsRecursos . Tables [ 0 ] . Columns . Count - 1 ; + + i )
{
vMontoTotalFinanciamiento + = Convert . ToDecimal ( dsRecursos . Tables [ 0 ] . Rows [ 0 ] [ i ] . ToString ( ) ) ;
}
}
#endregion
2019-05-27 14:46:35 +00:00
if ( grvTotalPartidas . HeaderRow ! = null )
{
grvTotalPartidas . HeaderRow . Cells [ 0 ] . Text = "" ;
for ( int i = 0 ; i < = grvTotalPartidas . Rows . Count - 1 ; + + i )
{
for ( int j = 1 ; j < = grvTotalPartidas . Rows [ i ] . Cells . Count - 1 ; + + j )
{
2019-07-11 01:37:41 +00:00
vMontoTotalPartidas + = Convert . ToDecimal ( grvTotalPartidas . Rows [ i ] . Cells [ j ] . Text ) ;
2019-05-27 14:46:35 +00:00
if ( grvTotalPartidas . Rows [ i ] . Cells [ j ] . Text ! = "0.00" )
grvTotalPartidas . Rows [ i ] . Cells [ j ] . Text = Decimal . Parse ( grvTotalPartidas . Rows [ i ] . Cells [ j ] . Text ) . ToString ( "###,###,###,###.#0" ) ;
2019-07-11 01:37:41 +00:00
2019-05-27 14:46:35 +00:00
grvTotalPartidas . Rows [ i ] . Cells [ j ] . HorizontalAlign = HorizontalAlign . Right ;
2019-07-11 01:37:41 +00:00
grvTotalPartidas . FooterRow . Cells [ j ] . BorderStyle = BorderStyle . None ;
2019-05-27 14:46:35 +00:00
}
2019-07-11 01:37:41 +00:00
2019-05-27 14:46:35 +00:00
grvTotalPartidas . Rows [ i ] . Font . Bold = true ;
}
2019-07-11 01:37:41 +00:00
#region Mostrar Total
if ( grvTotalPartidas . Rows . Count > 0 )
{
grvTotalPartidas . Rows [ 0 ] . Cells [ 0 ] . Text = "TOTAL ANUAL" ;
}
var vMontosCoinciden = vMontoTotalPartidas = = vMontoTotalFinanciamiento ;
grvTotalPartidas . FooterRow . Cells [ 0 ] . Text = "TOTAL GENERAL" ;
grvTotalPartidas . FooterRow . Cells [ 0 ] . Font . Bold = true ;
grvTotalPartidas . FooterRow . Cells [ 0 ] . HorizontalAlign = HorizontalAlign . Left ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . Text = vMontoTotalPartidas . ToString ( "###,###,###,###.#0" ) ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . Font . Bold = true ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . HorizontalAlign = HorizontalAlign . Right ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . BackColor = vMontosCoinciden ? System . Drawing . Color . Green : System . Drawing . Color . IndianRed ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . ForeColor = System . Drawing . Color . White ;
grvTotalPartidas . FooterRow . Cells [ 0 ] . BorderStyle = BorderStyle . Solid ;
grvTotalPartidas . FooterRow . Cells [ 1 ] . BorderStyle = BorderStyle . Solid ;
#endregion
2019-05-27 14:46:35 +00:00
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M14" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** RHP ********************************************
private void mostrarRecurso ( ) //M15
{
try
{
objRequerimientoRecursoBL = new RequerimientoRecursoBL ( ) ;
objRequerimientoRecursoBL . objRequerimientoRecursoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsRequerimientoRecurso = new DataSet ( ) ;
dsRequerimientoRecurso = objRequerimientoRecursoBL . getRequerimientoRecursoBL ( ) ;
if ( dsRequerimientoRecurso . Tables [ 0 ] . Rows . Count > 0 )
{
txtCantidadPAP . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 0 ] [ "CANTIDADAPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadPE . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 0 ] [ "CANTIDADECPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadPO . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 0 ] [ "CANTIDADPPPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadCAP . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 1 ] [ "CANTIDADAPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadCE . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 1 ] [ "CANTIDADECPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadCO . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 1 ] [ "CANTIDADPPPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadNAP . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 2 ] [ "CANTIDADAPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadNE . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 2 ] [ "CANTIDADECPREQUERIMIENTORECURSO" ] . ToString ( ) ;
txtCantidadNO . Value = dsRequerimientoRecurso . Tables [ 0 ] . Rows [ 2 ] [ "CANTIDADPPPREQUERIMIENTORECURSO" ] . ToString ( ) ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M15" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** EVP ********************************************
private void mostrarEvaluacion ( ) //M16
{
try
{
DataSet ds = new DataSet ( ) ;
//Carga de Analisis Ambiental
objAnalisisAmbientalBL = new AnalisisAmbientalBL ( ) ;
objAnalisisAmbientalBL . objAnalisisAmbientalEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
ds = objAnalisisAmbientalBL . getAnalisisAmbiental ( ) ;
if ( ds . Tables [ 0 ] . Rows . Count > 0 )
{
chkVAP . Checked = bool . Parse ( ds . Tables [ 0 ] . Rows [ 0 ] [ "VIABILIDADANALISISAMBIENTAL" ] . ToString ( ) ) ;
txtFechaAprobacion . Text = DateTime . Parse ( ds . Tables [ 0 ] . Rows [ 0 ] [ "FECHAAPROBACIONANALISISAMBIENTAL" ] . ToString ( ) ) . ToString ( "dd/MM/yyyy" ) ;
txtInicioVAP . Text = DateTime . Parse ( ds . Tables [ 0 ] . Rows [ 0 ] [ "VAPINICIOANALISISAMBIENTAL" ] . ToString ( ) ) . ToString ( "dd/MM/yyyy" ) ;
txtFinVAP . Text = DateTime . Parse ( ds . Tables [ 0 ] . Rows [ 0 ] [ "VAPFINALANALISISAMBIENTAL" ] . ToString ( ) ) . ToString ( "dd/MM/yyyy" ) ;
txtPorcentajeMitigacion . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "PORCENTAJEMITIGACIONANALISISAMBIENTAL" ] . ToString ( ) ;
}
//Carga de Analisis Riesgo
objAnalisisRiesgoBL = new AnalisisRiesgoBL ( ) ;
objAnalisisRiesgoBL . objAnalisisRiesgoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
ds = objAnalisisRiesgoBL . getAnalisisRiesgo ( ) ;
if ( ds . Tables [ 0 ] . Rows . Count > 0 )
{
chkAnalisisRiesgo . Checked = bool . Parse ( ds . Tables [ 0 ] . Rows [ 0 ] [ "ANALISISRIESGO" ] . ToString ( ) ) ;
txtPorcentaje . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "PORCENTAJEREDUCCIONANALISISRIESGO" ] . ToString ( ) ;
txtNumeroPlano . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "NUMEROPLANOANALISISRIESGO" ] . ToString ( ) ;
}
//Carga de Evaluacion Financiera
objEvaluacionFinancieraBL = new EvaluacionFinancieraBL ( ) ;
objEvaluacionFinancieraBL . objEvaluacionFinancieraEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
ds = objEvaluacionFinancieraBL . getEvaluacionFinanciera ( ) ;
if ( ds . Tables [ 0 ] . Rows . Count > 0 )
{
txtTREMA . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "TREMAEVALUACIONFINANCIERA" ] . ToString ( ) ;
txtVAN . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "VANEEVALUACIONFINANCIERA" ] . ToString ( ) ;
txtTIR . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "TIREEVALUACIONFINANCIERA" ] . ToString ( ) ;
txtRBC . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "RBCEVALUACIONFINANCIERA" ] . ToString ( ) ;
}
//Carga de Evaluacion Costos
objEvaluacionCostosBL = new EvaluacionCostosBL ( ) ;
objEvaluacionCostosBL . objEvaluacionCostosEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
ds = objEvaluacionCostosBL . getEvaluacionCostos ( ) ;
if ( ds . Tables [ 0 ] . Rows . Count > 0 )
{
txtTSD . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "TSDEVALUACIONCOSTOS" ] . ToString ( ) ;
txtVAC . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "VACEVALUACIONCOSTOS" ] . ToString ( ) ;
txtCAE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "CAEEVALUACIONCOSTOS" ] . ToString ( ) ;
}
//Carga de Evaluacion Social
objEvaluacionSocialBL = new EvaluacionSocialBL ( ) ;
objEvaluacionSocialBL . objEvaluacionSocialEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
ds = objEvaluacionSocialBL . getEvaluacionSocial ( ) ;
if ( ds . Tables [ 0 ] . Rows . Count > 0 )
{
txtTSDE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "TSDEVALUACIONSOCIAL" ] . ToString ( ) ;
txtVANE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "VANEEVALUACIONSOCIAL" ] . ToString ( ) ;
txtTIRE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "TIREEVALUACIONSOCIAL" ] . ToString ( ) ;
txtRBCE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "RBCEVALUACIONSOCIAL" ] . ToString ( ) ;
txtRCE . Text = ds . Tables [ 0 ] . Rows [ 0 ] [ "RCEEVALUACIONSOCIAL" ] . ToString ( ) ;
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M16" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** ICP ********************************************
private void mostrarInformacionComplementaria ( ) //M17
{
try
{
objInformacionBL = new InformacionBL ( ) ;
objInformacionBL . objInformacionEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsInformacion = new DataSet ( ) ;
dsInformacion = objInformacionBL . getInformacion ( ) ;
if ( dsInformacion . Tables [ 0 ] . Rows . Count > 0 )
{
ViewState [ "PkInformacion" ] = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "PKINFORMACION" ] . ToString ( ) ;
txtImportancia . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "IMPORTANCIAINFORMACION" ] . ToString ( ) ;
txtProblema . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "PROBLEMAINFORMACION" ] . ToString ( ) ;
txtMedidas . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "MEDIDAINFORMACION" ] . ToString ( ) ;
txtProyectosVinculados . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "PROYECTOVINCULADOINFORMACION" ] . ToString ( ) ;
txtEntidades . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "OTRASENTIDADESINFORMACION" ] . ToString ( ) ;
}
else
ViewState [ "PkInformacion" ] = - 1 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M17" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVObservaciones ( ) //M18
{
try
{
objObservacionBL = new ObservacionBL ( ) ;
objObservacionBL . objObservacionEL . Informacion = Int32 . Parse ( ViewState [ "PkInformacion" ] . ToString ( ) ) ;
DataSet dsObservacion = objObservacionBL . getObservacion ( ) ;
detalleGRVDatos ( dsObservacion , grvObservacionesTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M18" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** IGP ********************************************
private void mostrarInformacionGeneral ( ) //M19
{
try
{
objInformacionGeneralBL = new InformacionGeneralBL ( ) ;
objInformacionGeneralBL . objInformacionGeneralEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsInformacion = objInformacionGeneralBL . getInformacionGeneral ( ) ;
if ( dsInformacion . Tables [ 0 ] . Rows . Count ! = 0 )
{
txtEncargado . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "ENCARGADOINFORMACIONGENERAL" ] . ToString ( ) ;
txtRegionAyA . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREREGION" ] . ToString ( ) ;
2019-07-11 01:37:41 +00:00
txtRegionGeneral . Text = dsInformacion . Tables [ 0 ] . Rows [ 0 ] [ "NOMBREREGION" ] . ToString ( ) ;
2019-05-27 14:46:35 +00:00
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M19" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVRelacionPE ( ) //M20
{
try
{
objRelacionPlanEstrategicoBL = new RelacionPlanEstrategicoBL ( ) ;
objRelacionPlanEstrategicoBL . objRelacionPlanEstrategicoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objRelacionPlanEstrategicoBL . objRelacionPlanEstrategicoEL . PK = 0 ;
DataSet dsRelacionPE = objRelacionPlanEstrategicoBL . getRelacionPlanEstrategico ( ) ;
detalleGRVDatos ( dsRelacionPE , grvRelacionPE ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M20" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVCentrosGestor ( ) //M21
{
try
{
objCentroGestorBL = new CentroGestorBL ( ) ;
objCentroGestorBL . objCentroGestorEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objCentroGestorBL . objCentroGestorEL . PK = 0 ;
DataSet dsCentroCostos = objCentroGestorBL . getCentroGestor ( ) ;
detalleGRVDatos ( dsCentroCostos , grvCentroGestor ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M21" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVTipoCambio ( ) //M22
{
try
{
objTipoCambioBL = new TipoCambioBL ( ) ;
objTipoCambioBL . objTipoCambioEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objTipoCambioBL . objTipoCambioEL . PK = 0 ;
DataSet dsTipoCambio = objTipoCambioBL . getTipoCambio ( ) ;
detalleGRVDatos ( dsTipoCambio , grvTipoCambio ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M22" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
//***************************************************** CIP ********************************************
private void mostrarCierre ( ) //M23
{
try
{
objCierreBL = new CierreBL ( ) ;
objCierreBL . objCierreEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsCierre = objCierreBL . getCierre ( ) ;
llenarOtrosDatos ( ) ;
if ( dsCierre . Tables [ 0 ] . Rows . Count ! = 0 )
{
ViewState [ "PkCierre" ] = Convert . ToInt32 ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "PKCIERRE" ] . ToString ( ) ) ;
//Datos de Cierre
txtPreInversion . Text = dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "DOCUMENTOPREINVERSIONCIERRE" ] . ToString ( ) ;
txtFinanciamiento . Text = dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "DOCUMENTOFINANCIAMIENTOCIERRE" ] . ToString ( ) ;
txtInversion . Text = dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "DOCUMENTOINVERSIONCIERRE" ] . ToString ( ) ;
txtFechaCapitalizacion . Text = Convert . ToDateTime ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHACAPITALIZACIONCIERRE" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
txtMontoCapitalizacion . Text = Decimal . Parse ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "MONTOCAPITALIZACIONCIERRE" ] . ToString ( ) ) . ToString ( "###,###,###,###.#0" ) ;
//Fechas del proyecto
DataSet dsFechas = objCierreBL . getOtrosDatos ( ) ;
if ( dsFechas . Tables [ 0 ] . Rows . Count ! = 0 )
{
if ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "ENCARGADOINFORMACIONGENERAL" ] . ToString ( ) ! = "" )
txtEncargadoProyecto . Text = dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "ENCARGADOINFORMACIONGENERAL" ] . ToString ( ) ;
if ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "FECHAINICIO" ] . ToString ( ) ! = "" )
txtFechaInicio . Text = Convert . ToDateTime ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "FECHAINICIO" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
if ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "MONTOFINANCIAMIENTO" ] . ToString ( ) ! = "" )
txtCostoTotal . Text = Decimal . Parse ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "MONTOFINANCIAMIENTO" ] . ToString ( ) ) . ToString ( "###,###,###,###.#0" ) ;
if ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ! = "" )
{
txtFechaFinalizacion . Text = Convert . ToDateTime ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
txtFechaEntrega . Text = Convert . ToDateTime ( dsFechas . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
}
}
txtMontoCapitalizacion . Text = Decimal . Parse ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "MONTOCAPITALIZACIONCIERRE" ] . ToString ( ) ) . ToString ( "###,###,###.#0" ) ;
}
else
ViewState [ "PkCierre" ] = - 1 ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M23" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVLeccion ( ) //M24
{
try
{
objLeccionBL = new LeccionBL ( ) ;
objLeccionBL . objLeccionEL . Cierre = Int32 . Parse ( ViewState [ "PkCierre" ] . ToString ( ) ) ;
DataSet dsLeccion = objLeccionBL . getLeccion ( ) ;
detalleGRVDatos ( dsLeccion , grvLeccionTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M24" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVComentario ( ) //M25
{
try
{
objComentarioBL = new ComentarioBL ( ) ;
objComentarioBL . objComentarioEL . Cierre = Int32 . Parse ( ViewState [ "PkCierre" ] . ToString ( ) ) ;
DataSet dsComentario = objComentarioBL . getComentario ( ) ;
detalleGRVDatos ( dsComentario , grvComentarioTemp ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M25" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVObjCumplidos ( ) //M26
{
try
{
objObjetivoEspecificoBL = new ObjetivoEspecificoBL ( ) ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . Cumplido = true ;
DataSet dsObjetivos = objObjetivoEspecificoBL . getObjetivoEspecificoFicha ( ) ;
detalleGRVDatos ( dsObjetivos , grvObjCumplidos ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M26" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarGRVObjNoCumplidos ( ) //M27
{
try
{
objObjetivoEspecificoBL = new ObjetivoEspecificoBL ( ) ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . Proyecto = Int32 . Parse ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
objObjetivoEspecificoBL . objObjetivoEspecificoEL . Cumplido = false ;
DataSet dsObjetivos = objObjetivoEspecificoBL . getObjetivoEspecificoFicha ( ) ;
detalleGRVDatos ( dsObjetivos , grvObjNoCumplidos ) ;
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M27" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
private void llenarOtrosDatos ( ) //M28
{
try
{
objCierreBL = new CierreBL ( ) ;
objCierreBL . objCierreEL . Proyecto = Convert . ToInt32 ( ViewState [ "PkProyecto" ] . ToString ( ) ) ;
DataSet dsCierre = objCierreBL . getOtrosDatos ( ) ;
if ( dsCierre . Tables [ 0 ] . Rows . Count ! = 0 )
{
if ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "ENCARGADOINFORMACIONGENERAL" ] . ToString ( ) ! = "" )
txtEncargadoProyecto . Text = dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "ENCARGADOINFORMACIONGENERAL" ] . ToString ( ) ;
if ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHAINICIO" ] . ToString ( ) ! = "" )
txtFechaInicio . Text = Convert . ToDateTime ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHAINICIO" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
if ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "MONTOFINANCIAMIENTO" ] . ToString ( ) ! = "" )
txtCostoTotal . Text = Decimal . Parse ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "MONTOFINANCIAMIENTO" ] . ToString ( ) ) . ToString ( "###,###,###,###.#0" ) ;
if ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ! = "" )
{
txtFechaFinalizacion . Text = Convert . ToDateTime ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
txtFechaEntrega . Text = Convert . ToDateTime ( dsCierre . Tables [ 0 ] . Rows [ 0 ] [ "FECHAFIN" ] . ToString ( ) ) . Date . ToString ( "dd/MM/yyyy" ) ;
}
}
}
catch ( Exception ex )
{
MensajeError ( "Error en R6M28" , ex ) ;
General . ReportarError ( ex , Session [ "LOGIN" ] . ToString ( ) ) ;
}
}
#endregion
}