Ejemplo n.º 1
0
        public ActionResult FAC_004(int IdSucursal = 0, int IdBodega = 0, decimal IdNota = 0)
        {
            FAC_004_Rpt model = new FAC_004_Rpt();

            model.p_IdEmpresa.Value  = Convert.ToInt32(Session["IdEmpresa"]);
            model.p_IdBodega.Value   = IdBodega;
            model.p_IdSucursal.Value = IdSucursal;
            model.p_IdNota.Value     = IdNota;
            model.RequestParameters  = false;
            return(View(model));
        }
        public ActionResult FAC_004(int IdSucursal = 0, int IdBodega = 0, decimal IdNota = 0)
        {
            FAC_004_Rpt model = new FAC_004_Rpt();

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_004");
            if (reporte != null)
            {
                System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio);
                model.LoadLayout(RootReporte);
            }
            #endregion
            model.p_IdEmpresa.Value  = Convert.ToInt32(SessionFixed.IdEmpresa);
            model.p_IdBodega.Value   = IdBodega;
            model.p_IdSucursal.Value = IdSucursal;
            model.p_IdNota.Value     = IdNota;
            model.RequestParameters  = false;
            return(View(model));
        }