public ActionResult FAC_008(int IdSucursal = 0, int IdBodega = 0, decimal IdNota = 0) { FAC_008_Rpt model = new FAC_008_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.usuario = SessionFixed.IdUsuario; model.empresa = SessionFixed.NomEmpresa; model.RequestParameters = false; return(View(model)); }
public ActionResult FAC_008(int IdSucursal = 0, int IdBodega = 0, decimal IdNota = 0) { FAC_008_Rpt model = new FAC_008_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_008"); 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.usuario = SessionFixed.IdUsuario; model.empresa = SessionFixed.NomEmpresa; model.RequestParameters = false; return(View(model)); }