')
+ // .attr('target', '_blank')
+ // .prop('href', file.url);
+ // $(data.context.children()[index])
+ // .wrap(link);
+ // } else if (file.error) {
+ // var error = $('').text(file.error);
+ // $(data.context.children()[index])
+ // .append('
')
+ // .append(error);
+ // }
+ // });
+ //}).on('fileuploadfail', function (e, data) {
+ // $.each(data.files, function (index) {
+
+ // var error = $('').text('Error al subir el archivo.');
+ // $(data.context.children()[index])
+ // .append('
')
+ // .append(error);
+ // alert(data.files.name);
+ // ENDREQUEST();
+ // });
+ //}).prop('disabled', !$.support.fileInput)
+ // .parent().addClass($.support.fileInput ? undefined : 'disabled');
+
+//});
+
+
+//$('#tableAdjuntos').on('click', 'button', function () {
+
+// if (!confirm("¿Desea remover el documento?")) return;
+// var data = $('#tableAdjuntos').DataTable().row($(this).parents('tr')).data();
+// model = {
+// Nombre: data[0],
+// Carpeta: 1,
+// }
+
+// var uri = SinortWCF + '/api/RemoverAdjunto';
+// AjaxPostData(uri, model, false, false, null, null, null);
+// var tableAdjuntos = $('#tableAdjuntos').DataTable();
+// tableAdjuntos.row($(this).parents('tr')).remove().draw();
+
+//});
+
+this.AbrirDocumento = function (value) {
+
+ EsRespuesta = true;
+ Nombre = value;
+ var a = '';
+ alert('prueba');
+}
+
+
+$(function () {
+
+ $('#fileupload').fileupload({
+
+ url: AdjuntosDoc + '/FileUploadHandler.ashx?carpeta=1',
+ type: 'POST',
+ add: function (e, data) {
+
+ data.submit();
+ },
+
+ progress: function (e, data) {
+
+ var progress = parseInt(data.loaded / data.total * 100, 10);
+ $('#progress .progress-bar').css(
+ 'width',
+ progress + '%'
+ );
+
+ var tableAdjuntos = $('#tableAdjuntos').DataTable();
+
+ $.each(data.files, function (index, file) {
+ var optionVer = $("#ucbtnVerAdjuntos").html();
+ optionVer = replaceAll("[$Nombre]", file.name, optionVer);
+ var optionRemover = $("#ucbtnRemoverAdjuntos").html();
+
+ tableAdjuntos.row.add(
+ [file.name,
+ optionVer,
+ optionRemover])
+ .draw();
+
+
+ //var node = $('')
+ // .append($('').text(file.name));
+
+
+ //if (!index) {
+ // node
+ // .append('
')
+ // .append(uploadButton.clone(true).data(data));
+ //}
+
+ //node.appendTo(data.context);
+
+
+
+ });
+ },
+
+ success: function (response, status) {
+
+ $('#progress .progress-bar').css(
+ 'width','0%');
+ ENDREQUEST();
+
+ if (response != '') {
+
+
+
+ }
+
+ },
+
+ error: function (error) {
+
+ if (error.status = "200") {
+
+ $('#progress .progress-bar').css(
+ 'width', '0%');
+ ENDREQUEST();
+
+
+ //console.log('success', response);
+
+ if (error.responseText != '') {
+
+ }
+
+ }
+
+ }
+
+ });
+
+});
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml
new file mode 100644
index 000000000..258bdddd7
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ConfirmEmail.cshtml
@@ -0,0 +1,10 @@
+@{
+ ViewBag.Title = "Confirmar correo electrónico";
+}
+
+@ViewBag.Title.
+
+
+ Gracias por confirmar su correo electrónico. @Html.ActionLink("Haga clic aquí para iniciar sesión", "Iniciar sesión", "Cuenta", routeValues: null, htmlAttributes: new { id = "loginLink" })
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml
new file mode 100644
index 000000000..3086bda9a
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginConfirmation.cshtml
@@ -0,0 +1,36 @@
+@model AYA.SlnSinort.Mantenimientos.Models.ExternalLoginConfirmationViewModel
+@{
+ ViewBag.Title = "Registrarse";
+}
+@ViewBag.Title.
+Asocie su cuenta @ViewBag.LoginProvider.
+
+@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
+{
+ @Html.AntiForgeryToken()
+
+ Formulario de asociación
+
+ @Html.ValidationSummary(true, "", new { @class = "text-danger" })
+
+ Se autenticó correctamente con @ViewBag.LoginProvider.
+ Introduzca un nombre de usuario para este sitio y haga clic en el botón Registrar para finalizar
+ el inicio de sesión.
+
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml
new file mode 100644
index 000000000..f376feaf3
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ExternalLoginFailure.cshtml
@@ -0,0 +1,8 @@
+@{
+ ViewBag.Title = "Error de inicio de sesión";
+}
+
+
+ @ViewBag.Title.
+ El inicio de sesión con el servicio no se ha llevado a cabo correctamente.
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml
new file mode 100644
index 000000000..53ecf6a9b
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPassword.cshtml
@@ -0,0 +1,29 @@
+@model AYA.SlnSinort.Mantenimientos.Models.ForgotPasswordViewModel
+@{
+ ViewBag.Title = "¿Olvidó la contraseña?";
+}
+
+@ViewBag.Title.
+
+@using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
+{
+ @Html.AntiForgeryToken()
+ Especifique su correo electrónico.
+
+ @Html.ValidationSummary("", new { @class = "text-danger" })
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml
new file mode 100644
index 000000000..063fffdae
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ForgotPasswordConfirmation.cshtml
@@ -0,0 +1,13 @@
+@{
+ ViewBag.Title = "Confirmación de contraseña olvidada";
+}
+
+
+ @ViewBag.Title.
+
+
+
+ Compruebe el correo electrónico para restablecer la contraseña.
+
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml
new file mode 100644
index 000000000..907341778
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Login.cshtml
@@ -0,0 +1,63 @@
+@using AYA.SlnSinort.Models
+@model LoginViewModel
+@{
+ ViewBag.Title = "Iniciar sesión";
+}
+
+@ViewBag.Title.
+
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml
new file mode 100644
index 000000000..d63ba03b2
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/Register.cshtml
@@ -0,0 +1,41 @@
+@model AYA.SlnSinort.Mantenimientos.Models.RegisterViewModel
+@{
+ ViewBag.Title = "Registrarse";
+}
+
+@ViewBag.Title.
+
+@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
+{
+ @Html.AntiForgeryToken()
+ Cree una cuenta nueva.
+
+ @Html.ValidationSummary("", new { @class = "text-danger" })
+
+
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml
new file mode 100644
index 000000000..caa2c38da
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPassword.cshtml
@@ -0,0 +1,42 @@
+@model AYA.SlnSinort.Mantenimientos.Models.ResetPasswordViewModel
+@{
+ ViewBag.Title = "Restablecer contraseña";
+}
+
+@ViewBag.Title.
+
+@using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
+{
+ @Html.AntiForgeryToken()
+ Restablezca la contraseña.
+
+ @Html.ValidationSummary("", new { @class = "text-danger" })
+ @Html.HiddenFor(model => model.Code)
+
+
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml
new file mode 100644
index 000000000..ebbc12b80
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/ResetPasswordConfirmation.cshtml
@@ -0,0 +1,12 @@
+@{
+ ViewBag.Title = "Confirmación de restablecimiento de contraseña";
+}
+
+
+ @ViewBag.Title.
+
+
+
+ Se restableció la contraseña. @Html.ActionLink("Haga clic aquí para iniciar sesión", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml
new file mode 100644
index 000000000..7648197f8
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/SendCode.cshtml
@@ -0,0 +1,24 @@
+@model AYA.SlnSinort.Mantenimientos.Models.SendCodeViewModel
+@{
+ ViewBag.Title = "Enviar";
+}
+
+@ViewBag.Title.
+
+@using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
+ @Html.AntiForgeryToken()
+ @Html.Hidden("rememberMe", @Model.RememberMe)
+ Enviar código de verificación
+
+
+
+ Seleccione el proveedor de autenticación en dos fases:
+ @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers)
+
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml
new file mode 100644
index 000000000..a1b6536d3
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/VerifyCode.cshtml
@@ -0,0 +1,38 @@
+@model AYA.SlnSinort.Mantenimientos.Models.VerifyCodeViewModel
+@{
+ ViewBag.Title = "Verificar";
+}
+
+@ViewBag.Title.
+
+@using (Html.BeginForm("VerifyCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
+ @Html.AntiForgeryToken()
+ @Html.Hidden("provider", @Model.Provider)
+ @Html.Hidden("rememberMe", @Model.RememberMe)
+ Introducir código de verificación
+
+ @Html.ValidationSummary("", new { @class = "text-danger" })
+
+
+
+}
+
+@section Scripts {
+ @Scripts.Render("~/bundles/jqueryval")
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml
new file mode 100644
index 000000000..d5a96054c
--- /dev/null
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Account/_ExternalLoginsListPartial.cshtml
@@ -0,0 +1,28 @@
+@model AYA.SlnSinort.Models.ExternalLoginListViewModel
+@using Microsoft.Owin.Security
+
+Use otro servicio para iniciar sesión.
+
+@{
+ var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
+ if (loginProviders.Count() == 0) {
+
+
+ No hay servicios de autenticación externos configurados. Consulte este artículo
+ para obtener más información acerca de la configuración de esta aplicación ASP.NET para admitir el inicio de sesión mediante servicios externos.
+
+
+ }
+ else {
+ using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) {
+ @Html.AntiForgeryToken()
+
+
+ @foreach (AuthenticationDescription p in loginProviders) {
+
+ }
+
+
+ }
+ }
+}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/EmisorPN.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/EmisorPN.cshtml
index 9c25007e2..a0a6b19cb 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/EmisorPN.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Catalogos/EmisorPN.cshtml
@@ -57,7 +57,7 @@
@*Descripción*@
-
+
@@ -321,6 +323,119 @@
Remover
+
+
+@*---------------------Adjuntos---------------------------------------------------------*@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Agregar...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @*
*@
+
+
+
+ @*
+
+ Agregar...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Nombre |
+ Archivo |
+ |
+
+
+
+
+
*@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
}
@section scripts{
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml
index c6f2a5a7d..dfb6b700f 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Shared/_Layout.cshtml
@@ -40,6 +40,7 @@
@Scripts.Render("~/bundles/toastr")
@Scripts.Render("~/bundles/jquery-dataTables")
@Scripts.Render("~/bundles/bootstrap-switch")
+ @Scripts.Render("~/bundles/jquery-fileupload")
@* Seccion futuros scripts *@