From f482ed76921ef9d8ba48c62bab248f56d612a285 Mon Sep 17 00:00:00 2001 From: jnunez Date: Mon, 13 Aug 2018 05:53:30 +0000 Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C427 --- AYA.SlnSynor/AYA.SlnSynor.WCF/ISinort.cs | 12 +- .../AYA.SlnSynor.WCF/ISinortCatalogos.cs | 6 +- AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs | 31 +- .../AYA.SlnSynor.WCF/SinortCatalogos.svc.cs | 17 + .../AYA.SlnSynor/AYA.SlnSinort.csproj | 4 + .../AYA.SlnSynor/Content/modal-video.min.css | 1 + .../Controllers/HomeController.cs | 8 +- .../AYA.SlnSynor/Scripts/_references.js | Bin 579768 -> 537890 bytes .../AYA.SlnSynor/Scripts/modal-video.js | 364 ++++++++++++++++++ .../FichaTecnica.js | 75 +++- .../AYA.SlnSynor/Sinort-Scripts/Wiki.js | 52 +++ .../AYA.SlnSynor/Views/Home/Index.cshtml | 4 +- .../AYA.SlnSynor/Views/Home/Wiki.cshtml | 49 +++ .../FichaTecnica.cshtml | 6 +- .../AYA.SlnSynor/Views/Shared/_Layout.cshtml | 15 +- .../Sinort/FichaTecnicaDAL.cs | 79 ++++ .../Sinort/MantenimientoDAL.cs | 20 +- .../AYA.SlnSinortModel.csproj | 1 + .../AYA.SlnSynorModel/Entidades/Json.cs | 2 + .../AYA.SlnSynorModel/Sinort/SinortContex.cs | 19 +- AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Wiki.cs | 34 ++ 21 files changed, 749 insertions(+), 50 deletions(-) create mode 100644 AYA.SlnSynor/AYA.SlnSynor/Content/modal-video.min.css create mode 100644 AYA.SlnSynor/AYA.SlnSynor/Scripts/modal-video.js create mode 100644 AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Wiki.js create mode 100644 AYA.SlnSynor/AYA.SlnSynor/Views/Home/Wiki.cshtml create mode 100644 AYA.SlnSynor/AYA.SlnSynorModel/Sinort/Wiki.cs diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinort.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinort.cs index 0dc9d2160..e2af2b76e 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinort.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinort.cs @@ -47,8 +47,8 @@ namespace AYA.SlnSinort.WCF FichaTecnicaJSON GuardarFichaTecnicaHistorico(FichaTecnicaJSON model); [OperationContract] - FichaTecnicaJSON GuardarFichaTecnicaHistoricoPalabraClave(FichaTecnicaJSON model); - + FichaTecnicaJSON GuardarFichaTecnicaHistoricoPalabraClave(FichaTecnicaJSON model); + [OperationContract] FichaTecnicaJSON GuardarFichaTecnicaPalabraClave(FichaTecnicaJSON model); @@ -74,14 +74,10 @@ namespace AYA.SlnSinort.WCF FichaTecnicaJSON ObtenerFichaTecnicaHistorico(FichaTecnicaJSON model); [OperationContract] - FichaTecnicaJSON ObtenerFichasTecnicasAlertas(FichaTecnicaJSON model); + FichaTecnicaJSON InsertarActualizarFichaTecnicaAlerta(FichaTecnicaJSON model); [OperationContract] - FichaTecnicaJSON GuardarFichaTecnicaAlerta(FichaTecnicaJSON model); - - [OperationContract] - FichaTecnicaJSON ObtenerFichaAlerta(FichaTecnicaJSON model); - + FichaTecnicaJSON ObtenerFichaTecnicaAlerta(FichaTecnicaJSON model); #endregion #region Adjuntos diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs index b7bf08da6..00350bf4c 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/ISinortCatalogos.cs @@ -18,7 +18,11 @@ namespace AYA.SlnSinort.WCF public interface ISinortCatalogos { - + #region Wiki + [OperationContract] + List ObtenerWiki(); + #endregion + #region Mantenimiento [OperationContract] List ObtenerMantenimientoCatalogos(); diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs index 42b918aea..fed7b2e33 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/Sinort.svc.cs @@ -431,52 +431,33 @@ namespace AYA.SlnSinort.WCF return model; } - public FichaTecnicaJSON GuardarFichaTecnicaAlerta(FichaTecnicaJSON model) + public FichaTecnicaJSON InsertarActualizarFichaTecnicaAlerta(FichaTecnicaJSON model) { try { - if (model.FichaTecnicaAlerta == null) - { - - model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA; - model.DescripcionRespuesta = "No se encontraron datos de la ficha técnica"; - return model; - } - - model = new FichaTecnicaDAL().GuardarFichaTecnicaAlerta(model); - + model = new FichaTecnicaDAL().InsertarActualizarFichaTecnicaAlerta(model); } catch (Exception ex) { + log.Error(ex); - model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR; } return model; } - public FichaTecnicaJSON ObtenerFichaAlerta(FichaTecnicaJSON model) + public FichaTecnicaJSON ObtenerFichaTecnicaAlerta(FichaTecnicaJSON model) { try { - if (model.FichaTecnicaAlerta == null) - { - - model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA; - model.DescripcionRespuesta = "No se encontraron datos de la ficha técnica"; - return model; - } - - model = new FichaTecnicaDAL().ObtenerFichaAlerta(model); - + model = new FichaTecnicaDAL().ObtenerFichaTecnicaAlerta(model); } catch (Exception ex) { + log.Error(ex); - model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR; } return model; } - #endregion #region WCFAYA Envio Correo diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs b/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs index 3fbd3df96..148fd1e25 100644 --- a/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs +++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/SinortCatalogos.svc.cs @@ -19,6 +19,23 @@ namespace AYA.SlnSinort.WCF { Log log = new Log("SinortCatalogosWCF"); + #region Mantenimiento + public List ObtenerWiki() + { + List respuesta = null; + try + { + respuesta = new MantenimientoDAL().ObtenerWiki(); + + } + catch (Exception ex) + { + log.Error(ex); + } + return respuesta; + } + #endregion + #region Mantenimiento public List ObtenerMantenimientoCatalogos() { diff --git a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj index 120f1e804..d679680a5 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj +++ b/AYA.SlnSynor/AYA.SlnSynor/AYA.SlnSinort.csproj @@ -6200,6 +6200,7 @@ + @@ -7357,6 +7358,7 @@ + @@ -7430,6 +7432,7 @@ + PreserveNewest @@ -7537,6 +7540,7 @@ + diff --git a/AYA.SlnSynor/AYA.SlnSynor/Content/modal-video.min.css b/AYA.SlnSynor/AYA.SlnSynor/Content/modal-video.min.css new file mode 100644 index 000000000..43bbb48e7 --- /dev/null +++ b/AYA.SlnSynor/AYA.SlnSynor/Content/modal-video.min.css @@ -0,0 +1 @@ +@keyframes modal-video{from{opacity:0}to{opacity:1}}@keyframes modal-video-inner{from{transform:translate(0, 100px)}to{transform:translate(0, 0)}}.modal-video{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);z-index:1000000;cursor:pointer;opacity:1;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video;-webkit-transition:opacity .3s ease-out;-moz-transition:opacity .3s ease-out;-ms-transition:opacity .3s ease-out;-o-transition:opacity .3s ease-out;transition:opacity .3s ease-out}.modal-video-close{opacity:0}.modal-video-close .modal-video-movie-wrap{-webkit-transform:translate(0, 100px);-moz-transform:translate(0, 100px);-ms-transform:translate(0, 100px);-o-transform:translate(0, 100px);transform:translate(0, 100px)}.modal-video-body{max-width:940px;width:100%;height:100%;margin:0 auto;display:table}.modal-video-inner{display:table-cell;vertical-align:middle;width:100%;height:100%}.modal-video-movie-wrap{width:100%;height:0;position:relative;padding-bottom:56.25%;background-color:#333;animation-timing-function:ease-out;animation-duration:.3s;animation-name:modal-video-inner;-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-ms-transition:-ms-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal-video-movie-wrap iframe{position:absolute;top:0;left:0;width:100%;height:100%}.modal-video-close-btn{position:absolute;z-index:2;top:-35px;right:-35px;display:inline-block;width:35px;height:35px;overflow:hidden;border:none;background:transparent}.modal-video-close-btn:before{transform:rotate(45deg)}.modal-video-close-btn:after{transform:rotate(-45deg)}.modal-video-close-btn:before,.modal-video-close-btn:after{content:'';position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#fff;border-radius:5px;margin-top:-6px} diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs index 36189f136..5b902cf8e 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs +++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs @@ -45,7 +45,13 @@ namespace AYA.SlnSinort.Controllers return View(); } - + + public ActionResult Wiki() + { + InitControllers(); + return View(); + } + } } \ No newline at end of file diff --git a/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js b/AYA.SlnSynor/AYA.SlnSynor/Scripts/_references.js index e7797fc684b9f05f632d75f3a3e6baeaca210f4b..8e31f0ecd5e5702c849e3ef590c323cd13dc3b52 100644 GIT binary patch delta 80 zcmdn7QF+lTg@zW!7N!>F7M2#)7Pc1lEg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C)u6)|kHL-M zKjQWeJgCUOh}vjygSe0}8eFDrG`KjY(nf`jy zZiAbY%Ne)9WxCx4cLncIyA6nFyA5Mcs3E5j<2Jw;<2FFXxDAjoZUbbD+W?uCb{kwK z;WoIWz8LH_AcBnB02$*pAjY^2h#=!Oz`+@}!HwbTyy-T;DC0J`QM@1RHn>E>ZE#7x zEyittl^WV@fHB5xa2f8r?KZd+x2N3(m#}UFcmO(K+j4LlWUg&FxH9Ux+k9}d>6@U<2gn%n!DaY + * contributors: Frank Panetta, Mikhail Reenko , Joscha Feth + * homepage: https://github.com/krambuhl/custom-event-polyfill#readme + * version: 0.3.0 + * + * es6-object-assign: + * license: MIT (http://opensource.org/licenses/MIT) + * author: Rubén Norte + * homepage: https://github.com/rubennorte/es6-object-assign + * version: 1.1.0 + * + * This header is generated by licensify (https://github.com/twada/licensify) + */ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ModalVideo = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\n
\n
\n
\n \n