TFS_ANTIGUO/SIGPC/ProyectoSIGPC/Forms/TRA/frwFoliosyPlanosSolicitud.aspx
kledezma 7fdadc4709 KLB
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C519
2021-01-22 15:05:35 +00:00

333 lines
16 KiB
Text

<%@ Page Title="Ingreso de Planos y Folios" Language="C#" MasterPageFile="~/formulario.master" AutoEventWireup="true" CodeFile="frwFoliosyPlanosSolicitud.aspx.cs" Inherits="Forms_TRA_frwFoliosyPlanos" %>
<%@ Register Src="~/ControlUsuario/cuwBusquedaList.ascx" TagPrefix="uc1" TagName="cuwBusquedaList" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="ContenidoFormulario" runat="Server">
<script src="/../../Scripts/jquery-1.10.2.js"></script>
<script src="/../../Scripts/toastr.js" type="text/javascript"></script>
<link href="/../../Content/toastr.css" rel="stylesheet" />
<script src="/../../Scripts/bootstrap.js"></script>
<link href="/../../Content/Div.css" rel="stylesheet" />
<script type="text/javascript">
function VentanaAbrir() {
document.getElementById('light').style.display = 'block';
document.getElementById('fade').style.display = 'block';
}
function VentanaCerrar() {
document.getElementById('light').style.display = 'none';
document.getElementById('fade').style.display = 'none'
}
</script>
<script type="text/javascript">
//var x = document.getElementById("ContenidoFormulario_btnReutilizar");
//if (x.addEventListener) {
// x.addEventListener("click", ejecutarClick);
//} else if (x.addEventListener) {
// x.addEventListener("click", darclick);
//}
$(document).ready(function ($) {
$("#dReutilizar").hide();
});
$("#dReutilizar").hide();
function ejecutarClick() {
var boton = document.getElementById('ContenidoFormulario_btnReutilizar');
boton.click();
//// //$('#ContenidoFormulario_btnReutilizar').click(function() {
//// var dataToSend = { MethodName: 'insertarRegistro' };
//// var options =
//// {
//// url: 'frwFoliosyPlanos.aspx?MethodName=insertarRegistro',
//// data: dataToSend,
//// dataType: 'JSON',
//// type: 'POST',
//// success:
//// function (response) {
//// //$("#btnReutilizar").click()
//// }
//// }
//// $.ajax(options);
// //});
//function darclick() {
// var x = document.getElementById('btnReutilizar');
// x.click();
//}
}
function MensajeError() {
toastr["error"]("Debe seleccionar el tipo de proyecto para esta solicitud.", "SIGDD");
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-bottom-full-width",
"preventDuplicates": false,
"onclick": null,
"showDuration": "1300",
"hideDuration": "1000",
"timeOut": "10000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
}
function MensajeAlerta() {
toastr["warning"]("Debe digitar número de Plano.", "SIGDD");
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-bottom-full-width",
"preventDuplicates": false,
"onclick": null,
"showDuration": "1300",
"hideDuration": "1000",
"timeOut": "10000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
}
function MensajeInformativo(mensaje) {
toastr["warning"](mensaje, "SIGDD");
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-bottom-full-width",
"preventDuplicates": false,
"onclick": null,
"showDuration": "1300",
"hideDuration": "1000",
"timeOut": "10000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
}
</script>
<style type="text/css">
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0px;
padding: 0px;
font-family: Verdana;
background: -webkit-radial-gradient(center, ellipse cover rgb(250, 252, 251) 0%, rgb(223, 240, 247) 100%);
}
.black_overlay {
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 90%;
height: 90%;
background-color: black;
z-index: 1;
-moz-opacity: 0.8;
opacity: .80;
filter: alpha(opacity=80);
}
.white_content {
display: none;
position: absolute;
top: 10%;
left: 5%;
width: 40%;
height: 60%;
padding: 16px;
border: 1px solid #000;
background-color: white;
z-index: 5;
overflow: auto;
}
.textBox {
margin-left: 0px;
}
</style>
<asp:ScriptManager ID="ScripManager1" EnablePartialRendering="true" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="updPanel" runat="server">
<ContentTemplate>
<div>
<asp:UpdateProgress ID="updProgress" runat="server">
<ProgressTemplate>
<div>
<div class="espera">
<asp:Image ID="imgEspera" runat="server" ImageUrl="~/Images/Animados/cargando.gif" Style="position: absolute; top: 40%; left: 45%; width: 80px; height: 80px" />
<asp:Label ID="lblEspera" runat="server" Text="Espere... " Style="position: absolute; top: 57%; left: 46%; width: 50px; height: 50px; color: #c8c8c8; font-size: medium; font-weight: 700"></asp:Label>
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<!-- TITULO -->
<div id="divTitulo" align="center">
<legend>Ingreso de Planos y Folios</legend>
<%--<asp:Label ID="lblTitulo" runat="server" CssClass="lblTitulo" Text="Ingreso de Planos y Folios" />--%>
</div>
<!-- INSTRUCCIONES -->
<div id="divInstrucciones">
<asp:Label ID="lblInstrucciones" runat="server" Text="" />
</div>
<!-- SEPARADOR -->
<div id="divSeparador1" class="divSeparador">
</div>
<div align="center" style="width: 100%"></div>
<%--**********************************************************************Datos Superiores ********************************************************************************* --%>
<div id="divDatosSuperiores" runat="server" visible="true">
<%--Consultar --%>
<td colspan="5">
<h4 style="text-align: center; color: #000000;">Número de Solicitud:
<asp:Label ID="lblNumSolicitud" runat="server" Text="Label"></asp:Label>
</h4>
</td>
</tr>
</div>
<div align="center" id="">
<div>
<table class="table table-responsive text-center" aling="center">
<tr>
<td colspan="5">
<asp:TextBox ID="txtConsultaFolio" runat="server" autofocus="autofocus" CssClass="textBox" Height="50px" MaxLength="300" PlaceHolder="FOLIO" Width="300px" />
<%--<asp:Label ID="lblprueba" runat="server" Text="*"></asp:Label>--%>
</td>
<tr>
<%-- <asp:RequiredFieldValidator ID="rfvFolio" runat="server" ControlToValidate="txtConsultaFolio" InitialValue=" ">
Debe digitar número de Folio.
</asp:RequiredFieldValidator>--%>
</tr>
<tr>
<td colspan="5">
<asp:Label ID="lblProvincia" runat="server"></asp:Label>
<asp:DropDownList ID="ddlProvincia" runat="server" CssClass="ddlS" Height="30px" OnSelectedIndexChanged="ddlProvincia_SelectedIndexChanged" Width="50px" />
<asp:Label ID="lblPlano" runat="server"></asp:Label>
<asp:TextBox ID="txtNumeroPlano" runat="server" CssClass="textBox" Height="50px" MaxLength="7" PlaceHolder="PLANO" Width="300px"></asp:TextBox>
<asp:Label ID="lblAno" runat="server"></asp:Label>
<asp:TextBox ID="txtAno" runat="server" CssClass="textBox" Height="30px" Max="3000" min="1900" step="1" TextMode="Number" Width="50px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:RegularExpressionValidator ID="rfvPlano" runat="server" ControlToValidate="txtNumeroPlano" ErrorMessage="Solo se permiten valores numéricos" ValidationExpression="\d+">
</asp:RegularExpressionValidator>
</td>
</tr>
</tr>
</table>
<caption>
<asp:Button ID="btnGuarda" runat="server" OnClick="btnGuardar_Click" Text="Agregar" />
<%-- <asp:Button ID="btnReutilizar" runat="server" OnClick="btnReutilizar_Click" Text="Agregar" Visible="false" />--%>
</caption>
<div id="dReutilizar">
<%-- <asp:Button ID="btnReutilizar" runat="server" OnClick="btnReutilizar_Click" />--%>
<asp:ImageButton ID="btnReutilizar" ImageUrl="~/Images/MiniBotones/btnRefrescar.png" CausesValidation="false" runat="server" OnClick="btnReutilizar_Click" Width="0%" />
</div>
</div>
</div>
<%--Listado de Datos--%>
<td class="table table-responsive text-center" colspan="5" id="tdLista" runat="server" aling="center">
<div id="tdPlano" runat="server" class="tabla table-responsive">
<asp:GridView ID="grvListarPlanos" runat="server" CellPadding="2" GridLines="None" Width="100%" AutoGenerateColumns="false" AllowPaging="true" PageSize="10" OnRowCommand="grvListarPlanos_RowCommand"
OnPageIndexChanging="grvListarPlanos_PageIndexChanging" CssClass="gridViewG" Font-Names="Verdana" Font-Size="16px">
<RowStyle BackColor="#EFF3FB" VerticalAlign="Middle" />
<AlternatingRowStyle BackColor="White" VerticalAlign="Middle" />
<PagerStyle CssClass="gridViewPaginacion" ForeColor="#44608c" HorizontalAlign="Center" />
<HeaderStyle Font-Bold="True" ForeColor="White" CssClass="gridViewHeader" />
<PagerSettings PageButtonCount="25" />
<Columns>
<asp:BoundField DataField="PKPLANOCATASTRADO" HeaderText="ID" SortExpression="PKPLANOCATASTRADO" Visible="true" HeaderStyle-Width="25px" />
<asp:BoundField />
<asp:BoundField />
<asp:BoundField DataField="PLANOCATASTROPLANOCATASTRADO" HeaderText="PLANO" HeaderStyle-Width="350px" HeaderStyle-HorizontalAlign="Center"></asp:BoundField>
<asp:BoundField DataField="USUARIOPLANOCATASTRADO" HeaderText="USUARIO" SortExpression="USUARIOPLANOCATASTRADO" Visible="true">
<HeaderStyle Width="250px" />
</asp:BoundField>
<asp:BoundField DataField="NUMFOLIOREALPLANOCATASTRADO" HeaderText="FOLIO" SortExpression="NUMFOLIOREALPLANOCATASTRADO" Visible="true">
<HeaderStyle Width="200px" />
</asp:BoundField>
<asp:BoundField DataField="FECHAPLANOCATASTRADO" HeaderText="FECHA" SortExpression="FECHAPLANOCATASTRADO" DataFormatString="{0:d}" HeaderStyle-Width="200px" />
<asp:BoundField />
<asp:BoundField DataField="NUMSOLICITUDPLANOCATASTRADO" HeaderText="SOLICITUD" SortExpression="NUMSOLICITUDPLANOCATASTRADO">
<HeaderStyle HorizontalAlign="Center" Width="200px" />
</asp:BoundField>
<asp:ButtonField ImageUrl="~/Images/MiniBotones/btnRemover.png" ButtonType="Image" CommandName="eliminar" Text="fdwer">
<HeaderStyle Width="70px" />
</asp:ButtonField>
</Columns>
<EmptyDataTemplate>
<div class="gridViewVacio">
<div class="gridViewCheck">
</div>
<div class="gridFilaVacia">
<div class="textoGrid">
<asp:Label ID="lblGridView" Text="No se obtuvieron resultados de su búsqueda" runat="server" />
</div>
</div>
</div>
</EmptyDataTemplate>
</asp:GridView>
<div class="detalleGridView">
<div class="Izquierda">
<asp:Label ID="lblTotalDatos" runat="server" Text="Registros: " CssClass="textoDetalleGridView" />
</div>
<div class="Derecha">
<asp:ImageButton ID="btnRefrescar" ImageUrl="~/Images/MiniBotones/btnRefrescar.png" CausesValidation="false" runat="server" OnClick="btnRefrescar_Click" Width="20px" />
</div>
</div>
</div>
<%--Botonera Superior--%>
<%-- <div id="tdBotoneraSuperior" runat="server" style="text-align: right" class="tabla"></div>--%>
</td>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>