diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 761bcfd3e..4ec17f940 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -3482,6 +3482,8 @@ Public Class ClsPaginas
PaginaDict = New System.Collections.Hashtable
PaginaDict.Add("/Inicio.aspx".ToUpper(), -1)
+ PaginaDict.Add("/reporteador.aspx".ToUpper(), -1)
+ PaginaDict.Add("/GPS/RepArrastre.aspx".ToUpper(), -1)
PaginaDict.Add("/Ventas/RepConciliacionEmitidosSat.aspx".ToUpper(), -1)
PaginaDict.Add("/Ventas/RepConciliacionSat.aspx".ToUpper(), 716)
PaginaDict.Add("/Ventas/SolicitudesSAT.aspx".ToUpper(), 717)
diff --git a/GPS/RepArrastre.aspx b/GPS/RepArrastre.aspx
new file mode 100644
index 000000000..4891aa97a
--- /dev/null
+++ b/GPS/RepArrastre.aspx
@@ -0,0 +1,48 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RepArrastre.aspx.cs" Inherits="GPS_RepArrastre" %>
+
+
+
+
+
+
+ Reporte de Arrastre
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GPS/RepArrastre.aspx.cs b/GPS/RepArrastre.aspx.cs
new file mode 100644
index 000000000..cff9cc9c6
--- /dev/null
+++ b/GPS/RepArrastre.aspx.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+public partial class GPS_RepArrastre : ClsPaginas
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+
+ DdlDispositivo.DataSource = get_GlobalDTDispositivosUsuarios(UsuarioActual.CveCliente, UsuarioActual.CveUsuario) ;
+ DdlDispositivo.DataBind();
+ }
+
+ }
+
+ protected void BtnConsultar_Click(object sender, EventArgs e)
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/Inicio.aspx.vb b/Inicio.aspx.vb
index 687113a45..ceb88aa8a 100644
--- a/Inicio.aspx.vb
+++ b/Inicio.aspx.vb
@@ -54,8 +54,9 @@ Partial Class Inicio
End Function
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
- If Not IsPostBack Then
- If UsuarioActual.CveUsuario = 100 Then
+ If Not IsPostBack Then
+ 'Reporte de ventas sin registrar sig
+ If UsuarioActual.TienePermisoProceso(287) Then
Using objgral As New ClsGenerales
objgral.RepConciliacionSatDetalleGET(UsuarioActual.CveEmpresa, "I", "", "", 10)
@@ -66,8 +67,9 @@ Partial Class Inicio
End Using
GvFoliosSAT.DataBind()
- End If
- If UsuarioActual.CveUsuario = 100 Then
+ End If
+ 'Reporte de ventas pendientes de cancelar
+ If UsuarioActual.TienePermisoProceso(288) Then
Using objventas As New ClsVentas
If (GetFacturasCanceladasPendientesWS(objventas, UsuarioActual.Empresa.RFC, UsuarioActual.CveEmpresa, False)) AndAlso objventas.DtResultados.Rows.Count > 0 Then
RegistraScript("$('#ModalMitotereCancelaPendiente').modal();", "mitoterosatCanceladasPendientesWS")
diff --git a/Ventas/RepConciliacionSat.aspx.cs b/Ventas/RepConciliacionSat.aspx.cs
index fc917b6fe..9bf833b30 100644
--- a/Ventas/RepConciliacionSat.aspx.cs
+++ b/Ventas/RepConciliacionSat.aspx.cs
@@ -30,28 +30,6 @@ public partial class Ventas_RepConciliacionSat : ClsPaginas
{
if (!IsPostBack)
{
-
- //CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
- //cryRpt.Load(String.Format("C:\\Proyectos\\wwwSIG\\Empresas\\Grales\\Formatos\\CatPS.rpt", UsuarioActual.Empresa.Ruta));
- //System.Data.DataTable DtDatos = new System.Data.DataTable();
- //using (ClsProductosServicios ObjPS = new ClsProductosServicios())
- //{
- // if (ObjPS.GetPSLite(-1, 119, "-1", "-1", "02541", -1, -1, -1, -1))
- // {
- // DtDatos = ObjPS.DtResultados;
-
- // }
- //}
- //cryRpt.SetDataSource(DtDatos);
- //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo coninfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
- //cryRpt.
- ////cryRpt.SetDatabaseLogon("JCaudillo", "JCau127*953");// 293357
- //reports.ReportSource = cryRpt;
- //reports.RefreshReport();
- //// reports.Refresh();
-
-
-
DateTime fecha;
DateTime fechaInicio = DateTime.Now;
DateTime fechaFin = DateTime.Now;
diff --git a/reporteador.aspx b/reporteador.aspx
new file mode 100644
index 000000000..7839d5639
--- /dev/null
+++ b/reporteador.aspx
@@ -0,0 +1,51 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="reporteador.aspx.cs" Inherits="reporteador" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%----%>
+
+
+
+
+
+
diff --git a/reporteador.aspx.cs b/reporteador.aspx.cs
new file mode 100644
index 000000000..5b0a79f08
--- /dev/null
+++ b/reporteador.aspx.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using Extensiones;
+
+
+public partial class reporteador : ClsPaginas
+{
+ public string rutaArchivo
+ {
+ get
+ {
+ return ViewState["rutaArchivo"].ToString();
+ }
+ set { ViewState["rutaArchivo"] = value; }
+ }
+ protected void Page_PreInit(object sender, EventArgs e)
+ {
+
+ }
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ rutaArchivo = Server.MapPath("~/Empresas/Grales/Formatos/CatPS.rpt");
+ CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
+ cryRpt.Load(rutaArchivo);
+ GVParametros.DataSource = cryRpt.DataDefinition.ParameterFields;
+ GVParametros.DataBind();
+ }
+ }
+
+ protected void GVParametros_RowDataBound(object sender, GridViewRowEventArgs e)
+ {
+ if (e.Row.RowType == DataControlRowType.DataRow)
+ {
+ CrystalDecisions.Shared.ParameterValues defaultValues = ((CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition)e.Row.DataItem).DefaultValues;
+ if (defaultValues.Count > 0)
+ {
+ e.Row.FCTextBox("TxtValor").Text = defaultValues[0].Description;
+ }
+ //CrystalDecisions.Shared.ParameterValues. DefaultValues
+ }
+ }
+
+ protected void LnkImprime_Click(object sender, EventArgs e)
+ {
+
+ string Formato = "PDF";
+ List lista = new List();
+ CrystalDecisions.CrystalReports.Engine.ReportDocument cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
+ cryRpt.Load(rutaArchivo);
+ foreach (GridViewRow gvRow in GVParametros.Rows)
+ {
+ if (gvRow.RowType == DataControlRowType.DataRow)
+ {
+ lista.Add(new CrystalParametro(gvRow.DataKey("Name"), gvRow.FCTextBox("TxtValor").Text));
+
+ }
+
+ }
+ ImprimirbytesPDF(ImprimirPDFCrystal(rutaArchivo, (new System.Data.DataTable()), lista, "Productos y Servicios", Formato), "Productos y Servicios", Formato);
+
+ }
+
+
+}
\ No newline at end of file