diff --git a/App_Code/ClsClasificaciones.vb b/App_Code/ClsClasificaciones.vb index 6d25100b9..acbf3ef8c 100644 --- a/App_Code/ClsClasificaciones.vb +++ b/App_Code/ClsClasificaciones.vb @@ -440,7 +440,11 @@ Public Class ClsClasificaciones End Try Return Retorno - End Function + End Function + + 'Public Function UpdateClasificacionCunetas(CveClasificacion As Integer, CveCuentaContableIngreso As Integer, CveCuentaContableGasto As Integer, CveEmpresa As Object) As Boolean + + 'End Function Public Function RemoveClasificacion(CveClasificacion As Integer) As Boolean Dim OnError As Boolean = False @@ -662,6 +666,8 @@ Public Class ClsClasificaciones Dispose(True) GC.SuppressFinalize(Me) End Sub + + #End Region End Class diff --git a/App_Code/ClsClientes.vb b/App_Code/ClsClientes.vb index 0c3f1856e..2422f98ee 100644 --- a/App_Code/ClsClientes.vb +++ b/App_Code/ClsClientes.vb @@ -589,7 +589,7 @@ Public Class ClsClientes Optional CveMotivoTraslado As Integer = 0, Optional NumRegIdTrib As String = "", Optional ComExtEstado As String = "-1", Optional ComExtMunicipio As String = "-1", Optional ComExtColonia As String = "-1", Optional RequiereOC As Boolean = False, Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0, Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1", Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False, - Optional RepresentanteLegal As String = "") As Boolean + Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean Dim Retorno As Boolean = False @@ -735,11 +735,7 @@ Public Class ClsClientes .Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad .Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona .Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal - - - - - + .Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito End With Try @@ -789,7 +785,7 @@ Public Class ClsClientes Optional ApellidoPaternoPF As String = "-1", Optional ApellidoMaternoPF As String = "-1", Optional NombresPF As String = "-1", Optional RequiereOC As Boolean = False, Optional LT As String = "0", Optional LG As String = "0", Optional EsDistribuidor As Boolean = False, Optional TipoCliente As Integer = 1, Optional CargoUsado As Boolean = False, Optional BonificacionUsado As Boolean = False, Optional CveTipoRetencion As Integer = 0, Optional CorreoEntregaCompras As String = "-1", Optional CorreoEntregaAlmacen As String = "-1", Optional CveSATEstado As Integer = -1, Optional CveAdminTrayecto As Integer = -1, Optional NoDesglosaIVA As Boolean = False, Optional CveRegimenFiscal As Integer = 0, Optional RegimenSociedad As String = "-1", Optional TipoPersona As Boolean = False, - Optional RepresentanteLegal As String = "") As Boolean + Optional RepresentanteLegal As String = "", Optional FechaLimiteCredito As Date = MinFecha) As Boolean Dim Retorno As Boolean = False @@ -951,6 +947,7 @@ Public Class ClsClientes .Add("@RegimenSociedad", SqlDbType.VarChar).Value = RegimenSociedad .Add("@TipoPersona", SqlDbType.Bit).Value = TipoPersona .Add("@RepresentanteLegal", SqlDbType.VarChar).Value = RepresentanteLegal + .Add("@FechaLimiteCredito", SqlDbType.Date).Value = FechaLimiteCredito diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb index 6d71b3738..8dd0f20c4 100644 --- a/App_Code/ClsPaginas.vb +++ b/App_Code/ClsPaginas.vb @@ -4285,8 +4285,6 @@ Public Class ClsPaginas PaginaDict.Add("/GPS/ReporteUnidadesnoTransmiten.aspx".ToUpper(), 917) PaginaDict.Add("/GPS/RepArrastre.aspx".ToUpper(), 718) - PaginaDict.Add("/Ventas/RepConciliacionSat.aspx".ToUpper(), 716) - PaginaDict.Add("/Ventas/SolicitudesSAT.aspx".ToUpper(), 717) PaginaDict.Add("/Nomina/CatConceptos2.aspx".ToUpper(), -1) PaginaDict.Add("/Nomina/NomTimbrados.aspx".ToUpper(), 920) @@ -5468,8 +5466,8 @@ Public Class ClsPaginas PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394) PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397) PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321) - PaginaDict.Add("/Ventas/DiseñadorReportes.aspx".ToUpper(), 569) - PaginaDict.Add("/Ventas/ReporteDetalle.aspx".ToUpper(), 576) + + PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13) PaginaDict.Add("/Ventas/RepVentasUtilidadPadre.aspx".ToUpper(), 590) PaginaDict.Add("/Ventas/RepVentasUtilidad.aspx".ToUpper(), 590) @@ -5502,7 +5500,7 @@ Public Class ClsPaginas PaginaDict.Add("/Ventas/RepCancelacionesPorAtender.aspx".ToUpper(), 750) PaginaDict.Add("/Ventas/RepCancelacionesPorRespuesta.aspx".ToUpper(), 751) - PaginaDict.Add("/Ventas/RepIngresos.aspx".ToUpper(), 540) + 'Reportes de Anticipos-NC-IXC' PaginaDict.Add("/Ventas/RepAnticipo-NC-IXC.aspx".ToUpper(), 869) PaginaDict.Add("/Ventas/RepAnticipo-NC-IXCDetalle.aspx".ToUpper(), 869) diff --git a/App_Code/ClsSisUsuarios.vb b/App_Code/ClsSisUsuarios.vb index 613bc8b9a..2d74edb22 100644 --- a/App_Code/ClsSisUsuarios.vb +++ b/App_Code/ClsSisUsuarios.vb @@ -1495,13 +1495,14 @@ Public Class ClsSisUsuarios #Region " S U B - P R O Y E C T O S " - Public Function GetSubProyectos(CveUsuario As Integer) As Boolean + Public Function GetSubProyectos(CveUsuario As Integer, Optional CveSubProyecto As Integer = -1) As Boolean Dim Retorno As Boolean = False DataAdapter("PA_Sis_UsuariosSubProyectosGet") With SqlAdapter.SelectCommand.Parameters .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario + .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto End With Try diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb index 90f5c97d8..a2bd46524 100644 --- a/Bancos/IE.aspx.vb +++ b/Bancos/IE.aspx.vb @@ -6097,7 +6097,17 @@ Partial Class Bancos_IE Dim Cuerpo As String = "Se hace entrega del comprobante de pago" Dim Asunto As String = "Entrega de comprobante de pago" - If IO.File.Exists(RutaPDF) AndAlso IO.File.Exists(RutaXML) Then + Dim ErrorAdjuntas As String = "" + + If Not IO.File.Exists(RutaPDF) Then + ErrorAdjuntas = "No se pudo adjuntar el archivo PDF
" + End If + + If Not IO.File.Exists(RutaXML) Then + ErrorAdjuntas = $"{ErrorAdjuntas} No se pudo adjuntar el XML." + End If + + If ErrorAdjuntas.Length > 0 Then Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail) @@ -6116,7 +6126,7 @@ Partial Class Bancos_IE End If Else - Msg = "No se pudo adjuntar el correo electrónico." + Msg = ErrorAdjuntas End If End If diff --git a/Compras/RepComprasAFDetalle.aspx b/Compras/RepComprasAFDetalle.aspx index 23ec0098d..bb5fbd9fa 100644 --- a/Compras/RepComprasAFDetalle.aspx +++ b/Compras/RepComprasAFDetalle.aspx @@ -329,8 +329,6 @@ - - @@ -341,6 +339,15 @@ + + + Cuenta + + + + + + <%-- --%> diff --git a/Empresas/Grales/Formatos/RepComprasAFDetalle.rdlc b/Empresas/Grales/Formatos/RepComprasAFDetalle.rdlc index c94cb5d73..cb2f4dd72 100644 --- a/Empresas/Grales/Formatos/RepComprasAFDetalle.rdlc +++ b/Empresas/Grales/Formatos/RepComprasAFDetalle.rdlc @@ -65,10 +65,18 @@ AFTipoMantenimientoStr System.String + + Clasificacion2 + System.String + Orden System.String + + CuentaContable + System.String + DataSet @@ -135,36 +143,45 @@ 1.88881cm - 2.69134cm + 2.02988cm - 5.54514cm + 4.99622cm - 6.16934cm + 2.47188cm 2.5cm - 2.02988cm + 1.66017cm - 1.22736cm + 1.79916cm + + + 2.5cm + + + 0.96278cm 1.36229cm - 1.77949cm + 1.09772cm - 1.57396cm + 1.46813cm + + + 2.03058cm - 0.6cm + 0.73231cm @@ -177,12 +194,14 @@ Serie Folio - Textbox4 @@ -211,12 +230,14 @@ Sub Proyecto - Textbox14 @@ -243,14 +264,16 @@ - Descripcion + Activo Fijo - Textbox6 @@ -279,12 +302,14 @@ Producto - Textbox15 @@ -313,12 +338,14 @@ Responsable - Textbox16 @@ -345,26 +372,30 @@ - Horometro/ + Horo./ - - Odometro + Odo. - Textbox18 @@ -382,6 +413,78 @@ + + + + true + true + + + + + Tipo Mant. + + + + + + + Textbox17 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Clasificacion 2 + + + + + + + Textbox21 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + @@ -393,12 +496,14 @@ U.M. - Textbox5 @@ -425,14 +530,16 @@ - Cantidad + Cant. - Textbox19 @@ -461,12 +568,14 @@ PU - Textbox3 @@ -495,12 +604,14 @@ Total - Textbox13 @@ -518,6 +629,42 @@ + + + + true + true + + + + + Cuenta Contable + + + + + + + Textbox20 + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + @@ -534,7 +681,7 @@ =Fields!SerieFolio.Value @@ -567,7 +714,7 @@ =Fields!SubProyecto.Value @@ -599,7 +746,7 @@ =Fields!CodigoAF.Value @@ -631,7 +778,7 @@ =Fields!CodigoPS.Value @@ -664,7 +811,7 @@ =Fields!NombreCompleto.Value @@ -697,7 +844,7 @@ =Fields!AFMedida.Value @@ -719,6 +866,76 @@ + + + + true + true + + + + + =Fields!AFTipoMantenimientoStr.Value + + + + + + + AFTipoMantenimientoStr + + + =IIF(Fields!Orden.Value.ToString = "0","Silver","White") + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Clasificacion2.Value + + + + + + + Clasificacion2 + + + =IIF(Fields!Orden.Value.ToString = "0","Silver","White") + 2pt + 2pt + 2pt + 2pt + + + + @@ -730,7 +947,7 @@ =Fields!UnidadMedida.Value @@ -763,7 +980,7 @@ =Fields!Cantidad.Value @@ -799,7 +1016,7 @@ =Fields!PU.Value @@ -835,7 +1052,7 @@ =Fields!Total.Value @@ -860,6 +1077,41 @@ + + + + true + true + + + + + =Fields!CuentaContable.Value + + + + + + + CuentaContable + + + =IIF(Fields!Orden.Value.ToString = "0","Silver","White") + 2pt + 2pt + 2pt + 2pt + + + + @@ -876,6 +1128,9 @@ + + + @@ -891,7 +1146,7 @@ DataSet1 0.9482cm 0.09525cm - 1.06771cm + 1.20002cm 26.76762cm 2 - - - Conciliación CFDI SAT - - - - -
  • Solicitudes SAT
  • - -
    - - - - - - -
    -
    -
    - - -
    -
    -
    - - -
    - Fecha Inicio: -
    -
    -
    - - - - -
    - - - - - - -
    -
    - Fecha Fin: -
    -
    -
    - - - - -
    - - - - - - -
    -
    -
    -
    - -
    -
    -
    - - - - - - - - - - - - <%# Eval("CFDISIG")%> - - - - - <%# Eval("CFDISAT")%> - - - - - <%# Eval("CFDISIGSinSAT")%> - - - - - <%# Eval("CFDISATSinSIG")%> - - - - - - - - - - - - - - <%----%> - - -
    - - - - diff --git a/Ventas/RepConciliacionSat.aspx.cs b/Ventas/RepConciliacionSat.aspx.cs deleted file mode 100644 index 6d282df49..000000000 --- a/Ventas/RepConciliacionSat.aspx.cs +++ /dev/null @@ -1,135 +0,0 @@ -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 Ventas_RepConciliacionSat : ClsPaginas -{ - const string rqFechaInicio = "FechaInicio"; - const string rqFechaFin = "FechaFin"; - public string RfechaI - { - get - { - return ViewState["RfechaI"].ToString(); - } - set { ViewState["RfechaI"] = value; } - } - public string RfechaF - { - get - { - return ViewState["RfechaF"].ToString(); - } - set { ViewState["RfechaF"] = value; } - } - protected void Page_Load(object sender, EventArgs e) - { - if (!IsPostBack) - { - DateTime fecha; - DateTime fechaInicio = DateTime.Now; - DateTime fechaFin = DateTime.Now; - if (fechaInicio.Day < 5) { fechaInicio = fechaInicio.AddMonths(-1); } - fechaInicio = fechaInicio.AddDays(1 - fechaInicio.DayOfYear); - fechaFin = fechaInicio.AddYears(1).AddDays(-1); - if (Request[rqFechaInicio] != null) { DateTime.TryParse(Request[rqFechaInicio], out fecha); fechaInicio = fecha.Year > 1900 ? fecha : fechaInicio; } - if (Request[rqFechaFin] != null) { DateTime.TryParse(Request[rqFechaFin], out fecha); fechaFin = fecha.Year > 1900 ? fecha : fechaFin; } - txtFechaI.Text = string.Format("{0:dd/MM/yyyy}", fechaInicio); - txtFechaF.Text = string.Format("{0:dd/MM/yyyy}", fechaFin); - - - } - CargaRepConciliacionSatGET(); - } - - - protected void CargaRepConciliacionSatGET() - { - string RtipoDocto; - RtipoDocto = "I"; - RfechaI = txtFechaI.Text.Length > 0 ? txtFechaI.Text.ToDateTime().ToString("yyyy/MM/dd") : ""; - RfechaF = txtFechaF.Text.Length > 0 ? txtFechaF.Text.ToDateTime().ToString("yyyy/MM/dd") : ""; - using (ClsGenerales ObjRepC = new ClsGenerales()) - { - ObjRepC.RepConciliacionSATGet(UsuarioActual.CveEmpresa, RtipoDocto, RfechaI, RfechaF); - GVRepConciliacionSatGET.DataSource = ObjRepC.DtResultados; - ObjRepC.Dispose(); - - } - GVRepConciliacionSatGET.DataBind(); - upDatosRepC.Update(); - } - - protected void BtnConsultar_Click(object sender, EventArgs e) - { - CargaRepConciliacionSatGET(); - } - - protected void GVRepConciliacionSatGET_RowDataBound(object sender, GridViewRowEventArgs e) - { - if (e.Row.RowType == DataControlRowType.DataRow) - { - string fechaI = RfechaI; - string fechaF = RfechaF; - DateTime danio; - DateTime danioF; - int GRUPOCve = e.Row.DBCampo("GRUPOCve").ToString().ToEntero(); - e.Row.CssClass = string.Format("Grupo{0}", GRUPOCve); - e.Row.Attributes.Add("ganio", string.Format("{0}", e.Row.DBCampo("anio"))); - e.Row.Attributes.Add("gMes", string.Format("{0}", e.Row.DBCampo("Mes"))); - string navigateurl = ""; - switch (GRUPOCve) - { - case 0: - break; - case 1: - danio = string.Format("{0}/01/01", e.Row.DBCampo("anio")).ToDateTime(); - danioF = danio.AddYears(1).AddSeconds(-1); - if (RfechaI.ToDateTime() < danio) - { - fechaI = danio.ToString("yyyy/MM/dd"); - } - if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0) - { - fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss"); - } - break; - case 2: - danio = string.Format("{0}/{1}/01", e.Row.DBCampo("anio"), e.Row.DBCampo("Mes").Substring(4)).ToDateTime(); - danioF = danio.AddMonths(1).AddSeconds(-1); - if (RfechaI.ToDateTime() < danio) - { - fechaI = danio.ToString("yyyy/MM/dd"); - } - if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0) - { - fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss"); - } - break; - case 3: - danio = string.Format("{0:yyyy/MM/dd}", e.Row.DBCampo("dia")).ToDateTime(); - danioF = danio.AddDays(1).AddSeconds(-1); - if (RfechaI.ToDateTime() < danio) - { - fechaI = danio.ToString("yyyy/MM/dd"); - } - if (RfechaF.ToDateTime() > danioF || RfechaF.Length == 0) - { - fechaF = danioF.ToString("yyyy/MM/dd HH:mm:ss"); - } - break; - default: - break; - } - navigateurl = string.Format("{0}&{3}={1}&{4}={2}", navigateurl, fechaI, fechaF, rqFechaInicio, rqFechaFin); - e.Row.FCHyperLink("HypSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=1{0}", navigateurl); - e.Row.FCHyperLink("HypSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=2{0}", navigateurl); - e.Row.FCHyperLink("HypSIGnoSAT").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=3{0}", navigateurl); - e.Row.FCHyperLink("HypSatnoSIG").NavigateUrl = string.Format("/Ventas/RepConciliacionEmitidosSat.aspx?RegistroEn=4{0}", navigateurl); - } - } -} \ No newline at end of file diff --git a/Ventas/RepIngresos.aspx b/Ventas/RepIngresos.aspx deleted file mode 100644 index 59b888063..000000000 --- a/Ventas/RepIngresos.aspx +++ /dev/null @@ -1,252 +0,0 @@ -<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepIngresos.aspx.vb" Inherits="Ventas_RepIngresos" %> - - - - - - - - Reporte de Ingresos - - - - - - -
  • - PDF -
  • -
  • - Excel -
  • -
  • - Ver Dlls en pesos -
  • -
    - - - - -
    -
    - - - - - - -
    -
    -
    - - - "> - - -
    -
    -
    -
    - -
    -
    -
    - - - - -
    - - -
    -
    - -
    -
    -
    - - - - -
    - - -
    -
    - -
    - -
    - - - - - - - - - - - - <%-- - - - - - - --%> -
    -
    - -
    -
    - <%-- - - --%> - - - - -
    -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - - -
    - - - diff --git a/Ventas/RepIngresos.aspx.vb b/Ventas/RepIngresos.aspx.vb deleted file mode 100644 index 8e5a5f6af..000000000 --- a/Ventas/RepIngresos.aspx.vb +++ /dev/null @@ -1,197 +0,0 @@ - -Imports System.Data -Imports Extensiones -Imports Microsoft.Reporting.WebForms - -Partial Class Ventas_RepIngresos - Inherits ClsPaginas - -#Region "Propiedades" - Protected ReadOnly Property Filtros As String - Get - Dim retorno As New StringBuilder - If RsFechaI <> "-1" Then - retorno.Append("&RsFechaI=") - retorno.Append(RsFechaI) - End If - If RsFechaF <> "-1" Then - retorno.Append("&RsFechaF=") - retorno.Append(RsFechaF) - End If - If TipoDoc <> "-1" Then - retorno.Append("&TipoDoc=") - retorno.Append(TipoDoc) - End If - If CveSubProyecto <> -1 Then - retorno.Append("&CveSubProyecto=") - retorno.Append(CveSubProyecto) - End If - Return retorno.ToString() - End Get - End Property - Private Property RsFechaI() As String - Get - Return If(IsNothing(ViewState("RsFechaI")), "-1", CStr(ViewState("RsFechaI"))) - End Get - Set - ViewState("RsFechaI") = Value - End Set - End Property - Private Property RsFechaF() As String - Get - Return If(IsNothing(ViewState("RsFechaF")), "-1", CStr(ViewState("RsFechaF"))) - End Get - Set - ViewState("RsFechaF") = Value - End Set - End Property - Private Property TipoDoc() As String - Get - Return If(IsNothing(ViewState("TipoDoc")), "-1", CStr(ViewState("TipoDoc"))) - End Get - Set - ViewState("TipoDoc") = Value - End Set - End Property - Private Property CveSubProyecto() As Integer - Get - Return If(IsNothing(ViewState("CveSubProyecto")), -1, ViewState("CveSubProyecto").ToString().ToEntero()) - End Get - Set - ViewState("CveSubProyecto") = Value - End Set - End Property - Private Property DtDatos As DataTable - Get - DtDatos = DirectCast(ViewState("DtDatos"), DataTable) - End Get - - Set(ByVal value As DataTable) - ViewState("DtDatos") = value - End Set - End Property - - Private Property TipoCambio As Integer - Get - Return ViewState("TipoCambio").ToString.ToEntero - End Get - - Set(value As Integer) - ViewState("TipoCambio") = value - End Set - End Property - Private Property TCEspecifico As Decimal - Get - Return ViewState("TCEspecifico").ToString.ToDecimal - End Get - - Set(value As Decimal) - ViewState("TCEspecifico") = value - End Set - End Property -#End Region - - Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load - If Not IsPostBack Then - TCEspecifico = -1 - TipoCambio = 1 - CveSubProyecto = -1 - TxtFechaInicio.Text = String.Format("01/01/{0}", Now.Year) - DdlSubProyecto.DataSource = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, 1) - DdlSubProyecto.DataBind() - - End If - End Sub - - Protected Sub CargaRepIngresos(Optional tipoReporte As Integer = -1) - Dim Cves_Subprotectos As String = If(DdlSubProyecto.GetSelectedValuesM = "", "-1", DdlSubProyecto.GetSelectedValuesM) - Dim TiposDoc As String = If(DdlTipoDocto.GetSelectedValuesM = "", "-1", DdlTipoDocto.GetSelectedValuesM) - - 'If RblTipoCambio.SelectedValue.ToEntero = 3 And TxtEspecifico.Text <> "" Then - ' TCEspecifico = TxtEspecifico.Text.ToDecimal - 'Else - ' TCEspecifico = -1 - 'End If - - Dim ObjRepI As New ClsVentas() - If ObjRepI.RepIngresos(UsuarioActual.CveEmpresa, If(RsFechaI = "-1", MinFecha, RsFechaI.ToDate), If(RsFechaF = "-1", MaxFecha, RsFechaF.ToDate), TiposDoc, Cves_Subprotectos, TipoCambio:=TipoCambio, TCEspecifico:=TCEspecifico) Then - GVRepIngresos.DataSource = ObjRepI.DtResultados - DtDatos = ObjRepI.DtResultados - End If - ObjRepI.Dispose() - GVRepIngresos.DataBind() - upDatosRepI.Update() - End Sub - Protected Sub LnkFiltrar_Click(sender As Object, e As EventArgs) - RsFechaI = TxtFechaInicio.Text.Replace("__/__/____", "").Trim() - RsFechaI = If(RsFechaI.Length > 6, RsFechaI.ToDate().ToString("yyyy/MM/dd"), "-1") - RsFechaF = TxtFechaFin.Text.Replace("__/__/____", "").Trim() - RsFechaF = If(RsFechaF.Length > 6, RsFechaF.ToDate().ToString("yyyy/MM/dd"), "-1") - TipoDoc = DdlTipoDocto.SelectedValue - CveSubProyecto = DdlSubProyecto.SelectedValue.ToEntero() - CargaRepIngresos() - End Sub -#Region "IMPRESION" - Protected Sub LnkPDF_Click(sender As Object, e As EventArgs) - GeneraImpresion() - End Sub - Protected Sub LnkExcel_Click(sender As Object, e As EventArgs) - GeneraImpresion("Excel") - End Sub - - Private Sub GeneraImpresion(Optional Formato As String = "PDF") - - Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta)) - Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa) - - Dim FI As String = If(TxtFechaInicio.Text = "", "", $"Fecha Inicio: {TxtFechaInicio.Text} ") - Dim FF As String = If(TxtFechaFin.Text = "", "", $"Fecha Fin: {TxtFechaFin.Text} ") - Dim Tipo As String = If(DdlTipoDocto.SelectedValue = "", "", $"Tipo Docto: {DdlTipoDocto.GetSelectedText} ") - Dim subProy As String = If(DdlSubProyecto.SelectedValue = "", "", $"SubProyecto: {DdlSubProyecto.GetSelectedText} ") - - If DtDatos IsNot Nothing AndAlso DtDatos.Rows.Count > 0 Then - - Dim params As New List(Of ReportParameter) - - params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa)) - params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre)) - params.Add(New ReportParameter("AgrupadoPor", $"{FI}{FF}{Tipo}{subProy}")) - params.Add(New ReportParameter("FechaImpresion", DateAndTime.Now)) - If Imagen.Exists Then - params.Add(New ReportParameter("LogoPath", logouri)) - Else - params.Add(New ReportParameter("LogoPath", "")) - End If - - ImprimirPDF("Empresas/Grales/Formatos/RepIngresos.rdlc", DtDatos, params, "RepPUESinPago", Formato) - Else - Alert("No se encontraron datos con los filtros especificados", TipoMensaje.MsgAdvertencia) - End If - - End Sub -#End Region - Protected Sub GVRepIngresos_RowDataBound(sender As Object, e As GridViewRowEventArgs) - If e.Row.RowType = DataControlRowType.DataRow Then - If e.Row.DBCampo("TipoAmortizacion") = "" Then - e.Row.CssClass = "Totales" - ElseIf e.Row.DBCampo("TipoAmortizacion") <> "" AndAlso e.Row.DBCampo("CveConceptoContable") = "" Then - e.Row.CssClass = "SubTotales" - End If - End If - End Sub - Private Sub RblTipoCambio_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RblTipoCambio.SelectedIndexChanged - TipoCambio = RblTipoCambio.SelectedValue.ToEntero - 'If TipoCambio = 3 Then - ' LiEspecifico.Visible = True - ' TCEspecifico = GlobalTipoCambio(Now).ToDecimal - ' TxtEspecifico.Text = TCEspecifico.ToString - 'Else - ' LiEspecifico.Visible = False - 'End If - UpBodyTipoCambio.Update() - End Sub - Private Sub BtnTipoCambio_Click(sender As Object, e As EventArgs) Handles BtnTipoCambio.Click - RegistraScript(String.Format("$('#{0}').modal('hide');", "DivTipoCambio")) - LnkFiltrar_Click(LnkFiltrar, EventArgs.Empty) - End Sub -End Class diff --git a/Ventas/ReporteDetalle.aspx b/Ventas/ReporteDetalle.aspx deleted file mode 100644 index 8b4f500cf..000000000 --- a/Ventas/ReporteDetalle.aspx +++ /dev/null @@ -1,52 +0,0 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReporteDetalle.aspx.cs" Inherits="Ventas_ReporteDetalle" %> - -<%@ Register Assembly="Stimulsoft.Report.MobileDesign, Version=2017.1.10, Culture=neutral, PublicKeyToken=EBE6666CBA19647A" - Namespace="Stimulsoft.Report.MobileDesign" TagPrefix="cc2" %> - - - - - - - - - - -
    - - - - - diff --git a/Ventas/SolicitudesSAT.aspx b/Ventas/SolicitudesSAT.aspx deleted file mode 100644 index 66c61af18..000000000 --- a/Ventas/SolicitudesSAT.aspx +++ /dev/null @@ -1,406 +0,0 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="SolicitudesSAT.aspx.cs" Inherits="Ventas_SolicitudesSAT" %> - - - - - - - - Solicitudes CFDI SAT - - - - - - -
  • - Verificar Solicitudes
  • -
  • - Solicitar SAT
  • -
    -
    -
    - - - - - -
    -
    -
    - - <%----%> -
    -
    -
    -
    - Tipo: -
    -
    - - - - - -
    -
    - Fecha Inicio(ing.): -
    -
    -
    - - - - -
    - - - - - - -
    -
    - Fecha Fin(ing.): -
    -
    -
    - - - - -
    - - - - - - -
    -
    - Fecha Inicio(Sol.): -
    -
    -
    - - - - -
    - - - - - - -
    -
    - Fecha Fin(Sol.): -
    -
    -
    - - - - -
    - - - - - - -
    -
    -
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - diff --git a/Ventas/SolicitudesSAT.aspx.cs b/Ventas/SolicitudesSAT.aspx.cs deleted file mode 100644 index 4206749c7..000000000 --- a/Ventas/SolicitudesSAT.aspx.cs +++ /dev/null @@ -1,151 +0,0 @@ -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 Ventas_SolicitudesSAT : ClsPaginas -{ - protected void Page_Load(object sender, EventArgs e) - { - - if (!IsPostBack) - { - //this.RegistraScript("$('#ModalSolicitarSat').modal();"); - int rtipo = Request["tipo"] == null ? -1 : Request["tipo"].ToString().ToEntero(); - string rfIngInicio = Request["fIngInicio"] == null ? "" : Request["fIngInicio"].ToString().Trim(); - string rfIngFin = Request["fIngFin"] == null ? "" : Request["fIngFin"].ToString().Trim(); - string rfSolInicio = Request["fSolInicio"] == null ? "" : Request["fSolInicio"].ToString().Trim(); - string rfSolFin = Request["fSolFin"] == null ? "" : Request["fSolFin"].ToString().Trim(); - - if (rfIngInicio == "") - { - rfIngInicio = string.Format("{0:01/MM/yyyy}",DateTime.Now); - } - if (rfIngFin == "") - { - rfIngFin = string.Format("{0:dd/MM/yyyy}",string.Format("{0:01/MM/yyyy}", DateTime.Now).ToDateTime().AddMonths(1).AddDays(-1)); - - } - DateTime dValor = DateTime.Now; - dValor = DateTime.Now; if (DateTime.TryParse(rfIngInicio, out dValor)) { rfIngInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngInicio = ""; } - dValor = DateTime.Now; if (DateTime.TryParse(rfIngFin, out dValor)) { rfIngFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngFin = ""; } - dValor = DateTime.Now; if (DateTime.TryParse(rfSolInicio, out dValor)) { rfSolInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfSolInicio = ""; } - dValor = DateTime.Now; if (DateTime.TryParse(rfSolFin, out dValor)) { rfSolFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfSolFin = ""; } - - DdlTipo.SelectedValueExist(rtipo); - txtFechaI.Text = rfIngInicio; - txtFechaF.Text = rfIngFin; - txtFechaISol.Text = rfSolInicio; - txtFechaFSol.Text = rfSolFin; - cargarDatos(); - } - } - - - private void cargarDatos() - { - int rtipo = DdlTipo.SelectedValue.ToEntero(); - string rfIngInicio = txtFechaI.Text; - string rfIngFin = txtFechaF.Text; - string rfSolInicio = txtFechaISol.Text; - string rfSolFin = txtFechaFSol.Text; - using (ClsGenerales objgral = new ClsGenerales()) - { - objgral.SAT_DescargaSolicitudesGET(UsuarioActual.CveEmpresa, rtipo, rfIngInicio, rfIngFin, rfSolInicio, rfSolFin); - GVSAT_DescargaSolicitudes.DataSource = objgral.DtResultados; - GVSAT_DescargaSolicitudes.DataBind(); - } - upDatosSAT.Update(); - } - - protected void BtnConsultar_Click(object sender, EventArgs e) - { - cargarDatos(); - } - - protected void LnkVerificarSolicitudes_Click(object sender, EventArgs e) - { - string direxe = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "Utilerias\\ADSUtilerias.exe"); - - String json = string.Format("{{cveTareaProgramada:{0},cveEmpresa:{1},CveTareaProgramadaHistorial:{2},recursividad:{3},Resultado:{4},parametros:'Tipo=SP'}}", 1, UsuarioActual.CveEmpresa, -1, 0, 1);//Mod.ToLiteral(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(tarea)); - //this.Alert(string.Format("json:{0} : --mod TareaProgramada --Item {1}", DateTime.Now, json)); - try - { - string Mensajes = ""; - System.Diagnostics.Process ObjProcess = null; - { - ObjProcess = new System.Diagnostics.Process(); - ObjProcess.StartInfo.RedirectStandardOutput = true; - ObjProcess.StartInfo.FileName = direxe;//System.Configuration.ConfigurationManager.AppSettings["DirUtilerias"].ToString(); - ObjProcess.StartInfo.Arguments = $"--mod TareaProgramada --Item {json} "; - ObjProcess.StartInfo.UseShellExecute = false; - ObjProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; - ObjProcess.Start(); - } - using (System.IO.StreamReader myStreamReader = ObjProcess.StandardOutput) - { - Mensajes = myStreamReader.ReadLine(); - - } - } - catch (Exception ex) - { - ex.ToString().GuardaLog(); - } - cargarDatos(); - Alert("La solicitud ha sido enviada"); - } - - protected void LnkSolicitarCFDI_Click(object sender, EventArgs e) - { - string FechaI = string.Format("{0:yyyy-MM-dd}T00:00:00", txtFechaIAdd.Text.ToDateTime()); - string FechaF = string.Format("{0:yyyy-MM-dd}T23:59:59", txtFechaFAdd.Text.ToDateTime()); - - string direxe = string.Format("{0}{1}", AppDomain.CurrentDomain.BaseDirectory, "Utilerias\\ADSUtilerias.exe"); - - String json = string.Format("{{cveTareaProgramada:{0},cveEmpresa:{1},CveTareaProgramadaHistorial:{2},recursividad:{3},Resultado:{4},parametros:'Tipo={5}&fechai={6}&fechaf={7}'}}", 1, UsuarioActual.CveEmpresa, -1, 0, 1, DdlTipoAdd.SelectedValue, FechaI, FechaF);//Mod.ToLiteral(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(tarea)); - //this.Alert(string.Format("json:{0} : --mod TareaProgramada --Item {1}", DateTime.Now, json)); - try - { - string Mensajes = ""; - System.Diagnostics.Process ObjProcess = null; - { - ObjProcess = new System.Diagnostics.Process(); - ObjProcess.StartInfo.RedirectStandardOutput = true; - ObjProcess.StartInfo.FileName = direxe;//System.Configuration.ConfigurationManager.AppSettings["DirUtilerias"].ToString(); - ObjProcess.StartInfo.Arguments = $"--mod TareaProgramada --Item {json} "; - ObjProcess.StartInfo.UseShellExecute = false; - ObjProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; - ObjProcess.Start(); - } - using (System.IO.StreamReader myStreamReader = ObjProcess.StandardOutput) - { - Mensajes = myStreamReader.ReadLine(); - - } - } - catch (Exception ex) - { - ex.ToString().GuardaLog(); - } - cargarDatos(); - Alert("La solicitud ha sido enviada"); - } - - protected void LnknoCFDI_Click(object sender, EventArgs e) - { - GridViewRow gvrow = (GridViewRow)(((LinkButton)sender).NamingContainer); - int CveSolicitudSat = gvrow.DataKey("CveSolicitudSat").ToEntero(); - using (ClsGenerales objgeneral = new ClsGenerales()) - { - objgeneral.SAT_DescargaSolicitudeUUIDSGET(CveSolicitudSat); - GVFoliosSAT.DataSource = objgeneral.DtResultados; - } - GVFoliosSAT.DataBind(); - RegistraScript("$('#ModalFoliosSolicitud').modal();"); - UpFoliosSAT.Update(); - } -} \ No newline at end of file