diff --git a/SIGPC/ProyectoSIGPC/Bin/Helper.dll b/SIGPC/ProyectoSIGPC/Bin/Helper.dll
index 731dbcf66..114f0939c 100644
Binary files a/SIGPC/ProyectoSIGPC/Bin/Helper.dll and b/SIGPC/ProyectoSIGPC/Bin/Helper.dll differ
diff --git a/SIGPC/ProyectoSIGPC/Bin/Helper.pdb b/SIGPC/ProyectoSIGPC/Bin/Helper.pdb
index be1075767..955ce3f53 100644
Binary files a/SIGPC/ProyectoSIGPC/Bin/Helper.pdb and b/SIGPC/ProyectoSIGPC/Bin/Helper.pdb differ
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx
index 74da6abd6..973462855 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx
@@ -1174,10 +1174,10 @@
|
-
-
-
-
+
+
+
+
|
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
index 87602f0ed..78d06d08d 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioAS.aspx.cs
@@ -734,14 +734,17 @@ public partial class Forms_Trans_frwCriterioAS : General
//txtDiametroPrevista.Enabled = false;
//txtOtrosPrevista.Visible = false;
-
-
+
+
objInspeccionasBL = new inspeccionasBL();
objInspeccionasBL.objinspeccionasEL.FKSOLICITUD = int.Parse(Session["PKSOLICITUD"].ToString());
DataSet dsInspeccion = objInspeccionasBL.listarInspeccionesAS(null);
+
+
+
if (dsInspeccion.Tables[0].Rows.Count != 0)
{
@@ -817,7 +820,15 @@ public partial class Forms_Trans_frwCriterioAS : General
BloquearIntros();
-
+
+ inspeccionapBL objInspeccionBL = new inspeccionapBL();
+ objInspeccionBL.objinspeccionapEL.FKSOLICITUD = int.Parse(Session["PKSOLICITUD"].ToString());
+ DataSet dsInspeccion2 = objInspeccionBL.listarInspecciones(null);
+ if (dsInspeccion2.Tables[0].Rows.Count != 0)
+ {
+ LlenarDatosExistentes(dsInspeccion2);
+ }
+
EjecutarScript("inicializaTab('formulario');");
}
@@ -1353,6 +1364,54 @@ public partial class Forms_Trans_frwCriterioAS : General
}
}
+ public void LlenarDatosExistentes(DataSet dsAguaPotable)
+ {
+ txtSistemaAsociado.Text = dsAguaPotable.Tables[0].Rows[0]["SISTEMAASOCIADOINSPECCIONAP"].ToString();
+ txtLongitud.Text = dsAguaPotable.Tables[0].Rows[0]["LONGUITUDCROQUIS"].ToString();
+ txtLatitud.Text = dsAguaPotable.Tables[0].Rows[0]["LATITUDCROQUIS"].ToString();
+
+
+ rblExisteNis.SelectedValue = dsAguaPotable.Tables[0].Rows[0]["TIENESERVICIOSOLICITUD"].ToString().ToLower();
+ if (rblExisteNis.SelectedValue == "true"){
+ txtNisExistente.Enabled = true;
+ }
+ else
+ {
+ txtNisExistente.Enabled = false;
+ }
+ txtNisExistente.Text = dsAguaPotable.Tables[0].Rows[0]["NUMERONISSOLICITUD"].ToString();
+
+ //2
+ rblEstructuraExistente.SelectedValue = dsAguaPotable.Tables[0].Rows[0]["ESTRUCTURAEXISTENTEINSPECCION"].ToString().ToLower();
+ if (rblEstructuraExistente.SelectedValue == "true")
+ {
+
+ txtTipoEstructuraExistente.Enabled = true;
+ }
+ else
+ {
+
+ txtTipoEstructuraExistente.Enabled = false;
+ }
+
+ txtTipoEstructuraExistente.Text = dsAguaPotable.Tables[0].Rows[0]["TIPOESTRUCTURAINSPECCION"].ToString();
+ //2
+
+ rblExisteDisponibilidad.SelectedValue = dsAguaPotable.Tables[0].Rows[0]["DISPONIBILIDADASOCIADAEXISTENTEINSPECCION"].ToString().ToLower();
+ if (rblExisteDisponibilidad.SelectedValue == "true"){
+ txtDisponibilidadAsociada.Enabled = true;
+ }
+ else
+ {
+ txtDisponibilidadAsociada.Enabled = false;
+ }
+
+ txtDisponibilidadAsociada.Text = dsAguaPotable.Tables[0].Rows[0]["DESCRIPCIONDISPONIBILIDADEXISTENTEINSPECCION"].ToString();
+
+
+
+ }
+
public void habilitarCampos()
{
if (!Request.UrlReferrer.ToString().Contains("frwBusquedaSolicitud"))
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx
index 56fbe3ed3..be761c9d5 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx
@@ -461,24 +461,7 @@
}
- function OtraRazon(r) {
- alert(r + " qweqweqweqw");
- var OtraRazon = document.getElementById('ContenidoFormulario_txtOtraRazon');
- if (r == true) {
- OtraRazon.classList.remove('hidden');
- } else {
- OtraRazon.classList.add('hidden');
- OtraRazon.innerHTML = '';
- }
- }
- if (document.getElementById('ContenidoFormulario_chkId32').checked) {
- alert("qweqwe");
- } else {
- alert();
- }
-
- //alert();
@@ -993,8 +976,8 @@
|
-
-
+
+
|
@@ -1059,9 +1042,11 @@
+
|
-
+ ¿El inmueble cuenta conprevista hacia red existente?:
+
diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
index 3fa3d09a3..ccca8a205 100644
--- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
+++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwCriterioPA.aspx.cs
@@ -600,11 +600,11 @@ public partial class Forms_Trans_frwCriterioPA : General
{
siAP.Visible = true;
divCCH1.Visible = true;
+ txtOtraRazon.Visible = false;
}
else
{
siAP.Visible = false;
-
divCCH1.Visible = false;
divCCH2.Visible = false;
}
@@ -618,6 +618,31 @@ public partial class Forms_Trans_frwCriterioPA : General
EjecutarScript("inicializaTab('formulario');");
}
}
+
+ protected void chkId32_CheckedChanged(object sender, EventArgs e)
+ {
+ try
+ {
+ if (chkId32.Checked == true)
+ {
+ txtOtraRazon.Visible = true;
+ }
+ else
+ {
+ txtOtraRazon.Visible = false;
+ txtOtraRazon.Text = "";
+ }
+ }
+ catch (Exception ex)
+ {
+ MensajeError("Se dio un error.", ex);
+ }
+ finally
+ {
+ EjecutarScript("inicializaTab('formulario');");
+ }
+ }
+
protected void rblExisteCCH_SelectedIndexChanged(object sender, EventArgs e)
{
try
@@ -1198,6 +1223,8 @@ public partial class Forms_Trans_frwCriterioPA : General
chkId30.Enabled = false;
chkId31.Enabled = false;
chkId32.Enabled = false;
+ txtOtraRazon.Enabled = false;
+
rblExisteCCH.Enabled = false;
txtObservacionesExtensionRamal.Enabled = false;
rblUbicacionMedidor.Enabled = false;
@@ -2807,7 +2834,7 @@ public partial class Forms_Trans_frwCriterioPA : General
{
try
{
-
+ txtOtraRazon.Visible = false;
objInspeccionBL = new inspeccionapBL();
//objInspeccionBL.objinspeccionapEL.FKSOLICITUD = int.Parse(Session["PKSOLICITUD"].ToString());
@@ -2931,8 +2958,9 @@ public partial class Forms_Trans_frwCriterioPA : General
chkId31.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 32)
chkId32.Checked = true;
-
txtOtraRazon.Text = dsInspeccion.Tables[0].Rows[0]["DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD"].ToString();
+ txtOtraRazon.Visible = true;
+
}
}
|