Correcciones de Reporte de PS y su Detalle
This commit is contained in:
@@ -309,23 +309,25 @@ Partial Class Compras_RepProductosServicios
|
||||
|
||||
If DdlGrupo.SelectedValue = "6" Then ' cuando es Año
|
||||
'-1/01
|
||||
If e.Row.DBCampo("Anio") = "-1/01" Then
|
||||
FechaI = $"01/01/{e.Row.DBCampo("Anio")}"
|
||||
If e.Row.DBCampo("Anio") = "-1" Then
|
||||
FechaI = "-1"
|
||||
FechaF = "-1"
|
||||
Else
|
||||
FechaI = $"01/01/{e.Row.DBCampo("Anio")}".ToDate.FirstDayOfMonth.ToShortDateString
|
||||
FechaI = $"01/01/{e.Row.DBCampo("Anio")}"
|
||||
FechaF = $"01/12/{e.Row.DBCampo("Anio")}".ToDate.LastDayOfMonth.ToShortDateString
|
||||
End If
|
||||
|
||||
FechaF = $"01/12/{e.Row.DBCampo("Anio")}".ToDate.LastDayOfMonth.ToShortDateString
|
||||
End If
|
||||
|
||||
If DdlGrupo.SelectedValue = "8" Then ' cuando es Año/Mes
|
||||
If e.Row.DBCampo("AnioMes") = "-1/01" Then
|
||||
FechaI = $"{e.Row.DBCampo("AnioMes")}/01"
|
||||
If e.Row.DBCampo("AnioMes") = "-1" Then
|
||||
FechaI = "-1"
|
||||
FechaF = "-1"
|
||||
Else
|
||||
FechaI = $"{e.Row.DBCampo("AnioMes")}/01".ToDate.FirstDayOfMonth.ToShortDateString
|
||||
FechaI = $"{e.Row.DBCampo("AnioMes")}/01".ToDate.ToShortDateString
|
||||
FechaF = $"{e.Row.DBCampo("AnioMes")}/01".ToDate.LastDayOfMonth.ToShortDateString
|
||||
End If
|
||||
|
||||
FechaF = $"{e.Row.DBCampo("AnioMes")}/01".ToDate.LastDayOfMonth.ToShortDateString
|
||||
End If
|
||||
|
||||
|
||||
@@ -337,9 +339,8 @@ Partial Class Compras_RepProductosServicios
|
||||
|
||||
If Not e.Row.DBCampo("GpoID") = "1" Then
|
||||
e.Row.Cells(0).Text = String.Format("<a class=""Texto"" target=""_blank"" href=""{0}"">{1}</a>", Liga, If(e.Row.DBCampo("GpoID") = "1", e.Row.DBCampo("Moneda"), e.Row.DBCampo("GPO")))
|
||||
e.Row.Cells(1).Text = String.Format("<a class=""Texto"" target=""_blank"" href=""{0}"">{1}</a>", Liga, e.Row.DBCampo("Cantidad").FormatoNumero)
|
||||
End If
|
||||
|
||||
e.Row.Cells(1).Text = String.Format("<a class=""Texto"" target=""_blank"" href=""{0}"">{1}</a>", Liga, e.Row.DBCampo("Cantidad").FormatoNumero)
|
||||
|
||||
'Si son igual a cero se limpia el campo
|
||||
If e.Row.DBCampo("SubTotal").ToDouble = 0 Then e.Row.Cells(2).Text = ""
|
||||
@@ -482,7 +483,7 @@ Partial Class Compras_RepProductosServicios
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
params.Add(New ReportParameter("FechaImpresion", DateTime.Now.ToString()))
|
||||
|
||||
params.Add(New ReportParameter("Filtros", $"{Proveedor}{FechaInicio}{FechaFin}{Grupo}{TipoGasto}{Categoria}{Clasificacion}{PS}{Proyecto}{Estatus}{Usuario}{TipoAF}{SubTipoAF}{AF}"))
|
||||
params.Add(New ReportParameter("Filtros", $"{Grupo}{Proveedor}{FechaInicio}{FechaFin}{TipoGasto}{Categoria}{Clasificacion}{PS}{Proyecto}{Estatus}{Usuario}{TipoAF}{SubTipoAF}{AF}"))
|
||||
'params.Add(New ReportParameter("Proveedor", DdlProveedor.SelectedItem.Text))
|
||||
'params.Add(New ReportParameter("FechaInicio", txtFechaI.Text))
|
||||
'params.Add(New ReportParameter("FechaFin", txtFechaF.Text))
|
||||
|
||||
Reference in New Issue
Block a user