parent
807b166cd6
commit
28abaa0055
2 changed files with 62 additions and 42 deletions
|
|
@ -1080,7 +1080,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<asp:RegularExpressionValidator ID="rfvCantidad" ControlToValidate="txtValor" runat="server" ErrorMessage="Solo se permiten valores numéricos" ValidationExpression="\d+"></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="rfvCantidad" ControlToValidate="txtValor" runat="server" ErrorMessage="Solo se permiten valores numéricos" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -1125,7 +1125,7 @@
|
|||
<td class="auto-style6"></td>
|
||||
<td class="auto-style10"></td>
|
||||
<td class="auto-style7">
|
||||
<asp:RegularExpressionValidator ID="rfvCaudalSolicitado" runat="server" ControlToValidate="txtCaudalSolicitado" ValidationExpression="^(-?)(0|([1-9][0-9]*))(\\.[0-9]+)?$" ErrorMessage="Solo se permiten números."></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="rfvCaudalSolicitado" runat="server" ControlToValidate="txtCaudalSolicitado" ValidationExpression="^\d{1,6}(\.\d{1,2})?$" ErrorMessage="Solo se permiten números."></asp:RegularExpressionValidator>
|
||||
</td>
|
||||
|
||||
<td class="auto-style11"></td>
|
||||
|
|
|
|||
|
|
@ -1068,6 +1068,8 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
|||
{
|
||||
|
||||
if (txtCaudalSolicitado.Text != "")
|
||||
{
|
||||
if (txtNivelesConstruccion.Text != "" && txtAreaConstruccion.Text != "" )
|
||||
{
|
||||
objproyectoSolicitudBL = new proyectoSolicitudBL();
|
||||
objproyectoSolicitudBL.objproyectosolicitudEL.FKSOLICITUD = int.Parse(strPKSolicitudTMP);
|
||||
|
|
@ -1108,26 +1110,44 @@ public partial class Forms_Trans_frwNuevaSolicitud : General
|
|||
objVisadoProyectoBL.objvisadoproyectoEL.FKTIPOVISADO = int.Parse(ddlSubClasificacion.SelectedValue);
|
||||
int nValorTipoVisado = objVisadoProyectoBL.insertarVisadoProyecto();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (txtNivelesConstruccion.Text == "")
|
||||
{
|
||||
MensajeAlerta("Debe digitar los niveles de construccion");
|
||||
txtNivelesConstruccion.Focus(); txtCaudalSolicitado.Focus();
|
||||
|
||||
}
|
||||
|
||||
if (txtAreaConstruccion.Text == "")
|
||||
{
|
||||
MensajeAlerta("Debe digitar el area de construccion");
|
||||
txtAreaConstruccion.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//MensajeAlerta("Debe digitar el caudal solicitado");
|
||||
MensajeAlerta("Debe digitar el caudal solicitado");
|
||||
txtCaudalSolicitado.Focus();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//MensajeAlerta("Debe digitar la cantidad");
|
||||
MensajeAlerta("Debe digitar la cantidad");
|
||||
txtValor.Focus();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//MensajeAlerta("Debe seleccionar el tipo de proyecto antes de continuar");
|
||||
MensajeAlerta("Debe seleccionar el tipo de proyecto antes de continuar");
|
||||
ddlTipoProyecto.Focus();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue