diff --git a/App_Code/ClsBancos.vb b/App_Code/ClsBancos.vb
index b4ce6e00d..b912c9d6e 100644
--- a/App_Code/ClsBancos.vb
+++ b/App_Code/ClsBancos.vb
@@ -4722,7 +4722,7 @@ Public Class ClsBancos
strBody.AppendFormat(" ")
- For Each dr As DataRow In DtResultados.FiltraParametros("CveConceptoContable IN (17) AND CveCompra > 0").Rows
+ For Each dr As DataRow In DtResultados.FiltraParametros("CveConceptoContable IN (17,312) AND CveCompra > 0").Rows
strBody.AppendFormat("
", dr("SerieFolio").ToString)
diff --git a/App_Code/ClsClientes.vb b/App_Code/ClsClientes.vb
index 9435c83d1..9d76674c8 100644
--- a/App_Code/ClsClientes.vb
+++ b/App_Code/ClsClientes.vb
@@ -930,9 +930,17 @@ Public Class ClsClientes
Retorno = True
Catch Ex1 As SqlException
If Ex1.Message.Contains("Número: 2627;") Then
- Alert("El Cliente no se guardo debido a que actualmente se encuentra registrado.", TipoMensaje.MsgAdvertencia)
- ElseIf Ex1.Message.Contains("'UN_ClientesRFCEmpresa'") Then
- Alert($"El Cliente no se guardo debido a que el RFC {RFC} se encuentra asignado a otro cliente.", TipoMensaje.MsgAdvertencia)
+ Alert("El Cliente no se guardo debido a que actualmente se encuentra registrado.", TipoMensaje.MsgAdvertencia)
+ ElseIf Ex1.Message.Contains("Número: 2601;") Then
+
+ If Ex1.Message.Contains("UN_ClientesRFCEmpresa") Then
+ Alert($"El Cliente no se guardo debido a que el RFC {RFC} se encuentra asignado a otro cliente.", TipoMensaje.MsgAdvertencia)
+ End If
+
+ If Ex1.Message.Contains("IND_Clientes_Codigo") Then
+ Alert("Ya existe un cliente registrado con el mismo Código.", TipoMensaje.MsgAdvertencia)
+ End If
+
Else
Me.OnError("Ocurrió un error al intentar Actualizar los datos del Cliente.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
End If
diff --git a/App_Code/ClsContabilidad.vb b/App_Code/ClsContabilidad.vb
index 202c993ec..b63588707 100644
--- a/App_Code/ClsContabilidad.vb
+++ b/App_Code/ClsContabilidad.vb
@@ -4096,7 +4096,7 @@ Public Class ClsContabilidad
Return Retorno
End Function
- Public Function GetAnexoCatalogoMensual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer) As Boolean
+ Public Function GetAnexoCatalogoMensual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer, Divisor As Integer, CveUsuario As Integer) As Boolean
Dim Retorno = False
DataAdapter("PA_Conta_AnexoCatalogoMensualGet")
@@ -4106,6 +4106,8 @@ Public Class ClsContabilidad
.Add("@Ejercicio", SqlDbType.Int).Value = Ejercicio
.Add("@CveSubproyecto", SqlDbType.Int).Value = CveSubproyecto
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@Divisor", SqlDbType.Int).Value = Divisor
+ .Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
End With
Try
@@ -6176,6 +6178,34 @@ Public Class ClsContabilidad
End Function
+
+ Public Function GetAnexoCatalogoMensualHorizontal(IdCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, CveSubProyecto As String, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1, Optional SAT As Integer = 0) As Boolean
+ Dim Retorno = False
+
+ DataAdapter("PA_Conta2_AnexoCatalogoMensualHorizontalGet")
+
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@FechaI", SqlDbType.Date).Value = FechaI
+ .Add("@FechaF", SqlDbType.Date).Value = FechaF
+ .Add("@IdCuentaPadre", SqlDbType.Int).Value = IdCuenta
+ .Add("@Tipo", SqlDbType.Int).Value = TipoMovtos
+ .Add("@OpcionCuentas", SqlDbType.Int).Value = OpcionCuentas
+ .Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@SAT", SqlDbType.Int).Value = SAT
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ Me.OnError("Ocurrió un error al obtener el Anexo del Catalogo", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+
+ Return Retorno
+ End Function
+
+
Public Function GetEstadosAnualHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
Dim Retorno = False
diff --git a/App_Code/ClsEdocumentacion.vb b/App_Code/ClsEdocumentacion.vb
index 8ca3b451f..878dbc95b 100644
--- a/App_Code/ClsEdocumentacion.vb
+++ b/App_Code/ClsEdocumentacion.vb
@@ -505,9 +505,110 @@ Public Class ClsEdocumentacion
' Return Retorno
' End Function
-#End Region
+#End Region
+#Region " P A R A M E T R O S "
+
+ Public Function AddDocumentacionParametros(CveDocumentacion As Integer, Parametro As String, Descripcion As String, CveEmpresa As Integer, CveUsaurio As Integer) As Boolean
+ Dim Retorno As Boolean = False
+
+ DataAdapter("PA_Edoc_DocumentacionParametrosAdd")
+
+ With SqlAdapter.SelectCommand.Parameters
+
+ .Add("@CveDocumentacion", SqlDbType.Int).Value = CveDocumentacion
+ .Add("@Parametro", SqlDbType.VarChar).Value = Parametro
+ .Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+ .Add("@CveUsaurio", SqlDbType.Int).Value = CveUsaurio
+
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al agregar el pa.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
+ End Try
+
+ Return Retorno
+ End Function
+
+
+ Public Function UpdateDocumentacionParametros(CveDocumentacionParametro As Integer, CveDocumentacion As Integer, Parametro As String, Descripcion As String, CveEmpresa As Integer) As Boolean
+ Dim Retorno As Boolean = False
+
+ DataAdapter("PA_Edoc_DocumentacionParametrosUpdate")
+
+ With SqlAdapter.SelectCommand.Parameters
+
+ .Add("@CveDocumentacionParametro", SqlDbType.Int).Value = CveDocumentacionParametro
+ .Add("@CveDocumentacion", SqlDbType.Int).Value = CveDocumentacion
+ .Add("@Parametro", SqlDbType.VarChar).Value = Parametro
+ .Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al actualiar el parametro.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
+ End Try
+
+ Return Retorno
+ End Function
+
+ Public Function GetDocumentacionParametros(CveDocumentacionParametro As Integer, CveDocumentacion As Integer, CveEmpresa As Integer) As Boolean
+ Dim Retorno As Boolean = False
+
+ DataAdapter("PA_Edoc_DocumentacionParametrosGet")
+
+ With SqlAdapter.SelectCommand.Parameters
+
+ .Add("@CveDocumentacionParametro", SqlDbType.Int).Value = CveDocumentacionParametro
+ .Add("@CveDocumentacion", SqlDbType.Int).Value = CveDocumentacion
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al consultar los parametros.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
+ End Try
+
+ Return Retorno
+ End Function
+
+
+ Public Function RemoveDocumentacionParametros(CveDocumentacionParametro As Integer, CveEmpresa As Integer) As Boolean
+ Dim Retorno As Boolean = False
+
+ DataAdapter("PA_Edoc_DocumentacionParametrosRemove")
+
+ With SqlAdapter.SelectCommand.Parameters
+
+ .Add("@CveDocumentacionParametro", SqlDbType.Int).Value = CveDocumentacionParametro
+ .Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
+
+ End With
+
+ Try
+ SqlAdapter.Fill(Data)
+ Retorno = True
+ Catch ex As Exception
+ OnError("Ocurrió un error al eliminar el parametros.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
+ End Try
+
+ Return Retorno
+ End Function
+
+
+#End Region
#Region " IDisposable Support "
' IDisposable
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index 26260d8a2..aa4ae7b67 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -4240,6 +4240,10 @@ Public Class ClsPaginas
PaginaDict.Add("/Contabilidad2/PolizasImpresion.aspx".ToUpper(), 726)
PaginaDict.Add("/Contabilidad2/RepEstadoResultadosHorizontal.aspx".ToUpper(), 420)
+ PaginaDict.Add("/Contabilidad2/RepAnexoCatalogoMensualHorizontal.aspx".ToUpper(), -1)
+
+
+
#End Region
'CONTRATOS
#Region "Contratos"
diff --git a/Contabilidad2/RepAnexoCatalogoMensual.aspx b/Contabilidad2/RepAnexoCatalogoMensual.aspx
index cc4b98959..224507d7a 100644
--- a/Contabilidad2/RepAnexoCatalogoMensual.aspx
+++ b/Contabilidad2/RepAnexoCatalogoMensual.aspx
@@ -3,6 +3,11 @@
+
Anexo del Catálogo - Mensual
@@ -48,50 +53,58 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ <%----%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Contabilidad2/RepAnexoCatalogoMensualHorizontal.aspx.vb b/Contabilidad2/RepAnexoCatalogoMensualHorizontal.aspx.vb
new file mode 100644
index 000000000..e2ab70cc6
--- /dev/null
+++ b/Contabilidad2/RepAnexoCatalogoMensualHorizontal.aspx.vb
@@ -0,0 +1,328 @@
+Option Explicit On
+Option Strict On
+
+Imports System.Data
+Imports Extensiones
+Imports Microsoft.Reporting.WebForms
+
+Partial Class Contabilidad_RepAnexoCatalogoMensualHorizontal
+ Inherits ClsPaginas
+
+
+#Region "PROPIEDADES"
+ 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 FechaInicio As Date
+ Get
+ FechaInicio = ViewState("FechaInicio").ToString.ToDate
+ End Get
+ Set(value As Date)
+ ViewState("FechaInicio") = value
+ End Set
+ End Property
+
+ Private Property FechaFin As Date
+ Get
+ FechaFin = ViewState("FechaFin").ToString.ToDate
+ End Get
+ Set(value As Date)
+ ViewState("FechaFin") = value
+ End Set
+ End Property
+ Private Property IdCuenta As Integer
+ Get
+ IdCuenta = ViewState("CveCuenta").ToString.ToEntero
+ End Get
+ Set(value As Integer)
+ ViewState("CveCuenta") = value
+ End Set
+ End Property
+ 'Private Property DTCuentas As DataTable
+ ' Get
+ ' Return CType(ViewState("DTCuentas"), DataTable)
+ ' End Get
+ ' Set(value As DataTable)
+ ' ViewState("DTCuentas") = value
+ ' End Set
+ 'End Property
+ Private Property CveSubProyecto As String
+ Get
+ CveSubProyecto = ViewState("CveSubProyecto").ToString
+ End Get
+ Set(value As String)
+ ViewState("CveSubProyecto") = value
+ End Set
+ End Property
+
+ Private Property TipoReporte As Integer
+ Get
+ TipoReporte = ViewState("TP").ToString.ToEntero
+ End Get
+ Set(value As Integer)
+ ViewState("TP") = value
+ End Set
+ End Property
+#End Region
+
+ Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
+ If Not Page.IsPostBack Then
+ Dim ErrorParametros = True
+ DtDatos = Nothing
+ CargaTipoCuentas()
+
+ FechaInicio = Now.FirstDayOfMonth
+ FechaFin = Date.Now
+
+ 'If UsuarioActual.Empresa.UsaAC Then
+ ' TipoReporte = -1
+ 'Else
+ ' TipoReporte = 1
+ ' tdTipoReporte.Visible = True
+ ' tdTipoReporte2.Visible = True
+ 'End If
+
+
+ If Request("CveCuenta") IsNot Nothing AndAlso IsNumeric(Request("CveCuenta")) AndAlso Request("CveCuenta").ToEntero > 0 Then
+ 'If Request("FI") IsNot Nothing AndAlso Request("FI").ToString.Length = 10 AndAlso Request("FI").ToDate > "01/01/1000".ToDate Then
+ If Request("FF") IsNot Nothing AndAlso Request("FF").ToString.Length = 10 AndAlso Request("FF").ToDate > "01/01/1000".ToDate Then
+ IdCuenta = Request("CveCuenta").ToEntero
+ 'FechaInicio = Request("FI").ToDate
+ FechaFin = Request("FF").ToDate
+ DdlCuentas.SelectedValueExist(IdCuenta)
+ If DdlCuentas.SelectedValue.ToEntero <> -1 Then
+ 'RegistraScript("Enable();")
+ DdlTipoCuentas.SelectedValueExist(-2)
+ End If
+
+ If Request("FI") IsNot Nothing AndAlso Request("FI").ToString.Length = 10 AndAlso Request("FI").ToDate > "01/01/1000".ToDate Then
+ FechaInicio = Request("FI").ToDate
+ Else
+ If Request("ER") IsNot Nothing AndAlso Request("ER").ToString = "1" Then
+ FechaInicio = DateSerial(Year(FechaFin), Month(FechaFin), 1)
+ Else
+ FechaInicio = ("1900/01/01").ToDate
+ End If
+ End If
+
+
+ If Request("CM") IsNot Nothing AndAlso IsNumeric(Request("CM")) AndAlso Request("CM").ToEntero > 0 Then
+ DdlCuenta.SelectedValueExist(Request("CM").ToString)
+ End If
+
+ If Request("CveSubProyecto") IsNot Nothing AndAlso IsNumeric(Request("CveSubProyecto")) Then
+ CveSubProyecto = Request("CveSubProyecto").ToString
+ End If
+
+
+ ErrorParametros = False
+
+
+ If Request("TP") IsNot Nothing AndAlso IsNumeric(Request("TP")) AndAlso Request("TP").ToEntero > 0 Then
+ TipoReporte = Request("TP").ToEntero
+
+ DdlTipoReporte.SelectedValue = TipoReporte.ToString
+ End If
+ End If
+ 'End If
+ End If
+
+
+ TxtFechaDel.Text = FechaInicio.ToShortDateString
+ TxtFechaAl.Text = FechaFin.ToShortDateString
+
+ If Not ErrorParametros Then
+ CargaDatos()
+ End If
+
+ End If
+ End Sub
+
+#Region "CARGA DATOS Y GRID"
+ 'Public Function WSCuentas() As String
+ ' Dim Str As New StringBuilder
+ ' Dim i As Integer = 0
+ ' Dim dt As DataTable = DTCuentas '.FiltraParametros("Afectable = 1")
+
+ ' If dt IsNot Nothing AndAlso dt.Rows.Count > 0 Then
+
+ ' For Each dr As DataRow In dt.Rows
+ ' i += 1
+ ' Str.AppendFormat("{{value:""{0}"",label:""{1}{3}""}}{2}", dr("CveCuenta"), dr("CtaCodigo").ToString.Replace("""", ""), If(i < dt.Rows.Count, ",", ""), If(dr("Afectable").ToString = "1", " *", ""))
+ ' Next
+
+ ' End If
+
+
+ ' Return Str.ToString
+ 'End Function
+ Private Sub CargaTipoCuentas()
+ 'Dim ObjTipoCuenta As New ClsContPAQi(UsuarioActual.Empresa)
+ Dim ObjTipoCuenta As New ClsContabilidad
+ Dim strGlobal As String = ""
+
+ If ObjTipoCuenta.GetCuentas(-1, "-1", -1, UsuarioActual.CveEmpresa) Then
+ Dim dr As DataRow = ObjTipoCuenta.DtResultados.FiltroPrimero("Codigo IN ('_GLOBAL')")
+ If dr IsNot Nothing Then strGlobal = dr.Item(0).ToString
+ 'DTCuentas = ObjTipoCuenta.DtResultados '.FiltraParametros("Afectable = 1")
+ DdlTipoCuentas.DataSource = ObjTipoCuenta.DtResultados.FiltraParametros("Codigo IN ('_ACTIVO', '_BPASIVO', '_CAPITAL', '_CUADRE', '_ESTADISTICAS', '_ORDEN', '_RACREEDOR', '_RDEUDOR', '_UTILIDAD')")
+ DdlCuentas.DataSource = ObjTipoCuenta.DtResultados
+ End If
+ ObjTipoCuenta.Dispose()
+ DdlTipoCuentas.DataBind()
+ 'If strGlobal.Length > 0 Then DdlTipoCuentas.Items.Insert(0, New ListItem("Todas", strGlobal))
+ DdlTipoCuentas.Items.Insert(0, New ListItem("Todas las Cuentas", "-1"))
+ DdlTipoCuentas.Items.Add(New ListItem("Algun específico", "-2"))
+ DdlTipoCuentas.SelectedValue = "-2"
+
+ DdlCuentas.DataBind()
+
+ DdlSubproyecto.DataSource = GlobalDTSubProyectos(-1, -1, UsuarioActual.CveEmpresa, -1)
+ DdlSubproyecto.DataBind()
+ End Sub
+ Private Sub CargaDatos()
+ 'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
+ Dim ObjConta As New ClsContabilidad
+
+ If Request("TipoReporte") IsNot Nothing Then
+ TipoReporte = If(TipoReporte = -1, -1, DdlTipoReporte.SelectedValue.ToEntero)
+ Else
+ TipoReporte = DdlTipoReporte.SelectedValue.ToEntero
+ End If
+ 'Dim CveSubProyecto As String
+ If Request("CveSubProyecto") IsNot Nothing Then
+ CveSubProyecto = Request("CveSubProyecto").ToString
+ Else
+ CveSubProyecto = DdlSubproyecto.SelectedValue.ToEntero.ToString
+ End If
+
+ If ObjConta.GetAnexoCatalogoMensualHorizontal(IdCuenta, FechaInicio, FechaFin, DdlCuenta.SelectedValue.ToEntero, CveSubProyecto, UsuarioActual.CveEmpresa, TipoReporte) Then
+
+ If Request("CveCuenta") IsNot Nothing AndAlso IsNumeric(Request("CveCuenta")) AndAlso Request("CveCuenta").ToEntero > 0 Then
+ DtDatos = ObjConta.DtResultados.FiltraParametros(" SaldoInicial <> 0 OR Cargos <> 0 OR Abonos <> 0")
+ Else
+ DtDatos = ObjConta.DtResultados
+ End If
+
+ CargaGrid()
+ Else
+ DtDatos = Nothing
+ Alert("Ocurrio un error al cargar los datos del Anexo del Catálogo.", TipoMensaje.MsgError)
+ End If
+
+ ObjConta.Dispose()
+ End Sub
+ Private Sub CargaGrid()
+ GvDatos.DataSource = DtDatos
+ 'GvDatos.Dispose()
+ GvDatos.DataBind()
+ UpDatos.Update()
+ If DtDatos.Rows.Count > 0 Then
+ RegistraScript("Scroll();")
+ End If
+
+ End Sub
+#End Region
+
+ Protected Sub GvIngresos_RowDataBound(sender As Object, e As GridViewRowEventArgs)
+ If e.Row.RowType = DataControlRowType.DataRow Then
+
+ If e.Row.DBCampo("CveCuenta").ToEntero = IdCuenta Then
+ e.Row.ControlStyle.Font.Bold = True
+ 'e.Row.ControlStyle.Font.Size = 9
+ 'e.Row.ControlStyle.Height = 30
+ Else
+ e.Row.ControlStyle.Font.Bold = False
+ End If
+
+ 'If e.Row.DBCampo("CtaMayor") = "4" Or e.Row.DBCampo("CtaMayor") = "1" Then
+ ' e.Row.ControlStyle.Font.Bold = True
+ 'End If
+
+ 'Acomoda Deudor y Acreedor
+ If e.Row.DBCampo("Tipo") <> "D" Then
+ 'e.Row.FCLabel("LbSaldoInicial").Text = String.Format("{0}{1}", e.Row.DBCampo("SaldoInicial").FormatoNumero, " ")
+ e.Row.FCLabel("LbSaldoInicial2").Visible = True
+ e.Row.FCLabel("LbSaldoActual").Visible = True
+ End If
+
+ 'Colorea NEGATIVOS
+ If e.Row.DBCampo("SaldoInicial").ToString.ToDouble < 0 Then
+ e.Row.FCLabel("LbSaldoInicial").ForeColor = Drawing.Color.Red
+ End If
+ If e.Row.DBCampo("Cargos").ToString.ToDouble < 0 Then
+ e.Row.FCLabel("LbCargos").ForeColor = Drawing.Color.Red
+ End If
+ If e.Row.DBCampo("Abonos").ToString.ToDouble < 0 Then
+ e.Row.FCLabel("LbAbonos").ForeColor = Drawing.Color.Red
+ End If
+ If e.Row.DBCampo("SaldoActual").ToString.ToDouble < 0 Then
+ e.Row.FCHyperLink("HLSaldoActual").ForeColor = Drawing.Color.Red
+ End If
+
+ e.Row.FCHyperLink("HLSaldoActual").NavigateUrl = String.Format("/Contabilidad2/RepMovimientosAuxiliaresCatalogo.aspx?CveCuenta={0}&FI={1}&FF={2}&CveSubProyecto={3}&TP={4}", e.Row.DBCampo("CveCuenta"), FechaInicio.ToShortDateString, FechaFin.ToShortDateString, CveSubProyecto, TipoReporte)
+ End If
+ End Sub
+
+ Protected Sub LnkImprimir_Click(sender As Object, e As EventArgs) Handles LnkImprimir.Click
+ If Not IsNothing(DtDatos) Then
+ ImprimirReporte()
+ End If
+ End Sub
+
+ Protected Sub LnkExcel_Click(sender As Object, e As EventArgs) Handles LnkExcel.Click
+ If Not IsNothing(DtDatos) Then
+ ImprimirReporte("Excel")
+ 'GvDatos.ExportToExcelG("AnexoCatalogo" & Now.ToShortDateString & ".xlsx")
+ 'GvDatos.ExportToExcelG("ExistenciasHorizontal.xlsx", "Anexo Catalogo", UsuarioActual, "".ToString, 100, 200)
+ End If
+ End Sub
+ Private Sub ImprimirReporte(Optional Formato As String = "PDF")
+ 'ubicacion del rdlc
+ Dim reportpath As String = "Contabilidad/Reportes/RepAnexoCatalogo.rdlc"
+ 'nombre del reporte
+ Dim fileName As String = "AnexoCatalogo"
+ 'parametros a enviar al reporte
+ Dim params As New List(Of ReportParameter)
+ params.Add(New ReportParameter("IdCuenta", IdCuenta.ToString))
+ params.Add(New ReportParameter("pEmp", UsuarioActual.Empresa.Empresa))
+ params.Add(New ReportParameter("usuarioImprimio", UsuarioActual.Nombre))
+ params.Add(New ReportParameter("pImg", New Uri(Server.MapPath(String.Format("~/Empresas/{0}/Logo.png", UsuarioActual.CveEmpresa))).AbsoluteUri))
+ params.Add(New ReportParameter("pFechaFin", FechaFin.ToString("dd/MM/yyyy")))
+ params.Add(New ReportParameter("pFechaInicio", FechaInicio.ToString("dd/MM/yyyy")))
+
+ ImprimirPDF(reportpath, DtDatos, params, fileName, Formato)
+ End Sub
+ Public Sub BtnConsultar_Click(sender As Object, e As EventArgs) Handles BtnConsultar.Click
+
+ If DdlTipoCuentas.SelectedValue.ToEntero = -2 AndAlso DdlCuentas.SelectedValue.ToEntero = -1 Then
+ Alert("El campo Cuenta es obligatorio.", TipoMensaje.MsgError)
+ Else
+ FechaInicio = If(TxtFechaDel.Text = "" Or TxtFechaDel.Text = "__/__/____", Date.Now, TxtFechaDel.Text.ToDate)
+ FechaFin = If(TxtFechaAl.Text = "" Or TxtFechaAl.Text = "__/__/____", Date.Now, TxtFechaAl.Text.ToDate)
+ IdCuenta = If(DdlTipoCuentas.SelectedValue.ToEntero = -2, DdlCuentas.SelectedValue.ToEntero, DdlTipoCuentas.SelectedValue.ToEntero)
+
+ CargaDatos()
+ End If
+ 'RegistraScript("Enable();")
+ End Sub
+ Protected Sub DdlTipoCuentas_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlTipoCuentas.SelectedIndexChanged
+ If DdlTipoCuentas.SelectedValue.ToEntero = -2 Then
+ DdlCuentas.Enabled = True
+ Else
+ DdlCuentas.Enabled = False
+ DdlCuentas.SelectedValueExist(-1)
+ End If
+ End Sub
+
+ Public Overrides Sub VerifyRenderingInServerForm(control As Control)
+
+ End Sub
+
+End Class
diff --git a/Contabilidad2/RepEstadoResultadosHorizontal.aspx b/Contabilidad2/RepEstadoResultadosHorizontal.aspx
index ce71fff6b..ce70e7ad1 100644
--- a/Contabilidad2/RepEstadoResultadosHorizontal.aspx
+++ b/Contabilidad2/RepEstadoResultadosHorizontal.aspx
@@ -10,8 +10,10 @@
-
-
+
+
"
+ Next IndiceInicio
+
+
+
+ ElseIf e.Row.DBCampo("CtaMayor").ToString.ToEntero = -2 Then
+
+ Dim CountDinamico As Integer = e.Row.DataKey("CountDinamico").ToEntero
+ Dim IndiceInicio As Integer = 1
+ Dim IndiceMax As Integer = 1 + CountDinamico
+
+ For IndiceInicio = 1 To IndiceMax
+
+ Dim Importe As Decimal = e.Row.Cells(IndiceInicio).Text.ToDecimal
+ e.Row.Cells(IndiceInicio).Text = $"