ver el reporte
This commit is contained in:
@@ -37,19 +37,30 @@ Partial Class Contabilidad_ContabilidadElectronica
|
|||||||
'TxtFechaI.Text = String.Format("01/01/{0}", Now.Year)
|
'TxtFechaI.Text = String.Format("01/01/{0}", Now.Year)
|
||||||
'TxtFechaI.Text = Now.ToShortDateString
|
'TxtFechaI.Text = Now.ToShortDateString
|
||||||
|
|
||||||
If Not UsuarioActual.Empresa.UsaContabilidad Then
|
'If Not UsuarioActual.Empresa.UsaContabilidad Then
|
||||||
BtnGenerar.Enabled = False
|
' BtnGenerar.Enabled = False
|
||||||
Alert("Este módulo requiere el uso de contabilidad", TipoMensaje.MsgAdvertencia)
|
' Alert("Este módulo requiere el uso de contabilidad", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
'Dim ObjConta As New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
If ObjConta.GetEjercicios() Then
|
'If ObjConta.GetEjercicios() Then
|
||||||
DdlEjercicio.DataSource = ObjConta.DtResultados
|
' DdlEjercicio.DataSource = ObjConta.DtResultados
|
||||||
Else
|
'Else
|
||||||
DdlEjercicio.DataSource = Nothing
|
|
||||||
End If
|
Dim ClsConta As New ClsContabilidad
|
||||||
ObjConta.Dispose()
|
|
||||||
|
If ClsConta.GetEjercicios(UsuarioActual.CveEmpresa) Then
|
||||||
|
DdlEjercicio.DataSource = ClsConta.DtResultados
|
||||||
|
Else
|
||||||
|
DdlEjercicio.DataSource = Nothing
|
||||||
|
End If
|
||||||
|
|
||||||
|
ClsConta.Dispose()
|
||||||
|
|
||||||
|
DdlEjercicio.DataBind()
|
||||||
|
'End If
|
||||||
|
'ObjConta.Dispose()
|
||||||
|
|
||||||
DdlEjercicio.DataBind()
|
DdlEjercicio.DataBind()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user