506 lines
25 KiB
Text
506 lines
25 KiB
Text
<%@ Page Title="Notificación al Cliente" Language="C#" MasterPageFile="~/formulario.master" AutoEventWireup="true" CodeFile="frwNotificacionCliente.aspx.cs" Inherits="Forms_Trans_frwNotificacionCliente" %> <%--Trace="true" %>--%>
|
|
|
|
|
|
<asp:Content ID="BodyContent" ContentPlaceHolderID="ContenidoFormulario" Runat="Server">
|
|
|
|
<script src="../../Scripts/jquery-ui-1.11.4.js"></script>
|
|
<script src="/../../Scripts/toastr.js" type="text/javascript"></script>
|
|
<link href="/../../Content/toastr.css" rel="stylesheet" />
|
|
<script src="/../../Scripts/bootstrap.js"></script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<link href="../../Content/themes/ui-lightness/jquery-ui.css" rel="stylesheet" />
|
|
|
|
<script src="/../../Scripts/jquery.ui.widget.js"></script>
|
|
<script src="/../../Scripts/jquery.fileupload.js"></script>
|
|
<script src="/../../Scripts/jquery.iframe-transport.js"></script>
|
|
|
|
<script src="/../../Scripts/jquery.fileupload-ui.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
function MensajeError(mensaje) {
|
|
toastr["error"](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"
|
|
};
|
|
}
|
|
function MensajeAlerta() {
|
|
toastr["warning"]("Debe seleccionar al menos un requisito.", "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() {
|
|
toastr["success"]("Se guardaron los datos en el sistema.", "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 llamarUpload() {
|
|
ActulalizarUpload();
|
|
}
|
|
function ActulalizarUpload(eliminar) {
|
|
$('.FileUpload').fileupload({
|
|
|
|
url: '/../FileUploadHandler.ashx?upload=start&solicitud=' + $("#ContenidoFormulario_lblNumSolicitud").text() + '&texto=' + $("#ContenidoFormulario_txtdescripcion").val() + '&fkrequisito=' + $("#ContenidoFormulario_ddlRequisito").val() + '&pksolicitud=' + $("#ContenidoFormulario_pksolicitud").val() + '&pkeliminar=' + eliminar + '&origen=adjunto',
|
|
|
|
//url: '/../FileUploadHandler.ashx?upload=start&solicitud=' + $("#ContenidoFormulario_lblNumSolicitud").text() + '&texto=Notificacion' + '&fkrequisito=20' + '&pksolicitud=' + $("#ContenidoFormulario_pksolicitud").val() + '&DOCFISICO=documentofisico',
|
|
|
|
type: 'POST',
|
|
add: function (e, data) {
|
|
//console.log('add', data);
|
|
//$('#progressbar').show();
|
|
data.submit();
|
|
},
|
|
progress: function (e, data) {
|
|
|
|
},
|
|
success: function (response, status) {
|
|
|
|
//console.log('success', response);
|
|
if (response != '') {
|
|
if (response == 'errorEXT') {
|
|
MensajeError("Solo se admiten documentos de tipo pdf.");
|
|
}
|
|
else {
|
|
|
|
//$("#documentosPorSubir").append("<li onclick='return eliminaRegistro(event)'>" + response + "</li>");
|
|
|
|
|
|
}
|
|
|
|
}
|
|
},
|
|
error: function (error) {
|
|
if (error.status = "200") {
|
|
/// $('#progressbar').hide();
|
|
// $('#progressbar div').css('width', '0%');
|
|
//console.log('success', response);
|
|
if (error.responseText != '') {
|
|
if (error.responseText == 'errorEXT') {
|
|
MensajeError("Solo se admiten documentos de tipo pdf.");
|
|
}
|
|
else {
|
|
if (error.responseText == "falloGuardar") {
|
|
MensajeError("Se produjo un error al guardar el archivo.");
|
|
}
|
|
else {
|
|
if (error.responseText == "falloExiste") {
|
|
MensajeError("El archivo ya existe.");
|
|
}
|
|
else {
|
|
$("#documentosPorSubir").append("<li id='" + error.responseText + "' onclick='return eliminaRegistro(this)'>" + error.responseText + "</li>");
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
else {
|
|
|
|
} // console.log('error', error);
|
|
}
|
|
});
|
|
}
|
|
function eliminaRegistro(ev) {
|
|
var datos = {
|
|
pkeliminar: ev.innerText
|
|
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '/../FileUploadHandler.ashx?upload=start&solicitud=' + $("#ContenidoFormulario_lblNumSolicitud").text() + '&pksolicitud=' + $("#ContenidoFormulario_pksolicitud").val() + '&pkeliminar=' + ev.innerText,
|
|
|
|
cache: false,
|
|
data: JSON.stringify(datos),
|
|
contentType: 'application/json; charset=utf-8',
|
|
dataType: 'json',
|
|
success: function (response, status) {
|
|
|
|
if (response.d != '')
|
|
if (response.d == 'errorEXT') {
|
|
alert("Error al eliminar el archivo intente de nuevo.");
|
|
}
|
|
else {
|
|
//alert(response.d);
|
|
//ev.target.parentNode.remove();
|
|
ev.remove();
|
|
}
|
|
},
|
|
}).fail(function (jqxhr, textStatus, error) {
|
|
alert('Se presentó un problema al eliminar el archivo por favor intente de nuevo' + error);
|
|
|
|
}).then(function (value) {
|
|
//alert('entonces');
|
|
});
|
|
//ActulalizarUpload(ev.target.parentNode.innerText);
|
|
|
|
}
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
</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: 100%;
|
|
height: 100%;
|
|
/*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: 99%;
|
|
height: 99%;
|
|
padding: 16px;
|
|
border: 1px solid #000;
|
|
background-color: white;
|
|
z-index:5;
|
|
overflow: auto;
|
|
}
|
|
.white_content_correo {
|
|
display: none;
|
|
position: absolute;
|
|
top: 10%;
|
|
left: 5%;
|
|
width: 99%;
|
|
|
|
padding: 16px;
|
|
border: 1px solid #000;
|
|
background-color: white;
|
|
z-index:5;
|
|
overflow: auto;
|
|
}
|
|
#map {
|
|
width: 600px;
|
|
height: 410px;
|
|
}
|
|
input[type="checkbox"] {
|
|
margin: 10px 0 10px 0;
|
|
display: inline-block !important;
|
|
}
|
|
.nav-tabs > li, .nav-pills > li {
|
|
float:none;
|
|
display:inline-block;
|
|
}
|
|
|
|
.nav-tabs {
|
|
text-align:center;
|
|
}
|
|
#menu {
|
|
float: left;
|
|
left: 50%;
|
|
list-style-type: none;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
position: relative;
|
|
}
|
|
|
|
#menu li {
|
|
float: left;
|
|
position: relative;
|
|
right: 50%;
|
|
}
|
|
.gridViewHeader > th:nth-child(2) {
|
|
text-align: center!important;
|
|
}
|
|
.auto-style1 {
|
|
height: 53px;
|
|
}
|
|
</style>
|
|
|
|
<asp:ScriptManager ID="ScripManager1" EnablePartialRendering="true" EnablePageMethods="True" runat="server">
|
|
</asp:ScriptManager>
|
|
<div id="lightCorreo" class="white_content_correo" width="100%" height="100%" >
|
|
|
|
</div>
|
|
<div id="fadeCorreo" class="black_overlay"></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>Notificación al cliente</legend>
|
|
<%--<asp:Label ID="lblTitulo" runat="server" CssClass="lblTitulo" Text="Seleccionar Inspector"/>--%>
|
|
</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%">
|
|
|
|
<%-- **********************************************************************Datos Inferiores ********************************************************************************* --%> <asp:UpdatePanel ID="updPanel" runat="server">
|
|
<ContentTemplate>
|
|
|
|
<div id="divDatosSuperiores" runat="server" style="width: 100%">
|
|
|
|
|
|
<%--Listado de Datos--%>
|
|
<div id="Div1" runat="server" class="tabla">
|
|
|
|
<div id="Panel7" class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Formulario</h3>
|
|
</div>
|
|
<div id="divDatosInferiores" runat="server" visible="true">
|
|
<%--Consultar--%>
|
|
<div >
|
|
|
|
<table id="tbNotificacion" class="table-responsive">
|
|
<tr>
|
|
<td colspan="2">
|
|
<h4 style="text-align: center; color: #000000;">Número de Solicitud:
|
|
<asp:Label ID="lblNumSolicitud" runat="server" Text="Label"></asp:Label>
|
|
<asp:HiddenField ID="pksolicitud" runat="server" />
|
|
</h4>
|
|
</td>
|
|
<tr>
|
|
<td>Tipo de notificación </td>
|
|
<td>
|
|
<asp:DropDownList ID="ddlTipoRevision" runat="server" AutoPostBack="true" CssClass="ddlS" OnSelectedIndexChanged="ddlTipoRevision_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Correo electrónico" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Teléfono" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Documento fisico" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
|
|
<div id="dvExaminar" runat="server" visible="false">
|
|
<input type="file" id="btnFileUpload" accept="application/pdf" class="FileUpload" onclick="llamarUpload();" name="file" />
|
|
<ul id="documentosPorSubir" class="etiqueta">
|
|
</ul>
|
|
<asp:Button ID="btnSubirarchivo" runat="server" CssClass="botones" OnClick="btnSubirarchivo_Click" Text="Adjuntar" Visible="true" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Teléfono/Correo </td>
|
|
<td>
|
|
<asp:TextBox ID="txtDestinatario" runat="server" CssClass="textBox"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Observaciones </td>
|
|
<td>
|
|
<asp:TextBox ID="txtObservaciones" runat="server" CssClass="textBox" TextMode="MultiLine"></asp:TextBox>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>CFIA </td>
|
|
<td>
|
|
<asp:CheckBox ID="chkCFIA" runat="server" Enabled="false"/>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
<br></br>
|
|
<div class="row">
|
|
<asp:GridView ID="grvListaAdjuntos" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="2" Font-Names="Verdana" Font-Size="16px" GridLines="None" OnPageIndexChanging="grvListaAdjuntos_PageIndexChanging" OnRowCommand="grvListaAdjuntos_RowCommand" OnRowDataBound="grvListaAdjuntos_RowDataBound" PageSize="5" Width="50%">
|
|
<RowStyle BackColor="#EFF3FB" VerticalAlign="Middle" />
|
|
<AlternatingRowStyle BackColor="White" VerticalAlign="Middle" />
|
|
<PagerStyle CssClass="gridViewPaginacion" ForeColor="#44608c" HorizontalAlign="Center" />
|
|
<HeaderStyle CssClass="gridViewHeader" Font-Bold="True" ForeColor="White" />
|
|
<PagerSettings PageButtonCount="25" />
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<%-- <input id="chkHeader" onclick="CheckAllGridViewItems(this);" type="checkbox" name="chkHeader" runat="server" />--%>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<input id="chkItem" type="checkbox" name="chkItem" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="PKADJUNTOSOLICITUD" HeaderText="ID" SortExpression="PKADJUNTOSOLICITUD">
|
|
<HeaderStyle Width="10%" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="NOMBREADJUNTOSOLICITUD" HeaderText="Adjunto">
|
|
<HeaderStyle Width="45%" Wrap="true" />
|
|
<ItemStyle Wrap="true" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="DESCRIPCIONADJUNTOSOLICITUD" HeaderText="Descripcion">
|
|
<HeaderStyle Width="35%" />
|
|
</asp:BoundField>
|
|
<asp:ButtonField ButtonType="Image" CommandName="ver" ImageUrl="~/Images/MiniBotones/ConsultarExpediente.png" />
|
|
<asp:BoundField DataField="NUMEROSOLICITUDSOLICITUD" HeaderText="" SortExpression="NUMEROSOLICITUDSOLICITUD" />
|
|
<asp:BoundField DataField="ENVIOCORREOADJUNTOSOLICITUD" HeaderText="" SortExpression="ENVIOCORREOADJUNTOSOLICITUD" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<asp:Button ID="btnEnviarRevision" runat="server" CssClass="botones" OnClick="btnEnviarRevision_Click" Text="Enviar" />
|
|
<asp:Button ID="btnFinalizar" runat="server" CssClass="botones" OnClick="btnFinalizar_Click" Text="Finalizar" />
|
|
|
|
<br></br>
|
|
<br>
|
|
</br>
|
|
|
|
<br>
|
|
|
|
</br>
|
|
|
|
</div>
|
|
<div style="text-align:left;">
|
|
<asp:GridView ID="grvLista" runat="server" Width="100%" CellPadding="2" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="grvLista_PageIndexChanged" OnRowCommand="grvLista_RowCommand" Font-Names="Verdana" PageSize="3" 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="PKNOTIFICACIONCLIENTE" HeaderText="ID" SortExpression="PKNOTIFICACIONCLIENTE"></asp:BoundField>
|
|
<asp:BoundField DataField="NOMBRECOMPLETO" HeaderText="Funcionario" SortExpression="NOMBRECOMPLETO" Visible="False" />
|
|
<asp:BoundField DataField="DESTINATARIONOTIFICACIONCLIENTE" HeaderText="Receptor" SortExpression="DESTINATARIONOTIFICACIONCLIENTE" >
|
|
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
|
|
</asp:BoundField>
|
|
<asp:BoundField DataField="DESCRIPCIONTIPONOTIFICACIONCLIENTE" HeaderText="Canal" SortExpression="DESCRIPCIONTIPONOTIFICACIONCLIENTE" />
|
|
<asp:BoundField DataField="OBSERVACIONESNOTIFICACIONCLIENTE" HeaderText="Observaciones" SortExpression="OBSERVACIONESNOTIFICACIONCLIENTE" />
|
|
<asp:ButtonField ImageUrl="~/Images/MiniBotones/Volver_a_notificar.png"
|
|
ButtonType="Image" HeaderText="Renotificar" CommandName="renotificar"/>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<%--Botonera Superior--%>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<%-- **********************************************************************Datos Superiores ********************************************************************************* --%>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<%--Listado de Datos--%>
|
|
|
|
<%-- <td class="tabla" id="tdLista" runat="server" align="center">--%>
|
|
<div id="tdLista" runat="server" class="tabla">
|
|
|
|
|
|
</div>
|
|
|
|
<%--Botonera Superior--%>
|
|
|
|
<div id="tdBotoneraSuperior" runat="server" style="text-align:center" class="tabla">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<%--<asp:PostBackTrigger ControlID ="ddlProvincia" />--%>
|
|
|
|
|
|
<%--<asp:AsyncPostBackTrigger ControlID="btnFirmar" EventName="Click" />--%>
|
|
|
|
<%--<asp:AsyncPostBackTrigger ControlID="rblExisteCCH" EventName="SelectedIndexChanged" />
|
|
<asp:AsyncPostBackTrigger ControlID="btnHabilitar" EventName="Click" />--%>
|
|
|
|
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
|