git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C477
This commit is contained in:
parent
86675f7e10
commit
2c19648292
13 changed files with 50 additions and 23 deletions
|
|
@ -845,8 +845,8 @@ namespace AYA.SlnSinort.WCF
|
||||||
.Replace("$Link", "<a href=" + "\"" + model.Link + "\"" + ">Aquí </a>").Replace("|", "</br>");
|
.Replace("$Link", "<a href=" + "\"" + model.Link + "\"" + ">Aquí </a>").Replace("|", "</br>");
|
||||||
correo.CUERPO = body;
|
correo.CUERPO = body;
|
||||||
email = usuario.EmailUsuario;
|
email = usuario.EmailUsuario;
|
||||||
correo.DESTINATARIOS = "jnunez@atesacr.com";
|
correo.DESTINATARIOS = email;
|
||||||
correo.RUTAADJUNTOS = "";
|
correo.RUTAADJUNTOS = model.Ruta != null ? "" : model.Ruta;
|
||||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,9 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
||||||
|
|
||||||
dtta.Fill(dts.DataTable1, emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechai, fechaf);
|
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.ReportPath = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||||
|
//reportViewer.LocalReport.ReportPath = @"D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||||
reportViewer.LocalReport.DataSources.Clear();
|
reportViewer.LocalReport.DataSources.Clear();
|
||||||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||||
|
|
||||||
|
|
@ -95,7 +96,8 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
||||||
|
|
||||||
dtta.Fill(dts.DataTable1, "", "", "", "", "", "", "", "", fechainicio, fechafin);
|
dtta.Fill(dts.DataTable1, "", "", "", "", "", "", "", "", fechainicio, fechafin);
|
||||||
|
|
||||||
reportViewer.LocalReport.ReportPath = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||||
|
//reportViewer.LocalReport.ReportPath = @"D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
|
||||||
reportViewer.LocalReport.DataSources.Clear();
|
reportViewer.LocalReport.DataSources.Clear();
|
||||||
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@
|
||||||
<xs:schema id="dtsFichaTecnicaFinal" targetNamespace="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns:mstns="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
<xs:schema id="dtsFichaTecnicaFinal" targetNamespace="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns:mstns="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns="http://tempuri.org/dtsFichaTecnicaFinal.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||||
<xs:annotation>
|
<xs:annotation>
|
||||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
<DataSource DefaultConnectionIndex="2" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
<Connections>
|
<Connections>
|
||||||
<Connection ConnectionStringObject="Data Source=192.168.1.37;Initial Catalog=SinortAyA;Persist Security Info=True;User ID=sinort;Password=sinort2018;MultipleActiveResultSets=True;Application Name=EntityFramework" IsAppSettingsProperty="false" Modifier="Assembly" Name="Contex (AYA.SlnSinort.WCF)" ParameterPrefix="@" Provider="System.Data.SqlClient" />
|
<Connection ConnectionStringObject="Data Source=192.168.1.37;Initial Catalog=SinortAyA;Persist Security Info=True;User ID=sinort;Password=sinort2018;MultipleActiveResultSets=True;Application Name=EntityFramework" IsAppSettingsProperty="false" Modifier="Assembly" Name="Contex (AYA.SlnSinort.WCF)" ParameterPrefix="@" Provider="System.Data.SqlClient" />
|
||||||
<Connection ConnectionStringObject="Data Source=10.50.1.98;Initial Catalog=SINORT;Persist Security Info=True;User ID=usersinort;Password=usersinort;MultipleActiveResultSets=True;Application Name=EntityFramework" IsAppSettingsProperty="false" Modifier="Assembly" Name="Contex (AYA.SlnSinort.WCF)1" ParameterPrefix="@" Provider="System.Data.SqlClient" />
|
<Connection ConnectionStringObject="Data Source=10.50.1.98;Initial Catalog=SINORT;Persist Security Info=True;User ID=usersinort;Password=usersinort;MultipleActiveResultSets=True;Application Name=EntityFramework" IsAppSettingsProperty="false" Modifier="Assembly" Name="Contex (AYA.SlnSinort.WCF)1" ParameterPrefix="@" Provider="System.Data.SqlClient" />
|
||||||
|
<Connection ConnectionStringObject="Data Source=10.50.1.142;Initial Catalog=SINORT;Persist Security Info=True;User ID=usersinort;Password=us3rsinort" IsAppSettingsProperty="false" Modifier="Assembly" Name="aya-vsrv-bdtt.SINORT.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
|
||||||
</Connections>
|
</Connections>
|
||||||
<Tables>
|
<Tables>
|
||||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable1TableAdapter" GeneratorDataComponentClassName="DataTable1TableAdapter" Name="DataTable1" UserDataComponentName="DataTable1TableAdapter">
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable1TableAdapter" GeneratorDataComponentClassName="DataTable1TableAdapter" Name="DataTable1" UserDataComponentName="DataTable1TableAdapter">
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
</autogenerated>-->
|
</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">
|
<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>
|
<Shapes>
|
||||||
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="526" Y="187" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
<Shape ID="DesignTable:DataTable1" ZOrder="1" X="754" Y="170" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||||
</Shapes>
|
</Shapes>
|
||||||
<Connectors />
|
<Connectors />
|
||||||
</DiagramLayout>
|
</DiagramLayout>
|
||||||
|
|
@ -199,7 +199,7 @@ this.LeerFormulario = function (){
|
||||||
model = reporte;
|
model = reporte;
|
||||||
}
|
}
|
||||||
this.BuscarReporte = function (){
|
this.BuscarReporte = function (){
|
||||||
var uri = server + 'FichaTecnica';
|
var uri = server + 'Reportes/FichaTecnica';
|
||||||
LeerFormulario();
|
LeerFormulario();
|
||||||
var container = document.getElementById('rptFichaTecnica');
|
var container = document.getElementById('rptFichaTecnica');
|
||||||
var refreshContent = container.innerHTML;
|
var refreshContent = container.innerHTML;
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
||||||
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
||||||
var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
|
var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
|
||||||
var LinkSolicitudTarea = "http://localhost/AYA.SlnSinort/TareasPendientes";
|
var LinkSolicitudTarea = "http://localhost/AYA.SlnSinort/TareasPendientes";
|
||||||
var LinkSolicitudResponder = "http://localhost/AYA.SlnSinort/Home/NormativaReglamentacionTecnica/VerSolicitudes?";
|
var LinkSolicitudResponder = "http://localhost/AYA.SlnSinort/NormativaReglamentacionTecnica/VerSolicitudes?";
|
||||||
//aya-vsrv-apptt:2525
|
//aya-vsrv-apptt:2525
|
||||||
|
//10.50.1.97:6075
|
||||||
//http://aya-vsrv-wstt:2005/Sinort.svc
|
//http://aya-vsrv-wstt:2005/Sinort.svc
|
||||||
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
|
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
|
||||||
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,8 @@ this.GuardarGotitaNormativa = function () {
|
||||||
FechaCaducidad: $("#txtFechaCaducidad").DateFormatWCF(),
|
FechaCaducidad: $("#txtFechaCaducidad").DateFormatWCF(),
|
||||||
IdDocumentoAdjunto: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.IdDocumentoAdjunto,
|
IdDocumentoAdjunto: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.IdDocumentoAdjunto,
|
||||||
DescripcionDocumentoAdjunto: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.Nombre,
|
DescripcionDocumentoAdjunto: IsNullOrEmpty(modelDocumentoAdjunto) ? 0 : modelDocumentoAdjunto.Adjuntos.Nombre,
|
||||||
Estado: 1
|
Estado: 1,
|
||||||
|
UsuarioCreacion: UsuarioSistema
|
||||||
|
|
||||||
}
|
}
|
||||||
//model.GotitasNormativa = GotitaNormativa;
|
//model.GotitasNormativa = GotitaNormativa;
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ this.AgregarPregunta = function () {
|
||||||
|
|
||||||
var option = $("#ucbtnRemover").html();
|
var option = $("#ucbtnRemover").html();
|
||||||
|
|
||||||
if ($('#chkRequerido').prop('checked')) {
|
if ($('#chkReque').prop('checked')) {
|
||||||
requerido = "Si";
|
requerido = "Si";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -375,7 +375,7 @@ this.GuardarFichaTecnica = function () {
|
||||||
|
|
||||||
|
|
||||||
var uri = SinortWCF + '/api/GuardarFichaTecnica';
|
var uri = SinortWCF + '/api/GuardarFichaTecnica';
|
||||||
AjaxPostData(uri, model, true, true, null, null, null);
|
AjaxPostData(uri, model, false, true, GuardarGotitaNormativa, null, null);
|
||||||
|
|
||||||
if (EstadoTipo == "1") {
|
if (EstadoTipo == "1") {
|
||||||
model.FichaTecnicaHistorico = FichaTemporal;
|
model.FichaTecnicaHistorico = FichaTemporal;
|
||||||
|
|
@ -386,6 +386,25 @@ this.GuardarFichaTecnica = function () {
|
||||||
LimpiarControles();
|
LimpiarControles();
|
||||||
//location.replace("javascript: EntrarVerEstadoFicha('1');");
|
//location.replace("javascript: EntrarVerEstadoFicha('1');");
|
||||||
|
|
||||||
|
}
|
||||||
|
this.GuardarGotitaNormativa = function () {
|
||||||
|
var fecha = new Date();
|
||||||
|
fecha.setMonth(fecha.getMonth() + 1);
|
||||||
|
|
||||||
|
GotitaNormativa = {
|
||||||
|
Nombre: "!Informate¡",
|
||||||
|
Descripcion: "Nuevo documento normativo. " + $('#txtDescripcionDocAux').val(),
|
||||||
|
FechaCaducidad: fecha,
|
||||||
|
IdDocumentoAdjunto: null,
|
||||||
|
DescripcionDocumentoAdjunto: null,
|
||||||
|
Estado: 1,
|
||||||
|
UsuarioCreacion: UsuarioSistema
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var uri = SinortWCF + '/api/InsertarGotitasNormativas';
|
||||||
|
AjaxPostData(uri, GotitaNormativa, false, true, null, null, null);
|
||||||
|
|
||||||
}
|
}
|
||||||
this.GuardarPalabraClaveHistorico = function(data)
|
this.GuardarPalabraClaveHistorico = function(data)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ var justificacion;
|
||||||
var ListaUsuariosCorreo;
|
var ListaUsuariosCorreo;
|
||||||
var FechaDocumentos;
|
var FechaDocumentos;
|
||||||
var ruta;
|
var ruta;
|
||||||
|
var modelDocumentoAdjunto = null;
|
||||||
|
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
|
|
||||||
|
|
@ -690,9 +691,10 @@ this.EnviarCorreoSolicitud = function () {
|
||||||
= {
|
= {
|
||||||
NombrePlatilla: 'Correo Respuesta Solicitud',
|
NombrePlatilla: 'Correo Respuesta Solicitud',
|
||||||
}
|
}
|
||||||
var link = LinkSolicitudResponder + "solicitud=" + ROT47(Solicitud.IdTipoSolicitud.toString());
|
var tiposolicitud = InfoIdProyectoNormativo = 1 ? "`" : "b";
|
||||||
|
var link = LinkSolicitudResponder + "solicitud=" + tiposolicitud;
|
||||||
|
|
||||||
model.Ruta = RepositorioLocal + ruta;
|
model.Ruta = ruta != null ? RepositorioLocal + ruta : null;
|
||||||
model.Link = link;
|
model.Link = link;
|
||||||
model.Mensaje = $('#txtRespuesta').val();
|
model.Mensaje = $('#txtRespuesta').val();
|
||||||
model
|
model
|
||||||
|
|
|
||||||
|
|
@ -83,13 +83,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" id="btnGuardar" class="btn btn-success btn-medium" data-dismiss="modal">
|
||||||
|
<i class="fa fa-floppy-o"></i> Guardar
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" id="btnGuardar" class="btn btn-success btn-medium" data-dismiss="modal">
|
|
||||||
<i class="fa fa-floppy-o"></i> Guardar
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,17 +29,17 @@
|
||||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" /> -->
|
<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="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||||
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
||||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
||||||
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
||||||
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
||||||
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
<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="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" /> -->
|
||||||
|
|
||||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||||
<add key="MaxCountFileLoad" value="3" />
|
<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="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/" />
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
int? Next_id = Conn.Emisor.Max(t => (int?)t.IdEmisor);
|
int? Next_id = Conn.Emisor.Max(t => (int?)t.IdEmisor);
|
||||||
model.IdGotitaNormativa = (Next_id == null) ? 1 : Next_id.Value + 1;
|
model.IdGotitaNormativa = (Next_id == null) ? 1 : Next_id.Value + 1;
|
||||||
model.FechaCreacion = DateTime.Now;
|
model.FechaCreacion = DateTime.Now;
|
||||||
model.UsuarioCreacion = Actual.UsuarioCreacion;
|
model.UsuarioCreacion =model.UsuarioCreacion;
|
||||||
Conn.GotitasNormativas.Add(model);
|
Conn.GotitasNormativas.Add(model);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue