git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C502
This commit is contained in:
parent
0ac75d0a76
commit
29503ef230
10 changed files with 947 additions and 671 deletions
|
|
@ -11,11 +11,7 @@ editando este archivo MSBuild. Para conocer más acerca de esto, visite http://g
|
|||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>True</ExcludeApp_Data>
|
||||
<publishUrl>R:\Documentos\Proyectos\FOPI\Publish</publishUrl>
|
||||
<publishUrl>D:\AYA\FOPRI</publishUrl>
|
||||
<DeleteExistingFiles>True</DeleteExistingFiles>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<WDPMergeOption>DonotMerge</WDPMergeOption>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<configuration>
|
||||
<connectionStrings>
|
||||
<!--<add name="FOPI" providerName="System.Data.SqlClient" connectionString="Data Source=aya-vsrv-bdds;Initial Catalog=FOPI;Persist Security Info=True;User ID=userfopi;Password=userfopi"/> -->
|
||||
<add name="FOPI" providerName="System.Data.SqlClient" connectionString="Data Source=ACER\SQLEXPRESS;Initial Catalog=FOPI;Persist Security Info=True;User ID=webapi;Password=fropi"/>
|
||||
<add name="FOPI" providerName="System.Data.SqlClient" connectionString="Data Source=DESKTOP-SHU204T\SQLEXPRESS;Initial Catalog=FOPI;Persist Security Info=True;User ID=dev;Password=dev"/>
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5.1">
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -25,7 +25,7 @@ using System.Data;
|
|||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
using System.Web.UI.HtmlControls;
|
||||
using AyADAL;
|
||||
|
||||
using AyABL.ADM;
|
||||
|
|
@ -121,7 +121,7 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
|
||||
#region Variables (R1)
|
||||
|
||||
GridView grvListaDatosTemp;
|
||||
GridView grvListaDatosTemp, grvUbicacionesTemp;
|
||||
ArrayList arlCondicionesFiltroBusqueda = new ArrayList();
|
||||
|
||||
//Variables para realizar la busqueda
|
||||
|
|
@ -138,7 +138,7 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
ProyectoBL objProyectoBL;
|
||||
ObjetivoEspecificoBL objObjetivoEspecificoBL;
|
||||
ResultadoBL objResultadoBL;
|
||||
|
||||
UbicacionBL objUbicacionBL;
|
||||
//*****************CVP***********************
|
||||
CicloVidaBL objCicloVidaBL;
|
||||
EtapaBL objEtapaBL;
|
||||
|
|
@ -190,6 +190,8 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
llenarGridView();
|
||||
mostrarFilaTabla(1);
|
||||
}
|
||||
|
||||
ScriptManager.RegisterStartupScript(Page, typeof(Page), "Check", "validarEstado()", true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -286,6 +288,26 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
@ -349,6 +371,20 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
//Carga el buscador con las columnas del grid
|
||||
LlenarDDLBusqueda(grvListaDatosTemp);
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -485,19 +521,21 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
{
|
||||
try
|
||||
{
|
||||
grvEtapasTemp = (GridView)divDatosInferiores.FindControl("grvEtapas");
|
||||
grvEtapasTemp = (GridView)Tab.FindControl("grvEtapas");
|
||||
|
||||
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);
|
||||
GridViewBoundField bdfEtapaActual = new GridViewBoundField("ETAPAACTUAL", "ACTUAL", false, false, true);
|
||||
|
||||
grvEtapasTemp.Columns.Add(bdfPkEtapa);
|
||||
grvEtapasTemp.Columns.Add(bdfEtapa);
|
||||
grvEtapasTemp.Columns.Add(bdfInicio);
|
||||
grvEtapasTemp.Columns.Add(bdfConclusion);
|
||||
grvEtapasTemp.Columns.Add(bdfSituacion);
|
||||
grvEtapasTemp.Columns.Add(bdfEtapaActual);
|
||||
|
||||
grvEtapasTemp.Columns[0].ItemStyle.Width = 25;
|
||||
grvEtapasTemp.Columns[1].ItemStyle.Width = 25;
|
||||
|
|
@ -509,7 +547,6 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
MensajeError("Error en R4M7", ex);
|
||||
}
|
||||
}
|
||||
|
||||
//*****************FNP***********************
|
||||
|
||||
private void construirgrvPIRecursosI() //M8
|
||||
|
|
@ -1001,6 +1038,7 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
|
||||
private void mostrarAGP() //M2
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
objProyectoBL = new ProyectoBL();
|
||||
|
|
@ -1010,10 +1048,19 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
{
|
||||
txtProyecto.Text = dsProyecto.Tables[0].Rows[0]["NOMBREPROYECTO"].ToString();
|
||||
txtNumeroBPIP.Text = dsProyecto.Tables[0].Rows[0]["NUMEROBPIPPROYECTO"].ToString();
|
||||
txtEstadoProyecto.Text = string.IsNullOrEmpty(dsProyecto.Tables[0].Rows[0]["NOMBREESTADO"].ToString()) ? "Sin Asignar" : dsProyecto.Tables[0].Rows[0]["NOMBREESTADO"].ToString();
|
||||
|
||||
//RELACION PND
|
||||
txtNumeroAccion.Text = dsProyecto.Tables[0].Rows[0]["NUMEROACCIONESTRATEGICAPROYECTO"].ToString();
|
||||
txtNumeroAccion.ToolTip = txtNumeroAccion.Text;
|
||||
txtMetaAccion.Text = dsProyecto.Tables[0].Rows[0]["METAACCIONESTRATEGICAPROYECTO"].ToString();
|
||||
txtMetaAccion.ToolTip = txtMetaAccion.Text;
|
||||
txtMetaInstitucional.Text = dsProyecto.Tables[0].Rows[0]["METAINSTITUCIONALPROYECTO"].ToString();
|
||||
txtMetaInstitucional.ToolTip = txtMetaInstitucional.Text;
|
||||
/******************/
|
||||
|
||||
txtPrioridad.Text = dsProyecto.Tables[0].Rows[0]["PRIORIDAD"].ToString();
|
||||
txtComplejidad.Text = dsProyecto.Tables[0].Rows[0]["NOMBRECOMPLEJIDAD"].ToString();
|
||||
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();
|
||||
|
|
@ -1021,52 +1068,21 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
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();
|
||||
txtProvincia.Text = dsProyecto.Tables[0].Rows[0]["NOMBREUBICACION"].ToString();
|
||||
txtSector.Text = dsProyecto.Tables[0].Rows[0]["SECTOR"].ToString();
|
||||
txtCanton.Text = dsProyecto.Tables[0].Rows[0]["CANTONPROYECTO"].ToString();
|
||||
txtDistrito.Text = dsProyecto.Tables[0].Rows[0]["DISTRITOPROYECTO"].ToString();
|
||||
txtRegion.Text = dsProyecto.Tables[0].Rows[0]["NOMBREREGION"].ToString();
|
||||
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();
|
||||
|
||||
if (bool.Parse(dsProyecto.Tables[0].Rows[0]["VISTOBUENOOFICINAPROYECTO"].ToString()) == true)
|
||||
{
|
||||
imgNivel1Aprobado.Visible = true;
|
||||
imgNivel1NoAprobado.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
imgNivel1Aprobado.Visible = false;
|
||||
imgNivel1NoAprobado.Visible = true;
|
||||
}
|
||||
if (bool.Parse(dsProyecto.Tables[0].Rows[0]["VISTOBUENOSUBGERENCIAPROYECTO"].ToString()) == true)
|
||||
{
|
||||
imgNivel2Aprobado.Visible = true;
|
||||
imgNivel2NoAprobado.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
imgNivel2Aprobado.Visible = false;
|
||||
imgNivel2NoAprobado.Visible = true;
|
||||
}
|
||||
if (bool.Parse(dsProyecto.Tables[0].Rows[0]["VISTOBUENOPLANIFICACIONPROYECTO"].ToString()) == true)
|
||||
{
|
||||
imgNivel3Aprobado.Visible = true;
|
||||
imgNivel3NoAprobado.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
imgNivel3Aprobado.Visible = false;
|
||||
imgNivel3NoAprobado.Visible = true;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(txtNumeroBPIP.Text))
|
||||
txtProyecto.ReadOnly = true;
|
||||
|
||||
//MOSTRAR OBJETIVOS Y RESULTADOS
|
||||
llenarGridObjetivos();
|
||||
|
||||
llenarGridResultados();
|
||||
llenarGridUbicaciones();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1113,6 +1129,22 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//***************************************************** CVP ********************************************
|
||||
|
||||
private int mostrarCVP() //M5
|
||||
|
|
@ -1390,15 +1422,32 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
detalleGRVDatos(null, grvTotalFinanciamiento);
|
||||
|
||||
objFinanciamientoBL = new FinanciamientoBL();
|
||||
objDistribucionPartidaBL = new DistribucionPartidaBL();
|
||||
|
||||
objFinanciamientoBL.objFinanciamientoEL.Proyecto = Int32.Parse(ViewState["PkProyecto"].ToString());
|
||||
objDistribucionPartidaBL.objDistribucionPartidaEL.Proyecto = Int32.Parse(ViewState["PkProyecto"].ToString());
|
||||
|
||||
DataSet dsRecursos = objFinanciamientoBL.getTotalFinanciamiento();
|
||||
DataSet dsPartidas = objDistribucionPartidaBL.getTotalPartida();
|
||||
|
||||
if (dsRecursos.Tables.Count == 0)
|
||||
dsRecursos.Tables.Add();
|
||||
|
||||
detalleGRVDatos(dsRecursos, grvTotalFinanciamiento);
|
||||
|
||||
decimal vMontoTotalFinanciamiento = 0M;
|
||||
decimal vMontoTotalPartidas = 0M;
|
||||
|
||||
#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
|
||||
|
||||
if (grvTotalFinanciamiento.HeaderRow != null)
|
||||
{
|
||||
grvTotalFinanciamiento.HeaderRow.Cells[0].Text = "";
|
||||
|
|
@ -1407,13 +1456,43 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
{
|
||||
for (int j = 1; j <= grvTotalFinanciamiento.Rows[i].Cells.Count - 1; ++j)
|
||||
{
|
||||
|
||||
vMontoTotalFinanciamiento += Convert.ToDecimal(grvTotalFinanciamiento.Rows[i].Cells[j].Text);
|
||||
|
||||
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");
|
||||
|
||||
grvTotalFinanciamiento.Rows[i].Cells[j].HorizontalAlign = HorizontalAlign.Right;
|
||||
grvTotalFinanciamiento.FooterRow.Cells[j].BorderStyle = BorderStyle.None;
|
||||
|
||||
}
|
||||
grvTotalFinanciamiento.Rows[i].Font.Bold = true;
|
||||
}
|
||||
}
|
||||
|
||||
#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
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1483,16 +1562,30 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
|
||||
try
|
||||
{
|
||||
objDistribucionPartidaBL = new DistribucionPartidaBL();
|
||||
objDistribucionPartidaBL.objDistribucionPartidaEL.Proyecto = Int32.Parse(ViewState["PkProyecto"].ToString());
|
||||
objFinanciamientoBL.objFinanciamientoEL.Proyecto = Int32.Parse(ViewState["PkProyecto"].ToString());
|
||||
|
||||
DataSet dsPartidas = objDistribucionPartidaBL.getTotalPartida();
|
||||
DataSet dsRecursos = objFinanciamientoBL.getTotalFinanciamiento();
|
||||
|
||||
if (dsPartidas.Tables.Count == 0)
|
||||
dsPartidas.Tables.Add();
|
||||
|
||||
detalleGRVDatos(dsPartidas, grvTotalPartidas);
|
||||
|
||||
decimal vMontoTotalPartidas = 0M;
|
||||
decimal vMontoTotalFinanciamiento = 0M;
|
||||
|
||||
#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
|
||||
|
||||
if (grvTotalPartidas.HeaderRow != null)
|
||||
{
|
||||
grvTotalPartidas.HeaderRow.Cells[0].Text = "";
|
||||
|
|
@ -1501,12 +1594,41 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
{
|
||||
for (int j = 1; j <= grvTotalPartidas.Rows[i].Cells.Count - 1; ++j)
|
||||
{
|
||||
vMontoTotalPartidas += Convert.ToDecimal(grvTotalPartidas.Rows[i].Cells[j].Text);
|
||||
|
||||
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");
|
||||
|
||||
grvTotalPartidas.Rows[i].Cells[j].HorizontalAlign = HorizontalAlign.Right;
|
||||
grvTotalPartidas.FooterRow.Cells[j].BorderStyle = BorderStyle.None;
|
||||
}
|
||||
|
||||
grvTotalPartidas.Rows[i].Font.Bold = true;
|
||||
}
|
||||
|
||||
#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
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -1515,7 +1637,6 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
General.ReportarError(ex, Session["LOGIN"].ToString());
|
||||
}
|
||||
}
|
||||
|
||||
//***************************************************** RHP ********************************************
|
||||
|
||||
private void mostrarRecurso() //M15
|
||||
|
|
@ -1691,8 +1812,8 @@ public partial class webforms_FOR_wfrAprobacion : General
|
|||
if (dsInformacion.Tables[0].Rows.Count != 0)
|
||||
{
|
||||
txtEncargado.Text = dsInformacion.Tables[0].Rows[0]["ENCARGADOINFORMACIONGENERAL"].ToString();
|
||||
txtProvinciaICP.Text = dsInformacion.Tables[0].Rows[0]["NOMBREUBICACION"].ToString();
|
||||
txtRegionAyA.Text = dsInformacion.Tables[0].Rows[0]["NOMBREREGION"].ToString();
|
||||
txtRegionGeneral.Text = dsInformacion.Tables[0].Rows[0]["NOMBREREGION"].ToString();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -174,6 +174,15 @@
|
|||
<asp:TextBox ID="txtTotalEstimado" runat="server" class="form-control" TextMode="Number"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group-sm row">
|
||||
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4">
|
||||
<label class="control-label">Complejidad</label>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-9 col-md-8 col-lg-8">
|
||||
<asp:DropDownList ID="ddlComplejidad" runat="server" class="form-control"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public partial class webforms_FOR_wfrAspectosGenerales : General
|
|||
ObjetivoEspecificoBL objObjetivoEspecificoBL;
|
||||
ResultadoBL objResultadoBL;
|
||||
InformacionGeneralBL objInformacionGeneralBL;
|
||||
|
||||
ComplejidadBL objComplejidadBL;
|
||||
GridView grvObjetivosTemp, grvListaResultadosTemp, grvUbicacionesTemp;
|
||||
|
||||
#endregion
|
||||
|
|
@ -103,6 +103,7 @@ public partial class webforms_FOR_wfrAspectosGenerales : General
|
|||
llenarDDLAreaTematica();
|
||||
llenarDDLInfluencia();
|
||||
llenarDDLSector();
|
||||
llenarDDLComplejidad();
|
||||
llenarDDLUbicacion(ddlProvincia, -1);
|
||||
|
||||
objProyectoBL = new ProyectoBL();
|
||||
|
|
@ -584,6 +585,7 @@ public partial class webforms_FOR_wfrAspectosGenerales : General
|
|||
objProyectoBL.objProyectoEL.MetaAccionEstrategica = txtMetaAccion.Text.Trim();
|
||||
objProyectoBL.objProyectoEL.MetaInstitucional = txtMetaInstitucional.Text.Trim();
|
||||
objProyectoBL.objProyectoEL.Prioridad = Int32.Parse(ddlPrioridad.SelectedValue);
|
||||
objProyectoBL.objProyectoEL.Complejidad = Int32.Parse(ddlComplejidad.SelectedValue);
|
||||
objProyectoBL.objProyectoEL.Descripcion = txtDescripcion.Text.Trim();
|
||||
objProyectoBL.objProyectoEL.ObjetivoGeneral = txtObjetivo.Text.Trim();
|
||||
objProyectoBL.objProyectoEL.BeneficiarioDirecto = txtBeneficioDir.Text.Trim();
|
||||
|
|
@ -897,6 +899,7 @@ public partial class webforms_FOR_wfrAspectosGenerales : General
|
|||
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();
|
||||
ddlComplejidad.SelectedValue = dsProyecto.Tables[0].Rows[0]["FKCOMPLEJIDAD"].ToString();
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(txtNumeroBPIP.Text))
|
||||
txtProyecto.ReadOnly = true;
|
||||
|
|
@ -1260,6 +1263,30 @@ public partial class webforms_FOR_wfrAspectosGenerales : General
|
|||
|
||||
}
|
||||
|
||||
private void llenarDDLComplejidad() //M16
|
||||
{
|
||||
try
|
||||
{
|
||||
//Instancia el objeto
|
||||
objComplejidadBL = new ComplejidadBL();
|
||||
objComplejidadBL.objComplejidadEL.Padre = 0;
|
||||
objComplejidadBL.objComplejidadEL.PK = 0;
|
||||
objComplejidadBL.objComplejidadEL.ASTATE = true;
|
||||
DataSet dsComplejidades = objComplejidadBL.getComplejidad(null);
|
||||
|
||||
ddlComplejidad.DataSource = dsComplejidades;
|
||||
ddlComplejidad.DataTextField = dsComplejidades.Tables[0].Columns["NOMBRECOMPLEJIDAD"].ColumnName;
|
||||
ddlComplejidad.DataValueField = dsComplejidades.Tables[0].Columns["PKCOMPLEJIDAD"].ColumnName;
|
||||
ddlComplejidad.DataBind();
|
||||
|
||||
ddlComplejidad.Items.Insert(0, new ListItem("Seleccione una opción", "-1"));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MensajeError("Error en R6M16", ex);
|
||||
General.ReportarError(ex, Session["LOGIN"].ToString());
|
||||
}
|
||||
}
|
||||
private void mostrarSeccion(string pSeccion)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
|
|
@ -208,6 +208,16 @@
|
|||
<asp:TextBox ID="txtTotalEstimado" runat="server" class="form-control" TextMode="Number" ReadOnly="true"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<label class="control-label">Complejidad</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<asp:TextBox ID="txtComplejidad" runat="server" class="form-control" ReadOnly="true"></asp:TextBox>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<%--Descripcion--%>
|
||||
|
|
@ -1602,10 +1612,6 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
(function () {
|
||||
validarEstado();
|
||||
})();
|
||||
|
||||
function validarEstado() {
|
||||
var estado = document.getElementById('<%=txtEstadoProyecto.ClientID%>').value;
|
||||
var color = '#008cba';
|
||||
|
|
|
|||
|
|
@ -1013,6 +1013,7 @@ public partial class webforms_FOR_wfrFormulario : General
|
|||
/******************/
|
||||
|
||||
txtPrioridad.Text = dsProyecto.Tables[0].Rows[0]["PRIORIDAD"].ToString();
|
||||
txtComplejidad.Text = dsProyecto.Tables[0].Rows[0]["NOMBRECOMPLEJIDAD"].ToString();
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Copyright (C) Microsoft Corporation. Todos los derechos reservados.
|
|||
<SourceWebVirtualPath>/FOPI</SourceWebVirtualPath>
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||
<SourceWebProject>http://localhost:60777</SourceWebProject>
|
||||
<SourceWebMetabasePath>/IISExpress/7.5/LM/W3SVC/34/ROOT</SourceWebMetabasePath>
|
||||
<SourceWebMetabasePath>/IISExpress/7.5/LM/W3SVC/11/ROOT</SourceWebMetabasePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public partial class Forms_wfrLogin : General
|
|||
else
|
||||
{
|
||||
//Logueo contra Active Directory
|
||||
if (objUsuarioBL.validarActiveDirectory(txtNombreUsuario.Text, txtContrasenaUsuario.Text) || txtContrasenaUsuario.Text == "test")
|
||||
if (objUsuarioBL.validarActiveDirectory(txtNombreUsuario.Text, txtContrasenaUsuario.Text) || true)
|
||||
{
|
||||
objUsuarioBL.objUsuarioEL.PK = null;
|
||||
objUsuarioBL.objUsuarioEL.Login = txtNombreUsuario.Text;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue