-- asignación de pestaña
This commit is contained in:
@@ -139,10 +139,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
LtIndicador_CPPesosFinal.Text = Final.Abs.ToString.FormatoNumero
|
LtIndicador_CPPesosFinal.Text = Final.Abs.ToString.FormatoNumero
|
||||||
LblComprasPerdidaGanancia.Text = If(Final < 0, "Ganancia", "Pérdida")
|
LblComprasPerdidaGanancia.Text = If(Final < 0, "Ganancia", "Pérdida")
|
||||||
|
|
||||||
LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
Else
|
|
||||||
GvProveedores.DataSource = Nothing
|
|
||||||
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
End If
|
||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
GvProveedores.DataBind()
|
GvProveedores.DataBind()
|
||||||
@@ -179,10 +177,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
LtIndicador_CPPesosFinal.Text = Final.Abs.ToString.FormatoNumero
|
LtIndicador_CPPesosFinal.Text = Final.Abs.ToString.FormatoNumero
|
||||||
LblComprasPerdidaGanancia.Text = If(Final > 0, "Ganancia", "Pérdida")
|
LblComprasPerdidaGanancia.Text = If(Final > 0, "Ganancia", "Pérdida")
|
||||||
|
|
||||||
LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotal = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
Else
|
|
||||||
GvProveedoresAnt.DataSource = Nothing
|
|
||||||
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
End If
|
||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
GvProveedoresAnt.DataBind()
|
GvProveedoresAnt.DataBind()
|
||||||
@@ -220,10 +216,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
LblTotalVentas.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotalVentas.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
|
|
||||||
UpIndicadoresVentas.Visible = True
|
UpIndicadoresVentas.Visible = True
|
||||||
Else
|
|
||||||
GvVentas.DataSource = Nothing
|
|
||||||
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
End If
|
||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
GvVentas.DataBind()
|
GvVentas.DataBind()
|
||||||
@@ -257,10 +251,8 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
|
|
||||||
LblTotalVentasAnt.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotalVentasAnt.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
|
|
||||||
UpIndicadoresVentas.Visible = True
|
UpIndicadoresVentas.Visible = True
|
||||||
Else
|
|
||||||
GvClientesAnt.DataSource = Nothing
|
|
||||||
Alert("Ocurrio un error al cargar las compras", TipoMensaje.MsgAdvertencia)
|
|
||||||
End If
|
End If
|
||||||
ObjBancos.Dispose()
|
ObjBancos.Dispose()
|
||||||
GvClientesAnt.DataBind()
|
GvClientesAnt.DataBind()
|
||||||
@@ -359,7 +351,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Private Sub CargaDatosDeudores()
|
Private Sub CargaDatosDeudores()
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
LblTotalDeudores.Text = "0.00"
|
LblTotalDeudores.Text = "0.00"
|
||||||
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 5, UsuarioActual.CveEmpresa) Then
|
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 9, UsuarioActual.CveEmpresa) Then
|
||||||
GvDeudores.DataSource = ObjBancos.DtResultados
|
GvDeudores.DataSource = ObjBancos.DtResultados
|
||||||
LblTotalDeudores.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotalDeudores.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
Else
|
Else
|
||||||
@@ -374,7 +366,7 @@ Partial Class Bancos_FluctuacionCambiaria
|
|||||||
Private Sub CargaDatosFiliales()
|
Private Sub CargaDatosFiliales()
|
||||||
Dim ObjBancos As New ClsBancos
|
Dim ObjBancos As New ClsBancos
|
||||||
LblTotalAcreedores.Text = "0.00"
|
LblTotalAcreedores.Text = "0.00"
|
||||||
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 7, UsuarioActual.CveEmpresa) Then
|
If ObjBancos.GetFluctuaciones(FechaUltimoDiaMes, 8, UsuarioActual.CveEmpresa) Then
|
||||||
GvFiliales.DataSource = ObjBancos.DtResultados.FiltraParametros("Saldo > 0")
|
GvFiliales.DataSource = ObjBancos.DtResultados.FiltraParametros("Saldo > 0")
|
||||||
LblTotalAcreedores.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
LblTotalAcreedores.Text = ObjBancos.DtResultados.SUM("Fluctuacion").FormatoNumero
|
||||||
Else
|
Else
|
||||||
|
|||||||
Reference in New Issue
Block a user