diff --git a/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs b/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs
index ba178b3d1..7a08e0f14 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs
@@ -27,7 +27,7 @@ namespace AYA.SlnSinort.ReporteASP
ReportViewer1.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
- dtta.Fill(dts.DataTable1, null, null, null, null, null, null, null, null, Convert.ToDateTime("1900-01-01"), DateTime.Today.AddYears(20));
+ dtta.Fill(dts.DataTable1, null, null, null, null, null, null, null, null, Convert.ToDateTime("1900-01-01"), DateTime.Today.AddYears(20),null,null);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
@@ -54,22 +54,24 @@ namespace AYA.SlnSinort.ReporteASP
int? sub_contenido = null;
int? grupo_tematico = null;
int? sub_grupo_tematico = null;
+ int? id_ficha_tecnica = null;
emisor = hiddenEmisor.Value == "" ? emisor : Convert.ToInt32(hiddenEmisor.Value);
- documento_tecnico = hiddenDocumentoTecnico.Value == "" ? emisor : Convert.ToInt32(hiddenDocumentoTecnico.Value);
- aplicacion = hiddenAplicacion.Value == "" ? emisor : Convert.ToInt32(hiddenAplicacion.Value);
- contenido = hiddenContenido.Value == "" ? emisor : Convert.ToInt32(hiddenContenido.Value);
- sub_contenido = hiddenSubCategoriaContenido.Value == "" ? emisor : Convert.ToInt32(hiddenSubCategoriaContenido.Value);
- grupo_tematico = hiddenGrupoTematico.Value == "" ? emisor : Convert.ToInt32(hiddenGrupoTematico.Value);
- sub_grupo_tematico = hiddenSubCategoriaGrupoTematico.Value == "" ? emisor : Convert.ToInt32(hiddenSubCategoriaGrupoTematico.Value);
+ documento_tecnico = hiddenDocumentoTecnico.Value == "" ? documento_tecnico : Convert.ToInt32(hiddenDocumentoTecnico.Value);
+ aplicacion = hiddenAplicacion.Value == "" ? aplicacion : Convert.ToInt32(hiddenAplicacion.Value);
+ contenido = hiddenContenido.Value == "" ? contenido : Convert.ToInt32(hiddenContenido.Value);
+ sub_contenido = hiddenSubCategoriaContenido.Value == "" ? sub_contenido : Convert.ToInt32(hiddenSubCategoriaContenido.Value);
+ grupo_tematico = hiddenGrupoTematico.Value == "" ? grupo_tematico : Convert.ToInt32(hiddenGrupoTematico.Value);
+ sub_grupo_tematico = hiddenSubCategoriaGrupoTematico.Value == "" ? sub_grupo_tematico : Convert.ToInt32(hiddenSubCategoriaGrupoTematico.Value);
+ id_ficha_tecnica = txtIdFichaTecnica.Value == "" ? id_ficha_tecnica : Convert.ToInt32(txtIdFichaTecnica.Value);
DateTime fechasinparametro = DateTime.Today;
fechasinparametro = fechasinparametro.AddYears(20);
DateTime fechai = txtFechaInicio.Value == "" ? Convert.ToDateTime("1900-01-01") : Convert.ToDateTime(txtFechaInicio.Value);
DateTime fechaf = txtFechaFinal.Value == "" ? fechasinparametro : Convert.ToDateTime(txtFechaFinal.Value);
string versionvigente = txtVersionVigente.Value == "" ? null : txtVersionVigente.Value;
-
+ string nombre = txtNombre.Value == "" ? null : txtNombre.Value;
ReportViewer1.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
- dtta.Fill(dts.DataTable1, emisor, documento_tecnico, aplicacion, contenido, sub_contenido, grupo_tematico, sub_grupo_tematico, versionvigente, fechai, fechaf);
+ dtta.Fill(dts.DataTable1, emisor, documento_tecnico, aplicacion, contenido, sub_contenido, grupo_tematico, sub_grupo_tematico, versionvigente, fechai, fechaf,id_ficha_tecnica,nombre);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
diff --git a/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs b/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs
index c2db5dcd4..34fbb3fec 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs
@@ -39,6 +39,24 @@ namespace AYA.SlnSinort.ReporteASP {
///
protected global::System.Web.UI.WebControls.Button Button1;
+ ///
+ /// txtIdFichaTecnica control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtIdFichaTecnica;
+
+ ///
+ /// txtNombre control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtNombre;
+
///
/// txtFechaInicio control.
///
@@ -57,24 +75,6 @@ namespace AYA.SlnSinort.ReporteASP {
///
protected global::System.Web.UI.HtmlControls.HtmlInputText txtFechaFinal;
- ///
- /// hiddenDocumentoTecnico control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlInputHidden hiddenDocumentoTecnico;
-
- ///
- /// txtDocumentoTecnico control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlInputText txtDocumentoTecnico;
-
///
/// hiddenContenido control.
///
@@ -192,6 +192,24 @@ namespace AYA.SlnSinort.ReporteASP {
///
protected global::System.Web.UI.HtmlControls.HtmlInputText txtAplicacion;
+ ///
+ /// hiddenDocumentoTecnico control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlInputHidden hiddenDocumentoTecnico;
+
+ ///
+ /// txtDocumentoTecnico control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlInputText txtDocumentoTecnico;
+
///
/// txtVersionVigente control.
///
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
index 90a0bb688..08404e776 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
@@ -1190,13 +1190,15 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_numero_publicacion", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_fecha_inicio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_fecha_fin", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_ficha_tecnica", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_nombre", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
- public virtual int Fill(dtsFichaTecnicaFinal.DataTable1DataTable dataTable, global::System.Nullable
p_id_emisor, global::System.Nullable p_id_documento_tecnico, global::System.Nullable p_id_aplicacion, global::System.Nullable p_id_contenido, global::System.Nullable p_id_sub_contenido, global::System.Nullable p_id_grupo_tematico, global::System.Nullable p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable p_fecha_inicio, global::System.Nullable p_fecha_fin) {
+ public virtual int Fill(dtsFichaTecnicaFinal.DataTable1DataTable dataTable, global::System.Nullable p_id_emisor, global::System.Nullable p_id_documento_tecnico, global::System.Nullable p_id_aplicacion, global::System.Nullable p_id_contenido, global::System.Nullable p_id_sub_contenido, global::System.Nullable p_id_grupo_tematico, global::System.Nullable p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable p_fecha_inicio, global::System.Nullable p_fecha_fin, global::System.Nullable p_id_ficha_tecnica, string p_nombre) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((p_id_emisor.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
@@ -1258,6 +1260,18 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
else {
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
}
+ if ((p_id_ficha_tecnica.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[11].Value = ((int)(p_id_ficha_tecnica.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((p_nombre == null)) {
+ this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[12].Value = ((string)(p_nombre));
+ }
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
@@ -1269,7 +1283,7 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
- public virtual dtsFichaTecnicaFinal.DataTable1DataTable GetData(global::System.Nullable p_id_emisor, global::System.Nullable p_id_documento_tecnico, global::System.Nullable p_id_aplicacion, global::System.Nullable p_id_contenido, global::System.Nullable p_id_sub_contenido, global::System.Nullable p_id_grupo_tematico, global::System.Nullable p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable p_fecha_inicio, global::System.Nullable p_fecha_fin) {
+ public virtual dtsFichaTecnicaFinal.DataTable1DataTable GetData(global::System.Nullable p_id_emisor, global::System.Nullable p_id_documento_tecnico, global::System.Nullable p_id_aplicacion, global::System.Nullable p_id_contenido, global::System.Nullable p_id_sub_contenido, global::System.Nullable p_id_grupo_tematico, global::System.Nullable p_id_sub_grupo_tematico, string p_numero_publicacion, global::System.Nullable p_fecha_inicio, global::System.Nullable p_fecha_fin, global::System.Nullable p_id_ficha_tecnica, string p_nombre) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((p_id_emisor.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
@@ -1331,6 +1345,18 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
else {
this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
}
+ if ((p_id_ficha_tecnica.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[11].Value = ((int)(p_id_ficha_tecnica.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((p_nombre == null)) {
+ this.Adapter.SelectCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[12].Value = ((string)(p_nombre));
+ }
dtsFichaTecnicaFinal.DataTable1DataTable dataTable = new dtsFichaTecnicaFinal.DataTable1DataTable();
this.Adapter.Fill(dataTable);
return dataTable;
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd
index 12491d26a..abae48fc2 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd
@@ -27,6 +27,8 @@
+
+
@@ -55,7 +57,7 @@
-
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss
index c3e300cea..554b48747 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss
@@ -4,9 +4,9 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
+
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EstadisticaReporte/FichaTecnica.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EstadisticaReporte/FichaTecnica.js
index ddc35ce7b..725c376ba 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EstadisticaReporte/FichaTecnica.js
+++ b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/EstadisticaReporte/FichaTecnica.js
@@ -16,10 +16,7 @@ this.getDataModel = function () {
$("#txtFechaInicio").datepicker();
$("#txtFechaFinal").datepicker();
- $("#btnBuscar").unbind("click");
- $("#btnBuscar").click(function () {
- document.getElementById('<%= Button1.ClientID %>').click();
- });
+
$("#btnBuscarEmisor").unbind("click");
$("#btnBuscarEmisor").click(function () {
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Global.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Global.js
index c44edbb44..d9871bc7f 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Global.js
+++ b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/Global.js
@@ -5,23 +5,23 @@ var RepositorioVirtual = $("#hiddenRepositorioVirtual").val();
var RepositorioLocal = $("#hiddenRepositorioLocal").val();
var UsuarioSistema = $("#hiddenUsuarioSistema").val();
var NombreUsuario = $("#hiddenNombreUsuario").val();
-var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
-var LinkSolicitudTarea = "http://aya-vsrv-apptt:2525/Home/TareasPendientes";
-var LinkSolicitudResponder = "http://aya-vsrv-apptt:2525/NormativaReglamentacionTecnica/VerSolicitudes?";
-var LinkBusquedaFichaTecnica = "http://aya-vsrv-apptt:2525/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
-//var LinkPropuesta = "http://10.50.1.97:6075/PropuestaNormativa/DetallePropuesta?";
-//var LinkSolicitudTarea = "http://10.50.1.97:6075/Home/TareasPendientes";
-//var LinkSolicitudResponder = "http://10.50.1.97:6075/NormativaReglamentacionTecnica/VerSolicitudes?";
-//var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
+//var LinkPropuesta = "http://aya-vsrv-apptt:2525/PropuestaNormativa/DetallePropuesta?";
+//var LinkSolicitudTarea = "http://aya-vsrv-apptt:2525/Home/TareasPendientes";
+//var LinkSolicitudResponder = "http://aya-vsrv-apptt:2525/NormativaReglamentacionTecnica/VerSolicitudes?";
+//var LinkBusquedaFichaTecnica = "http://aya-vsrv-apptt:2525/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
+var LinkPropuesta = "http://10.50.1.97:6075/PropuestaNormativa/DetallePropuesta?";
+var LinkSolicitudTarea = "http://10.50.1.97:6075/Home/TareasPendientes";
+var LinkSolicitudResponder = "http://10.50.1.97:6075/NormativaReglamentacionTecnica/VerSolicitudes?";
+var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
//"http://localhost/AYA.SlnSinort/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
//"http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`"
//aya-vsrv-apptt:2525
//http://aya-vsrv-apptt:2525/Home/TareasPendientes
//http://aya-vsrv-wstt:2005/Sinort.svc
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
-var server = window.location.protocol + "//" + "aya-vsrv-apptt:2525" + "/" + (window.location.pathname.split('/')[1]) + "/";
-var SinorLoginWCF = "http://aya-vsrv-wstt:2005/Sinort.svc";
-var SinorSignupWCF = "http://aya-vsrv-wstt:2005/SinortCatalogos.svc";
+var server = window.location.protocol + "//" + "10.50.1.97:6075" + "/" + (window.location.pathname.split('/')[1]) + "/";
+var SinorLoginWCF = "http://10.50.1.123:2070/Sinort.svc";
+var SinorSignupWCF = "http://10.50.1.123:2070/SinortCatalogos.svc";
var string_empty = "";
var Atesa = {};
var StarterTemplateVisible = true;
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Views/Reportes/FichaTecnica.cshtml b/AYA.SlnSynor/AYA.SlnSynor/Views/Reportes/FichaTecnica.cshtml
index f7bd75fca..4fcde533a 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Views/Reportes/FichaTecnica.cshtml
+++ b/AYA.SlnSynor/AYA.SlnSynor/Views/Reportes/FichaTecnica.cshtml
@@ -21,7 +21,7 @@
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
}*@
-
+