Avance, vistas LoginExterno y Signup
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C448
This commit is contained in:
parent
e9351c66c7
commit
0c4542f196
9 changed files with 665 additions and 15 deletions
|
|
@ -7411,6 +7411,7 @@
|
||||||
<Content Include="Sinort-Scripts\EstadisticaReporte\FichaTecnica.js" />
|
<Content Include="Sinort-Scripts\EstadisticaReporte\FichaTecnica.js" />
|
||||||
<Content Include="Sinort-Scripts\GotitasNormativas.js" />
|
<Content Include="Sinort-Scripts\GotitasNormativas.js" />
|
||||||
<Content Include="Sinort-Scripts\GotitasPendientes.js" />
|
<Content Include="Sinort-Scripts\GotitasPendientes.js" />
|
||||||
|
<Content Include="Sinort-Scripts\LoginExterno.js" />
|
||||||
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica.js" />
|
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica.js" />
|
||||||
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica\BusquedaFichaTecnica.js" />
|
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica\BusquedaFichaTecnica.js" />
|
||||||
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica\CrearEncuesta.js" />
|
<Content Include="Sinort-Scripts\NormativaReglamentacionTecnica\CrearEncuesta.js" />
|
||||||
|
|
@ -7436,6 +7437,7 @@
|
||||||
<Content Include="Sinort-Scripts\Reporte.js" />
|
<Content Include="Sinort-Scripts\Reporte.js" />
|
||||||
<Content Include="Sinort-Scripts\Rol.js" />
|
<Content Include="Sinort-Scripts\Rol.js" />
|
||||||
<Content Include="Sinort-Scripts\ROTn.js" />
|
<Content Include="Sinort-Scripts\ROTn.js" />
|
||||||
|
<Content Include="Sinort-Scripts\Signup.js" />
|
||||||
<Content Include="Sinort-Scripts\SubCategoriaContenido.js" />
|
<Content Include="Sinort-Scripts\SubCategoriaContenido.js" />
|
||||||
<Content Include="Sinort-Scripts\SubCategoriaGrupoTematico.js" />
|
<Content Include="Sinort-Scripts\SubCategoriaGrupoTematico.js" />
|
||||||
<Content Include="Sinort-Scripts\TareasPendientes.js" />
|
<Content Include="Sinort-Scripts\TareasPendientes.js" />
|
||||||
|
|
@ -7548,6 +7550,8 @@
|
||||||
<Content Include="Views\Reportes\FichaTecnica.cshtml" />
|
<Content Include="Views\Reportes\FichaTecnica.cshtml" />
|
||||||
<Content Include="Views\NormativaReglamentacionTecnica\MisSolicitudesCompra.cshtml" />
|
<Content Include="Views\NormativaReglamentacionTecnica\MisSolicitudesCompra.cshtml" />
|
||||||
<Content Include="Views\Home\Wiki.cshtml" />
|
<Content Include="Views\Home\Wiki.cshtml" />
|
||||||
|
<Content Include="Views\Login\LoginExterno.cshtml" />
|
||||||
|
<Content Include="Views\Login\Signup.cshtml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="App_Data\" />
|
<Folder Include="App_Data\" />
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,17 @@ namespace AYA.SlnSinort.Controllers.Login
|
||||||
InitControllers();
|
InitControllers();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
public ActionResult Signup()
|
||||||
|
{
|
||||||
|
InitControllers();
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
public ActionResult LoginExterno()
|
||||||
|
{
|
||||||
|
InitControllers();
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public JsonResult ObtenerUsuarioAD(LoginJSON model)
|
public JsonResult ObtenerUsuarioAD(LoginJSON model)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Binary file not shown.
136
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/LoginExterno.js
Normal file
136
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/LoginExterno.js
Normal file
|
|
@ -0,0 +1,136 @@
|
||||||
|
var model = {};
|
||||||
|
var username;
|
||||||
|
var fullname;
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
getDataModel();
|
||||||
|
});
|
||||||
|
|
||||||
|
this.getDataModel = function ()
|
||||||
|
{
|
||||||
|
$("#btnRegistro").unbind("click");
|
||||||
|
$("#btnRegistro").click(function () {
|
||||||
|
url = $("#hiddenHref").val();
|
||||||
|
url = url.replace("View", "Signup");
|
||||||
|
url = url.replace("Controller", "Login");
|
||||||
|
|
||||||
|
document.location.href = url;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$('#btnIniciar').keyup(function (e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
validarFormulario();
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#txtContrasena').keyup(function (e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
validarFormulario();
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function validarFormulario() {
|
||||||
|
|
||||||
|
var Contador = 0;
|
||||||
|
|
||||||
|
if ($('#txtUsuarioUnico').val().length > 0) {
|
||||||
|
var usuario = document.getElementById("txtUsuarioUnico").value;
|
||||||
|
var patron = /^[a-zñ]+$/;
|
||||||
|
if (patron.test(usuario)) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($('#txtContrasena').val().length > 0) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Contador >= 2) {
|
||||||
|
enviado = true;
|
||||||
|
ObtenerUsuarioAD();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
toastr.warning('Los campos son obligatorio', Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}//validarFormulario
|
||||||
|
|
||||||
|
$('#txtUsuarioUnico').change(function () {
|
||||||
|
var txtUsuarioUnico = $('#txtUsuarioUnico').val();
|
||||||
|
$('#txtUsuarioUnico').val(txtUsuarioUnico.trim());
|
||||||
|
});
|
||||||
|
|
||||||
|
this.ObtenerUsuarioAD = function () {
|
||||||
|
|
||||||
|
|
||||||
|
var uri = SinorLoginWCF + '/api/ObtenerUsuarioAD';
|
||||||
|
model = {
|
||||||
|
Usuario: $('#txtUsuarioUnico').val(),
|
||||||
|
Contrasena: $('#txtContrasena').val()
|
||||||
|
}
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, true, VerificarUsurarioBD, null, null);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.VerificarUsurarioBD = function (data) {
|
||||||
|
if (data.CodigoRespuesta == 'EXITOSO') {
|
||||||
|
|
||||||
|
|
||||||
|
var uri = SinorLoginWCF + '/api/VerificarUsuarioBD';
|
||||||
|
model = {
|
||||||
|
codigo: data.LoginUsuario
|
||||||
|
}
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, false, IniciarSesion, null, null);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.IniciarSesion = function (data) {
|
||||||
|
if (data.usuario.UsuarioSistema != null) {
|
||||||
|
var ArrayPermisos = [];
|
||||||
|
var lista = data.pantallas;
|
||||||
|
|
||||||
|
$.each(lista, function (key, item) {
|
||||||
|
|
||||||
|
ArrayPermisos.push(item.Descripcion);
|
||||||
|
});
|
||||||
|
|
||||||
|
var uri = server + 'Login/InicioSesion';
|
||||||
|
model = {
|
||||||
|
UserName: data.usuario.UsuarioSistema,
|
||||||
|
UserFullName: data.usuario.NombreUsuario,
|
||||||
|
PermisosUsuario: ArrayPermisos
|
||||||
|
};
|
||||||
|
localStorage['ListaOpciones'] = ArrayPermisos;
|
||||||
|
url = $("#hiddenHref").val();
|
||||||
|
url = url.replace("View", "Index");
|
||||||
|
url = url.replace("Controller", "Home");
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: uri,
|
||||||
|
data: JSON.stringify(model),
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
dataType: "json",
|
||||||
|
success: function () {
|
||||||
|
document.location.href = url;
|
||||||
|
},
|
||||||
|
error: function () {
|
||||||
|
|
||||||
|
document.location.href = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
ENDREQUEST();
|
||||||
|
toastr.warning('No se ha obtenido los datos del usuario', Message_Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -248,7 +248,11 @@ this.getDataModel = function () {
|
||||||
|
|
||||||
if (EsPromotor == false && Participa == true || EsPromotor == true) {
|
if (EsPromotor == false && Participa == true || EsPromotor == true) {
|
||||||
$("#divRespuestaMatriz").empty();
|
$("#divRespuestaMatriz").empty();
|
||||||
$("#lblComentarioMatriz").text("Comentario");
|
$("#lblAsuntoM").text("*Asunto");
|
||||||
|
$("#lblCapitulo").text("*Capítulo");
|
||||||
|
$("#lblApartado").text("*Apartado");
|
||||||
|
$("#lblTextoOriginal").text("*Texto Original");
|
||||||
|
$("#lblComentarioMatriz").text("*Comentario");
|
||||||
$("#txtAsuntoMatriz").val('');
|
$("#txtAsuntoMatriz").val('');
|
||||||
$("#txtComentarioMatriz").val('');
|
$("#txtComentarioMatriz").val('');
|
||||||
$("#txtCapituloMatriz").val('');
|
$("#txtCapituloMatriz").val('');
|
||||||
|
|
@ -256,6 +260,11 @@ this.getDataModel = function () {
|
||||||
$("#txtTextoOriginal").val('');
|
$("#txtTextoOriginal").val('');
|
||||||
$("#txtTextoPropuesto").val('');
|
$("#txtTextoPropuesto").val('');
|
||||||
$('#btnVerAdjuntosMatriz').prop("disabled", false);
|
$('#btnVerAdjuntosMatriz').prop("disabled", false);
|
||||||
|
$('#txtAsuntoMatriz').attr('readonly', false);
|
||||||
|
$('#txtCapituloMatriz').attr('readonly', false);
|
||||||
|
$('#txtApartadoMatriz').attr('readonly', false);
|
||||||
|
$('#txtTextoOriginal').attr('readonly', false);
|
||||||
|
$('#txtTextoPropuesto').attr('readonly', false);
|
||||||
EsRespuesta = false;
|
EsRespuesta = false;
|
||||||
$('#modalElemento-footer').css("display", "block");
|
$('#modalElemento-footer').css("display", "block");
|
||||||
$('#modalElemento').modal('show');
|
$('#modalElemento').modal('show');
|
||||||
|
|
@ -1013,6 +1022,10 @@ this.VerDetalleAporte = function (IdComentario, IdTipoComentario) {
|
||||||
|
|
||||||
if (IdTipoComentario == Comentarios.Matriz.Codigo) {
|
if (IdTipoComentario == Comentarios.Matriz.Codigo) {
|
||||||
$("#divRespuestaMatriz").empty();
|
$("#divRespuestaMatriz").empty();
|
||||||
|
$("#lblAsuntoM").text("Asunto");
|
||||||
|
$("#lblCapitulo").text("Capítulo");
|
||||||
|
$("#lblApartado").text("Apartado");
|
||||||
|
$("#lblTextoOriginal").text("Texto Original");
|
||||||
$("#lblComentarioMatriz").text("Comentario");
|
$("#lblComentarioMatriz").text("Comentario");
|
||||||
$("#txtAsuntoMatriz").val(comentario.Asunto);
|
$("#txtAsuntoMatriz").val(comentario.Asunto);
|
||||||
$("#txtComentarioMatriz").val(comentario.Comentario);
|
$("#txtComentarioMatriz").val(comentario.Comentario);
|
||||||
|
|
@ -1023,6 +1036,11 @@ this.VerDetalleAporte = function (IdComentario, IdTipoComentario) {
|
||||||
$('#modalElemento-footer').css("display", "none");
|
$('#modalElemento-footer').css("display", "none");
|
||||||
$('#modalElemento').modal('show');
|
$('#modalElemento').modal('show');
|
||||||
$('#btnVerAdjuntosMatriz').prop("disabled", true);
|
$('#btnVerAdjuntosMatriz').prop("disabled", true);
|
||||||
|
$('#txtAsuntoMatriz').attr('readonly', true);
|
||||||
|
$('#txtCapituloMatriz').attr('readonly', true);
|
||||||
|
$('#txtApartadoMatriz').attr('readonly', true);
|
||||||
|
$('#txtTextoOriginal').attr('readonly', true);
|
||||||
|
$('#txtTextoPropuesto').attr('readonly', true);
|
||||||
CargarDocumentosMatriz(comentario.IdDocumento);
|
CargarDocumentosMatriz(comentario.IdDocumento);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1143,12 +1161,22 @@ this.ResponderComentarioMatriz = function (IdComentario) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#lblComentarioMatriz").text("Respuesta");
|
$("#lblComentarioMatriz").text("Respuesta");
|
||||||
$("#txtAsuntoMatriz").val('');
|
$("#lblAsuntoM").text("Asunto");
|
||||||
|
$("#lblCapitulo").text("Capítulo");
|
||||||
|
$("#lblApartado").text("Apartado");
|
||||||
|
$("#lblTextoOriginal").text("Texto Original");
|
||||||
|
$("#txtAsuntoMatriz").val(comentario.Asunto);
|
||||||
$("#txtComentarioMatriz").val('');
|
$("#txtComentarioMatriz").val('');
|
||||||
$("#txtCapituloMatriz").val('');
|
$("#txtCapituloMatriz").val(comentario.Capitulo);
|
||||||
$("#txtApartadoMatriz").val('');
|
$("#txtApartadoMatriz").val(comentario.Apartado);
|
||||||
$("#txtTextoOriginal").val('');
|
$("#txtTextoOriginal").val(comentario.TextoOriginal);
|
||||||
$("#txtTextoPropuesto").val('');
|
$("#txtTextoPropuesto").val(comentario.TextoPropuesto);
|
||||||
|
$('#txtAsuntoMatriz').attr('readonly', true);
|
||||||
|
$('#txtCapituloMatriz').attr('readonly', true);
|
||||||
|
$('#txtApartadoMatriz').attr('readonly', true);
|
||||||
|
$('#txtTextoOriginal').attr('readonly', true);
|
||||||
|
$('#txtTextoPropuesto').attr('readonly', true);
|
||||||
|
$('#btnVerAdjuntosMatriz').prop("disabled", true);
|
||||||
$('#modalElemento-footer').css("display", "block");
|
$('#modalElemento-footer').css("display", "block");
|
||||||
$('#modalElemento').modal('show');
|
$('#modalElemento').modal('show');
|
||||||
}
|
}
|
||||||
|
|
@ -2420,7 +2448,7 @@ this.ExportarAExcel = function (TipoComentario, filename) {
|
||||||
|
|
||||||
html = html + '<table id="tablaMatriz" border="1" style="width:100%">' +
|
html = html + '<table id="tablaMatriz" border="1" style="width:100%">' +
|
||||||
'<thead>' +
|
'<thead>' +
|
||||||
'<tr style="background-color: #2694D7;">' +
|
'<tr style="background-color: #2694D7; color: white ;">' +
|
||||||
'<th> Asunto </th>' +
|
'<th> Asunto </th>' +
|
||||||
'<th> Capítulo </th>' +
|
'<th> Capítulo </th>' +
|
||||||
'<th> Apartado/Sección/Parráfo </th>' +
|
'<th> Apartado/Sección/Parráfo </th>' +
|
||||||
|
|
@ -2437,10 +2465,10 @@ this.ExportarAExcel = function (TipoComentario, filename) {
|
||||||
$.each(listaComentariosMatriz, function (key, item) {
|
$.each(listaComentariosMatriz, function (key, item) {
|
||||||
html = html + '<tr>'
|
html = html + '<tr>'
|
||||||
html = html + '<td>' + item.Asunto + '</td>'
|
html = html + '<td>' + item.Asunto + '</td>'
|
||||||
html = html + '<td> algo </td>'
|
html = html + '<td>' + item.Capitulo + '</td>'
|
||||||
html = html + '<td> algo </td>'
|
html = html + '<td>' + item.Apartado + '</td>'
|
||||||
html = html + '<td> algo </td>'
|
html = html + '<td>' + item.TextoOriginal + '</td>'
|
||||||
html = html + '<td> algo </td>'
|
html = html + '<td>' + item.TextoPropuesto + '</td>'
|
||||||
html = html + '<td>' + item.Comentario + '</td>';
|
html = html + '<td>' + item.Comentario + '</td>';
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
108
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Signup.js
Normal file
108
AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Signup.js
Normal file
|
|
@ -0,0 +1,108 @@
|
||||||
|
var model = {};
|
||||||
|
var usuario;
|
||||||
|
|
||||||
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
//getDataModel();
|
||||||
|
});
|
||||||
|
this.getDataModel = function () {
|
||||||
|
$("#btnRegistrar").unbind("click");
|
||||||
|
$("#btnRegistrar").click(function () {
|
||||||
|
url = $("#hiddenHref").val();
|
||||||
|
url = url.replace("View", "Signup");
|
||||||
|
url = url.replace("Controller", "Login");
|
||||||
|
|
||||||
|
document.location.href = url;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
$('#btnRegistrar').keyup(function (e) {
|
||||||
|
if (e.which == 13) {
|
||||||
|
validarFormulario();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
function validarFormulario() {
|
||||||
|
|
||||||
|
var Contador = 0;
|
||||||
|
var patron = /^[a-zñA-ZÑ\u00E0-\u00FC]+$/;
|
||||||
|
|
||||||
|
if ($('#txtNombre').val().length > 0) {
|
||||||
|
var usuario = document.getElementById("txtNombre").value;
|
||||||
|
|
||||||
|
if (patron.test(usuario)) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($('#txtApellido1').val().length > 0) {
|
||||||
|
var apellido1 = document.getElementById("txtApellido1").value;
|
||||||
|
if (patron.test(apellido1)) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($('#txtApellido2').val().length > 0) {
|
||||||
|
var apellido2 = document.getElementById("txtApellido2").value;
|
||||||
|
if (patron.test(apellido2)) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($('#txtEmail').val().length > 0) {
|
||||||
|
var email = document.getElementById("txtEmail").value;
|
||||||
|
var caract = new RegExp(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/);
|
||||||
|
|
||||||
|
if (caract.test(email)) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('El email no es valido', Message_Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($('#txtContrasena').val().length > 0) {
|
||||||
|
var password = document.getElementById("txtContrasena").value;
|
||||||
|
if (patron.test(password)) {
|
||||||
|
toastr.warning('No se permiten caracteres especiales en la contraseña', Message_Warning);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($('#txtConfContrasena').val().length > 0){
|
||||||
|
if ($('#txtContrasena').val() == $('#txtConfContrasena').val()) {
|
||||||
|
Contador++;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
toastr.warning('Las contraseñas no coinciden', Message_Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Contador >= 6) {
|
||||||
|
enviado = true;
|
||||||
|
usuario = normalize($('#txtNombre').val().charAt(0).toLowerCase() + $('#txtApellido1').val()).toLowerCase();
|
||||||
|
//ObtenerUsuarioAD();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
toastr.warning('Los campos son obligatorios', Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}//validarFormulario
|
||||||
|
var normalize = (function () {
|
||||||
|
var from = "ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç",
|
||||||
|
to = "AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc",
|
||||||
|
mapping = {};
|
||||||
|
|
||||||
|
for (var i = 0, j = from.length; i < j; i++)
|
||||||
|
mapping[from.charAt(i)] = to.charAt(i);
|
||||||
|
|
||||||
|
return function (str) {
|
||||||
|
var ret = [];
|
||||||
|
for (var i = 0, j = str.length; i < j; i++) {
|
||||||
|
var c = str.charAt(i);
|
||||||
|
if (mapping.hasOwnProperty(str.charAt(i)))
|
||||||
|
ret.push(mapping[c]);
|
||||||
|
else
|
||||||
|
ret.push(c);
|
||||||
|
}
|
||||||
|
return ret.join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
})();
|
||||||
163
AYA.SlnSynor/AYA.SlnSynor/Views/Login/LoginExterno.cshtml
Normal file
163
AYA.SlnSynor/AYA.SlnSynor/Views/Login/LoginExterno.cshtml
Normal file
|
|
@ -0,0 +1,163 @@
|
||||||
|
@{
|
||||||
|
ViewBag.Title = "LoginExterno";
|
||||||
|
Layout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>SINORT</title>
|
||||||
|
<link rel="icon" href="~/dist//imgNormReg1.png" type="image/gif" sizes="16x16" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/bootstrap3.min.css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/Customizacion.css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/Principal.css" />
|
||||||
|
|
||||||
|
@*<script src="~/Scripts/modernizr-2.6.2.js"></script>
|
||||||
|
<script src="~/Scripts/jquery-3.3.1.min.js"></script>
|
||||||
|
<script src="~/Scripts/bootstrap.min.js"></script>
|
||||||
|
<script src="~/Plugin/sweetalert/sweetalert.min.js"></script>*@
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.define {
|
||||||
|
width: 100%;
|
||||||
|
height: 42px;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imgHeader {
|
||||||
|
margin: 25px auto;
|
||||||
|
float: left;
|
||||||
|
margin-left: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4, h5 {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr, td, th {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
|
||||||
|
<div class="contenido">
|
||||||
|
<header class="navbar navbar-default">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<img width="100" src="~/dist/img/logoAyA2.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="col-lg-10" align="center">
|
||||||
|
|
||||||
|
<form id="frmLogin">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-lg-4">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div align="center">
|
||||||
|
<img src="~/dist/img/bannersinort.png" style="margin: 0 auto;" width="300" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<img src="~/dist/img/gota.png" style="margin: 0 auto;" width="100" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table align="center" border="1" width="100%;" style="margin-top: 40px !important; font-size: 13px !important;">
|
||||||
|
<tr style="background-color: #4673d1 !important; color: white;">
|
||||||
|
<td id="uno" colspan="2" style="text-align: center;">
|
||||||
|
<label style="font-size: 13px !important;"> Ingreso al Sistema</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">
|
||||||
|
<label style="font-size: 13px !important;"> Usuario:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdNombre">
|
||||||
|
<input type="text" placeholder="Usuario" name="Usuario" id="txtUsuarioUnico" required
|
||||||
|
class="form-control" pattern="[a-zñ]+" maxlength="25" title="Sólo se permiten letras minúsculas y sin espacios." style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Contraseña:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdSiglas">
|
||||||
|
<input type="password" placeholder="Contraseña" name="Contrasena" id="txtContrasena" required class="form-control"
|
||||||
|
maxlength="25" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<button id="btnIniciar" type="button" class="btn btn-primary" style="margin-top: 5px; margin-left: 215px; background-color: #4673d1 !important; text-transform: none !important; font-size: 13px !important;" onclick="validarFormulario();">
|
||||||
|
Iniciar sesión
|
||||||
|
</button>
|
||||||
|
<strong><a href="#" style="float:right; margin-top: 15px;">Recuperar contraseña</a></strong>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<div>
|
||||||
|
<button id="btnRegistro" type="button" class="btn btn-primary btn-lg btn-block" style="margin-top: 15px; background-color: #4673d1 !important; text-transform: none !important; font-size: 13px !important; float: left">
|
||||||
|
No tienes cuenta? Registrarse aquí
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
@*<footer class="footer">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
<p>SINORT | Costa Rica | Copyright © @DateTime.Now.Year</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>*@
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
@Styles.Render("~/Content/themes/base/css")
|
||||||
|
@Styles.Render("~/Content/sinort-css")
|
||||||
|
@Scripts.Render("~/bundles/modernizr")
|
||||||
|
@Scripts.Render("~/bundles/jquery")
|
||||||
|
@Scripts.Render("~/bundles/bootstrap")
|
||||||
|
@Scripts.Render("~/bundles/jqueryui")
|
||||||
|
@Scripts.Render("~/bundles/jqueryval")
|
||||||
|
@Scripts.Render("~/bundles/moment")
|
||||||
|
@Scripts.Render("~/bundles/toastr")
|
||||||
|
@Scripts.Render("~/Script-Global")
|
||||||
|
@Scripts.Render("~/Sinort-Scripts/LoginExterno.js")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
200
AYA.SlnSynor/AYA.SlnSynor/Views/Login/Signup.cshtml
Normal file
200
AYA.SlnSynor/AYA.SlnSynor/Views/Login/Signup.cshtml
Normal file
|
|
@ -0,0 +1,200 @@
|
||||||
|
|
||||||
|
@{
|
||||||
|
ViewBag.Title = "Signup";
|
||||||
|
Layout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>SINORT</title>
|
||||||
|
<link rel="icon" href="~/dist//imgNormReg1.png" type="image/gif" sizes="16x16" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/bootstrap3.min.css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/Customizacion.css" />
|
||||||
|
<link type="text/css" rel="stylesheet" href="~/Content/Principal.css" />
|
||||||
|
|
||||||
|
@*<script src="~/Scripts/modernizr-2.6.2.js"></script>
|
||||||
|
<script src="~/Scripts/jquery-3.3.1.min.js"></script>
|
||||||
|
<script src="~/Scripts/bootstrap.min.js"></script>
|
||||||
|
<script src="~/Plugin/sweetalert/sweetalert.min.js"></script>*@
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.define {
|
||||||
|
width: 100%;
|
||||||
|
height: 42px;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imgHeader {
|
||||||
|
margin: 25px auto;
|
||||||
|
float: left;
|
||||||
|
margin-left: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4, h5 {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr, td, th {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
|
||||||
|
<div class="contenido">
|
||||||
|
<header class="navbar navbar-default">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<img width="100" src="~/dist/img/logoAyA2.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="col-lg-10" align="center">
|
||||||
|
|
||||||
|
<form id="frmLogin">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-lg-4">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div align="center">
|
||||||
|
<img src="~/dist/img/bannersinort.png" style="margin: 0 auto;" width="300" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<img src="~/dist/img/gota.png" style="margin: 0 auto;" width="100" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table align="center" border="1" width="100%;" style="margin-top: 40px !important; font-size: 13px !important;">
|
||||||
|
<tr style="background-color: #4673d1 !important; color: white;">
|
||||||
|
<td id="uno" colspan="2" style="text-align: center;">
|
||||||
|
<label style="font-size: 13px !important;"> Registro al Sistema</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style ="color: black;">
|
||||||
|
<td colspan="1">
|
||||||
|
<label style="font-size: 13px !important;"> Nombre:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdNombre">
|
||||||
|
<input type="text" name="Nombre" id="txtNombre" required
|
||||||
|
class="form-control" pattern="[a-zñ]+" maxlength="25" title="Sólo se permiten letras minúsculas y sin espacios." style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="color: black;">
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Primer Apellido:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdApellido1">
|
||||||
|
<input type="text" name="Apellido1" id="txtApellido1" required class="form-control"
|
||||||
|
maxlength="25" pattern="[a-zñ]+" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="color: black;">
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Segundo Apellido:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdApellido2">
|
||||||
|
<input type="text" name="Apellido2" id="txtApellido2" required class="form-control"
|
||||||
|
maxlength="25" pattern="[a-zñ]+" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="color: black;">
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Email:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdEmail">
|
||||||
|
<input type="email" name="Email" id="txtEmail" required class="form-control"
|
||||||
|
maxlength="200" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="color: black;">
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Contraseña:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdSiglas">
|
||||||
|
<input type="password" name="Contrasena" id="txtContrasena" required class="form-control"
|
||||||
|
maxlength="25" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr style="color: black;">
|
||||||
|
<td>
|
||||||
|
<label style="font-size: 13px !important;"> Confirmar Contraseña:</label>
|
||||||
|
</td>
|
||||||
|
<td id="tdPass">
|
||||||
|
<input type="password" name="Contrasena2" id="txtConfContrasena" required class="form-control"
|
||||||
|
maxlength="25" style="font-size: 13px !important;">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center">
|
||||||
|
<button id="btnRegistrar" type="button" class="btn btn-primary" style="margin-top: 5px; background-color: #4673d1 !important; text-transform: none !important; font-size: 13px !important;" onclick="validarFormulario();">
|
||||||
|
Registrarse
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer class="footer" style="position: relative; bottom: 0; ">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
<p>SINORT | Costa Rica | Copyright © @DateTime.Now.Year</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
@Styles.Render("~/Content/themes/base/css")
|
||||||
|
@Styles.Render("~/Content/sinort-css")
|
||||||
|
@Scripts.Render("~/bundles/modernizr")
|
||||||
|
@Scripts.Render("~/bundles/jquery")
|
||||||
|
@Scripts.Render("~/bundles/bootstrap")
|
||||||
|
@Scripts.Render("~/bundles/jqueryui")
|
||||||
|
@Scripts.Render("~/bundles/jqueryval")
|
||||||
|
@Scripts.Render("~/bundles/moment")
|
||||||
|
@Scripts.Render("~/bundles/toastr")
|
||||||
|
@Scripts.Render("~/Script-Global")
|
||||||
|
@Scripts.Render("~/Sinort-Scripts/Signup.js")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -750,7 +750,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
|
||||||
|
|
||||||
@*---------------------Asunto ---------------------------------------------------------*@
|
@*---------------------Asunto ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divAsuntoMatriz">
|
<div class="form-group " id="divAsuntoMatriz">
|
||||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Asunto</label>
|
<label class="col-sm-4 control-label ControlsForms" id="lblAsuntoM">Asunto</label>
|
||||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||||
<input name="txtAsuntoMatriz" class="form-control imput-xs" id="txtAsuntoMatriz" type="text" required />
|
<input name="txtAsuntoMatriz" class="form-control imput-xs" id="txtAsuntoMatriz" type="text" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -758,7 +758,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
|
||||||
|
|
||||||
@*---------------------Capitulo ---------------------------------------------------------*@
|
@*---------------------Capitulo ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divCapituloMatriz">
|
<div class="form-group " id="divCapituloMatriz">
|
||||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Capítulo</label>
|
<label class="col-sm-4 control-label ControlsForms" id="lblCapitulo">Capítulo</label>
|
||||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||||
<input name="txtCapituloMatriz" class="form-control imput-xs" id="txtCapituloMatriz" type="text" required />
|
<input name="txtCapituloMatriz" class="form-control imput-xs" id="txtCapituloMatriz" type="text" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -766,7 +766,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
|
||||||
|
|
||||||
@*---------------------Apartado ---------------------------------------------------------*@
|
@*---------------------Apartado ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divApartadoMatriz">
|
<div class="form-group " id="divApartadoMatriz">
|
||||||
<label class="col-sm-4 control-label ControlsForms" id="lblAsunto">Apartado</label>
|
<label class="col-sm-4 control-label ControlsForms" id="lblApartado">Apartado</label>
|
||||||
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
<div class="input-group input-group-sm col-lg-8 col-md-8 col-sm-8 col-xs-8">
|
||||||
<input name="txtApartadoMatriz" class="form-control imput-xs" id="txtApartadoMatriz" type="text" required />
|
<input name="txtApartadoMatriz" class="form-control imput-xs" id="txtApartadoMatriz" type="text" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -778,7 +778,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
|
||||||
|
|
||||||
@*--------------------- Original ---------------------------------------------------------*@
|
@*--------------------- Original ---------------------------------------------------------*@
|
||||||
<div class="form-group " id="divTextoOriginal">
|
<div class="form-group " id="divTextoOriginal">
|
||||||
<label class="col-sm-4 control-label ControlsForms" id="lblcomentario">Texto Original</label>
|
<label class="col-sm-4 control-label ControlsForms" id="lblTextoOriginal">Texto Original</label>
|
||||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||||
<textarea name="txtTextoOriginal" rows="5" cols="45" id="txtTextoOriginal" style="resize: none" required> </textarea>
|
<textarea name="txtTextoOriginal" rows="5" cols="45" id="txtTextoOriginal" style="resize: none" required> </textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue