Palabras clave
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C287
This commit is contained in:
parent
3e731f0ae8
commit
f3663d6fef
4 changed files with 37 additions and 2 deletions
|
|
@ -44,6 +44,10 @@ namespace AYA.SlnSinort.WCF
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
FichaTecnicaJSON GuardarFichaTecnicaPalabraClave(FichaTecnicaJSON model);
|
FichaTecnicaJSON GuardarFichaTecnicaPalabraClave(FichaTecnicaJSON model);
|
||||||
|
|
||||||
|
[OperationContract]
|
||||||
|
FichaTecnicaJSON ObtenerFichaTecnica(FichaTecnicaJSON model);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Adjuntos
|
#region Adjuntos
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ editando este archivo MSBuild. Para conocer más acerca de esto, visite http://g
|
||||||
<SiteUrlToLaunchAfterPublish />
|
<SiteUrlToLaunchAfterPublish />
|
||||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||||
<publishUrl>C:\Instaladores SINORT\WCF SINORT</publishUrl>
|
<publishUrl>C:\Servicios\SinortWCF</publishUrl>
|
||||||
<DeleteExistingFiles>False</DeleteExistingFiles>
|
<DeleteExistingFiles>False</DeleteExistingFiles>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -247,6 +247,29 @@ namespace AYA.SlnSinort.WCF
|
||||||
}
|
}
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FichaTecnicaJSON ObtenerFichaTecnica(FichaTecnicaJSON model)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (model.FichaTecnica == null)
|
||||||
|
{
|
||||||
|
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
||||||
|
model.DescripcionRespuesta = "No se encontraron datos de la ficha técnica";
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
model = new FichaTecnicaDAL().ObtenerFichaTecnica(model);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
log.Error(ex);
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||||
|
}
|
||||||
|
return model;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region WCFAYA Envio Correo
|
#region WCFAYA Envio Correo
|
||||||
|
|
@ -538,7 +561,7 @@ namespace AYA.SlnSinort.WCF
|
||||||
public LoginJSON ObtenerUsuarioAD(LoginJSON model)
|
public LoginJSON ObtenerUsuarioAD(LoginJSON model)
|
||||||
{
|
{
|
||||||
string servidorActiveDirectory = "intranet.aya.go.cr";
|
string servidorActiveDirectory = "intranet.aya.go.cr";
|
||||||
|
//string servidorActiveDirectory = "Atesa154-PC";
|
||||||
|
|
||||||
string domain = servidorActiveDirectory;
|
string domain = servidorActiveDirectory;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,14 @@
|
||||||
|
|
||||||
</system.serviceModel>
|
</system.serviceModel>
|
||||||
<system.webServer>
|
<system.webServer>
|
||||||
|
|
||||||
|
<httpProtocol>
|
||||||
|
<customHeaders>
|
||||||
|
<add name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
</customHeaders>
|
||||||
|
</httpProtocol>
|
||||||
|
|
||||||
|
|
||||||
<modules runAllManagedModulesForAllRequests="true"/>
|
<modules runAllManagedModulesForAllRequests="true"/>
|
||||||
<!--
|
<!--
|
||||||
Para examinar el directorio raíz de la aplicación web durante la depuración, establezca el valor siguiente en true.
|
Para examinar el directorio raíz de la aplicación web durante la depuración, establezca el valor siguiente en true.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue