git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C486
This commit is contained in:
parent
e5f584487e
commit
adc7769ad1
11 changed files with 595 additions and 40 deletions
|
|
@ -255,6 +255,13 @@
|
|||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ReporteFT.aspx.cs">
|
||||
<DependentUpon>ReporteFT.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ReporteFT.aspx.designer.cs">
|
||||
<DependentUpon>ReporteFT.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Reportes\datasets\dtsFichaTecnicaFinal.cs">
|
||||
<DependentUpon>dtsFichaTecnicaFinal.xsd</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
|
|
@ -6485,6 +6492,7 @@
|
|||
<Content Include="plugins\timepicker\bootstrap-timepicker.js" />
|
||||
<Content Include="plugins\timepicker\bootstrap-timepicker.min.css" />
|
||||
<Content Include="plugins\timepicker\bootstrap-timepicker.min.js" />
|
||||
<Content Include="ReporteFT.aspx" />
|
||||
<Content Include="Scripts\Atesa-Framework.js" />
|
||||
<Content Include="Scripts\autoNumeric\autoNumeric-min.js" />
|
||||
<Content Include="Scripts\autoNumeric\autoNumeric.js" />
|
||||
|
|
@ -7436,6 +7444,7 @@
|
|||
<Content Include="Sinort-Scripts\DocumentoTecnico.js" />
|
||||
<Content Include="Sinort-Scripts\EmisorPN.js" />
|
||||
<Content Include="Sinort-Scripts\EstadisticaReporte\FichaTecnica.js" />
|
||||
<Content Include="Sinort-Scripts\EstadisticaReporte\Reporte.js" />
|
||||
<Content Include="Sinort-Scripts\GotitasNormativas.js" />
|
||||
<Content Include="Sinort-Scripts\GotitasPendientes.js" />
|
||||
<Content Include="Sinort-Scripts\LoginExterno.js" />
|
||||
|
|
@ -7506,6 +7515,7 @@
|
|||
<None Include="Service References\ServicioSinortWCF\Sinort5.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<Content Include="Views\Reportes\ReporteFichaTecnica.cshtml" />
|
||||
<None Include="Web References\Vision2020\wsapi.disco" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
|
|
@ -7589,6 +7599,7 @@
|
|||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
<Folder Include="Content\themes\base\minified\images\" />
|
||||
<Folder Include="ReporteASP\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
public class ReportesController : BaseController
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
DateTime fechainicio = Convert.ToDateTime("1900-01-01");
|
||||
DateTime fechafin = DateTime.Today;
|
||||
|
||||
#region Controllers
|
||||
|
||||
|
|
@ -27,23 +28,46 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
{
|
||||
return View();
|
||||
}
|
||||
public ActionResult FichaTecnica(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? subgrupotematico, string versionvigente, string fechainicio, string fechafin)
|
||||
public ActionResult FichaTecnica()
|
||||
{
|
||||
InitControllers();
|
||||
|
||||
//DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
//dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
//ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
|
||||
|
||||
|
||||
if (emisor == null)
|
||||
{
|
||||
CargarReporte();
|
||||
}
|
||||
else
|
||||
{
|
||||
CargarReporteParemetros(emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechainicio, fechafin);
|
||||
}
|
||||
|
||||
return PartialView("FichaTecnica");
|
||||
// reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
// reportViewer.SizeToReportContent = true;
|
||||
// reportViewer.Width = Unit.Percentage(90);
|
||||
// reportViewer.Height = Unit.Percentage(100);
|
||||
// //DateTime fechainicio = Convert.ToDateTime("1900-01-01");
|
||||
// //DateTime fechafin = DateTime.Today;
|
||||
// //fechafin = fechafin.AddYears(20);
|
||||
// dtta.Fill(dts.DataTable1, null, null, null, null, null, null, null, null, Convert.ToDateTime("1900-01-01"), DateTime.Today.AddYears(20));
|
||||
|
||||
// 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;
|
||||
|
||||
////else
|
||||
////{
|
||||
//// CargarReporteParemetros(emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechainicio, fechafin,usuario,nombreusuario);
|
||||
////}
|
||||
|
||||
//return PartialView("~/Views/Reportes/FichaTecnica.cshtml", reportViewer);
|
||||
//return View("FichaTecnica", reportViewer);
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -52,23 +76,61 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
InitControllers();
|
||||
return View();
|
||||
}
|
||||
public ActionResult ReporteFichaTecnica()
|
||||
{
|
||||
//DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
//dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
//ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
//reportViewer.SizeToReportContent = true;
|
||||
//reportViewer.Width = Unit.Percentage(90);
|
||||
//reportViewer.Height = Unit.Percentage(100);
|
||||
////DateTime fechainicio = Convert.ToDateTime("1900-01-01");
|
||||
////DateTime fechafin = DateTime.Today;
|
||||
////fechafin = fechafin.AddYears(20);
|
||||
//dtta.Fill(dts.DataTable1, null, null, null, null, null, null, null, null, Convert.ToDateTime("1900-01-01"), DateTime.Today.AddYears(20));
|
||||
|
||||
//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;
|
||||
|
||||
////else
|
||||
////{
|
||||
//// CargarReporteParemetros(emisor, documentotecnico, aplicacion, contenido, subcontenido, grupotematico, subgrupotematico, versionvigente, fechainicio, fechafin,usuario,nombreusuario);
|
||||
////}
|
||||
|
||||
//return PartialView("~/Views/Reportes/ReporteFichaTecnica.cshtml", reportViewer);
|
||||
return View();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Configuracion y Parametrizacion
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public ActionResult CargarReporteParemetros(int? emisor, int? documentotecnico, int? aplicacion, int? contenido, int? subcontenido, int? grupotematico, int? 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,string usuario,string nombreusuario)
|
||||
{
|
||||
Session["UserName"] = usuario;
|
||||
Session["FullName"] = nombreusuario;
|
||||
InitControllers();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
try
|
||||
{
|
||||
|
||||
reportViewer.ProcessingMode = ProcessingMode.Local;
|
||||
reportViewer.SizeToReportContent = true;
|
||||
|
|
@ -94,17 +156,21 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
ViewBag.ReportViewer = reportViewer;
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Response.Write(ex.Message.ToString());
|
||||
return Json(ex.Message.ToString(), JsonRequestBehavior.AllowGet);
|
||||
|
||||
}
|
||||
return PartialView("FichaTecnica");
|
||||
|
||||
return PartialView("~/Views/Reportes/FichaTecnica.cshtml", reportViewer);
|
||||
|
||||
}
|
||||
[AllowAnonymous]
|
||||
[HttpPost]
|
||||
public void CargarReporte( )
|
||||
public ActionResult CargarReporte( )
|
||||
{
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
|
|
@ -130,6 +196,7 @@ namespace AYA.SlnSinort.Controllers.Reportes
|
|||
|
||||
ViewBag.ReportViewer = reportViewer;
|
||||
|
||||
return PartialView("~/Views/Reportes/FichaTecnica.cshtml", reportViewer);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
255
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx
Normal file
255
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx
Normal file
|
|
@ -0,0 +1,255 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReporteFT.aspx.cs" Inherits="AYA.SlnSinort.ReporteASP.ReporteFT" %>
|
||||
|
||||
<%@ Register assembly="Microsoft.ReportViewer.WebForms" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta name="viewport" />
|
||||
<title>Prueba</title>
|
||||
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css"/>
|
||||
<link rel="stylesheet" href="dist/css/AdminLTE.min.css"/>
|
||||
<link rel="stylesheet" href="dist/css/skins/skin-blue.min.css"/>
|
||||
<link rel="stylesheet" href="Content/themes/base/jquery-ui.css"/>
|
||||
<script src="bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="Scripts/modernizr-2.6.2.js"></script>
|
||||
<script src="Scripts/jquery-3.3.1.js"></script>
|
||||
<script src="Scripts/bootstrap.min.js"></script>
|
||||
<script src="Scripts/jquery-{version}.js"></script>
|
||||
<script src="Scriptsjquery.unobtrusive*"></script>
|
||||
<script src="Scripts/jquery.validate*"></script>
|
||||
<script src="Scripts/moment.js"></script>
|
||||
<script src="Scripts/moment-with-langs.js"></script>
|
||||
|
||||
|
||||
<script src="Sinort-Scripts/Global.js"></script>
|
||||
<script src="Sinort-Scripts/EstadisticaReporte/Reporte.js"></script>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
|
||||
|
||||
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divFechaInicio">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblFechaInicio">Fecha de Inicio</label>
|
||||
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaInicio"></i></span>
|
||||
<input name="txtFechaInicio" class="form-control imput-xs" id="txtFechaInicio" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarFechaInicio" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divFechaFin">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblFechaFin">Fecha Final</label>
|
||||
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar" id="iconFechaFin"></i></span>
|
||||
<input name="txtFechaFinal" class="form-control imput-xs" id="txtFechaFinal" type="text" readonly="readonly" dateformat="DD-MMMM-YYYY">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarFechaFin" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divDocumentoTecnico">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblDocumentoTecnico">Documento Técnico</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenDocumentoTecnico" type="hidden">
|
||||
<input name="txtDocumentoTecnico" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtDocumentoTecnico" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarDocumentoTecnico" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarDocumentoTecnico" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divContenido">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblContenido">Contenido</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenContenido" type="hidden">
|
||||
<input name="txtContenido" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtContenido" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarContenido" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarContenido" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="divSubCategoriaContenido">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblSubCategoriaContenido">SubCategoría (Contenido)</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenSubCategoriaContenido" type="hidden">
|
||||
<input name="txtSubCategoriaContenido" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtSubCategoriaContenido" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarSubCategoriaContenido" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarSubCategoriaContenido" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="divBuscar">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblBuscar">Filtrar</label>
|
||||
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<button class=" btn btn-success btn-medium btn-margin-catalogo" id="btnBuscar" type="button">
|
||||
<i class=" glyphicon glyphicon-search">
|
||||
</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
|
||||
|
||||
<div class="form-group" id="divGrupoTematico">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblGrupoTematico">Grupo Temático</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenGrupoTematico" type="hidden"/>
|
||||
<input name="txtGrupoTematico" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtGrupoTematico" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarGrupoTematico" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarGrupoTematico" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divSubCategoriaGrupoTematico">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblSubCategoriaGrupo">SubCategoría (Grupo Temático)</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenSubCategoriaGrupoTematico" type="hidden"/>
|
||||
<input name="txtSubCategoriaGrupoTematico" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtSubCategoriaGrupoTematico" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarSubCategoriaGrupoTematico" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarSubCategoriaGrupoTematico" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divEmisor">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblEmisor">Emisor</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenEmisor" type="hidden"/>
|
||||
<input name="txtEmisor" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtEmisor" required="required" type="text" readonly="readonly" data-original-title="">
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarEmisor" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarEmisor" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group" id="divAplicacion">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblaplicacion">Aplicación</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input id="hiddenAplicacion" type="hidden"/>
|
||||
<input name="txtAplicacion" title="" class="form-control TextBoxCatalogo inputWarning error" id="txtAplicacion" required="required" type="text" readonly="readonly"/>
|
||||
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-medium" id="btn_eliminarAplicacion" type="button">
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</button>
|
||||
<button class="btn btn-success btn-medium btn-margin-catalogo" id="btnBuscarAplicacion" type="button">
|
||||
<i class="glyphicon glyphicon-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group " id="divVersionVigente">
|
||||
<label class="col-sm-4 control-label ControlsForms" id="lblVersionVigente">Versión Vigente</label>
|
||||
<div class="input-group input-group-sm col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
<input name="txtVersionVigente" class="form-control imput-xs" id="txtVersionVigente" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<rsweb:ReportViewer ID="ReportViewer1" runat="server" BackColor="" ClientIDMode="AutoID" HighlightBackgroundColor="" InternalBorderColor="204, 204, 204" InternalBorderStyle="Solid" InternalBorderWidth="1px" LinkActiveColor="" LinkActiveHoverColor="" LinkDisabledColor="" PrimaryButtonBackgroundColor="" PrimaryButtonForegroundColor="" PrimaryButtonHoverBackgroundColor="" PrimaryButtonHoverForegroundColor="" SecondaryButtonBackgroundColor="" SecondaryButtonForegroundColor="" SecondaryButtonHoverBackgroundColor="" SecondaryButtonHoverForegroundColor="" SplitterBackColor="" ToolbarDividerColor="" ToolbarForegroundColor="" ToolbarForegroundDisabledColor="" ToolbarHoverBackgroundColor="" ToolbarHoverForegroundColor="" ToolBarItemBorderColor="" ToolBarItemBorderStyle="Solid" ToolBarItemBorderWidth="1px" ToolBarItemHoverBackColor="" ToolBarItemPressedBorderColor="51, 102, 153" ToolBarItemPressedBorderStyle="Solid" ToolBarItemPressedBorderWidth="1px" ToolBarItemPressedHoverBackColor="153, 187, 226" Width="100%" >
|
||||
<LocalReport ReportPath="Reportes\rdlc\repFichaTecnica.rdlc">
|
||||
</LocalReport>
|
||||
</rsweb:ReportViewer>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
63
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs
Normal file
63
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.cs
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
using AYA.SlnSinort.Reportes.datasets;
|
||||
using AYA.SlnSinort.Reportes.datasets.dtsFichaTecnicaFinalTableAdapters;
|
||||
using Microsoft.Reporting.WebForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
|
||||
namespace AYA.SlnSinort.ReporteASP
|
||||
{
|
||||
public partial class ReporteFT : System.Web.UI.Page
|
||||
{
|
||||
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
|
||||
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));
|
||||
|
||||
ReportViewer1.LocalReport.DataSources.Clear();
|
||||
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
|
||||
ReportViewer1.LocalReport.Refresh();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataTable1TableAdapter dtta = new DataTable1TableAdapter();
|
||||
dtsFichaTecnicaFinal dts = new dtsFichaTecnicaFinal();
|
||||
ReportViewer reportViewer = new ReportViewer();
|
||||
|
||||
|
||||
ReportViewer1.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Reportes\rdlc\repFichaTecnica.rdlc";
|
||||
dtta.Fill(dts.DataTable1, null,3, null, null, null, null, null, null, Convert.ToDateTime("1900-01-01"), DateTime.Today.AddYears(20));
|
||||
|
||||
ReportViewer1.LocalReport.DataSources.Clear();
|
||||
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dtsFichaTecnicaFinal", dts.Tables["Datatable1"]));
|
||||
|
||||
|
||||
ReportViewer1.LocalReport.Refresh();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs
generated
Normal file
51
AYA.SlnSynor/AYA.SlnSynor/ReporteFT.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AYA.SlnSinort.ReporteASP {
|
||||
|
||||
|
||||
public partial class ReporteFT {
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// ScriptManager1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// ReportViewer1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.Reporting.WebForms.ReportViewer ReportViewer1;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
var model = {};
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
|
||||
|
||||
getDataModel();
|
||||
|
||||
});
|
||||
|
|
@ -12,7 +12,7 @@ this.getDataModel = function () {
|
|||
CargarContenido();
|
||||
CargarGrupoTematico();
|
||||
CargarDocumentoTecnico();
|
||||
|
||||
|
||||
$("#txtFechaInicio").datepicker();
|
||||
$("#txtFechaFinal").datepicker();
|
||||
|
||||
|
|
@ -210,19 +210,65 @@ this.LeerFormulario = function (){
|
|||
subgrupotematico: $('#hiddenSubCategoriaGrupoTematico').val(),
|
||||
versionvigente: $('#txtVersionVigente').val(),
|
||||
fechainicio:$("#txtFechaInicio").DateFormatWCF(),
|
||||
fechafin: $("#txtFechaFinal").DateFormatWCF()
|
||||
fechafin: $("#txtFechaFinal").DateFormatWCF(),
|
||||
usuario: UsuarioSistema,
|
||||
nombreusuario: NombreUsuario
|
||||
|
||||
}
|
||||
|
||||
model = reporte;
|
||||
}
|
||||
this.BuscarReporte = function (){
|
||||
var uri = server + 'Reportes/CargarReporteParemetros';
|
||||
LeerFormulario();
|
||||
this.Reset = function () {
|
||||
|
||||
}
|
||||
this.BuscarReporte = function () {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//var uri = server + 'Reportes/CargarReporteParemetros';
|
||||
//LeerFormulario();
|
||||
|
||||
|
||||
|
||||
|
||||
//var container = document.getElementById('rptFichaTecnica');
|
||||
//var refreshContent = container.innerHTML;
|
||||
//$.ajax({
|
||||
// type: "POST",
|
||||
// url: uri,
|
||||
// data: JSON.stringify(model),
|
||||
// contentType: "application/json; charset=utf-8",
|
||||
// dataType: "json",
|
||||
// success: function (result) {
|
||||
|
||||
// var a = data;
|
||||
// //container.innerHTML = refreshContent;
|
||||
// $("#rptFichaTecnica").html = result;
|
||||
// ENDREQUEST();
|
||||
// },
|
||||
// error: function (result) {
|
||||
// //var container2 = document.getElementById('rptFichaTecnica');
|
||||
// //var refreshContent2 = container2.innerHTML;
|
||||
// //container.innerHTML = refreshContent2;
|
||||
// container.innerHTML = refreshContent;
|
||||
// //container.innerHTML = $("#rptFichaTecnica").html(result);
|
||||
// //ej.widget.init($("#rptFichaTecnica"));
|
||||
// //$("#rptFichaTecnica").html = result.responseText;
|
||||
// ENDREQUEST();
|
||||
// }
|
||||
|
||||
|
||||
//});
|
||||
}
|
||||
|
||||
this.CargarReporte = function () {
|
||||
var uri = server + 'Reportes/CargarReporte';
|
||||
|
||||
|
||||
|
||||
var container = document.getElementById('rptFichaTecnica');
|
||||
var refreshContent = container.innerHTML;
|
||||
//AjaxPostData(uri, model, false, false, prueba, null, null);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: uri,
|
||||
|
|
@ -231,20 +277,22 @@ this.BuscarReporte = function (){
|
|||
dataType: "json",
|
||||
success: function () {
|
||||
|
||||
container.innerHTML = refreshContent;
|
||||
|
||||
ENDREQUEST();
|
||||
},
|
||||
error: function () {
|
||||
|
||||
container.innerHTML = refreshContent;
|
||||
|
||||
error: function (data) {
|
||||
//var a = '@ViewBag.ReportViewer';
|
||||
//s@
|
||||
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
this.prueba = function (data) {
|
||||
var a = data;
|
||||
}
|
||||
this.RefrescarReporte = function () {
|
||||
var container = document.getElementById('rptFichaTecnica');
|
||||
var refreshContent = container.innerHTML;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
jQuery(document).ready(function () {
|
||||
|
||||
|
||||
getDataModel();
|
||||
|
||||
});
|
||||
|
||||
this.getDataModel = function () {
|
||||
CargarEmisor();
|
||||
|
||||
}
|
||||
|
||||
this.CargarEmisor = function (filtro) {
|
||||
|
||||
var uri = CatalogosWCF + '/api/ObtenerEmisorPopUp';
|
||||
var model = {
|
||||
IdTipo: 1,
|
||||
filtro: filtro == null ? '' : '&filtro=' + filtro
|
||||
}
|
||||
|
||||
AjaxPostData(uri, model, false, false, CargarGridEmisores, null, null);
|
||||
|
||||
}
|
||||
|
||||
this.CargarGridEmisores = function (data) {
|
||||
|
||||
if (data != null) {
|
||||
|
||||
listaEmisor = data;
|
||||
|
||||
var Seleccionar = $("#ucBtnSeleccionarCatalogo").html();
|
||||
|
||||
var columnDefinition = [
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar },
|
||||
{ "data": "codigo" },
|
||||
{ "data": "descripcion" }
|
||||
];
|
||||
|
||||
$('#tableEmisor').TableInit(0, false, true, true, false, columnDefinition, listaEmisor, false);
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamenta
|
|||
//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 + "//" + "10.50.1.97:6075" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||
var server = window.location.protocol + "//" + "localhost" + "/" + (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 = "";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
@using ReportViewerForMvc;
|
||||
@using System.Web.UI.WebControls;
|
||||
@model Microsoft.Reporting.WebForms.ReportViewer
|
||||
|
||||
@{
|
||||
ViewBag.Title = "FichaTecnica";
|
||||
|
|
@ -214,9 +215,12 @@
|
|||
|
||||
<div class="col-md-12" style="width:100%" id="rptFichaTecnica">
|
||||
|
||||
|
||||
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
|
||||
|
||||
@*@if (ViewBag.ReportViewer != null){
|
||||
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)
|
||||
}*@
|
||||
|
||||
<iframe style="width:100%;height:1000px" src="http://localhost/AYA.SlnSinort/ReporteFT.aspx" frameborder="0" allowfullscreen></iframe>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
@{
|
||||
ViewBag.Title = "Display Data in the Report Viewer";
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<h2>Display Data in the Report Viewer</h2>
|
||||
|
||||
@* Here we call the page that I have been created into shared folder *@
|
||||
|
||||
@Html.Partial("~/ReporteFT.aspx")
|
||||
Loading…
Add table
Reference in a new issue