Requerimiento 6 y 7. KLB
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C532
This commit is contained in:
parent
e03be1597b
commit
03bb0a9a50
6 changed files with 102 additions and 30 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -1174,10 +1174,10 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" class="auto-style1"><asp:RadioButtonList ID="rblNuevoServicio" AutoPostBack="true" runat="server" OnSelectedIndexChanged="rblNuevoServicio_SelectedIndexChanged" CssClass="fixWidth" RepeatDirection="Horizontal" RepeatLayout="Table">
|
||||
<asp:ListItem Text="2-1" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="2-2" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="2-3" Value="3"></asp:ListItem>
|
||||
<asp:ListItem Text="2-4" Value="4"></asp:ListItem>
|
||||
<asp:ListItem Text="2-1 (Prevista)" Value="1"></asp:ListItem>
|
||||
<asp:ListItem Text="2-2 (Tierra)" Value="2"></asp:ListItem>
|
||||
<asp:ListItem Text="2-3 (Lastre)" Value="3"></asp:ListItem>
|
||||
<asp:ListItem Text="2-4 (Asfalto/Concreto)" Value="4"></asp:ListItem>
|
||||
<asp:ListItem Text="No aplica" Value="7"></asp:ListItem>
|
||||
|
||||
</asp:RadioButtonList> </td>
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
</script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAlyGomB7ELwey-ccIFw3j0rgvn3FK05kE&libraries=places&callback=initAutocomplete"></script>
|
||||
|
||||
|
|
@ -993,8 +976,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:CheckBox ID="chkId32" runat="server" Text="Otros" onclick="OtraRazon(this.checked);" />
|
||||
<asp:TextBox ID="txtOtraRazon" CssClass="hidden" runat="server" ></asp:TextBox>
|
||||
<asp:CheckBox ID="chkId32" runat="server" Text="Otros" AutoPostBack="true" OnCheckedChanged="chkId32_CheckedChanged" />
|
||||
<asp:TextBox ID="txtOtraRazon" CssClass="" runat="server" ></asp:TextBox>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -1059,9 +1042,11 @@
|
|||
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
¿El inmueble cuenta conprevista hacia red existente?:
|
||||
|
||||
<asp:RadioButtonList ID="rblPrevista" runat="server" RepeatDirection="Vertical" RepeatLayout="Table">
|
||||
<asp:ListItem Text="No prevista" Value="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Prevista" Value="true"></asp:ListItem>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue