This commit is contained in:
jzuniga:1 2018-06-08 19:11:02 +00:00
parent 3ff5453972
commit 87fa27670e
172 changed files with 2069 additions and 1817 deletions

View file

@ -3,42 +3,47 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSynor", "AYA.SlnSynor\AYA.SlnSynor.csproj", "{D672EAD6-E8C6-4374-B149-DED461546905}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinort", "AYA.SlnSynor\AYA.SlnSinort.csproj", "{D672EAD6-E8C6-4374-B149-DED461546905}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSynor.Mantenimientos", "AYA.SlnSynor.Mantenimientos\AYA.SlnSynor.Mantenimientos.csproj", "{A9258A1D-E1D1-48F5-B3A9-FF6E69E1F466}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinort.Mantenimientos", "AYA.SlnSynor.Mantenimientos\AYA.SlnSinort.Mantenimientos.csproj", "{A9258A1D-E1D1-48F5-B3A9-FF6E69E1F466}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSynor.WCF", "AYA.SlnSynor.WCF\AYA.SlnSynor.WCF.csproj", "{5FC0EE2B-8F9C-47E1-823F-C5787A3A3E6E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinort.WCF", "AYA.SlnSynor.WCF\AYA.SlnSinort.WCF.csproj", "{5FC0EE2B-8F9C-47E1-823F-C5787A3A3E6E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSynorModel", "AYA.SlnSynorModel\AYA.SlnSynorModel.csproj", "{9ECD985B-2354-4156-AD6A-3EBD888C0241}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinortModel", "AYA.SlnSynorModel\AYA.SlnSinortModel.csproj", "{9ECD985B-2354-4156-AD6A-3EBD888C0241}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSynorModel.DAL", "AYA.SlnSynorModel.DAL\AYA.SlnSynorModel.DAL.csproj", "{6188D201-EC99-47F0-BCD5-5C48EC354CD5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AYA.SlnSinortModel.DAL", "AYA.SlnSynorModel.DAL\AYA.SlnSinortModel.DAL.csproj", "{6188D201-EC99-47F0-BCD5-5C48EC354CD5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{ADB5B036-4ABE-4320-8B9A-7BAFB4B45202}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Atesa.Utilitarios", "Atesa.Utilitarios\Atesa.Utilitarios.csproj", "{DF92655D-08EA-4E25-A1E1-EE13CB7902D7}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 6
SccNumberOfProjects = 7
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://192.168.1.10:8080/tfs/aya
SccLocalPath0 = .
SccProjectUniqueName1 = AYA.SlnSynor.Mantenimientos\\AYA.SlnSynor.Mantenimientos.csproj
SccProjectName1 = AYA.SlnSynor.Mantenimientos
SccLocalPath1 = AYA.SlnSynor.Mantenimientos
SccProjectUniqueName2 = AYA.SlnSynor.WCF\\AYA.SlnSynor.WCF.csproj
SccProjectName2 = AYA.SlnSynor.WCF
SccLocalPath2 = AYA.SlnSynor.WCF
SccProjectUniqueName3 = AYA.SlnSynor\\AYA.SlnSynor.csproj
SccProjectUniqueName0 = AYA.SlnSynorModel\\AYA.SlnSinortModel.csproj
SccProjectName0 = AYA.SlnSynorModel
SccLocalPath0 = AYA.SlnSynorModel
SccProjectUniqueName1 = AYA.SlnSynorModel.DAL\\AYA.SlnSinortModel.DAL.csproj
SccProjectName1 = AYA.SlnSynorModel.DAL
SccLocalPath1 = AYA.SlnSynorModel.DAL
SccLocalPath2 = .
SccProjectUniqueName3 = AYA.SlnSynor\\AYA.SlnSinort.csproj
SccProjectName3 = AYA.SlnSynor
SccLocalPath3 = AYA.SlnSynor
SccProjectUniqueName4 = AYA.SlnSynorModel.DAL\\AYA.SlnSynorModel.DAL.csproj
SccProjectName4 = AYA.SlnSynorModel.DAL
SccLocalPath4 = AYA.SlnSynorModel.DAL
SccProjectUniqueName5 = AYA.SlnSynorModel\\AYA.SlnSynorModel.csproj
SccProjectName5 = AYA.SlnSynorModel
SccLocalPath5 = AYA.SlnSynorModel
SccProjectUniqueName4 = AYA.SlnSynor.Mantenimientos\\AYA.SlnSinort.Mantenimientos.csproj
SccProjectName4 = AYA.SlnSynor.Mantenimientos
SccLocalPath4 = AYA.SlnSynor.Mantenimientos
SccProjectUniqueName5 = AYA.SlnSynor.WCF\\AYA.SlnSinort.WCF.csproj
SccProjectName5 = AYA.SlnSynor.WCF
SccLocalPath5 = AYA.SlnSynor.WCF
SccProjectUniqueName6 = Atesa.Utilitarios\\Atesa.Utilitarios.csproj
SccProjectName6 = Atesa.Utilitarios
SccLocalPath6 = Atesa.Utilitarios
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -65,6 +70,10 @@ Global
{6188D201-EC99-47F0-BCD5-5C48EC354CD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6188D201-EC99-47F0-BCD5-5C48EC354CD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6188D201-EC99-47F0-BCD5-5C48EC354CD5}.Release|Any CPU.Build.0 = Release|Any CPU
{DF92655D-08EA-4E25-A1E1-EE13CB7902D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DF92655D-08EA-4E25-A1E1-EE13CB7902D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF92655D-08EA-4E25-A1E1-EE13CB7902D7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF92655D-08EA-4E25-A1E1-EE13CB7902D7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View file

@ -12,8 +12,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AYA.SlnSynor.Mantenimientos</RootNamespace>
<AssemblyName>AYA.SlnSynor.Mantenimientos</AssemblyName>
<RootNamespace>AYA.SlnSinort.Mantenimientos</RootNamespace>
<AssemblyName>AYA.SlnSinort.Mantenimientos</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>false</UseIISExpress>
@ -519,7 +519,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>7945</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/AYA.SlnSynor.Mantenimientos</IISUrl>
<IISUrl>http://localhost/AYA.SlnSinort.Mantenimientos</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>

View file

@ -1,7 +1,7 @@
using System.Web;
using System.Web.Optimization;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public class BundleConfig
{

View file

@ -1,7 +1,7 @@
using System.Web;
using System.Web.Mvc;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public class FilterConfig
{

View file

@ -10,9 +10,9 @@ using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Mantenimientos.Models;
using AYA.SlnSinort.Mantenimientos.Models;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public class EmailService : IIdentityMessageService
{

View file

@ -5,7 +5,7 @@ using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public class RouteConfig
{

View file

@ -5,9 +5,9 @@ using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Owin;
using AYA.SlnSynor.Mantenimientos.Models;
using AYA.SlnSinort.Mantenimientos.Models;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public partial class Startup
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public static class WebApiConfig
{

View file

@ -8,9 +8,9 @@ using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Mantenimientos.Models;
using AYA.SlnSinort.Mantenimientos.Models;
namespace AYA.SlnSynor.Mantenimientos.Controllers
namespace AYA.SlnSinort.Mantenimientos.Controllers
{
[Authorize]
public class AccountController : Controller

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace AYA.SlnSynor.Mantenimientos.Controllers
namespace AYA.SlnSinort.Mantenimientos.Controllers
{
public class HomeController : Controller
{

View file

@ -6,9 +6,9 @@ using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Mantenimientos.Models;
using AYA.SlnSinort.Mantenimientos.Models;
namespace AYA.SlnSynor.Mantenimientos.Controllers
namespace AYA.SlnSinort.Mantenimientos.Controllers
{
[Authorize]
public class ManageController : Controller

View file

@ -1 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="AYA.SlnSynor.Mantenimientos.MvcApplication" Language="C#" %>
<%@ Application Codebehind="Global.asax.cs" Inherits="AYA.SlnSinort.Mantenimientos.MvcApplication" Language="C#" %>

View file

@ -7,7 +7,7 @@ using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace AYA.SlnSynor.Mantenimientos
namespace AYA.SlnSinort.Mantenimientos
{
public class MvcApplication : System.Web.HttpApplication
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace AYA.SlnSynor.Mantenimientos.Models
namespace AYA.SlnSinort.Mantenimientos.Models
{
public class ExternalLoginConfirmationViewModel
{

View file

@ -4,7 +4,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace AYA.SlnSynor.Mantenimientos.Models
namespace AYA.SlnSinort.Mantenimientos.Models
{
// Puede agregar datos del perfil del usuario agregando más propiedades a la clase ApplicationUser. Para más información, visite http://go.microsoft.com/fwlink/?LinkID=317594.
public class ApplicationUser : IdentityUser

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
namespace AYA.SlnSynor.Mantenimientos.Models
namespace AYA.SlnSinort.Mantenimientos.Models
{
public class IndexViewModel
{

View file

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante lo siguiente
// conjunto de atributos. Cambie los valores de estos atributos para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("AYA.SlnSynor.Mantenimientos")]
[assembly: AssemblyTitle("AYA.SlnSinort.Mantenimientos")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AYA.SlnSynor.Mantenimientos")]
[assembly: AssemblyProduct("AYA.SlnSinort.Mantenimientos")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -1,8 +1,8 @@
using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(AYA.SlnSynor.Mantenimientos.Startup))]
namespace AYA.SlnSynor.Mantenimientos
[assembly: OwinStartupAttribute(typeof(AYA.SlnSinort.Mantenimientos.Startup))]
namespace AYA.SlnSinort.Mantenimientos
{
public partial class Startup
{

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ExternalLoginConfirmationViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ExternalLoginConfirmationViewModel
@{
ViewBag.Title = "Registrarse";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ForgotPasswordViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ForgotPasswordViewModel
@{
ViewBag.Title = "¿Olvidó la contraseña?";
}

View file

@ -1,4 +1,4 @@
@using AYA.SlnSynor.Mantenimientos.Models
@using AYA.SlnSinort.Mantenimientos.Models
@model LoginViewModel
@{
ViewBag.Title = "Iniciar sesión";

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.RegisterViewModel
@model AYA.SlnSinort.Mantenimientos.Models.RegisterViewModel
@{
ViewBag.Title = "Registrarse";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ResetPasswordViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ResetPasswordViewModel
@{
ViewBag.Title = "Restablecer contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.SendCodeViewModel
@model AYA.SlnSinort.Mantenimientos.Models.SendCodeViewModel
@{
ViewBag.Title = "Enviar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.VerifyCodeViewModel
@model AYA.SlnSinort.Mantenimientos.Models.VerifyCodeViewModel
@{
ViewBag.Title = "Verificar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ExternalLoginListViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ExternalLoginListViewModel
@using Microsoft.Owin.Security
<h4>Use otro servicio para iniciar sesión.</h4>

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.AddPhoneNumberViewModel
@model AYA.SlnSinort.Mantenimientos.Models.AddPhoneNumberViewModel
@{
ViewBag.Title = "Número de teléfono";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ChangePasswordViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ChangePasswordViewModel
@{
ViewBag.Title = "Cambiar contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.IndexViewModel
@model AYA.SlnSinort.Mantenimientos.Models.IndexViewModel
@{
ViewBag.Title = "Gestionar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.ManageLoginsViewModel
@model AYA.SlnSinort.Mantenimientos.Models.ManageLoginsViewModel
@using Microsoft.Owin.Security
@{
ViewBag.Title = "Administrar los inicios de sesión externos";

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.SetPasswordViewModel
@model AYA.SlnSinort.Mantenimientos.Models.SetPasswordViewModel
@{
ViewBag.Title = "Crear contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Mantenimientos.Models.VerifyPhoneNumberViewModel
@model AYA.SlnSinort.Mantenimientos.Models.VerifyPhoneNumberViewModel
@{
ViewBag.Title = "Verificar número de teléfono";
}

View file

@ -17,7 +17,7 @@
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing" />
<add namespace="AYA.SlnSynor.Mantenimientos" />
<add namespace="AYA.SlnSinort.Mantenimientos" />
</namespaces>
</pages>
</system.web.webPages.razor>

View file

@ -12,7 +12,7 @@
<section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
<section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" /><section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" /></sectionGroup></configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSynor.Mantenimientos-20180604035839.mdf;Initial Catalog=aspnet-AYA.SlnSynor.Mantenimientos-20180604035839;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSinort.Mantenimientos-20180604035839.mdf;Initial Catalog=aspnet-AYA.SlnSinort.Mantenimientos-20180604035839;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />

View file

@ -11,8 +11,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AYA.SlnSynor.WCF</RootNamespace>
<AssemblyName>AYA.SlnSynor.WCF</AssemblyName>
<RootNamespace>AYA.SlnSinort.WCF</RootNamespace>
<AssemblyName>AYA.SlnSinort.WCF</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<WcfConfigValidationEnabled>True</WcfConfigValidationEnabled>
<UseIISExpress>false</UseIISExpress>
@ -95,13 +95,13 @@
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AYA.SlnSynorModel.DAL\AYA.SlnSynorModel.DAL.csproj">
<ProjectReference Include="..\AYA.SlnSynorModel.DAL\AYA.SlnSinortModel.DAL.csproj">
<Project>{6188d201-ec99-47f0-bcd5-5c48ec354cd5}</Project>
<Name>AYA.SlnSynorModel.DAL</Name>
<Name>AYA.SlnSinortModel.DAL</Name>
</ProjectReference>
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSynorModel.csproj">
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSinortModel.csproj">
<Project>{9ecd985b-2354-4156-ad6a-3ebd888c0241}</Project>
<Name>AYA.SlnSynorModel</Name>
<Name>AYA.SlnSinortModel</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
@ -119,7 +119,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>7951</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/AYA.SlnSynor.WCF</IISUrl>
<IISUrl>http://localhost/AYA.SlnSinort.WCF</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>

View file

@ -1,5 +1,5 @@
using AYA.SlnSynorModel.BD;
using AYA.SlnSynorModel.Entidades;

using AYA.SlnSinortModel.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
@ -8,7 +8,7 @@ using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace AYA.SlnSynor.WCF
namespace AYA.SlnSinort.WCF
{
// NOTA: puede usar el comando "Rename" del menú "Refactorizar" para cambiar el nombre de interfaz "ISinort" en el código y en el archivo de configuración a la vez.
[ServiceContract]

View file

@ -1,7 +1,7 @@
using AYA.SlnSynorModel.BD;
using AYA.SlnSynorModel.Constantes;
using AYA.SlnSynorModel.DAL.Catalogos;
using AYA.SlnSynorModel.Entidades;

using AYA.SlnSinortModel.Constantes;
using AYA.SlnSinortModel.Entidades;
using AYA.SlnSinortModel.Synort;
using System;
using System.Collections.Generic;
using System.Linq;
@ -9,16 +9,22 @@ using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace AYA.SlnSynor.WCF
namespace AYA.SlnSinort.WCF
{
[ServiceContract]
public interface ISinortCatalogos
{
#region Aplicacion
[OperationContract]
List<Aplicacion> ObtenerAplicacion();
#endregion
#region Emisor
[OperationContract]
List<Emisor> ObtenerEmisor();
[OperationContract]
EmisorPNJSON ObtenerEmisoresPN(EmisorPN model);
[OperationContract]
string InsertarEmisoresPN(EmisorPN model);
BaseJson InsertarActualizarCliente(Emisor model);
#endregion
}
}

View file

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general de un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos atributos para modificar la información
// asociada a un ensamblado.
[assembly: AssemblyTitle("AYA.SlnSynor.WCF")]
[assembly: AssemblyTitle("AYA.SlnSinort.WCF")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AYA.SlnSynor.WCF")]
[assembly: AssemblyProduct("AYA.SlnSinort.WCF")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -1 +1 @@
<%@ ServiceHost Language="C#" Debug="true" Service="AYA.SlnSynor.WCF.Sinort" CodeBehind="Sinort.svc.cs" %>
<%@ ServiceHost Language="C#" Debug="true" Service="AYA.SlnSinort.WCF.Sinort" CodeBehind="Sinort.svc.cs" %>

View file

@ -1,6 +1,6 @@
using AYA.SlnSynorModel.BD;
using AYA.SlnSynorModel.Constantes;
using AYA.SlnSynorModel.Entidades;

using AYA.SlnSinortModel.Constantes;
using AYA.SlnSinortModel.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
@ -9,7 +9,7 @@ using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace AYA.SlnSynor.WCF
namespace AYA.SlnSinort.WCF
{
public class Sinort : ISinort

View file

@ -1 +1 @@
<%@ ServiceHost Language="C#" Debug="true" Service="AYA.SlnSynor.WCF.SinortCatalogos" CodeBehind="SinortCatalogos.svc.cs" %>
<%@ ServiceHost Language="C#" Debug="true" Service="AYA.SlnSinort.WCF.SinortCatalogos" CodeBehind="SinortCatalogos.svc.cs" %>

View file

@ -1,7 +1,7 @@
using AYA.SlnSynorModel.BD;
using AYA.SlnSynorModel.Constantes;
using AYA.SlnSynorModel.DAL.Catalogos;
using AYA.SlnSynorModel.Entidades;
using AYA.SlnSinortModel.Constantes;
using AYA.SlnSinortModel.DAL.Sinort;
using AYA.SlnSinortModel.Entidades;
using AYA.SlnSinortModel.Synort;
using System;
using System.Collections.Generic;
using System.Linq;
@ -9,55 +9,57 @@ using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace AYA.SlnSynor.WCF
namespace AYA.SlnSinort.WCF
{
public class SinortCatalogos : ISinortCatalogos
{
public EmisorPNJSON ObtenerEmisoresPN(EmisorPN model)
{
EmisorPNJSON respuesta = new EmisorPNJSON();
#region Aplicacion
public List<Aplicacion> ObtenerAplicacion()
{
List<Aplicacion> respuesta = null;
try
{
CatalogosDAL DAL = new CatalogosDAL();
respuesta.ListaEmisores = DAL.ObtnerEmisorPN(model);
respuesta.CodigoRespuesta = EnumRespuesta.EXITOSO;
respuesta = new AplicacionDAL().ObtenerAplicacion();
}
catch (Exception ex)
{
respuesta.CodigoRespuesta = EnumRespuesta.FALLIDO;
throw;
}
return respuesta;
}
#endregion
#region Emisor
public List<Emisor> ObtenerEmisor()
{
List<Emisor> respuesta = null;
try
{
respuesta = new EmisorDAL().ObtenerEmisor();
}
catch (Exception ex)
{
throw;
}
return respuesta;
}
public string InsertarEmisoresPN(EmisorPN model)
public BaseJson InsertarActualizarCliente(Emisor model)
{
EmisorPNJSON respuesta = new EmisorPNJSON();
BaseJson respuesta = new BaseJson();
try
{
CatalogosDAL DAL = new CatalogosDAL();
DAL.InsertarActualizarEmisorPN(model);
respuesta.CodigoRespuesta = EnumRespuesta.EXITOSO;
respuesta = new EmisorDAL().InsertarActualizarCliente(model);
}
catch (Exception ex)
{
respuesta.CodigoRespuesta = EnumRespuesta.FALLIDO;
throw;
}
return respuesta.CodigoRespuesta ;
return respuesta;
}
#endregion
}
}

View file

@ -34,7 +34,7 @@
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<bindings>
<wsHttpBinding>
<!--<wsHttpBinding>
<binding name="SOAPBinding" closeTimeout="00:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" bypassProxyOnLocal="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" useDefaultWebProxy="false" allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None">
@ -49,18 +49,18 @@
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
</webHttpBinding>-->
</bindings>
<services>
<service name="AYA.SlnSynor.WCF.SinortCatalogos">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSynor.WCF.ISinortCatalogos" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSynor.WCF.ISinortCatalogos" />
</service>
<service name="AYA.SlnSynor.WCF.Sinort">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSynor.WCF.ISinort" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSynor.WCF.ISinort" />
<!--<service name="AYA.SlnSinort.WCF.SinortCatalogos">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSinort.WCF.ISinortCatalogos" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSinort.WCF.ISinortCatalogos" />
</service>
<service name="AYA.SlnSinort.WCF.Sinort">
<endpoint address="soap" behaviorConfiguration="SOAPBehavior" binding="wsHttpBinding" bindingConfiguration="SOAPBinding" contract="AYA.SlnSinort.WCF.ISinort" />
<endpoint address="api" behaviorConfiguration="JSONBehavior" binding="webHttpBinding" bindingConfiguration="JSONBinding" contract="AYA.SlnSinort.WCF.ISinort" />
</service>-->
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

View file

@ -12,8 +12,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AYA.SlnSynor</RootNamespace>
<AssemblyName>AYA.SlnSynor</AssemblyName>
<RootNamespace>AYA.SlnSinort</RootNamespace>
<AssemblyName>AYA.SlnSinort</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>false</UseIISExpress>
@ -6507,59 +6507,6 @@
<Content Include="Content\bootstrap-reboot.min.css" />
<Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.autoFill.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.autoFill.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.bootstrap.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.colReorder.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.colReorder.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.colVis.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.colvis.jqueryui.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.colVis.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.fixedColumns.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.fixedColumns.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.fixedHeader.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.fixedHeader.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.foundation.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.jqueryui.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.keyTable.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.keyTable.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.scroller.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.scroller.min.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.tableTools.css" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.tableTools.min.css" />
<Content Include="Content\DataTables-1.10.0\css\jquery.dataTables.css" />
<Content Include="Content\DataTables-1.10.0\css\jquery.dataTables.min.css" />
<Content Include="Content\DataTables-1.10.0\css\jquery.dataTables_themeroller.css" />
<Content Include="Content\DataTables-1.10.0\css\jquery.dataTables_themeroller.min.css" />
<Content Include="Content\DataTables-1.10.0\images\background.png" />
<Content Include="Content\DataTables-1.10.0\images\back_disabled.png" />
<Content Include="Content\DataTables-1.10.0\images\back_enabled.png" />
<Content Include="Content\DataTables-1.10.0\images\back_enabled_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\collection.png" />
<Content Include="Content\DataTables-1.10.0\images\collection_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\copy.png" />
<Content Include="Content\DataTables-1.10.0\images\copy_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\csv.png" />
<Content Include="Content\DataTables-1.10.0\images\csv_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\filler.png" />
<Content Include="Content\DataTables-1.10.0\images\forward_disabled.png" />
<Content Include="Content\DataTables-1.10.0\images\forward_enabled.png" />
<Content Include="Content\DataTables-1.10.0\images\forward_enabled_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\insert.png" />
<Content Include="Content\DataTables-1.10.0\images\loading-background.png" />
<Content Include="Content\DataTables-1.10.0\images\pdf.png" />
<Content Include="Content\DataTables-1.10.0\images\pdf_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\print.png" />
<Content Include="Content\DataTables-1.10.0\images\print_hover.png" />
<Content Include="Content\DataTables-1.10.0\images\sort_asc.png" />
<Content Include="Content\DataTables-1.10.0\images\sort_asc_disabled.png" />
<Content Include="Content\DataTables-1.10.0\images\sort_both.png" />
<Content Include="Content\DataTables-1.10.0\images\sort_desc.png" />
<Content Include="Content\DataTables-1.10.0\images\sort_desc_disabled.png" />
<Content Include="Content\DataTables-1.10.0\images\xls.png" />
<Content Include="Content\DataTables-1.10.0\images\xls_hover.png" />
<Content Include="Content\DataTables-1.10.0\swf\copy_csv_xls.swf" />
<Content Include="Content\DataTables-1.10.0\swf\copy_csv_xls_pdf.swf" />
<Content Include="Content\easyui\themes\angular.css" />
<Content Include="Content\easyui\themes\black\accordion.css" />
<Content Include="Content\easyui\themes\black\calendar.css" />
@ -7003,7 +6950,6 @@
<Content Include="Content\jQuery.FileUpload\css\jquery.fileupload.css" />
<Content Include="Content\jQuery.FileUpload\img\loading.gif" />
<Content Include="Content\jQuery.FileUpload\img\progressbar.gif" />
<Content Include="Content\Principal.css" />
<Content Include="Content\simpleAngularUI.css" />
<Content Include="Content\simpleAngularUI.min.css" />
<Content Include="Content\tether\tether-theme-arrows-dark.css" />
@ -7076,7 +7022,6 @@
<Content Include="Content\themes\base\minified\jquery.ui.tooltip.min.css" />
<Content Include="Content\toastr.css" />
<Content Include="Content\toastr.min.css" />
<Content Include="Content\valid.css" />
<Content Include="dist\css\AdminLTE.css" />
<Content Include="dist\css\AdminLTE.min.css" />
<Content Include="dist\css\alt\AdminLTE-bootstrap-social.css" />
@ -7284,27 +7229,6 @@
<Content Include="Scripts\bootstrap.min.js" />
<Content Include="Scripts\Chart.js" />
<Content Include="Scripts\Chart.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.autoFill.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.autoFill.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.bootstrap.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.colReorder.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.colReorder.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.colVis.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.colVis.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.fixedColumns.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.fixedColumns.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.fixedHeader.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.fixedHeader.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.foundation.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.jqueryui.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.keyTable.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.keyTable.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.scroller.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.scroller.min.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.tableTools.js" />
<Content Include="Scripts\DataTables-1.10.0\dataTables.tableTools.min.js" />
<Content Include="Scripts\DataTables-1.10.0\jquery.dataTables.js" />
<Content Include="Scripts\DataTables-1.10.0\jquery.dataTables.min.js" />
<Content Include="Scripts\easyloader.js" />
<Content Include="Scripts\esm\popper-utils.js" />
<Content Include="Scripts\esm\popper-utils.min.js" />
@ -8032,7 +7956,6 @@
<Content Include="Content\easyui\themes\material\images\Thumbs.db" />
<Content Include="Content\toastr.less" />
<Content Include="Content\toastr.scss" />
<Content Include="Content\DataTables-1.10.0\css\dataTables.jqueryui.scss" />
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
<Content Include="Scripts\jquery-3.3.1.js" />
<Content Include="Scripts\jquery-3.3.1.min.js" />
@ -8116,7 +8039,6 @@
<Content Include="Scripts\umd\popper.min.js" />
<Content Include="Scripts\_references.js" />
<Content Include="Sinort-Scripts\AdministrarCatalogos.js" />
<Content Include="Sinort-Scripts\EmisorPN.js" />
<Content Include="Sinort-Scripts\Global.js" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
@ -8179,13 +8101,13 @@
<TypeScriptCompile Include="Scripts\index.d.ts" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AYA.SlnSynorModel.DAL\AYA.SlnSynorModel.DAL.csproj">
<ProjectReference Include="..\AYA.SlnSynorModel.DAL\AYA.SlnSinortModel.DAL.csproj">
<Project>{6188d201-ec99-47f0-bcd5-5c48ec354cd5}</Project>
<Name>AYA.SlnSynorModel.DAL</Name>
<Name>AYA.SlnSinortModel.DAL</Name>
</ProjectReference>
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSynorModel.csproj">
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSinortModel.csproj">
<Project>{9ecd985b-2354-4156-ad6a-3ebd888c0241}</Project>
<Name>AYA.SlnSynorModel</Name>
<Name>AYA.SlnSinortModel</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
@ -8207,7 +8129,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>7944</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/AYA.SlnSynor</IISUrl>
<IISUrl>http://localhost/AYA.SlnSinort</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>

View file

@ -1,7 +1,7 @@
using System.Web;
using System.Web.Optimization;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public class BundleConfig
{

View file

@ -1,7 +1,7 @@
using System.Web;
using System.Web.Mvc;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public class FilterConfig
{

View file

@ -10,9 +10,9 @@ using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Models;
using AYA.SlnSinort.Models;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public class EmailService : IIdentityMessageService
{

View file

@ -5,7 +5,7 @@ using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public class RouteConfig
{

View file

@ -5,9 +5,9 @@ using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Owin;
using AYA.SlnSynor.Models;
using AYA.SlnSinort.Models;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public partial class Startup
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public static class WebApiConfig
{

View file

@ -8,9 +8,9 @@ using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Models;
using AYA.SlnSinort.Models;
namespace AYA.SlnSynor.Controllers
namespace AYA.SlnSinort.Controllers
{
[Authorize]
public class AccountController : Controller

View file

@ -5,7 +5,7 @@ using System.Web;
using System.Web.Mvc;
using System.Configuration;
namespace AYA.SlnSynor.Controllers
namespace AYA.SlnSinort.Controllers
{
public class BaseController : Controller
{

View file

@ -1,11 +1,11 @@
using AYA.SlnSynorModel.BD;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace AYA.SlnSynor.Controllers.Catalogos
namespace AYA.SlnSinort.Controllers.Catalogos
{
public class CatalogosController : BaseController
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace AYA.SlnSynor.Controllers
namespace AYA.SlnSinort.Controllers
{
public class HomeController : BaseController
{

View file

@ -6,9 +6,9 @@ using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AYA.SlnSynor.Models;
using AYA.SlnSinort.Models;
namespace AYA.SlnSynor.Controllers
namespace AYA.SlnSinort.Controllers
{
[Authorize]
public class ManageController : Controller

View file

@ -1 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="AYA.SlnSynor.MvcApplication" Language="C#" %>
<%@ Application Codebehind="Global.asax.cs" Inherits="AYA.SlnSinort.MvcApplication" Language="C#" %>

View file

@ -7,7 +7,7 @@ using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace AYA.SlnSynor
namespace AYA.SlnSinort
{
public class MvcApplication : System.Web.HttpApplication
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace AYA.SlnSynor.Models
namespace AYA.SlnSinort.Models
{
public class ExternalLoginConfirmationViewModel
{

View file

@ -4,7 +4,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace AYA.SlnSynor.Models
namespace AYA.SlnSinort.Models
{
// Puede agregar datos del perfil del usuario agregando más propiedades a la clase ApplicationUser. Para más información, visite http://go.microsoft.com/fwlink/?LinkID=317594.
public class ApplicationUser : IdentityUser

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
namespace AYA.SlnSynor.Models
namespace AYA.SlnSinort.Models
{
public class IndexViewModel
{

View file

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante lo siguiente
// conjunto de atributos. Cambie los valores de estos atributos para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("AYA.SlnSynor")]
[assembly: AssemblyTitle("AYA.SlnSinort")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AYA.SlnSynor")]
[assembly: AssemblyProduct("AYA.SlnSinort")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -117,7 +117,7 @@ function STARTREQUEST (Message) {
stringHtml += "<div id=\"loadingGif\" class=\"toast toast-default\" style=\"font-size:14px;\">";
stringHtml += "<table>";
stringHtml += "<tr>";
stringHtml += "<td><img src=\"/AYA.SlnSynor/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
stringHtml += "<td><img src=\"/AYA.SlnSinort/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
//stringHtml += "<td><i class=\"fa fa-spinner fa-spin fa-4x\"></i></td>";
stringHtml += "<td>&nbsp;&nbsp;</td>";
stringHtml += "<td>";

View file

@ -1,8 +1,8 @@
using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(AYA.SlnSynor.Startup))]
namespace AYA.SlnSynor
[assembly: OwinStartupAttribute(typeof(AYA.SlnSinort.Startup))]
namespace AYA.SlnSinort
{
public partial class Startup
{

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ExternalLoginConfirmationViewModel
@model AYA.SlnSinort.Models.ExternalLoginConfirmationViewModel
@{
ViewBag.Title = "Registrarse";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ForgotPasswordViewModel
@model AYA.SlnSinort.Models.ForgotPasswordViewModel
@{
ViewBag.Title = "¿Olvidó la contraseña?";
}

View file

@ -1,4 +1,4 @@
@using AYA.SlnSynor.Models
@using AYA.SlnSinort.Models
@model LoginViewModel
@{
ViewBag.Title = "Iniciar sesión";

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.RegisterViewModel
@model AYA.SlnSinort.Models.RegisterViewModel
@{
ViewBag.Title = "Registrarse";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ResetPasswordViewModel
@model AYA.SlnSinort.Models.ResetPasswordViewModel
@{
ViewBag.Title = "Restablecer contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.SendCodeViewModel
@model AYA.SlnSinort.Models.SendCodeViewModel
@{
ViewBag.Title = "Enviar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.VerifyCodeViewModel
@model AYA.SlnSinort.Models.VerifyCodeViewModel
@{
ViewBag.Title = "Verificar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ExternalLoginListViewModel
@model AYA.SlnSinort.Models.ExternalLoginListViewModel
@using Microsoft.Owin.Security
<h4>Use otro servicio para iniciar sesión.</h4>

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.AddPhoneNumberViewModel
@model AYA.SlnSinort.Models.AddPhoneNumberViewModel
@{
ViewBag.Title = "Número de teléfono";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ChangePasswordViewModel
@model AYA.SlnSinort.Models.ChangePasswordViewModel
@{
ViewBag.Title = "Cambiar contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.IndexViewModel
@model AYA.SlnSinort.Models.IndexViewModel
@{
ViewBag.Title = "Gestionar";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.ManageLoginsViewModel
@model AYA.SlnSinort.Models.ManageLoginsViewModel
@using Microsoft.Owin.Security
@{
ViewBag.Title = "Administrar los inicios de sesión externos";

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.SetPasswordViewModel
@model AYA.SlnSinort.Models.SetPasswordViewModel
@{
ViewBag.Title = "Crear contraseña";
}

View file

@ -1,4 +1,4 @@
@model AYA.SlnSynor.Models.VerifyPhoneNumberViewModel
@model AYA.SlnSinort.Models.VerifyPhoneNumberViewModel
@{
ViewBag.Title = "Verificar número de teléfono";
}

View file

@ -17,7 +17,7 @@
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing" />
<add namespace="AYA.SlnSynor" />
<add namespace="AYA.SlnSinort" />
</namespaces>
</pages>
</system.web.webPages.razor>

View file

@ -12,7 +12,7 @@
<section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
<section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" /><section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" /></sectionGroup></configSections>
<!--<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSynor-20180604035805.mdf;Initial Catalog=aspnet-AYA.SlnSynor-20180604035805;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSinort-20180604035805.mdf;Initial Catalog=aspnet-AYA.SlnSinort-20180604035805;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>-->
<connectionStrings>
<add name="sinortdb" connectionString="data source=192.168.1.37;initial catalog=PruebaAyA;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
@ -22,8 +22,8 @@
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="SinortWCF" value="http://localhost/AYA.SlnSynor.WCF/Sinort.svc"/>
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSynor.WCF/SinortCatalogos.svc"/>
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc"/>
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc"/>
</appSettings>
<system.web>
<authentication mode="None" />

View file

@ -7,8 +7,8 @@
<ProjectGuid>{6188D201-EC99-47F0-BCD5-5C48EC354CD5}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AYA.SlnSynorModel.DAL</RootNamespace>
<AssemblyName>AYA.SlnSynorModel.DAL</AssemblyName>
<RootNamespace>AYA.SlnSinortModel.DAL</RootNamespace>
<AssemblyName>AYA.SlnSinortModel.DAL</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
@ -52,18 +52,40 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Catalogos\CatalogosDAL.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Sinort\AplicacionDAL.cs" />
<Compile Include="Sinort\BitacoraDocumentosDAL.cs" />
<Compile Include="Sinort\CategoriaDAL.cs" />
<Compile Include="Sinort\ComentariosForoDAL.cs" />
<Compile Include="Sinort\ComentariosMatrizDAL.cs" />
<Compile Include="Sinort\ConvocatoriaDAL.cs" />
<Compile Include="Sinort\DocumentosAdjuntosDAL.cs" />
<Compile Include="Sinort\DocumentosDAL.cs" />
<Compile Include="Sinort\EmisorDAL.cs" />
<Compile Include="Sinort\EstadoDAL.cs" />
<Compile Include="Sinort\ForoDAL.cs" />
<Compile Include="Sinort\MatrizDAL.cs" />
<Compile Include="Sinort\PermisosUsuarioDAL.cs" />
<Compile Include="Sinort\PlantillaEmailDAL.cs" />
<Compile Include="Sinort\RolesDAL.cs" />
<Compile Include="Sinort\TipoDocumentoDAL.cs" />
<Compile Include="Sinort\TipoEmisorDAL.cs" />
<Compile Include="Sinort\TipoEstadoDAL.cs" />
<Compile Include="Sinort\TipoForoDAL.cs" />
<Compile Include="Sinort\TipoMatrizDAL.cs" />
<Compile Include="Sinort\UsuarioDAL.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSynorModel.csproj">
<ProjectReference Include="..\Atesa.Utilitarios\Atesa.Utilitarios.csproj">
<Project>{df92655d-08ea-4e25-a1e1-ee13cb7902d7}</Project>
<Name>Atesa.Utilitarios</Name>
</ProjectReference>
<ProjectReference Include="..\AYA.SlnSynorModel\AYA.SlnSinortModel.csproj">
<Project>{9ecd985b-2354-4156-ad6a-3ebd888c0241}</Project>
<Name>AYA.SlnSynorModel</Name>
<Name>AYA.SlnSinortModel</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Proyectos\" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />

View file

@ -1,39 +0,0 @@
using AYA.SlnSynorModel.BD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSynorModel.DAL.Catalogos
{
public class CatalogosDAL
{
public string InsertarActualizarEmisorPN(EmisorPN model)
{
using (SinortContext db = new SinortContext())
{
model.fecha_creacion = System.DateTime.Now;
model.usuario_creacion = "prueba";
db.EmisorPN.Add(model);
db.SaveChanges();
db.Commit();
}
return null;
}
public List<EmisorPN> ObtnerEmisorPN(EmisorPN model)
{
List<EmisorPN> ListaEmisores = new List<EmisorPN>();
using (SinortContext db = new SinortContext())
{
ListaEmisores = db.EmisorPN.ToList();
}
return ListaEmisores;
}
}
}

View file

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos atributos para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("AYA.SlnSynorModel.DAL")]
[assembly: AssemblyTitle("AYA.SlnSinortModel.DAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AYA.SlnSynorModel.DAL")]
[assembly: AssemblyProduct("AYA.SlnSinortModel.DAL")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AYA.SlnSinortModel;
using AYA.SlnSinortModel.Entidades;
using AYA.SlnSinortModel.Synort;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class AplicacionDAL
{
#region ObtenerAplicacion
public List<CatalogosJSON> ObtenerAplicacion(string filtro = null)
{
List<CatalogosJSON> registros = null;
try
{
using (SinortContex db = new SinortContex())
{
registros = (string.IsNullOrWhiteSpace(filtro) ? db.Aplicacion.Where(t => t.Estado == true) : db.Aplicacion.Where(t => t.Estado == true && t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()) == true))
.Select(t => new CatalogosJSON()
{
codigo = t.IdAplicacion.ToString(),
descripcion = t.Descripcion,
}).ToList();
}
}
catch (Exception ex)
{
//log.Error(ex);
}
return registros;
}
public List<Aplicacion> ObtenerAplicacion()
{
List<Aplicacion> respuesta = null;
try
{
using (SinortContex db = new SinortContex())
{
respuesta = db.Aplicacion.Where(t => t.Estado == true).ToList();
}
}
catch (Exception ex)
{
//log.Error(ex);
}
return respuesta;
}
#endregion
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class BitacoraDocumentosDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class CategoriaDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class ComentariosForoDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class ComentariosMatrizDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class ConvocatoriaDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class DocumentosAdjuntosDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class DocumentosDAL
{
}
}

View file

@ -0,0 +1,117 @@
using AYA.SlnSinortModel.Entidades;
using AYA.SlnSinortModel.Synort;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.Data.Entity.Validation;
using Atesa.Utilitarios;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class EmisorDAL
{
#region ObtenerEmisor
public List<CatalogosJSON> ObtenerEmisor(string filtro = null)
{
List<CatalogosJSON> registros = null;
try
{
using (SinortContex db = new SinortContex())
{
registros = (string.IsNullOrWhiteSpace(filtro) ? db.Emisor.Where(t => t.Estado == true) : db.Emisor.Where(t => t.Estado == true && t.Descripcion.Trim().ToLower().Contains(filtro.Trim().ToLower()) == true))
.Select(t => new CatalogosJSON()
{
codigo = t.IdEmisor.ToString(),
descripcion = t.Descripcion,
}).ToList();
}
}
catch (Exception ex)
{
//log.Error(ex);
}
return registros;
}
public List<Emisor> ObtenerEmisor()
{
List<Emisor> respuesta = null;
try
{
using (SinortContex db = new SinortContex())
{
respuesta = db.Emisor.Where(t => t.Estado == true)
.Include(t=>t.TipoEmisor).ToList();
}
}
catch (Exception ex)
{
//log.Error(ex);
}
return respuesta;
}
#endregion
#region InsertarActualizar
public BaseJson InsertarActualizarCliente(Emisor model)
{
Emisor Actual = new Emisor();
BaseJson Respuesta = new BaseJson();
try
{
model.ClearProperties();
using (SinortContex Conn = new SinortContex())
{
Actual = Conn.Emisor.Where(x => x.IdEmisor == model.IdEmisor).FirstOrDefault();
if (Actual == null)
{
int? Next_id = Conn.Emisor.Max(t => (int?)t.IdEmisor);
model.IdEmisor = (Next_id == null) ? 1 : Next_id.Value + 1;
model.FechaCreacion = DateTime.Now;
Conn.Emisor.Add(model);
}
else
{
model.FechaModificacion = DateTime.Now;
model.UsuarioModificacion = model.UsuarioModificacion;
model.FechaCreacion = Actual.FechaCreacion;
model.UsuarioCreacion = Actual.UsuarioCreacion;
Conn.Entry(Actual).State = System.Data.Entity.EntityState.Detached;
Conn.Emisor.Attach(model);
Conn.Entry(model).State = System.Data.Entity.EntityState.Modified;
}
Conn.SaveChanges();
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.EXITOSO.ToString();
}
}
catch (DbEntityValidationException ex)
{
//logger.Error(exs);
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
}
catch (Exception ex)
{
//logger.Error(ex);
Respuesta.CodigoRespuesta = Constantes.TipoCodigoRespuesta.ERROR.ToString();
}
finally
{
Actual = null;
}
return Respuesta;
}
#endregion
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class EstadoDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class ForoDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class MatrizDAL
{
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AYA.SlnSinortModel.DAL.Sinort
{
public class PermisosUsuarioDAL
{
}
}

Some files were not shown because too many files have changed in this diff Show more