From a9b6d3e3f114c522eb680fdcdeca6343c6cae403 Mon Sep 17 00:00:00 2001 From: kledezma Date: Tue, 26 Jan 2021 21:31:13 +0000 Subject: [PATCH] Cambios. KLB git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C520 --- .../Forms/TRA/Validarplanosyfolios.aspx | 638 +++++++++--------- .../Forms/TRA/Validarplanosyfolios.aspx.cs | 78 ++- .../Forms/TRA/frwNuevaSolicitud.aspx | 35 +- .../Forms/TRA/frwNuevaSolicitud.aspx.cs | 35 + .../Forms/TRA/frwProgramacionTrabajo.aspx.cs | 4 +- .../Forms/TRA/frwRequisitosSolicitud.aspx.cs | 24 +- 6 files changed, 446 insertions(+), 368 deletions(-) diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx b/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx index 46bad0075..9cab36b0f 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx @@ -45,10 +45,14 @@ z-index: 5; overflow: auto; } - #MainContent_chkSinFolio,#MainContent_chkDeclaracionPrivada,#MainContent_chkDeclaracionProtocolizada { - display:ruby !important; + + #MainContent_chkSinFolio, #MainContent_chkDeclaracionPrivada, #MainContent_chkDeclaracionProtocolizada { + display: ruby !important; + } + + .hidden { + display: none; } - @@ -123,22 +127,22 @@ <%----%>
- - + +
- - + +
- - + +
- <%--
+ <%--
--%> -
+
<%----%>
@@ -152,23 +156,22 @@
- +
- +
- +
- +
- -
- + +
@@ -177,271 +180,277 @@
+ ValidationExpression="^[A-Za-z]*$"> + ValidationExpression="^[A-Za-z]*$"> +
-
-
- -
-   -
-
- - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- -
-
-
-
-
- - -
- -
-
- -
-
-
-

-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
-
-
- -
-
- -
- <%--
- -
--%> -
- -
- <%--
- -
--%> -
- - -
-
-
-
- <%--
--%> -
-
-
-
- -
-
- - Zona fronteriza - Zona maritimo terrestre - -
-
-
-
- <%--
--%> -
-
-
-
- -
-
- - Fuera de franja fronteriza - -
-
-
-
- <%--
--%> -
-
-
-
- -
-
- -
-
-
-
-
-
-
- -
-
- -
-
- -
-
- -   - -
-
- -
-
-
-
-
-
-
-
-
-
- -
-
- - - - - - -
-
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
-
-
- -
-
- - -
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
-
-
-
- + +
+  
-
- -
-
-   +
+ - + - + - - - + + <%-- + + --%> - - + + + + + + + + + +
+
+
+
+
+ +
+
+
+
-
- -
+ +
+
-
-
-
-
-
- -
-
-   + +
+
+
+

+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+ <%--
+ +
--%> +
+ +
+ <%--
+ +
--%> +
+ + +
+
+
+
+ <%--
--%> +
+
+
+
+ +
+
+ + Zona fronteriza + Zona maritimo terrestre + +
+
+
+
+ <%--
--%> +
+
+
+
+ +
+
+ + Fuera de franja fronteriza + +
+
+
+
+ <%--
--%> +
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+ +   + +
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ + + + + + +
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+ + +
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+   + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+
+
+
+
+ +
+
+   @@ -453,54 +462,54 @@ - + -   -
-
- -   +   +
+
+ +   -
-
-   -
-
-
-
-
-
-

-
-
-
-

-
-

-
-

-
-

-

-

-

-

-

-

+
+
+   +
+
+
+
+
+
+

+
+
+
+

+
+

+
+

+
+

+

+

+

+

+

+

+
+
+
+
+
+
+
+
+
+
+

-
-
-
-
-
-
-
-
-
-
-
- +
@@ -518,23 +527,20 @@
- +
- + <%----%> - - <%-- + + <%-- --%> - - - diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx.cs index 5324b8060..0220f02f1 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx.cs +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/Validarplanosyfolios.aspx.cs @@ -450,7 +450,7 @@ public partial class Forms_TRA_Validarplanosyfolios : General { try { - bool bValidaCampos = false; + bool bValidaCampos = true; if (ddlTipoTerreno.SelectedValue == "5") if (txtconsecutivoag.Text != string.Empty && txtanno.Text != string.Empty && txtCodigoAPT.Text != string.Empty) bValidaCampos = true; @@ -472,6 +472,11 @@ public partial class Forms_TRA_Validarplanosyfolios : General MensajeAlerta("Debe digitar el número de contrato / concesión."); bValidaCampos = false; } + if (txtNumeroPlano.Text == string.Empty) + { + MensajeAlerta("Debe digitar el número de Inmueble"); + bValidaCampos = false; + } string strNumeroTerreno = string.Empty; @@ -592,7 +597,10 @@ public partial class Forms_TRA_Validarplanosyfolios : General { int nPkFolio = 0; - if (ddlProvincia.SelectedValue.ToString() != "-1" && txtConsultaFolio.Text != string.Empty && txtAno.Text != string.Empty || chkSinFolio.Checked == true) + + if (ddlProvincia.SelectedValue.ToString() != "-1" && txtConsultaFolio.Text != string.Empty && txtDuplicado.Text != string.Empty && + txtHorizontal.Text != string.Empty && txtDerecho.Text != string.Empty && + txtAno.Text != string.Empty || chkSinFolio.Checked == true) { if (VerificarFolio(true) == false) { @@ -609,6 +617,9 @@ public partial class Forms_TRA_Validarplanosyfolios : General llenarGridTerreno(); } + divnum5.Visible = true; + divnum6.Visible = true; + btnAgregarTerreno.Visible = true; } else { @@ -616,9 +627,7 @@ public partial class Forms_TRA_Validarplanosyfolios : General } //llenarGridSolicitudFolio(); - divnum5.Visible = true; - divnum6.Visible = true; - btnAgregarTerreno.Visible = true; + } catch (Exception ex) @@ -1293,11 +1302,11 @@ public partial class Forms_TRA_Validarplanosyfolios : General foreach (GridViewRow row in grvFolio.Rows) { - HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; - if (chkTemp != null) + //HtmlInputCheckBox chkTemp = checked; + if (true) { //Si el registro esta marcado guarde - if (chkTemp.Checked) + if (true) { nContador += 1; string strNumeroTerreno = string.Empty; @@ -1308,6 +1317,9 @@ public partial class Forms_TRA_Validarplanosyfolios : General terrenoBL objTerrenoBL = new terrenoBL(); objTerrenoBL.objterrenoEL.NUMEROTERRENO = strNumeroTerreno; + var IDFolio = row.Cells[2].Text; + var NumeroFolio = row.Cells[3].Text; + objTerrenoBL.objterrenoEL.FKFOLIO = int.Parse(row.Cells[2].Text); DataSet ds = objTerrenoBL.dsListarTerrenos(); if (ds.Tables[0].Rows.Count > 0) @@ -1494,16 +1506,16 @@ public partial class Forms_TRA_Validarplanosyfolios : General string strModo = ViewState["MODO"].ToString(); foreach (GridViewRow row in grvFolio.Rows) { - HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; - if (chkTemp != null) - { - //Si el registro esta marcado guarde - if (chkTemp.Checked) - { + //HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; + //if (chkTemp != null) + //{ + // //Si el registro esta marcado guarde + // if (chkTemp.Checked) + // { nContador += 1; nPkFolio = int.Parse(row.Cells[2].Text); - } - } + // } + //} } if (nContador > 1 || nContador == 0) { @@ -1565,16 +1577,16 @@ public partial class Forms_TRA_Validarplanosyfolios : General foreach (GridViewRow row in grvFolio.Rows) { - HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; - if (chkTemp != null) - { - //Si el registro esta marcado guarde - if (chkTemp.Checked) - { + //HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; + //if (chkTemp != null) + //{ + // //Si el registro esta marcado guarde + // if (chkTemp.Checked) + // { nContador += 1; nPkFolio = int.Parse(row.Cells[2].Text); - } - } + // } + //} } if (nContador > 1 || nContador == 0) { @@ -1586,12 +1598,12 @@ public partial class Forms_TRA_Validarplanosyfolios : General foreach (GridViewRow row in grvListaTerrenos.Rows) { - HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; - if (chkTemp != null) - { - //Si el registro esta marcado guarde - if (chkTemp.Checked) - { + //HtmlInputCheckBox chkTemp = (HtmlInputCheckBox)row.Controls[1].Controls[1]; + //if (chkTemp != null) + //{ + // //Si el registro esta marcado guarde + // if (chkTemp.Checked) + // { nContador += 1; nPkTerreno = int.Parse(row.Cells[2].Text); @@ -1644,8 +1656,8 @@ public partial class Forms_TRA_Validarplanosyfolios : General MensajeInformativo("Ya existe un expediente con el plano y folio asignados en proceso."); } - } - } + // } + //} } if (nContador > 1 || nContador == 0) @@ -2232,4 +2244,6 @@ public partial class Forms_TRA_Validarplanosyfolios : General } } } + + } \ No newline at end of file diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx index 7e188a033..e128fa0a8 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx @@ -259,9 +259,13 @@ window.location.href = '../wfrLogin.aspx?sesion=expiro'; } + $("#MainContent_btnGuardar").click( function (e) { + e.preventDefault(); + }) + function VerificarCampos(indice) { var nRespuesta = 1; - // alert(indice); + console.log(indice); if ($("#MainContent_ddlTipoInspeccion").val() == '4' && indice > 1) { MensajeError('Debe seleccionar el tipo de inspección', 'TipoDisponibilidad'); nRespuesta = 0; @@ -281,9 +285,12 @@ if ($("#MainContent_txtApellido1Solicitante").val() == '' || $("#MainContent_txtApellido1Solicitante").val() == 'N/A' && indice > 2) { MensajeError('Debe digitar el apellido del solicitante', 'datosCliente'); nRespuesta = 0; - } + } else if ($("#MainContent_txtApellido2Solicitante").val() == '' || $("#MainContent_txtApellidoSolicitante").val() == 'N/A' && indice > 2) { + MensajeError('Debe digitar el segundo apellido del solicitante', 'datosCliente'); + nRespuesta = 0; + } else - { + { if ($("#MainContent_txtCedulaSolicitante").val() == '' || $("#MainContent_txtCedulaSolicitante").val() == 'N/A' && indice > 2) { MensajeError('Debe digitar la identificación del solicitante', 'datosCliente'); nRespuesta = 0; @@ -291,14 +298,28 @@ else { if ($("#MainContent_rdlTieneServicios").val() == '1' && indice > 2) { + + MensajeError('Debe digitar el número de NIS', 'datosCliente'); + nRespuesta = 0; + } else if ($("#MainContent_rdlTieneServicios_0").is(':checked') && ($("#MainContent_txtNIS").val() == 'N/A' || $("#MainContent_txtNIS").val() == 'n/a' || $("#MainContent_txtNIS").val() == 'N/a' || $("#MainContent_txtNIS").val() == 'n/A' || $("#MainContent_txtNIS").val() == '')) { + MensajeError('Debe digitar el número de NIS', 'datosCliente'); nRespuesta = 0; } + //else if ($('#MainContent_txtTelefono1').val() == '' && indice == 5) { + // MensajeError('Debe ingresar el Número de Teléfono 1', 'datosCliente'); + // nRespuesta = 4; + //} + //else if ($('#MainContent_txtCorreo').val() == '' && indice == 5) { + // MensajeError('Debe ingresar el Correo Electrónico', 'datosCliente'); + // nRespuesta = 4; + //} else { if ($("#MainContent_txtDescripcionUsoEdificaciones").val() == '' && indice > 2) { MensajeError('Debe digitar una especificación del uso de edificaciones o si no aplica digite N/A', 'datosCliente'); nRespuesta = 0; } + else { if ($("#MainContent_txtDireccionExactaPropiedad").val() == '' || $("#MainContent_txtDireccionExactaPropiedad").val() == 'N/A' && indice > 2) { MensajeError('Debe digitar la dirección de la propiedad', 'datosCliente'); @@ -1328,6 +1349,7 @@ +       Fax @@ -1344,13 +1366,14 @@   Correo Electrónico - - + + + - Correo Electrónico + Correo Electrónico 2 diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs index 9f2f0889e..4c1af28e0 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwNuevaSolicitud.aspx.cs @@ -40,6 +40,7 @@ using AyABL.Tran; using AyABL.Usuario; using AyABL.TRA; using AyABL.AUT.Encripta; +using System.Drawing; @@ -452,6 +453,38 @@ public partial class Forms_Trans_frwNuevaSolicitud : General { //modificar el registro de la tabla solicitud poner en true valor temporal + if (txtTelefono1.Text == String.Empty || txtCorreo.Text == String.Empty) + { + if (txtTelefono1.Text == String.Empty) + { + reqTel.Text = "* Campo Obligatorio"; + reqTel.Visible = true; + reqTel.ForeColor = Color.Red; + } + else + { + reqTel.Visible = false; + } + + if (txtCorreo.Text == String.Empty ) + { + reqCorreo.Text = "* Campo Obligatorio"; + reqCorreo.Visible = true; + reqCorreo.ForeColor = Color.Red; + } + else + { + reqCorreo.Visible = false; + + } + + + } + else + { + reqCorreo.Visible = txtCorreo.Text != String.Empty ? false : true; + reqTel.Visible = txtTelefono1.Text != String.Empty ? false : true; + ViewState["MODO"] = "Nuevo"; int pkRegistro = GuardarDatosSolicitud(); if (pkRegistro != -1) @@ -467,6 +500,8 @@ public partial class Forms_Trans_frwNuevaSolicitud : General EjecutarScript("$('#accordion').accordion({active:1});$('#accordion').context.activeElement.id = 'requisitos';limpiarFrame(3);inicializaAcordeon('TipoDisponibilidad','exitoGuardado');"); //MensajeInformativo(AyABL.BASESDEDATOS.ADS + "Interfaz: " + MensajesAplicacion.GuardadoExitoso.ToString()); } + } + //else //{ // EjecutarScript("inicializaAcordeon('TipoDisponibilidad','errorGuardado');"); diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs index 743f6176f..1616d019f 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwProgramacionTrabajo.aspx.cs @@ -382,7 +382,7 @@ public partial class Forms_Trans_frwProgramacionTrabajo : General string strAccion = string.Empty; strAccion = verificarTarea2(); if (strAccion == "aprobar") - { + { GuardarDatosActividad(verificarTarea2()); EjecutarScript("VentanaAbrir();;toastr.success('Se asignó la actividad exitosamente', 'Información',toastr.options ={closeButton: true})"); } @@ -1135,7 +1135,7 @@ public partial class Forms_Trans_frwProgramacionTrabajo : General objNotificacionBL.objnotificacionEL.ID_DOCUMENTO = Session["SOLICITUD"].ToString() + " - Programación de trabajo"; objNotificacionBL.objnotificacionEL.status = "00"; objNotificacionBL.objnotificacionEL.message = "OK"; - nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL); + //nValorRetornado = objNotificacionBL.cancelarNotificacion(objNotificacionBL.objnotificacionEL); GuardarEventoBitacora( Session["LOGIN"].ToString(), AccionBitacora.INSERT.ToString(), diff --git a/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs b/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs index 9753254e7..e4a855865 100644 --- a/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs +++ b/SIGPC/ProyectoSIGPC/Forms/TRA/frwRequisitosSolicitud.aspx.cs @@ -2189,34 +2189,34 @@ protected void grvLista_RowCommand(object sender, GridViewCommandEventArgs e) if (respuestaAPCR.Respuesta == true) { EjecutarScript("MensajeInformativoPersonalizado('Se ha enviado la notificación a APCR para que ellos notifiquen al cliente registrado.');"); - GuardarEventoBitacora( + GuardarEventoBitacora( - Session["LOGIN"].ToString(), + Session["LOGIN"].ToString(), - AccionBitacora.INSERT.ToString(), + AccionBitacora.INSERT.ToString(), - MensajesBitacora.IngresarRegistro + ": Se envió el correo de notificación de requisitos incompletos a APCR, referente a la solcitud " + lblNumSolicitud.Text, + MensajesBitacora.IngresarRegistro + ": Se envió el correo de notificación de requisitos incompletos a APCR, referente a la solcitud " + lblNumSolicitud.Text, - "frwRequisitosSolicitud.aspx", + "frwRequisitosSolicitud.aspx", - Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"]) + Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"]) ); } else { EjecutarScript("MensajeError('Se presento el siguiente problema a la hora de notificar al CFIA: " + respuestaAPCR.DescripcionError + "');"); - GuardarEventoBitacora( + GuardarEventoBitacora( - Session["LOGIN"].ToString(), + Session["LOGIN"].ToString(), - AccionBitacora.INSERT.ToString(), + AccionBitacora.INSERT.ToString(), - MensajesBitacora.IngresarRegistro + ": Se presentó el siguiente problema a la hora de notificar al CFIA" + respuestaAPCR.DescripcionError , + MensajesBitacora.IngresarRegistro + ": Se presentó el siguiente problema a la hora de notificar al CFIA" + respuestaAPCR.DescripcionError , - "frwRequisitosSolicitud.aspx", + "frwRequisitosSolicitud.aspx", - Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"]) + Convert.ToInt32(ConfigurationManager.AppSettings["pkApp"]) ); }