コード例 #1
0
 public ReporteForm()
 {
     ServicioProyecto     = new ServicioProyecto();
     ServicioInventario   = new ServicioInventario();
     ServicioOrdenEntrada = new ServicioOrdenEntrada();
     ServicioOrdenSalida  = new ServicioOrdenSalida();
     ServicioReporte      = new ServicioReporte();
     InitializeComponent();
 }
コード例 #2
0
        public Boolean GenerarPDF(Modelo.Factura factura, Ruta ruta)
        {
            string respuesta = "";

            try
            {
                factura.ImagenCbbBytes     = ruta.GetImageByte(ruta.RutaCBB);
                factura.Sucursal.LogoBytes = ruta.GetImageByte(HttpContext.Current.Server.MapPath(String.Format(Ruta.RutaImagenes, factura.Sucursal.Id, factura.Sucursal.Rfc, factura.Sucursal.Logo)));
                var facturaReporte = ServicioReporte.GenerarPDF(ref respuesta, factura, this._logger);
                if (facturaReporte != null)
                {
                    facturaReporte.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, ruta.RutaPDF);
                }
                return(true);
            }
            catch (Exception e)
            {
                this._logger.EscribirError(e.ToString());
                return(false);
            }
        }
コード例 #3
0
 public DataSet ReporteMensual(string fecha1, string fecha2)
 {
     using (ServicioReporte reporte = new ServicioReporte())
         return(reporte.ReporteMensual(fecha1, fecha2));
 }
コード例 #4
0
 public DataSet ReporteDia(string fecha)
 {
     using (ServicioReporte reporte = new ServicioReporte())
         return(reporte.ReporteDia(fecha));
 }