This commit is contained in:
mumana 2018-07-02 19:28:44 +00:00
parent 1dee17733b
commit 04e8bfc91a
3 changed files with 71 additions and 53 deletions

View file

@ -17,20 +17,21 @@ namespace AYA.SlnSinort.Controllers
public void InitControllers() public void InitControllers()
{ {
Atesa.Utilitarios.ObtieneParametros parametros = new Atesa.Utilitarios.ObtieneParametros(); Atesa.Utilitarios.ObtieneParametros parametros = new Atesa.Utilitarios.ObtieneParametros();
var SinortWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc"; var SinortWCF = ConfigurationManager.AppSettings["SinortWCF"].ToString();
//parametros.GetValueKeyRegedit("SinortWCF", false); var SinortCatalogosWCF = ConfigurationManager.AppSettings["SinortCatalogosWCF"].ToString();
var SinortCatalogosWCF = "http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc"; var FileUploadHandler = ConfigurationManager.AppSettings["FileUploadHandler"].ToString();
//parametros.GetValueKeyRegedit("SinortCatalogosWCF",false);
var FileUploadHandler = "http://localhost/AYA.SlnSinort/FileUploadHandler";
var RepositorioVirtual = ConfigurationManager.AppSettings["HttpRepository"].ToString(); var RepositorioVirtual = ConfigurationManager.AppSettings["HttpRepository"].ToString();
var RepositorioLocal = ConfigurationManager.AppSettings["FileRepository"].ToString(); var RepositorioLocal = ConfigurationManager.AppSettings["FileRepository"].ToString();
var Usuario = Session["Usuario"] != null ? Session["Usuario"].ToString() : String.Empty;
ViewBag.SinortWCF = SinortWCF; ViewBag.SinortWCF = SinortWCF;
ViewBag.SinortCatalogosWCF = SinortCatalogosWCF; ViewBag.SinortCatalogosWCF = SinortCatalogosWCF;
ViewBag.AtesaUser = User.Identity.GetUserName(); ViewBag.Usuario = Usuario;
ViewBag.FileUploadHandler = FileUploadHandler; ViewBag.FileUploadHandler = FileUploadHandler;
ViewBag.RepositorioVirtual = RepositorioVirtual; ViewBag.RepositorioVirtual = RepositorioVirtual;
ViewBag.RepositorioLocal = RepositorioLocal; ViewBag.RepositorioLocal = RepositorioLocal;
} }
} }
} }

View file

@ -390,8 +390,7 @@
<input type="hidden" id="hiddenSinortWCF" value="@ViewBag.SinortWCF" /> <input type="hidden" id="hiddenSinortWCF" value="@ViewBag.SinortWCF" />
<input type="hidden" id="hiddenSinortCatalogosWCF" value="@ViewBag.SinortCatalogosWCF" /> <input type="hidden" id="hiddenSinortCatalogosWCF" value="@ViewBag.SinortCatalogosWCF" />
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)"> <input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
<input type="hidden" id="hiddenMenuCreado" value="" /> <input type="hidden" id="hiddenUsuario" value="@ViewBag.Usuario" />
<input type="hidden" id="hiddenUsuario" value="@ViewBag.AtesaUser" />
<input type="hidden" id="hiddenFileUploadHandler" value="@ViewBag.FileUploadHandler" /> <input type="hidden" id="hiddenFileUploadHandler" value="@ViewBag.FileUploadHandler" />
<input type="hidden" id="hiddenRepositorioVirtual" value="@ViewBag.RepositorioVirtual" /> <input type="hidden" id="hiddenRepositorioVirtual" value="@ViewBag.RepositorioVirtual" />
<input type="hidden" id="hiddenRepositorioLocal" value="@ViewBag.RepositorioLocal" /> <input type="hidden" id="hiddenRepositorioLocal" value="@ViewBag.RepositorioLocal" />

View file

@ -5,12 +5,16 @@
--> -->
<configuration> <configuration>
<configSections> <configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core"> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" /> <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
<section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" /> <section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, 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> <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> <!--<connectionStrings>
<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" /> <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>-->
@ -21,14 +25,17 @@
<!--<connectionStrings> <!--<connectionStrings>
<add name="ADConn" connectionString="LDAP://localhost" /> <add name="ADConn" connectionString="LDAP://localhost" />
</connectionStrings>--> </connectionStrings>-->
<appSettings> <appSettings>
<add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" /> <add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" /> <add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc"/>
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc"/>
<add key="FileRepository" value="C:\DocumentosSINORT\" /> <add key="FileRepository" value="C:\DocumentosSINORT\" />
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" /> <add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler"/>
<add key="MaxSizeFileLoadKB" value="5120" /> <add key="MaxSizeFileLoadKB" value="5120" />
<add key="MaxCountFileLoad" value="3" /> <add key="MaxCountFileLoad" value="3" />
</appSettings> </appSettings>
@ -55,8 +62,8 @@
connectionPassword="pwd" /> connectionPassword="pwd" />
</providers> </providers>
</membership>--> </membership>-->
<authentication mode="None" /> <authentication mode="None" />
<compilation debug="true" targetFramework="4.5" /> <compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" /> <httpRuntime targetFramework="4.5" />
@ -71,13 +78,14 @@
<remove fileExtension=".woff2" /> <remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" /> <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
</staticContent> </staticContent>
<handlers> <handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" /> <remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" /> <remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers></system.webServer> </handlers>
</system.webServer>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
@ -133,7 +141,9 @@
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" /> <bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
<!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). --><legacyHMACWarning enabled="0" /><!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink <!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). -->
<legacyHMACWarning enabled="0" />
<!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it. to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
@ -141,7 +151,8 @@
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly> </dependentAssembly>
</assemblyBinding> </assemblyBinding>
--></runtime> -->
</runtime>
<entityFramework> <entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters> <parameters>
@ -152,42 +163,49 @@
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers> </providers>
</entityFramework> </entityFramework>
<system.net> <system.net>
<defaultProxy enabled="true" /> <defaultProxy enabled="true" />
<settings> <settings>
<!-- This setting causes .NET to check certificate revocation lists (CRL) <!-- This setting causes .NET to check certificate revocation lists (CRL)
before trusting HTTPS certificates. But this setting tends to not before trusting HTTPS certificates. But this setting tends to not
be allowed in shared hosting environments. --> be allowed in shared hosting environments. -->
<!--<servicePointManager checkCertificateRevocationList="true"/>--> <!--<servicePointManager checkCertificateRevocationList="true"/>-->
</settings> </settings>
</system.net><dotNetOpenAuth> </system.net>
<messaging> <dotNetOpenAuth>
<untrustedWebRequest> <messaging>
<whitelistHosts> <untrustedWebRequest>
<!-- Uncomment to enable communication with localhost (should generally not activate in production!) --> <whitelistHosts>
<!--<add name="localhost" />--> <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
</whitelistHosts> <!--<add name="localhost" />-->
</untrustedWebRequest> </whitelistHosts>
</messaging> </untrustedWebRequest>
<!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. --> </messaging>
<reporting enabled="true" /> <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
<!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. --><!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ --><openid> <reporting enabled="true" />
<relyingParty> <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
<security requireSsl="false"> <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
<!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. --> <openid>
<!--<trustedProviders rejectAssertionsFromUntrustedProviders="true"> <relyingParty>
<security requireSsl="false">
<!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
<!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
<add endpoint="https://www.google.com/accounts/o8/ud" /> <add endpoint="https://www.google.com/accounts/o8/ud" />
</trustedProviders>--> </trustedProviders>-->
</security> </security>
<behaviors> <behaviors>
<!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
with OPs that use Attribute Exchange (in various formats). --> with OPs that use Attribute Exchange (in various formats). -->
<add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" /> <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
</behaviors> </behaviors>
</relyingParty></openid></dotNetOpenAuth><uri> </relyingParty>
<!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names), </openid>
</dotNetOpenAuth>
<uri>
<!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
which is necessary for OpenID urls with unicode characters in the domain/host name. which is necessary for OpenID urls with unicode characters in the domain/host name.
It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. --> It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
<idn enabled="All" /> <idn enabled="All" />
<iriParsing enabled="true" /> <iriParsing enabled="true" />
</uri></configuration> </uri>
</configuration>