Cambios. KLB
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C520
This commit is contained in:
parent
7fdadc4709
commit
a9b6d3e3f1
6 changed files with 446 additions and 368 deletions
|
|
@ -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;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
|
@ -168,7 +172,6 @@
|
|||
</div>
|
||||
|
||||
<div class="col-xs-6 col-md-5 col-sm-6 col-lg-6" style="width: 120px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -177,9 +180,11 @@
|
|||
</div>
|
||||
<div class="separador">
|
||||
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Solo se permiten letras" ControlToValidate="txtDuplicado"
|
||||
ValidationExpression="^[A-Za-z]*$" ></asp:RegularExpressionValidator>
|
||||
ValidationExpression="^[A-Za-z]*$"></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Solo se permiten letras" ControlToValidate="txtHorizontal"
|
||||
ValidationExpression="^[A-Za-z]*$" ></asp:RegularExpressionValidator>
|
||||
ValidationExpression="^[A-Za-z]*$"></asp:RegularExpressionValidator>
|
||||
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Solo se permiten números" ControlToValidate="txtDerecho"
|
||||
ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
|
||||
</div>
|
||||
<div class="Separador"></div>
|
||||
<div class="row">
|
||||
|
|
@ -200,11 +205,15 @@
|
|||
ButtonType="Image" CommandName="borrar" Visible="false"></asp:ButtonField>
|
||||
<asp:TemplateField>
|
||||
|
||||
<ItemTemplate>
|
||||
<%-- <ItemTemplate>
|
||||
<input id="chkItem" type="checkbox" name="chkItem" runat="server" />
|
||||
</ItemTemplate>
|
||||
</ItemTemplate>--%>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="PKFOLIO" HeaderText="ID" SortExpression="PKFOLIO"></asp:BoundField>
|
||||
|
||||
<asp:BoundField DataField="PKFOLIO" Visible="true" HeaderText="ID" SortExpression="PKFOLIO" >
|
||||
<HeaderStyle CssClass="hidden"/>
|
||||
<ItemStyle CssClass="hidden"/>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="NUMEROFOLIO" HeaderText="Folio" SortExpression="NUMEROFOLIO" />
|
||||
|
||||
|
||||
|
|
@ -244,8 +253,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br />
|
||||
<br />
|
||||
<div id="divnum1" runat="server" class="row" visible="false">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
|
|
@ -314,7 +323,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<BR />
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="tabla">
|
||||
<div class="col-lg-4">
|
||||
|
|
@ -356,8 +365,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<BR />
|
||||
<BR />
|
||||
<br />
|
||||
<br />
|
||||
<div id="divnum7" runat="server" class="row" visible="false">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
|
|
@ -370,8 +379,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<BR />
|
||||
<BR />
|
||||
<br />
|
||||
<br />
|
||||
<div id="divnum8" runat="server" class="row" visible="false">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="row">
|
||||
|
|
@ -397,8 +406,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<BR />
|
||||
<BR />
|
||||
<br />
|
||||
<br />
|
||||
<div class="Separador">
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
@ -532,9 +541,6 @@
|
|||
<asp:AsyncPostBackTrigger ControlID="ddlDistrito" EventName="SelectedIndexChanged" />
|
||||
<asp:AsyncPostBackTrigger ControlID="btnAgregarClientes" EventName="Click" />
|
||||
<asp:AsyncPostBackTrigger ControlID="chkSolicitantePropietario" EventName="CheckedChanged" />--%>
|
||||
|
||||
|
||||
|
||||
</Triggers>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -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,6 +285,9 @@
|
|||
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
|
||||
{
|
||||
|
|
@ -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 @@
|
|||
</td>
|
||||
<td class="auto-style7">
|
||||
<asp:TextBox ID="txtTelefono1" runat="server"></asp:TextBox>
|
||||
<asp:Label id="reqTel" Text="" runat="server"/>
|
||||
</td>
|
||||
<td class="auto-style10"> </td>
|
||||
<td class="auto-style11">Fax</td>
|
||||
|
|
@ -1345,12 +1367,13 @@
|
|||
<td class="auto-style11">Correo Electrónico</td>
|
||||
<td class="auto-style7">
|
||||
<asp:TextBox ID="txtCorreo" runat="server"></asp:TextBox>
|
||||
<asp:Label id="reqCorreo" Text="" runat="server"/>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="auto-style6">Correo Electrónico
|
||||
<td class="auto-style6">Correo Electrónico 2
|
||||
</td>
|
||||
<td class="auto-style7">
|
||||
<asp:TextBox ID="txtCorreo2" runat="server"></asp:TextBox>
|
||||
|
|
|
|||
|
|
@ -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');");
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue