public InformeVentasProductosRpt GetVentasProductosReport(VentasList list, bool detallado) { InformeVentasProductosRpt doc = new InformeVentasProductosRpt(); List <VentasInfo> pList = new List <VentasInfo>(); foreach (VentasInfo item in list) { pList.Add(item); } doc.SetDataSource(pList); FormatHeader(doc); doc.EncabezadoDetallado.SectionFormat.EnableSuppress = !detallado; doc.Detalles.SectionFormat.EnableSuppress = !detallado; doc.PieDetallado.SectionFormat.EnableSuppress = !detallado; doc.Resumen.SectionFormat.EnableSuppress = detallado; doc.Encabezado.ReportObjects["Producto_LB"].ObjectFormat.EnableSuppress = detallado; doc.Encabezado.ReportObjects["Cliente_LB"].ObjectFormat.EnableSuppress = !detallado; doc.Encabezado.ReportObjects["Expediente_LB"].ObjectFormat.EnableSuppress = !detallado; doc.Encabezado.ReportObjects["Factura_LB"].ObjectFormat.EnableSuppress = !detallado; doc.Encabezado.ReportObjects["PMC_LB"].ObjectFormat.EnableSuppress = !detallado; return(doc); }
public InformeVentasPorcentualxClienteRpt GetVentasPorcentualxClienteReport(VentasList list, QueryConditions conditions) { List <VentasInfo> pList = new List <VentasInfo>(); foreach (VentasInfo item in list) { pList.Add(item); } if (pList.Count == 0) { return(null); } InformeVentasPorcentualxClienteRpt doc = new InformeVentasPorcentualxClienteRpt(); if (conditions.Cliente != null) { doc.ResumenPorCliente.SectionFormat.EnableNewPageAfter = false; } doc.SetDataSource(pList); FormatHeader(doc); return(doc); }
public InformeVentasMensualxProductoRpt GetVentasMensualxProductoReport(VentasList list) { List <VentasInfo> pList = new List <VentasInfo>(); foreach (VentasInfo item in list) { pList.Add(item); } if (pList.Count == 0) { return(null); } InformeVentasMensualxProductoRpt doc = new InformeVentasMensualxProductoRpt(); doc.SetDataSource(pList); FormatHeader(doc); return(doc); }
public InformeHistoricoPreciosProductosRpt GetInformeHistoricoPreciosProductosReport(VentasList list) { InformeHistoricoPreciosProductosRpt doc = new InformeHistoricoPreciosProductosRpt(); List <VentasInfo> pList = new List <VentasInfo>(); if (list.Count == 0) { return(null); } foreach (VentasInfo item in list) { pList.Add(item); } doc.SetDataSource(pList); FormatHeader(doc); return(doc); }
public InformeVentasPorcentualPeriodoxClienteRpt GetVentasPorcentualPeriodoxClienteReport(VentasList list, QueryConditions conditions) { List <VentasInfo> pList = new List <VentasInfo>(); foreach (VentasInfo item in list) { pList.Add(item); } if (pList.Count == 0) { return(null); } InformeVentasPorcentualPeriodoxClienteRpt doc = new InformeVentasPorcentualPeriodoxClienteRpt(); doc.SetDataSource(pList); FormatHeader(doc); return(doc); }