コード例 #1
0
        public ActionResult FAC_003(int IdSucursal = 0, int IdBodega = 0, decimal IdCbteVta = 0)
        {
            FAC_003_Rpt model     = new FAC_003_Rpt();
            int         IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);

            #region Cargo diseño desde base
            var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_003");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                model.LoadLayout(RootReporte);
            }
            #endregion

            model.p_IdEmpresa.Value      = IdEmpresa;
            model.p_IdBodega.Value       = IdBodega;
            model.p_IdSucursal.Value     = IdSucursal;
            model.p_IdCbteVta.Value      = IdCbteVta;
            model.p_mostrar_cuotas.Value = bus_factura.MostrarCuotasRpt(IdEmpresa, IdSucursal, IdBodega, IdCbteVta);
            model.RequestParameters      = false;
            model.DefaultPrinterSettingsUsing.UsePaperKind = false;
            //bus_factura.modificarEstadoImpresion(Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal, IdBodega, IdCbteVta, true);


            return(View(model));
        }
コード例 #2
0
        public ActionResult FAC_003(int IdSucursal = 0, int IdBodega = 0, decimal IdCbteVta = 0)
        {
            FAC_003_Rpt model = new FAC_003_Rpt();

            model.p_IdEmpresa.Value      = Convert.ToInt32(Session["IdEmpresa"]);
            model.p_IdBodega.Value       = IdBodega;
            model.p_IdSucursal.Value     = IdSucursal;
            model.p_IdCbteVta.Value      = IdCbteVta;
            model.p_mostrar_cuotas.Value = bus_factura.MostrarCuotasRpt(Convert.ToInt32(Session["IdEmpresa"]), IdSucursal, IdBodega, IdCbteVta);
            model.RequestParameters      = false;
            model.DefaultPrinterSettingsUsing.UsePaperKind = false;
            bus_factura.modificarEstadoImpresion(Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal, IdBodega, IdCbteVta, true);
            return(View(model));
        }