示例#1
0
        public ActionResult FAC_009(int IdSucursal = 0, int IdBodega = 0, decimal IdGuiaRemision = 0)
        {
            FAC_009_Rpt model = new FAC_009_Rpt();

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

            #region Cargo diseño desde base
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var reporte   = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_009");
            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_IdGuiaRemision.Value = IdGuiaRemision;
            model.RequestParameters      = false;
            return(View(model));
        }