git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C171
This commit is contained in:
parent
da3e08007c
commit
7a7179f83a
3 changed files with 16 additions and 2 deletions
|
|
@ -505,7 +505,7 @@ namespace AYA.SlnSinort.WCF
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
model.DescripcionRespuesta = "El usuario no está registrado..";
|
model.DescripcionRespuesta = "El usuario no está registrado.";
|
||||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,22 +8,25 @@ namespace AYA.SlnSinort.Controllers
|
||||||
{
|
{
|
||||||
public class HomeController : BaseController
|
public class HomeController : BaseController
|
||||||
{
|
{
|
||||||
|
[LoggingFilter]
|
||||||
public ActionResult Index()
|
public ActionResult Index()
|
||||||
{
|
{
|
||||||
InitControllers();
|
InitControllers();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
[LoggingFilter]
|
||||||
public ActionResult Normativa_Reglamentacion_Tecnica()
|
public ActionResult Normativa_Reglamentacion_Tecnica()
|
||||||
{
|
{
|
||||||
InitControllers();
|
InitControllers();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
[LoggingFilter]
|
||||||
public ActionResult Proyecto_Normativo()
|
public ActionResult Proyecto_Normativo()
|
||||||
{
|
{
|
||||||
InitControllers();
|
InitControllers();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
[LoggingFilter]
|
||||||
public ActionResult TareasPendientes()
|
public ActionResult TareasPendientes()
|
||||||
{
|
{
|
||||||
InitControllers();
|
InitControllers();
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,11 @@ function validarFormulario() {
|
||||||
if (Contador >= 2) {
|
if (Contador >= 2) {
|
||||||
enviado = true;
|
enviado = true;
|
||||||
ObtenerUsuarioAD();
|
ObtenerUsuarioAD();
|
||||||
|
} else {
|
||||||
|
toastr.warning('Los campos son obligatorio', Message_Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}//validarFormulario
|
}//validarFormulario
|
||||||
|
|
||||||
$('#txtUsuarioUnico').change(function () {
|
$('#txtUsuarioUnico').change(function () {
|
||||||
|
|
@ -69,6 +72,14 @@ this.VerificarUsurarioBD = function (data) {
|
||||||
|
|
||||||
this.IniciarSesion = function (data) {
|
this.IniciarSesion = function (data) {
|
||||||
|
|
||||||
|
if (data.CodigoRespuesta == 'EXITOSO') {
|
||||||
|
|
||||||
|
toastr.success('Bienvenido', Message_Success);
|
||||||
|
//data.usuario.UsuarioSistema
|
||||||
|
//data.Usuario.NombreUsuario
|
||||||
|
window.location.href = 'http://localhost/AYA.SlnSinort/';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue