diff --git a/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config b/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config
index 430b1476a..c4aa0f4b3 100644
--- a/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config
+++ b/AYA.SlnSynor/AYA.SlnSynor.WCF/Web.config
@@ -110,7 +110,7 @@
-
-
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs
index f2ad5b339..9f3bc230f 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/HomeController.cs
@@ -52,7 +52,23 @@ namespace AYA.SlnSinort.Controllers
InitControllers();
return View();
}
-
-
+
+ [AllowAnonymous]
+ [HttpPost]
+ public JsonResult VisualizarDocumentos(LoginJSON model)
+ {
+ Documento oDoc = new Documento();
+ string strResultado = "";
+ try
+ {
+ strResultado = oDoc.Visor_Documento(model.Usuario, model.Contrasena);
+
+ }
+ catch (Exception ex)
+ {
+
+ }
+ return Json(strResultado, JsonRequestBehavior.AllowGet);
+ }
}
}
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/PropuestaNormativaController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/PropuestaNormativaController.cs
index b570c518c..a08dbccea 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/PropuestaNormativaController.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/PropuestaNormativaController.cs
@@ -33,7 +33,23 @@ namespace AYA.SlnSinort.Controllers.PropuestaNormativa
InitControllers();
return View();
}
-
+ [AllowAnonymous]
+ [HttpPost]
+ public JsonResult VisualizarDocumentos(LoginJSON model)
+ {
+ Documento oDoc = new Documento();
+ string strResultado = "";
+ try
+ {
+ strResultado = oDoc.Visor_Documento(model.Usuario, model.Contrasena);
+
+ }
+ catch (Exception ex)
+ {
+
+ }
+ return Json(strResultado, JsonRequestBehavior.AllowGet);
+ }
}
}
\ No newline at end of file
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Controllers/ReportesController.cs b/AYA.SlnSynor/AYA.SlnSynor/Controllers/ReportesController.cs
index 82472eaa9..d87af138a 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Controllers/ReportesController.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Controllers/ReportesController.cs
@@ -13,14 +13,12 @@ using AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters;
namespace AYA.SlnSinort.Controllers.Reportes
{
- [LoggingFilter]
+ [LoggingFilter]
public class ReportesController : BaseController
{
- private DataSet tds = new DataSet();
- DataTable1TableAdapter dtta = new DataTable1TableAdapter();
- dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
- ReportViewer reportViewer = new ReportViewer();
+
+
#region Controllers
@@ -29,10 +27,12 @@ namespace AYA.SlnSinort.Controllers.Reportes
{
return View();
}
- public ActionResult FichaTecnica(string emisor, string documentotecnico, string aplicacion, string contenido, string subcontenido, string grupotematico, string subgrupotematico, string versionvigente, string fechainicio, string fechafin)
+ public ActionResult FichaTecnica(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? subgrupotematico, string versionvigente, string fechainicio, string fechafin)
{
InitControllers();
+
+
if (emisor == null)
{
CargarReporte();
@@ -42,7 +42,6 @@ namespace AYA.SlnSinort.Controllers.Reportes
CargarReporteParemetros(emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechainicio, fechafin);
}
- ViewBag.ReportViewer = reportViewer;
return PartialView("FichaTecnica");
}
@@ -57,19 +56,32 @@ namespace AYA.SlnSinort.Controllers.Reportes
#region Configuracion y Parametrizacion
+ [AllowAnonymous]
[HttpPost]
- public void CargarReporteParemetros(string emisor,string documentotecnico,string aplicacion,string contenido,string subcontenido,string grupotematico,string subgrupotematico,string versionvigente,string fechainicio,string fechafin)
+ public ActionResult CargarReporteParemetros(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? subgrupotematico, string versionvigente, string fechainicio, string fechafin)
{
-
+ InitControllers();
+
+ try
+ {
+
+
+ DataTable1TableAdapter dtta = new DataTable1TableAdapter();
+ dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
+ ReportViewer reportViewer = new ReportViewer();
+
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.SizeToReportContent = true;
- reportViewer.Width = Unit.Percentage(100);
+ reportViewer.Width = Unit.Percentage(90);
reportViewer.Height = Unit.Percentage(100);
-
+ DateTime fechasinparametro = DateTime.Today;
+ fechasinparametro = fechasinparametro.AddYears(20);
DateTime fechai = fechainicio == "" ? Convert.ToDateTime("1900-01-01") : Convert.ToDateTime(fechainicio);
- DateTime fechaf = fechafin == "" ? DateTime.Today : Convert.ToDateTime(fechafin);
-
+ DateTime fechaf = fechafin == "" ? fechasinparametro : Convert.ToDateTime(fechafin);
+ versionvigente = versionvigente == "" ? null : versionvigente;
+
+
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";
@@ -79,31 +91,45 @@ namespace AYA.SlnSinort.Controllers.Reportes
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
reportViewer.LocalReport.Refresh();
-
-
+ ViewBag.ReportViewer = reportViewer;
+
+
+ }
+ catch (Exception ex)
+ {
+ Response.Write(ex.Message.ToString());
+ }
+ return PartialView("FichaTecnica");
}
-
+ [AllowAnonymous]
[HttpPost]
public void CargarReporte( )
{
+ DataTable1TableAdapter dtta = new DataTable1TableAdapter();
+ dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
+ ReportViewer reportViewer = new ReportViewer();
+
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.SizeToReportContent = true;
- reportViewer.Width = Unit.Percentage(100);
+ reportViewer.Width = Unit.Percentage(90);
reportViewer.Height = Unit.Percentage(100);
DateTime fechainicio = Convert.ToDateTime("1900-01-01");
DateTime fechafin = DateTime.Today;
-
- dtta.Fill(dts.DataTable1, "", "", "", "", "", "", "", "", fechainicio, fechafin);
+ fechafin = fechafin.AddYears(20);
+ dtta.Fill(dts.DataTable1, null, null, null,null, null, null, null, null, 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.ReportPath = @"D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\repFichaTecnica.rdlc";
reportViewer.LocalReport.DataSources.Clear();
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
reportViewer.LocalReport.Refresh();
+ ViewBag.ReportViewer = reportViewer;
+
}
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
index 082f42dd0..90a0bb688 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.Designer.cs
@@ -1177,100 +1177,87 @@ namespace AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = @"SELECT [IdFichaTecnica],[Nombre],[Identificacion],[DescripcionDocumentoTecnico],
- [DescripcionAplicacion],[DescripcionContenido],[DescripcionsubCategoriaContenido],[DescripcionGrupoTematico],
- [DescripcionSubCategoriaGrupoTematico],[DescripcionEmisor],[NumeroPublicacionVersion] FROM
- [Global].[FichaTecnica] f, [Expediente].[DocumentosAdjuntos] d
- WHERE f.[IdDocumento] = d.[IdDocumentoAdjunto] and
-f.IdEstado = 8 and
- ([DescripcionEmisor] = @parametro1 or @parametro1 = '') and
- ([DescripcionDocumentoTecnico] = @parametro2 or @parametro2 = '') and
- ([DescripcionAplicacion] = @parametro3 or @parametro3 = '') and
- ([DescripcionContenido] = @parametro4 or @parametro4 = '') and
- ([DescripcionsubCategoriaContenido] = @parametro5 or @parametro5 = '') and
- ([DescripcionGrupoTematico] = @parametro6 or @parametro6 = '') and
- ([DescripcionSubCategoriaGrupoTematico] = @parametro7 or @parametro7 = '') and
- ([NumeroPublicacionVersion] like @parametro8 or @parametro8 like '%%') and
- ([FechaPublicacionDocumentoTecnico] between @parametro9 and @parametro10 )";
- this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro1", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionEmisor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro2", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro3", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionAplicacion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro4", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionContenido", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro5", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionsubCategoriaContenido", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro6", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionGrupoTematico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro7", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, "DescripcionSubCategoriaGrupoTematico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro8", global::System.Data.SqlDbType.NText, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroPublicacionVersion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro9", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "FechaPublicacionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@parametro10", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 0, 0, "FechaPublicacionDocumentoTecnico", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].CommandText = "dbo.sp_consultar_ficha_tecnica";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p_id_emisor", 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_id_documento_tecnico", 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_id_aplicacion", 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_id_contenido", 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_id_sub_contenido", 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_id_grupo_tematico", 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_id_sub_grupo_tematico", 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_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, "", "", ""));
}
[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, string parametro1, string parametro2, string parametro3, string parametro4, string parametro5, string parametro6, string parametro7, string parametro8, global::System.Nullable parametro9, global::System.Nullable parametro10) {
+ 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) {
this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((parametro1 == null)) {
- this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ if ((p_id_emisor.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
}
else {
- this.Adapter.SelectCommand.Parameters[0].Value = ((string)(parametro1));
- }
- if ((parametro2 == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(parametro2));
+ if ((p_id_documento_tecnico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(p_id_documento_tecnico.Value));
}
- if ((parametro3 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(parametro3));
+ if ((p_id_aplicacion.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((int)(p_id_aplicacion.Value));
}
- if ((parametro4 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(parametro4));
+ if ((p_id_contenido.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((int)(p_id_contenido.Value));
}
- if ((parametro5 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(parametro5));
+ if ((p_id_sub_contenido.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[5].Value = ((int)(p_id_sub_contenido.Value));
}
- if ((parametro6 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(parametro6));
+ if ((p_id_grupo_tematico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[6].Value = ((int)(p_id_grupo_tematico.Value));
}
- if ((parametro7 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[6].Value = ((string)(parametro7));
+ if ((p_id_sub_grupo_tematico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[7].Value = ((int)(p_id_sub_grupo_tematico.Value));
}
- if ((parametro8 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[7].Value = ((string)(parametro8));
- }
- if ((parametro9.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[8].Value = ((System.DateTime)(parametro9.Value));
- }
- else {
+ if ((p_numero_publicacion == null)) {
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
}
- if ((parametro10.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(parametro10.Value));
+ else {
+ this.Adapter.SelectCommand.Parameters[8].Value = ((string)(p_numero_publicacion));
+ }
+ if ((p_fecha_inicio.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(p_fecha_inicio.Value));
}
else {
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
}
+ if ((p_fecha_fin.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[10].Value = ((System.DateTime)(p_fecha_fin.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
@@ -1282,68 +1269,68 @@ f.IdEstado = 8 and
[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(string parametro1, string parametro2, string parametro3, string parametro4, string parametro5, string parametro6, string parametro7, string parametro8, global::System.Nullable parametro9, global::System.Nullable parametro10) {
+ 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) {
this.Adapter.SelectCommand = this.CommandCollection[0];
- if ((parametro1 == null)) {
- this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ if ((p_id_emisor.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(p_id_emisor.Value));
}
else {
- this.Adapter.SelectCommand.Parameters[0].Value = ((string)(parametro1));
- }
- if ((parametro2 == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[1].Value = ((string)(parametro2));
+ if ((p_id_documento_tecnico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((int)(p_id_documento_tecnico.Value));
}
- if ((parametro3 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[2].Value = ((string)(parametro3));
+ if ((p_id_aplicacion.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[3].Value = ((int)(p_id_aplicacion.Value));
}
- if ((parametro4 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[3].Value = ((string)(parametro4));
+ if ((p_id_contenido.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[4].Value = ((int)(p_id_contenido.Value));
}
- if ((parametro5 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[4].Value = ((string)(parametro5));
+ if ((p_id_sub_contenido.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[5].Value = ((int)(p_id_sub_contenido.Value));
}
- if ((parametro6 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[5].Value = ((string)(parametro6));
+ if ((p_id_grupo_tematico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[6].Value = ((int)(p_id_grupo_tematico.Value));
}
- if ((parametro7 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[6].Value = ((string)(parametro7));
+ if ((p_id_sub_grupo_tematico.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[7].Value = ((int)(p_id_sub_grupo_tematico.Value));
}
- if ((parametro8 == null)) {
+ else {
this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.SelectCommand.Parameters[7].Value = ((string)(parametro8));
- }
- if ((parametro9.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[8].Value = ((System.DateTime)(parametro9.Value));
- }
- else {
+ if ((p_numero_publicacion == null)) {
this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value;
}
- if ((parametro10.HasValue == true)) {
- this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(parametro10.Value));
+ else {
+ this.Adapter.SelectCommand.Parameters[8].Value = ((string)(p_numero_publicacion));
+ }
+ if ((p_fecha_inicio.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[9].Value = ((System.DateTime)(p_fecha_inicio.Value));
}
else {
this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value;
}
+ if ((p_fecha_fin.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[10].Value = ((System.DateTime)(p_fecha_fin.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
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 55efa5ff4..12491d26a 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xsd
@@ -11,35 +11,22 @@
-
+
-
- SELECT [IdFichaTecnica],[Nombre],[Identificacion],[DescripcionDocumentoTecnico],
- [DescripcionAplicacion],[DescripcionContenido],[DescripcionsubCategoriaContenido],[DescripcionGrupoTematico],
- [DescripcionSubCategoriaGrupoTematico],[DescripcionEmisor],[NumeroPublicacionVersion] FROM
- [Global].[FichaTecnica] f, [Expediente].[DocumentosAdjuntos] d
- WHERE f.[IdDocumento] = d.[IdDocumentoAdjunto] and
-f.IdEstado = 8 and
- ([DescripcionEmisor] = @parametro1 or @parametro1 = '') and
- ([DescripcionDocumentoTecnico] = @parametro2 or @parametro2 = '') and
- ([DescripcionAplicacion] = @parametro3 or @parametro3 = '') and
- ([DescripcionContenido] = @parametro4 or @parametro4 = '') and
- ([DescripcionsubCategoriaContenido] = @parametro5 or @parametro5 = '') and
- ([DescripcionGrupoTematico] = @parametro6 or @parametro6 = '') and
- ([DescripcionSubCategoriaGrupoTematico] = @parametro7 or @parametro7 = '') and
- ([NumeroPublicacionVersion] like @parametro8 or @parametro8 like '%%') and
- ([FechaPublicacionDocumentoTecnico] between @parametro9 and @parametro10 )
+
+ dbo.sp_consultar_ficha_tecnica
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss b/AYA.SlnSynor/AYA.SlnSynor/Reportes/datasets/dtsFichaTecnicaFinal.xss
index 9b3ab710e..c3e300cea 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/Reportes/rdlc/repFichaTecnica.rdlc b/AYA.SlnSynor/AYA.SlnSynor/Reportes/rdlc/repFichaTecnica.rdlc
index fdd7a5df8..c4055d81a 100644
--- a/AYA.SlnSynor/AYA.SlnSynor/Reportes/rdlc/repFichaTecnica.rdlc
+++ b/AYA.SlnSynor/AYA.SlnSynor/Reportes/rdlc/repFichaTecnica.rdlc
@@ -37,13 +37,13 @@
- 1.30937cm
+ 0.96541cm
- 3.70827cm
+ 3.26792cm
- 3.42604cm
+ 4.35208cm
3.69063cm
@@ -838,7 +838,7 @@
0.88209cm
0.26141cm
1.2cm
- 30.86493cm
+ 31.00666cm
1