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