git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C428
This commit is contained in:
parent
f482ed7692
commit
e497ea75dc
26 changed files with 334 additions and 687 deletions
|
|
@ -409,28 +409,6 @@ namespace AYA.SlnSinort.WCF
|
|||
return model;
|
||||
}
|
||||
|
||||
public FichaTecnicaJSON ObtenerFichasTecnicasAlertas(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().ObtenerFichasTecnicasAlertas(model);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
public FichaTecnicaJSON InsertarActualizarFichaTecnicaAlerta(FichaTecnicaJSON model)
|
||||
{
|
||||
try
|
||||
|
|
@ -498,7 +476,7 @@ namespace AYA.SlnSinort.WCF
|
|||
correo.ASUNTO = plantilla.Subject.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo);
|
||||
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
correo.CUERPO = body;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
|
@ -517,7 +495,7 @@ namespace AYA.SlnSinort.WCF
|
|||
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$FechaMaxima", Convert.ToString(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion)).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com"; ;
|
||||
correo.DESTINATARIOS = email ;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
|
@ -536,7 +514,7 @@ namespace AYA.SlnSinort.WCF
|
|||
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$FechaMaxima", Convert.ToString(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion)).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com"; ;
|
||||
correo.DESTINATARIOS = email;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
|
@ -556,7 +534,7 @@ namespace AYA.SlnSinort.WCF
|
|||
catalogo.codigo = tareas.PromotorProyectoNormativo;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com"; ;
|
||||
correo.DESTINATARIOS = email ;
|
||||
correo.CUERPO = body;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
|
@ -577,7 +555,7 @@ namespace AYA.SlnSinort.WCF
|
|||
catalogo.codigo = tareas.PromotorProyectoNormativo;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "jnunez@atesacr.com"; ;
|
||||
correo.DESTINATARIOS = email ;
|
||||
correo.CUERPO = body;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
|
@ -635,7 +613,29 @@ namespace AYA.SlnSinort.WCF
|
|||
body = plantilla.Body.Replace("$Mensaje", model.Mensaje).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case "Correo Modificacion Ficha Tecnica":
|
||||
plantilla = Listaplantillas.Where(p => p.NombrePlatilla == model.PlantillaEmail.NombrePlatilla).FirstOrDefault();
|
||||
correo = new ServiciosUsuariosWCF.correoEL();
|
||||
correo.FORMATO = "html";
|
||||
correo.ASUNTO = plantilla.Subject.Replace("$NombreDocumentoTecnico", model.FichaTecnica.DescripcionDocumentoTecnico);
|
||||
|
||||
|
||||
foreach (var participantes in model.ListaParticipantes)
|
||||
{
|
||||
catalogo.codigo = participantes.UsuarioSistema;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$NombreDocumentoTecnico", model.FichaTecnica.DescripcionDocumentoTecnico).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS =email;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
|
@ -650,18 +650,16 @@ namespace AYA.SlnSinort.WCF
|
|||
correo.ASUNTO = plantilla.Subject.Replace("$NombreDocumentoTecnico", model.FichaTecnica.DescripcionDocumentoTecnico);
|
||||
|
||||
|
||||
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$NombreDocumentoTecnico", model.FichaTecnica.DescripcionDocumentoTecnico).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -718,7 +716,7 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("$Usuario", model.Solicitud.UsuarioSistema).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
|
@ -734,14 +732,14 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento);
|
||||
|
||||
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento).Replace("$Mensaje", model.Mensaje)
|
||||
.Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
||||
|
||||
|
|
@ -756,13 +754,13 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento);
|
||||
|
||||
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo =model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
||||
|
||||
|
|
@ -777,14 +775,14 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento);
|
||||
|
||||
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento).Replace("$Justificacion", model.Mensaje)
|
||||
.Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
||||
|
||||
|
|
@ -799,14 +797,14 @@ namespace AYA.SlnSinort.WCF
|
|||
|
||||
foreach (var usuarios in model.ListaUsuariosCorreo)
|
||||
{
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$UsuarioAprobo", model.UsuarioSistema).Replace("$UsuarioCreo", model.Solicitud.UsuarioSistema)
|
||||
.Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
||||
|
|
@ -822,7 +820,7 @@ namespace AYA.SlnSinort.WCF
|
|||
|
||||
foreach (var usuarios in model.ListaUsuariosCorreo)
|
||||
{
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento).Replace("$Justificacion", model.Mensaje)
|
||||
|
|
@ -830,7 +828,7 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
|
||||
|
|
@ -845,13 +843,13 @@ namespace AYA.SlnSinort.WCF
|
|||
.Replace("$DescripcionDocumento", model.Solicitud.DescripcionDocumento);
|
||||
|
||||
|
||||
catalogo.codigo = "josnunez";
|
||||
catalogo.codigo = model.UserName;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
body = plantilla.Body.Replace("$DescTipoSolicitud", model.Solicitud.DescripcionTipoSolicitud).Replace("$IdSolicitud", model.Solicitud.IdSolicitud.ToString())
|
||||
.Replace("$Titulo", model.Solicitud.DescripcionDocumento).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
email = usuario.EmailUsuario;
|
||||
correo.DESTINATARIOS = "randyguti1995@gmail.com";
|
||||
correo.DESTINATARIOS = email;
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
|
||||
|
||||
|
|
@ -1442,118 +1440,6 @@ namespace AYA.SlnSinort.WCF
|
|||
}
|
||||
#endregion
|
||||
|
||||
#region Reportes
|
||||
//private DataSet tds = new DataSet();
|
||||
//private void SetLocalReport(string Reporte)
|
||||
//{
|
||||
// ReportViewer reportViewer = new ReportViewer();
|
||||
// reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
// reportViewer.SizeToReportContent = true;
|
||||
// reportViewer.Width = Unit.Percentage(100);
|
||||
// reportViewer.Height = Unit.Percentage(100);
|
||||
|
||||
// FillDataSet(Reporte);
|
||||
|
||||
// switch (Reporte)
|
||||
// {
|
||||
|
||||
// case "Aplicacion":
|
||||
// reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repAplicacion.rdlc";
|
||||
// reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsAplicacion", tds.Tables["Datos"]));
|
||||
// break;
|
||||
|
||||
|
||||
// case "FichaTecnica":
|
||||
// reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"Reportes\repFichaTecnica.rdlc";
|
||||
// reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnica", tds.Tables["Datos"]));
|
||||
// break;
|
||||
|
||||
// }
|
||||
|
||||
// reportViewer.LocalReport.SetParameters(GetParametersLocal(Reporte));
|
||||
|
||||
// ViewBag.ReportViewer = reportViewer;
|
||||
//}
|
||||
|
||||
//private void FillDataSet(string Reporte)
|
||||
//{
|
||||
// string connectionString = GetConnectionString();
|
||||
|
||||
// using (SqlConnection sqlConnection = new SqlConnection(connectionString))
|
||||
// {
|
||||
// string queryString = GetQueryString(Reporte);
|
||||
|
||||
// SqlDataAdapter sqlDataAapter = new SqlDataAdapter(queryString, sqlConnection);
|
||||
|
||||
// sqlDataAapter.Fill(tds, "Datos");
|
||||
|
||||
// }
|
||||
//}
|
||||
|
||||
//private string GetConnectionString()
|
||||
//{
|
||||
// return "data source=192.168.1.37;initial catalog=SinortAyA;user id=sinort;password=sinort2018";
|
||||
//}
|
||||
|
||||
//private string GetQueryString(string Reporte)
|
||||
//{
|
||||
|
||||
// string Respuesta = "";
|
||||
|
||||
// switch (Reporte)
|
||||
// {
|
||||
|
||||
// case "Aplicacion":
|
||||
// Respuesta = "SELECT "
|
||||
// + " [IdAplicacion] ,[Descripcion] FROM "
|
||||
// + " [Catalogos].[Aplicacion]";
|
||||
// break;
|
||||
|
||||
// case "Estados":
|
||||
// Respuesta = "SELECT "
|
||||
// + " [IdEstado] ,[Descripcion] FROM "
|
||||
// + " [Catalogos].[Estado]";
|
||||
// break;
|
||||
|
||||
// }
|
||||
|
||||
// return Respuesta;
|
||||
|
||||
|
||||
//}
|
||||
|
||||
//private ReportParameter[] GetParametersLocal(string Reporte)
|
||||
//{
|
||||
|
||||
// ReportParameter[] Respuesta = new ReportParameter[] { };
|
||||
// ReportParameter p1 = new ReportParameter();
|
||||
// ReportParameter p2 = new ReportParameter();
|
||||
|
||||
// switch (Reporte)
|
||||
// {
|
||||
|
||||
// case "Aplicacion":
|
||||
|
||||
// p1 = new ReportParameter("prmTitulo1", "SINORT");
|
||||
// p2 = new ReportParameter("prmTitulo2", "ATESA");
|
||||
|
||||
// Respuesta = new ReportParameter[] { p1, p2 };
|
||||
// break;
|
||||
|
||||
// case "Estados":
|
||||
|
||||
// p1 = new ReportParameter("prmTitulo1", "SINORT");
|
||||
// p2 = new ReportParameter("prmTitulo2", "ATESA");
|
||||
|
||||
// Respuesta = new ReportParameter[] { p1, p2 };
|
||||
// break;
|
||||
// }
|
||||
|
||||
|
||||
// return Respuesta;
|
||||
|
||||
//}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@
|
|||
|
||||
<connectionStrings>
|
||||
<!--<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||
<!--<add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -247,6 +247,10 @@
|
|||
<Compile Include="Models\IdentityModels.cs" />
|
||||
<Compile Include="Models\ManageViewModels.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Reportes\datasets\dtsFichaTecnicaFinal.cs">
|
||||
<DependentUpon>dtsFichaTecnicaFinal.xsd</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Reportes\datasets\dtsFichaTecnicaFinal.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
|
|
@ -6200,7 +6204,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\modal-video.min.css" />
|
||||
<Content Include="Content\Principal.css" />
|
||||
<Content Include="Content\richtext.min.css" />
|
||||
<Content Include="Content\simpleAngularUI.css" />
|
||||
|
|
@ -6257,6 +6260,7 @@
|
|||
<Content Include="Content\themes\base\tooltip.css" />
|
||||
<Content Include="Content\toastr.css" />
|
||||
<Content Include="Content\toastr.min.css" />
|
||||
<Content Include="Content\videopopup.css" />
|
||||
<Content Include="dist\css\AdminLTE.css" />
|
||||
<Content Include="dist\css\AdminLTE.min.css" />
|
||||
<Content Include="dist\css\alt\AdminLTE-bootstrap-social.css" />
|
||||
|
|
@ -7358,7 +7362,6 @@
|
|||
<Content Include="Scripts\locale\easyui-lang-ua.js" />
|
||||
<Content Include="Scripts\locale\easyui-lang-zh_CN.js" />
|
||||
<Content Include="Scripts\locale\easyui-lang-zh_TW.js" />
|
||||
<Content Include="Scripts\modal-video.js" />
|
||||
<Content Include="Scripts\modernizr-2.6.2.js" />
|
||||
<Content Include="Scripts\moment-with-locales.js" />
|
||||
<Content Include="Scripts\moment-with-locales.min.js" />
|
||||
|
|
@ -7388,6 +7391,7 @@
|
|||
<Content Include="Scripts\umd\popper-utils.min.js" />
|
||||
<Content Include="Scripts\umd\popper.js" />
|
||||
<Content Include="Scripts\umd\popper.min.js" />
|
||||
<Content Include="Scripts\videopopup.js" />
|
||||
<Content Include="Scripts\_references.js" />
|
||||
<None Include="Service References\ServicioSinortWCF\Sinort.disco" />
|
||||
<None Include="Service References\ServicioSinortWCF\configuration91.svcinfo" />
|
||||
|
|
@ -7533,7 +7537,6 @@
|
|||
<Content Include="Views\NormativaReglamentacionTecnica\MisSolicitudes.cshtml" />
|
||||
<Content Include="Views\NormativaReglamentacionTecnica\VerSolicitudesCompra.cshtml" />
|
||||
<Content Include="Views\NormativaReglamentacionTecnica\CrearEncuesta.cshtml" />
|
||||
<Content Include="Views\Reportes\Aplicacion.cshtml" />
|
||||
<Content Include="Views\NormativaReglamentacionTecnica\ResponderEncuesta.cshtml" />
|
||||
<Content Include="Views\NormativaReglamentacionTecnica\ResponderMisEncuestas.cshtml" />
|
||||
<Content Include="Views\NormativaReglamentacionTecnica\MisEncuestas.cshtml" />
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
@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}
|
||||
57
AYA.SlnSynor/AYA.SlnSynor/Content/videopopup.css
Normal file
57
AYA.SlnSynor/AYA.SlnSynor/Content/videopopup.css
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
Created on : 2016-12-16, 13:40:46
|
||||
Author : Sławomir Netteria.NET https://netteria.net
|
||||
*/
|
||||
|
||||
#closer_videopopup{
|
||||
position: absolute;
|
||||
display: table-cell;
|
||||
right: 2%;
|
||||
top: 2%;
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
padding: auto;
|
||||
cursor: default;
|
||||
background: none;
|
||||
border: none;
|
||||
color: #ffffff;
|
||||
|
||||
|
||||
z-index: 100004;
|
||||
}
|
||||
#opct{
|
||||
position: fixed;
|
||||
z-index: 100000;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left:0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
filter: alpha(opacity=90);
|
||||
-moz-opacity: 0.90;
|
||||
opacity: 0.9;
|
||||
}
|
||||
#videCont{
|
||||
position: relative;
|
||||
padding-bottom: 56.25%; /* 16:9 */
|
||||
padding-top: 25px;
|
||||
height: 0;
|
||||
margin: auto;
|
||||
max-width: 720px;
|
||||
height: 0;
|
||||
height: auto !important;
|
||||
}
|
||||
video{
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
opacity: 1 !important;
|
||||
|
||||
}
|
||||
#video1{
|
||||
cursor: pointer; cursor: hand;
|
||||
}
|
||||
|
||||
|
|
@ -13,6 +13,7 @@ using AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters;
|
|||
|
||||
namespace AYA.SlnSinort.Controllers.Reportes
|
||||
{
|
||||
[LoggingFilter]
|
||||
public class ReportesController : BaseController
|
||||
{
|
||||
|
||||
|
|
@ -46,8 +47,7 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public ActionResult Reporte()
|
||||
{
|
||||
InitControllers();
|
||||
|
|
@ -57,7 +57,7 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
|
||||
#region Configuracion y Parametrizacion
|
||||
|
||||
[HttpPost]
|
||||
public void CargarReporteParemetros(string emisor,string documentotecnico,string aplicacion,string contenido,string subcontenido,string grupotematico,string subgrupotematico,string versionvigente,string fechainicio,string fechafin)
|
||||
{
|
||||
|
||||
|
|
@ -72,7 +72,8 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
dtta.Fill(dts.DataTable1, emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechai, fechaf);
|
||||
|
||||
reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
//reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
reportViewer.LocalReport.ReportPath = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||
reportViewer.LocalReport.DataSources.Clear();
|
||||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
|
|
@ -82,7 +83,7 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
public void CargarReporte( )
|
||||
{
|
||||
reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
|
|
@ -94,7 +95,7 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
dtta.Fill(dts.DataTable1, "", "", "", "", "", "", "", "", fechainicio, fechafin);
|
||||
|
||||
reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
reportViewer.LocalReport.ReportPath = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||
reportViewer.LocalReport.DataSources.Clear();
|
||||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
namespace AYA.SlnSinort.Reportes.datasets {
|
||||
|
||||
|
||||
public partial class dtsFichaTecnicaFinal {
|
||||
}
|
||||
}
|
||||
namespace AYA.SlnSinort.Reportes.datasets {
|
||||
|
||||
|
||||
public partial class dtsFichaTecnicaFinal {
|
||||
}
|
||||
}
|
||||
namespace AYA.SlnSinort.Reportes.datasets {
|
||||
|
||||
|
||||
public partial class dtsFichaTecnicaFinal {
|
||||
}
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="382" Y="178" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="526" Y="187" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Binary file not shown.
|
|
@ -1,364 +0,0 @@
|
|||
/**
|
||||
* Modules in this bundle
|
||||
* @license
|
||||
*
|
||||
* modal-video:
|
||||
* license: appleple
|
||||
* author: appleple
|
||||
* homepage: http://developer.a-blogcms.jp
|
||||
* version: 2.4.1
|
||||
*
|
||||
* custom-event-polyfill:
|
||||
* license: MIT (http://opensource.org/licenses/MIT)
|
||||
* maintainers: krambuhl <evan.krambuhl@gmail.com>
|
||||
* contributors: Frank Panetta, Mikhail Reenko <reenko@yandex.ru>, Joscha Feth <joscha@feth.com>
|
||||
* 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 <rubennorte@gmail.com>
|
||||
* 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<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
||||
// Polyfill for creating CustomEvents on IE9/10/11
|
||||
|
||||
// code pulled from:
|
||||
// https://github.com/d4tocchini/customevent-polyfill
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent#Polyfill
|
||||
|
||||
try {
|
||||
var ce = new window.CustomEvent('test');
|
||||
ce.preventDefault();
|
||||
if (ce.defaultPrevented !== true) {
|
||||
// IE has problems with .preventDefault() on custom events
|
||||
// http://stackoverflow.com/questions/23349191
|
||||
throw new Error('Could not prevent default');
|
||||
}
|
||||
} catch(e) {
|
||||
var CustomEvent = function(event, params) {
|
||||
var evt, origPrevent;
|
||||
params = params || {
|
||||
bubbles: false,
|
||||
cancelable: false,
|
||||
detail: undefined
|
||||
};
|
||||
|
||||
evt = document.createEvent("CustomEvent");
|
||||
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
||||
origPrevent = evt.preventDefault;
|
||||
evt.preventDefault = function () {
|
||||
origPrevent.call(this);
|
||||
try {
|
||||
Object.defineProperty(this, 'defaultPrevented', {
|
||||
get: function () {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
this.defaultPrevented = true;
|
||||
}
|
||||
};
|
||||
return evt;
|
||||
};
|
||||
|
||||
CustomEvent.prototype = window.Event.prototype;
|
||||
window.CustomEvent = CustomEvent; // expose definition to window
|
||||
}
|
||||
|
||||
},{}],2:[function(require,module,exports){
|
||||
/**
|
||||
* Code refactored from Mozilla Developer Network:
|
||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
function assign(target, firstSource) {
|
||||
if (target === undefined || target === null) {
|
||||
throw new TypeError('Cannot convert first argument to object');
|
||||
}
|
||||
|
||||
var to = Object(target);
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var nextSource = arguments[i];
|
||||
if (nextSource === undefined || nextSource === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var keysArray = Object.keys(Object(nextSource));
|
||||
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
|
||||
var nextKey = keysArray[nextIndex];
|
||||
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
|
||||
if (desc !== undefined && desc.enumerable) {
|
||||
to[nextKey] = nextSource[nextKey];
|
||||
}
|
||||
}
|
||||
}
|
||||
return to;
|
||||
}
|
||||
|
||||
function polyfill() {
|
||||
if (!Object.assign) {
|
||||
Object.defineProperty(Object, 'assign', {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: assign
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
assign: assign,
|
||||
polyfill: polyfill
|
||||
};
|
||||
|
||||
},{}],3:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
require('custom-event-polyfill');
|
||||
|
||||
var _util = require('../lib/util');
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
var assign = require('es6-object-assign').assign;
|
||||
|
||||
var defaults = {
|
||||
channel: 'youtube',
|
||||
facebook: {},
|
||||
youtube: {
|
||||
autoplay: 1,
|
||||
cc_load_policy: 1,
|
||||
color: null,
|
||||
controls: 1,
|
||||
disablekb: 0,
|
||||
enablejsapi: 0,
|
||||
end: null,
|
||||
fs: 1,
|
||||
h1: null,
|
||||
iv_load_policy: 1,
|
||||
list: null,
|
||||
listType: null,
|
||||
loop: 0,
|
||||
modestbranding: null,
|
||||
origin: null,
|
||||
playlist: null,
|
||||
playsinline: null,
|
||||
rel: 0,
|
||||
showinfo: 1,
|
||||
start: 0,
|
||||
wmode: 'transparent',
|
||||
theme: 'dark',
|
||||
nocookie: false
|
||||
},
|
||||
ratio: '16:9',
|
||||
vimeo: {
|
||||
api: false,
|
||||
autopause: true,
|
||||
autoplay: true,
|
||||
byline: true,
|
||||
callback: null,
|
||||
color: null,
|
||||
height: null,
|
||||
loop: false,
|
||||
maxheight: null,
|
||||
maxwidth: null,
|
||||
player_id: null,
|
||||
portrait: true,
|
||||
title: true,
|
||||
width: null,
|
||||
xhtml: false
|
||||
},
|
||||
allowFullScreen: true,
|
||||
animationSpeed: 300,
|
||||
classNames: {
|
||||
modalVideo: 'modal-video',
|
||||
modalVideoClose: 'modal-video-close',
|
||||
modalVideoBody: 'modal-video-body',
|
||||
modalVideoInner: 'modal-video-inner',
|
||||
modalVideoIframeWrap: 'modal-video-movie-wrap',
|
||||
modalVideoCloseBtn: 'modal-video-close-btn'
|
||||
},
|
||||
aria: {
|
||||
openMessage: 'You just openned the modal video',
|
||||
dismissBtnMessage: 'Close the modal by clicking here'
|
||||
}
|
||||
};
|
||||
|
||||
var ModalVideo = function () {
|
||||
function ModalVideo(ele, option) {
|
||||
var _this = this;
|
||||
|
||||
_classCallCheck(this, ModalVideo);
|
||||
|
||||
var opt = assign({}, defaults, option);
|
||||
var selectors = typeof ele === 'string' ? document.querySelectorAll(ele) : ele;
|
||||
var body = document.querySelector('body');
|
||||
var classNames = opt.classNames;
|
||||
var speed = opt.animationSpeed;
|
||||
[].forEach.call(selectors, function (selector) {
|
||||
selector.addEventListener('click', function (event) {
|
||||
if (selector.tagName === 'A') {
|
||||
event.preventDefault();
|
||||
}
|
||||
var videoId = selector.dataset.videoId;
|
||||
var channel = selector.dataset.channel || opt.channel;
|
||||
var id = (0, _util.getUniqId)();
|
||||
var videoUrl = selector.dataset.videoUrl || _this.getVideoUrl(opt, channel, videoId);
|
||||
var html = _this.getHtml(opt, videoUrl, id);
|
||||
(0, _util.append)(body, html);
|
||||
var modal = document.getElementById(id);
|
||||
var btn = modal.querySelector('.js-modal-video-dismiss-btn');
|
||||
modal.focus();
|
||||
modal.addEventListener('click', function () {
|
||||
(0, _util.addClass)(modal, classNames.modalVideoClose);
|
||||
setTimeout(function () {
|
||||
(0, _util.remove)(modal);
|
||||
selector.focus();
|
||||
}, speed);
|
||||
});
|
||||
modal.addEventListener('keydown', function (e) {
|
||||
if (e.which === 9) {
|
||||
e.preventDefault();
|
||||
if (document.activeElement === modal) {
|
||||
btn.focus();
|
||||
} else {
|
||||
modal.setAttribute('aria-label', '');
|
||||
modal.focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
btn.addEventListener('click', function () {
|
||||
(0, _util.triggerEvent)(modal, 'click');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
_createClass(ModalVideo, [{
|
||||
key: 'getPadding',
|
||||
value: function getPadding(ratio) {
|
||||
var arr = ratio.split(':');
|
||||
var width = Number(arr[0]);
|
||||
var height = Number(arr[1]);
|
||||
var padding = height * 100 / width;
|
||||
return padding + '%';
|
||||
}
|
||||
}, {
|
||||
key: 'getQueryString',
|
||||
value: function getQueryString(obj) {
|
||||
var url = '';
|
||||
Object.keys(obj).forEach(function (key) {
|
||||
url += key + '=' + obj[key] + '&';
|
||||
});
|
||||
return url.substr(0, url.length - 1);
|
||||
}
|
||||
}, {
|
||||
key: 'getVideoUrl',
|
||||
value: function getVideoUrl(opt, channel, videoId) {
|
||||
if (channel === 'youtube') {
|
||||
return this.getYoutubeUrl(opt.youtube, videoId);
|
||||
} else if (channel === 'vimeo') {
|
||||
return this.getVimeoUrl(opt.vimeo, videoId);
|
||||
} else if (channel === 'facebook') {
|
||||
return this.getFacebookUrl(opt.facebook, videoId);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}, {
|
||||
key: 'getVimeoUrl',
|
||||
value: function getVimeoUrl(vimeo, videoId) {
|
||||
var query = this.getQueryString(vimeo);
|
||||
return '//player.vimeo.com/video/' + videoId + '?' + query;
|
||||
}
|
||||
}, {
|
||||
key: 'getYoutubeUrl',
|
||||
value: function getYoutubeUrl(youtube, videoId) {
|
||||
var query = this.getQueryString(youtube);
|
||||
if (youtube.nocookie === true) {
|
||||
return '//www.youtube-nocookie.com/embed/' + videoId + '?' + query;
|
||||
}
|
||||
|
||||
return '//www.youtube.com/embed/' + videoId + '?' + query;
|
||||
}
|
||||
}, {
|
||||
key: 'getFacebookUrl',
|
||||
value: function getFacebookUrl(facebook, videoId) {
|
||||
return '//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/' + videoId + '&' + this.getQueryString(facebook);
|
||||
}
|
||||
}, {
|
||||
key: 'getHtml',
|
||||
value: function getHtml(opt, videoUrl, id) {
|
||||
var padding = this.getPadding(opt.ratio);
|
||||
var classNames = opt.classNames;
|
||||
return '\n <div class="' + classNames.modalVideo + '" tabindex="-1" role="dialog" aria-label="' + opt.aria.openMessage + '" id="' + id + '">\n <div class="' + classNames.modalVideoBody + '">\n <div class="' + classNames.modalVideoInner + '">\n <div class="' + classNames.modalVideoIframeWrap + '" style="padding-bottom:' + padding + '">\n <button class="' + classNames.modalVideoCloseBtn + ' js-modal-video-dismiss-btn" aria-label="' + opt.aria.dismissBtnMessage + '"></button>\n <iframe width=\'460\' height=\'230\' src="' + videoUrl + '" frameborder=\'0\' allowfullscreen=' + opt.allowFullScreen + ' tabindex="-1"/>\n </div>\n </div>\n </div>\n </div>\n ';
|
||||
}
|
||||
}]);
|
||||
|
||||
return ModalVideo;
|
||||
}();
|
||||
|
||||
exports.default = ModalVideo;
|
||||
module.exports = exports['default'];
|
||||
|
||||
},{"../lib/util":5,"custom-event-polyfill":1,"es6-object-assign":2}],4:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./core/');
|
||||
|
||||
},{"./core/":3}],5:[function(require,module,exports){
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var append = exports.append = function append(element, string) {
|
||||
var div = document.createElement('div');
|
||||
div.innerHTML = string;
|
||||
while (div.children.length > 0) {
|
||||
element.appendChild(div.children[0]);
|
||||
}
|
||||
};
|
||||
|
||||
var getUniqId = exports.getUniqId = function getUniqId() {
|
||||
return (Date.now().toString(36) + Math.random().toString(36).substr(2, 5)).toUpperCase();
|
||||
};
|
||||
|
||||
var remove = exports.remove = function remove(element) {
|
||||
if (element && element.parentNode) {
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
};
|
||||
|
||||
var addClass = exports.addClass = function addClass(element, className) {
|
||||
if (element.classList) {
|
||||
element.classList.add(className);
|
||||
} else {
|
||||
element.className += ' ' + className;
|
||||
}
|
||||
};
|
||||
|
||||
var triggerEvent = exports.triggerEvent = function triggerEvent(el, eventName, options) {
|
||||
var event = void 0;
|
||||
if (window.CustomEvent) {
|
||||
event = new CustomEvent(eventName, { cancelable: true });
|
||||
} else {
|
||||
event = document.createEvent('CustomEvent');
|
||||
event.initCustomEvent(eventName, false, false, options);
|
||||
}
|
||||
el.dispatchEvent(event);
|
||||
};
|
||||
|
||||
},{}]},{},[4])(4)
|
||||
});
|
||||
59
AYA.SlnSynor/AYA.SlnSynor/Scripts/videopopup.js
Normal file
59
AYA.SlnSynor/AYA.SlnSynor/Scripts/videopopup.js
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* Author: Sławomir Netteria.NET https://netteria.net
|
||||
*/
|
||||
(function ($) {
|
||||
|
||||
$.fn.VideoPopUp = function (options) {
|
||||
|
||||
var defaults = {
|
||||
backgroundColor: "#000000",
|
||||
opener: "video",
|
||||
maxweight: "640",
|
||||
pausevideo: true,
|
||||
idvideo: ""
|
||||
};
|
||||
|
||||
var patter = this.attr('id');
|
||||
|
||||
var settings = $.extend({}, defaults, options);
|
||||
|
||||
var video = document.getElementById(settings.idvideo);
|
||||
function stopVideo() {
|
||||
video.pause();
|
||||
video.currentTime = 0;
|
||||
}
|
||||
|
||||
$('#' + patter + '').css("display", "none");
|
||||
$('#' + patter + '').append('<div id="opct"></div>');
|
||||
$('#opct').css("background", settings.backgroundColor);
|
||||
$('#' + patter + '').css("z-index", "100001");
|
||||
$('#' + patter + '').css("position", "fixed")
|
||||
$('#' + patter + '').css("top", "0");
|
||||
$('#' + patter + '').css("bottom", "0");
|
||||
$('#' + patter + '').css("right", "0");
|
||||
$('#' + patter + '').css("left", "0");
|
||||
$('#' + patter + '').css("padding", "auto");
|
||||
$('#' + patter + '').css("text-align", "center");
|
||||
$('#' + patter + '').css("background", "none");
|
||||
$('#' + patter + '').css("vertical-align", "vertical-align");
|
||||
$("#videCont").css("z-index", "100002");
|
||||
$('#' + patter + '').append('<div id="closer_videopopup">⊗</div>');
|
||||
$("#" + settings.opener + "").on('click', function () {
|
||||
$('#' + patter + "").show();
|
||||
$('#'+settings.idvideo+'').trigger('play');
|
||||
|
||||
});
|
||||
$("#closer_videopopup").on('click', function () {
|
||||
if(settings.pausevideo==true){
|
||||
$('#'+settings.idvideo+'').trigger('pause');
|
||||
}else{
|
||||
stopVideo();
|
||||
}
|
||||
$('#' + patter + "").hide();
|
||||
});
|
||||
return this.css({
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
}(jQuery));
|
||||
|
|
@ -199,7 +199,7 @@ this.LeerFormulario = function (){
|
|||
model = reporte;
|
||||
}
|
||||
this.BuscarReporte = function (){
|
||||
var uri = server + 'Reportes/FichaTecnica';
|
||||
var uri = server + 'FichaTecnica';
|
||||
LeerFormulario();
|
||||
var container = document.getElementById('rptFichaTecnica');
|
||||
var refreshContent = container.innerHTML;
|
||||
|
|
|
|||
|
|
@ -734,7 +734,7 @@ this.LoadMessage = function (Message) {
|
|||
stringHtml += "<div id=\"loadingGif\" class=\"toast toast-default\" style=\"font-size:14px;\">";
|
||||
stringHtml += "<table>";
|
||||
stringHtml += "<tr>";
|
||||
stringHtml += "<td><img src=\"http://localhost/AYA.SlnSinort/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
|
||||
stringHtml += "<td><img src=\"http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif\" alt=\"loading\" height=\"50\" width=\"50\"></td>";
|
||||
stringHtml += "<td> </td>";
|
||||
stringHtml += "<td>";
|
||||
stringHtml += "<div class=\"toast-title\">" + Message + "</div>";
|
||||
|
|
@ -1801,10 +1801,10 @@ this.CerrarSesion = function () {
|
|||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
success: function () {
|
||||
document.location.href = "http://localhost/AYA.SlnSinort/";
|
||||
document.location.href = "http://aya-vsrv-apptt:2525/";
|
||||
},
|
||||
error: function () {
|
||||
document.location.href = "http://localhost/AYA.SlnSinort/";
|
||||
document.location.href = "http://aya-vsrv-apptt:2525/";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@ jQuery(document).ready(function () {
|
|||
|
||||
});
|
||||
|
||||
|
||||
$('#btnIniciar').keyup(function (e) {
|
||||
if (e.which == 13) {
|
||||
validarFormulario();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function validarFormulario() {
|
||||
|
||||
var Contador = 0;
|
||||
|
|
@ -68,7 +76,7 @@ this.VerificarUsurarioBD = function (data) {
|
|||
}
|
||||
|
||||
this.IniciarSesion = function (data) {
|
||||
|
||||
if (data.usuario.UsuarioSistema != null){
|
||||
var ArrayPermisos = [];
|
||||
var lista = data.pantallas;
|
||||
|
||||
|
|
@ -103,6 +111,9 @@ this.IniciarSesion = function (data) {
|
|||
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
ENDREQUEST();
|
||||
toastr.warning('No se ha obtenido los datos del usuario', Message_Warning);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,8 @@ this.getDataModel = function () {
|
|||
|
||||
$("#btnGuardar").unbind("click");
|
||||
$('#btnGuardar').click(function () {
|
||||
GuardarFichaTecnica();
|
||||
//GuardarFichaTecnica();
|
||||
ObtenerUsuariosFichaTecnicaAlerta();
|
||||
});
|
||||
|
||||
$("#btnDivulgar").unbind("click");
|
||||
|
|
@ -293,7 +294,7 @@ this.CargarEstado = function (filtro) {
|
|||
|
||||
this.GuardarFichaTecnica = function () {
|
||||
|
||||
if (ValidarPermisos('Crear Ficha Tecnica').length > 0) {
|
||||
|
||||
|
||||
if (!$("#formFichaTecnica").valid()) {
|
||||
toastr.warning("Ingresar todos los campos que son requeridos.");
|
||||
|
|
@ -363,10 +364,7 @@ this.GuardarFichaTecnica = function () {
|
|||
|
||||
//LimpiarControles();
|
||||
location.replace("javascript: EntrarVerEstadoFicha('1');");
|
||||
}
|
||||
else {
|
||||
toastr.warning(Message_NoGrants, Message_Warning);
|
||||
}
|
||||
|
||||
}
|
||||
this.VerificarAlerta = function ()
|
||||
{
|
||||
|
|
@ -1020,7 +1018,7 @@ this.GuardarAdjuntos = function (nombre) {
|
|||
var uri = SinortWCF + '/api/GuardarAdjuntos';
|
||||
|
||||
var nombredoc = replaceAll(" ", "_", nombre);
|
||||
var ruta = DescTipoproyecto + '\\' + nombredoc;
|
||||
var ruta = nombredoc;
|
||||
var Idetipoproyecto = 3;
|
||||
|
||||
var Arraynombre = [];
|
||||
|
|
@ -1335,9 +1333,9 @@ this.ActivarFichaTecnicaAlerta = function () {
|
|||
var uri = SinortWCF + '/api/InsertarActualizarFichaTecnicaAlerta';
|
||||
model.FichaTecnicaAlerta = Alerta;
|
||||
|
||||
AjaxPostData(uri, model, false, true, null, null, null);
|
||||
AjaxPostData(uri, model, false, true, EnviarCorreoAlerta, null, null);
|
||||
|
||||
ENDREQUEST();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1361,7 +1359,54 @@ this.EnviarCorreoAlerta = function () {
|
|||
model.FichaTecnica = FichaTecnica;
|
||||
model.PlantillaEmail = Plantilla;
|
||||
|
||||
AjaxPostData(uri, model, false, true, GuardarAlertaFichaTecnica, null, null);
|
||||
AjaxPostData(uri, model, false, true, null, null, null);
|
||||
}
|
||||
|
||||
this.ObtenerUsuariosFichaTecnicaAlerta = function () {
|
||||
|
||||
if (ValidarPermisos('Crear Ficha Tecnica').length > 0) {
|
||||
var Alerta = {
|
||||
IdFichaTecnica: FichaTecnicaId
|
||||
}
|
||||
var uri = SinortWCF + '/api/ObtenerFichaTecnicaAlerta';
|
||||
model.FichaTecnicaAlerta = Alerta;
|
||||
|
||||
AjaxPostData(uri, model, false, true, EnviarCorreoAlertaModificacion, null, null);
|
||||
}
|
||||
else {
|
||||
toastr.warning("No tiene permisos para ejecutar esta opción", Message_Warning);
|
||||
}
|
||||
}
|
||||
this.EnviarCorreoAlertaModificacion = function (data) {
|
||||
|
||||
|
||||
|
||||
var listaUsuarios = data.ListaFichaTecnicaAlerta;
|
||||
var ArrayDestinatarios = [];
|
||||
|
||||
$.each(listaUsuarios, function (key, item) {
|
||||
|
||||
Usuario = {
|
||||
UsuarioSistema: item.UsuarioSistema
|
||||
}
|
||||
ArrayDestinatarios.push(Usuario);
|
||||
});
|
||||
|
||||
var FichaTecnica
|
||||
= {
|
||||
DescripcionDocumentoTecnico: $("#txtDescripcionDocAux").val(),
|
||||
|
||||
}
|
||||
|
||||
var Plantilla
|
||||
= {
|
||||
NombrePlatilla: 'Correo Modificacion Ficha Tecnica',
|
||||
}
|
||||
var uri = SinortWCF + '/api/EnviarCorreoFichaTecnica';
|
||||
model.FichaTecnica = FichaTecnica;
|
||||
model.PlantillaEmail = Plantilla;
|
||||
model.ListaParticipantes = ArrayDestinatarios;
|
||||
AjaxPostData(uri, model, false, true, GuardarFichaTecnica, null, null);
|
||||
}
|
||||
|
||||
this.GuardarAlertaFichaTecnica = function (data) {
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ this.GuardarAdjuntos = function (nombre) {
|
|||
var uri = SinortWCF + '/api/GuardarAdjuntos';
|
||||
|
||||
var nombredoc = replaceAll(" ", "_", nombre);
|
||||
var ruta = DescTipoproyecto + '\\' + nombredoc;
|
||||
var ruta = nombredoc;
|
||||
var Idetipoproyecto = 5;
|
||||
|
||||
var Arraynombre = [];
|
||||
|
|
|
|||
|
|
@ -1334,11 +1334,11 @@ this.GuardarAdjuntos = function (nombre) {
|
|||
if (EsForo) {
|
||||
Idetipoproyecto = Proyectos.Foro.Codigo;
|
||||
DesTipoProyecto = Proyectos.Foro.Descripcion;
|
||||
ruta = Proyectos.Foro.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombredoc;
|
||||
ruta = nombredoc;
|
||||
} else {
|
||||
Idetipoproyecto = Proyectos.PropuestaNormativa.Codigo;
|
||||
DesTipoProyecto = Proyectos.PropuestaNormativa.Descripcion;
|
||||
ruta = Proyectos.PropuestaNormativa.Descripcion + '\\' + model.ProyectoNormativo.IdProyectoNormativo + '\\' + SubTipoproyecto + '\\' + nombredoc;
|
||||
ruta = nombredoc;
|
||||
}
|
||||
var Arraynombre = [];
|
||||
Arraynombre = nombredoc.split(".");
|
||||
|
|
|
|||
|
|
@ -1,12 +1,28 @@
|
|||
|
||||
var Item = {};
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
|
||||
CargarWiki();
|
||||
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$('#vidBox').VideoPopUp({
|
||||
|
||||
opener: "video1",
|
||||
maxweight: "340",
|
||||
idvideo: "v1",
|
||||
backgroundColor: "#000000",
|
||||
pausevideo: true
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.CargarWiki = function () {
|
||||
|
||||
|
|
@ -38,15 +54,12 @@ this.CargarTablaWiki = function (data) {
|
|||
|
||||
$('#tableWiki').on('click', 'button', function () {
|
||||
|
||||
$(".js-modal-btn").modalVideo();
|
||||
|
||||
var data = $('#tableWiki').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
var mtzView = data.Vista.split('/')
|
||||
//var mtzView = data.Vista.split('/')
|
||||
|
||||
|
||||
//url = $("#hiddenHref").val();
|
||||
//url = url.replace("View", mtzView[1]);
|
||||
//url = url.replace("Controller", mtzView[0]);
|
||||
|
||||
//document.location.href = url;
|
||||
|
||||
});
|
||||
|
|
@ -12,8 +12,8 @@
|
|||
<div class="row">
|
||||
@*<div class="col-sm-4"><a href="#"> <img class="img-responsive" src="~/dist/img/imgNormReg1.png"></div>*@
|
||||
<div class="col-sm-4"><a href="javascript: EntrarVerEstadoFicha('1');"> <img class="img-responsive" src="~/dist/img/imgNormReg1.png"></div>
|
||||
<div class="col-sm-4"><a href="javascript: ValidarAcceder('proyecto_normativo','Home','Ver proyectos y foros');"> <img class="img-responsive" src="~/dist/img/imgProyeNorm1.png"></div>
|
||||
<div class="col-sm-4"><a href="@Url.Action("Reporte", "Reportes")"> <img class="img-responsive" src="~/dist/img/imgEst1.png"></div>
|
||||
<div class="col-sm-4"><a href="javascript: ValidarAcceder('Proyecto_Normativo','Home','Ver proyectos y foros');"> <img class="img-responsive" src="~/dist/img/imgProyeNorm1.png"></div>
|
||||
<div class="col-sm-4"><a href="javascript: ValidarAcceder('Reporte','Reportes','Ver Reporte');"> <img class="img-responsive" src="~/dist/img/imgEst1.png"></div>
|
||||
@*<div class="col-sm-4"><a href="#"> <img class="img-responsive" src="~/dist/img/imgEst1.png"></div>*@
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="~/Content/modal-video.min.css">
|
||||
<script src="~/Scripts/modal-video.js"></script>
|
||||
<script src="~/Scripts/videopopup.js"></script>
|
||||
<link rel="stylesheet" href="~/Content/videopopup.css">
|
||||
|
||||
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
|
||||
<form id="formWiki" class="form-horizontal" role="form">
|
||||
|
|
@ -14,8 +15,18 @@
|
|||
<div style="background-color: #fff">
|
||||
|
||||
|
||||
<button class="js-modal-btn" data-video-id="https://www.youtube.com/watch?v=4DZPZU4oGKc">Open Video</button>
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
<a href="javascript:void(0)" id="video1">-- open video --</a>
|
||||
<div id="vidBox">
|
||||
<div id="videCont">
|
||||
<video id="v1" loop controls>
|
||||
<source src="http://localhost/AYA.SlnSinort/DocumentosSINORT/Catalogo_Aplicacion.mp4" type="video/mp4">
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<br />
|
||||
|
||||
|
|
@ -24,7 +35,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-4">Descripción</th>
|
||||
<th>Acción</th>
|
||||
<th id="video1" href="javascript:void(0)">Acción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<button type="button" class="btn btn-primary" style="margin-top: 5px; background-color: #4673d1 !important; text-transform: none !important; font-size: 13px !important;" onclick="validarFormulario();">
|
||||
<button id="btnIniciar" type="button" class="btn btn-primary" style="margin-top: 5px; background-color: #4673d1 !important; text-transform: none !important; font-size: 13px !important;" onclick="validarFormulario();">
|
||||
Iniciar sesión
|
||||
</button>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
@using ReportViewerForMvc;
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Listado de Aplicaciones";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<form id="formForo" class="form-horizontal" role="form">
|
||||
<div class="panel-body"> <h3> <i class="fa fa-file-text"></i> Listado de Aplicación </h3> </div>
|
||||
<div style="background-color: #fff">
|
||||
|
||||
<div class="panel-body">
|
||||
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
@ -81,13 +81,12 @@
|
|||
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="glyphicon glyphicon-tint"></i>
|
||||
<span class="label label-success" id="numGotitasPendientes">0</span>
|
||||
<span class="label label-success" id="numGotitasPendientes">[$0]</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header" id="numGotitasPendientesHeader">0</li>
|
||||
<li class="header" id="numGotitasPendientesHeader">[$0]</li>
|
||||
|
||||
<li class="footer"><a href="#">Ver gotitas normativas </a></li>
|
||||
@*<li class="footer"><a href="@Url.Action("GotitasPendientes", "Home")">Ver gotitas normativas </a></li>*@
|
||||
<li class="footer"><a href="@Url.Action("GotitasPendientes", "Home")">Ver gotitas normativas </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
|
@ -168,7 +167,7 @@
|
|||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
@*<span><i class="fa fa-circle text-success"> Acciones</i> </span>
|
||||
<span><i class="fa fa-circle text-success"> Acciones</i> </span>
|
||||
|
||||
<li><a href="javascript: EntrarPantallaSolicitud('1');"> Consulta al administrador </a></li>
|
||||
<li><a href="javascript: EntrarPantallaSolicitud('2');"> Compra de documento técnica </a></li>
|
||||
|
|
@ -179,14 +178,14 @@
|
|||
<span><i class="fa fa-circle text-success"> Sitios</i> </span>
|
||||
<li><a href="javascript: ValidarAcceder('CrearEncuesta','NormativaReglamentacionTecnica','Super Usuario');"> Crear encuesta </a></li>
|
||||
<li><a href="@Url.Action("ResponderMisEncuestas", "NormativaReglamentacionTecnica")"> Responder mis encuestas </a></li>
|
||||
<li><a href="javascript: ValidarAcceder('VerEncuestas','NormativaReglamentacionTecnica','Ver mis encuestas');"> Ver encuestas </a></li>*@
|
||||
<li><a href="javascript: ValidarAcceder('VerEncuestas','NormativaReglamentacionTecnica','Ver mis encuestas');"> Ver encuestas </a></li>
|
||||
<span><i class="fa fa-circle text-success"> Administar</i> </span>
|
||||
<li><a href="javascript: ValidarAcceder('FichaTecnica','NormativaReglamentacionTecnica','Crear Ficha Tecnica');"> Ficha Técnica</a></li>
|
||||
@*<li><a href="javascript: EntrarVerEstadoFicha('2','Consulta ficha técnica inactiva');"> Ver fichas técnicas inactivas</a></li>
|
||||
<li><a href="javascript: EntrarVerEstadoFicha('3', 'Consulta ficha técnica eliminada');"> Ver fichas técnicas eliminadas</a></li>
|
||||
<li><a href="javascript: ValidarAcceder('VerSolicitudesCompra','NormativaReglamentacionTecnica','Ver histórico de solicitudes de compra');"> Ver solicitudes de compra</a></li>
|
||||
<li><a href="javascript: EntrarVerSolicitud('3','Ver histórico de solicitudes de modificación');"> Ver solicitudes de modificación</a></li>
|
||||
<li><a href="javascript: EntrarVerSolicitud('1','Ver histórico de solicitudes de consulta');"> Ver solicitudes de consulta</a></li>*@
|
||||
<li><a href="javascript: EntrarVerEstadoFicha('2','Consulta ficha técnica inactiva');"> Ver fichas técnicas inactivas</a></li>
|
||||
<li><a href="javascript: EntrarVerEstadoFicha('3', 'Consulta ficha técnica eliminada');"> Ver fichas técnicas eliminadas</a></li>
|
||||
<li><a href="javascript: ValidarAcceder('VerSolicitudesCompra','NormativaReglamentacionTecnica','Ver histórico de solicitudes de compra');"> Ver solicitudes de compra</a></li>
|
||||
<li><a href="javascript: EntrarVerSolicitud('3','Ver histórico de solicitudes de modificación');"> Ver solicitudes de modificación</a></li>
|
||||
<li><a href="javascript: EntrarVerSolicitud('1','Ver histórico de solicitudes de consulta');"> Ver solicitudes de consulta</a></li>
|
||||
<li><a href="javascript: ValidarAcceder('Mantenimiento','Catalogos','Ingreso y actualización de mantenimientos');"> Configuración de la </br> aplicación</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
@ -213,7 +212,7 @@
|
|||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<span><i class="fa fa-circle text-success"> Acciones</i> </span>
|
||||
<li><a href="@Url.Action("Reporte", "Reportes")"> Ver Reporte</a></li>
|
||||
<li><a href="javascript: ValidarAcceder('Reporte','Reportes','Ver Reporte');"> Ver Reporte</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
|
@ -311,7 +310,7 @@
|
|||
|
||||
ObtenerDatosUsuario();
|
||||
ObtenerCantidadTareasPendientes();
|
||||
//ObtenerCantidadGotitasPendientes();
|
||||
ObtenerCantidadGotitasPendientes();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -19,36 +19,36 @@
|
|||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
|
||||
<!--<add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
|
||||
|
||||
<!--<add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://10.50.1.123:2070/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://10.50.1.97:6075/DocumentosSinort/" />
|
||||
<add key="FileUploadHandler" value="http://10.50.1.97:6075/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://10.50.1.97:6075/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" />
|
||||
|
||||
|
||||
<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" />
|
||||
|
||||
|
||||
<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
||||
<add key="FileRepository" value="C:\DocumentosSinort\" />
|
||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
||||
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" />
|
||||
-->
|
||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" />-->
|
||||
|
||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||
<add key="MaxCountFileLoad" value="3" />
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||
<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="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
||||
<add key="RutaLogoSINORT" value="http://localhost/AYA.SlnSinort/dist/img/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<sessionState timeout="5">
|
||||
<sessionState timeout="10">
|
||||
</sessionState>
|
||||
<authentication mode="None" />
|
||||
<compilation debug="true" targetFramework="4.5">
|
||||
|
|
@ -66,6 +66,7 @@
|
|||
</httpHandlers>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
|
||||
<modules>
|
||||
<remove name="FormsAuthentication" />
|
||||
</modules>
|
||||
|
|
@ -221,4 +222,5 @@
|
|||
<client>
|
||||
</client>
|
||||
</system.serviceModel>
|
||||
|
||||
</configuration>
|
||||
|
|
@ -426,81 +426,6 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
return registros;
|
||||
}
|
||||
|
||||
|
||||
public FichaTecnicaJSON ObtenerFichaAlerta(FichaTecnicaJSON model)
|
||||
{
|
||||
FichaTecnicaJSON registros = new FichaTecnicaJSON();
|
||||
|
||||
try
|
||||
{
|
||||
using (SinortContex Conn = new SinortContex())
|
||||
{
|
||||
registros.FichaTecnicaAlerta = Conn.FichaTecnicaAlerta
|
||||
.Where(x => x.IdFichaTecnica == model.IdFichaTecnica && x.UsuarioSistema == model.UsuarioSistema);
|
||||
|
||||
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||
}
|
||||
|
||||
}
|
||||
catch (DbEntityValidationException ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
}
|
||||
|
||||
return registros;
|
||||
}
|
||||
|
||||
|
||||
public FichaTecnicaJSON GuardarFichaTecnicaAlerta(FichaTecnicaJSON model)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (SinortContex Conn = new SinortContex())
|
||||
{
|
||||
|
||||
model.FichaTecnicaAlerta.ClearProperties();
|
||||
|
||||
if (!Conn.FichaTecnicaAlerta.Any(x => x.IdFichaTecnica == model.FichaTecnicaAlerta.IdFichaTecnica))
|
||||
{
|
||||
model.FichaTecnicaAlerta.UsuarioCreacion = model.UserName;
|
||||
model.FichaTecnicaAlerta.FechaCreacion = DateTime.Now;
|
||||
Conn.FichaTecnicaAlerta.Add(model.FichaTecnicaAlerta);
|
||||
}
|
||||
else
|
||||
{
|
||||
model.FichaTecnicaAlerta.UsuarioModificacion = model.UserName;
|
||||
model.FichaTecnicaAlerta.FechaModificacion = DateTime.Now;
|
||||
Conn.Entry(model.FichaTecnicaAlerta).State = System.Data.Entity.EntityState.Detached;
|
||||
Conn.FichaTecnicaAlerta.Attach(model.FichaTecnicaAlerta);
|
||||
Conn.Entry(model.FichaTecnicaAlerta).State = System.Data.Entity.EntityState.Modified;
|
||||
}
|
||||
|
||||
Conn.SaveChanges();
|
||||
Conn.Commit();
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||
|
||||
}
|
||||
}
|
||||
catch (DbEntityValidationException ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||
}
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
public FichaTecnicaJSON InsertarActualizarFichaTecnicaAlerta(FichaTecnicaJSON model)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace AYA.SlnSinortModel.Entidades
|
|||
public List<FichaTecnicaHistorico> FichaTecnicaHistoricos { get; set; }
|
||||
public List<FichaTecnicaHistoricoPalabraClave> ListaPalabraClaveHistorico { get; set; }
|
||||
|
||||
public FichaTecnicaAlerta FichaTecnicaAlerta { get; set; }
|
||||
|
||||
public List<FichaTecnicaAlerta> ListaFichasTecnicasAlertas { get; set; }
|
||||
|
||||
public List<FichaTecnica> FichasTecnicas { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue