public ActionResult FAC_011(cl_filtros_facturacion_Info model) { FAC_011_Rpt report = new FAC_011_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_fechaIni.Value = model.fecha_ini; report.p_fechaFin.Value = model.fecha_fin; report.p_mostrarAnulados.Value = model.mostrarAnulados; report.p_mostrar_observacion_completa.Value = model.mostrar_observacion_completa; cargar_combos(model); report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_005(cl_filtros_facturacion_Info model) { FAC_005_Rpt report = new FAC_005_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_Fecha_ini.Value = model.fecha_ini; report.p_Fecha_fin.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(model); report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_002(cl_filtros_facturacion_Info model) { FAC_002_Rpt report = new FAC_002_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fechaCorte.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_Idtipo_cliente.Value = model.Idtipo_cliente == 0 ? 0 : model.Idtipo_cliente; report.p_MostrarSoloCarteraVencida.Value = model.Check1; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(model); report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_005(cl_filtros_facturacion_Info model) { CXC_005_Rpt report = new CXC_005_Rpt(); cargar_cliente_contacto(model); report.IntArray = model.IntArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_fecha_corte.Value = model.fecha_corte; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; cargar_sucursal_check(model.IdEmpresa, model.IntArray); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_001(cl_filtros_facturacion_Info model) { FAC_001_Rpt report = new FAC_001_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente; report.p_IdVendedor.Value = model.IdVendedor; report.p_IdProducto.Value = model.IdProducto; report.p_mostrar_anulados.Value = model.Check1; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_combos(model); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_014() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal) }; FAC_014_Rpt report = new FAC_014_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_010(cl_filtros_facturacion_Info model) { FAC_010_Rpt report = new FAC_010_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_IdCatalogo_FormaPago.Value = model.IdCatalogo_FormaPago; cargar_FAC010(model); report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_008(cl_filtros_facturacion_Info model) { CXC_008_Rpt report = new CXC_008_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente ?? 0; report.p_IdCobro_tipo.Value = model.IdCobro_tipo; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_mostrar_anulados.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; cargar_combos(model.IdEmpresa); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_018() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, CreDeb = "C", IntArray = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) }, IntTipoArray = new int[] {}, Naturaleza = "" }; cargar_FAC018(model); cargar_sucursal_check(model.IdEmpresa, model.IntArray); cargar_tiponota_check(model.IdEmpresa, model.IntTipoArray); FAC_018_Rpt report = new FAC_018_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_018"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.IntArray = model.IntArray; report.IntTipoArray = model.IntTipoArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente; report.p_IdTipoNota.Value = model.IdTipoNota; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_CreDeb.Value = model.CreDeb; report.p_Naturaleza.Value = model.Naturaleza; report.p_mostrar_anulados.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_010(cl_filtros_facturacion_Info model) { FAC_010_Rpt report = new FAC_010_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdProducto.Value = model.IdProductoPadre == null ? 0 : model.IdProductoPadre; report.p_IdCategoria.Value = model.IdCategoria; report.p_IdLinea.Value = model.IdLinea; report.p_IdGrupo.Value = model.IdGrupo; report.p_IdSubGrupo.Value = model.IdSubGrupo; report.p_IdMarca.Value = model.IdMarca; cargar_FAC010(model); report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa.ToString(); ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_003() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdCliente = 0 }; cargar_combos(model.IdEmpresa); CXC_003_Rpt report = new CXC_003_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_Fecha_ini.Value = model.fecha_ini; report.p_Fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_009(cl_filtros_facturacion_Info model) { CXC_009_Rpt report = new CXC_009_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_009"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente ?? 0; report.p_fechaCorte.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_017() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal) }; cargar_marca_check(model.IdEmpresa, model.IntArray); FAC_017_Rpt report = new FAC_017_Rpt(); report.IntArray = model.IntArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdMarca.Value = model.IdMarca; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_019() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IntArray = new int[] { Convert.ToInt32(SessionFixed.IdSucursal) }, mostrarSaldo0 = true, fecha_ini = new DateTime(2000, 1, 1) }; cargar_combos(model); cargar_sucursal_check(model.IdEmpresa, model.IntArray); FAC_019_Rpt report = new FAC_019_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_019"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.IntArray = model.IntArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_IdVendedor.Value = model.IdVendedor; report.p_fecha_ini.Value = model.fecha_ini; report.p_fechaCorte.Value = model.fecha_fin; report.p_mostrarSoloVencido.Value = model.mostrarSoloVencido; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.p_IdUsuario.Value = Convert.ToString(SessionFixed.IdUsuario); report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_002() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa) }; cargar_combos(model); FAC_002_Rpt report = new FAC_002_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fechaCorte.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente; report.p_IdClienteContacto.Value = model.IdClienteContacto; report.p_MostrarSoloCarteraVencida.Value = model.Check1; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_005() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdCliente = 0 }; cargar_cliente_contacto(model); CXC_005_Rpt report = new CXC_005_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_IdContacto.Value = model.IdClienteContacto; report.p_fecha_corte.Value = model.fecha_corte; report.p_mostrarSaldo0.Value = model.mostrarSaldo0; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_006() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IdVendedor = 0, StringArray = new string[] { } }; cargar_combos(model.IdEmpresa); CXC_006_Rpt report = new CXC_006_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_006"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdVendedor.Value = model.IdVendedor; report.p_IdCliente.Value = model.IdCliente ?? 0; //report.p_IdCobro_tipo.Value = model.IdCobro_tipo; cargar_tipo_cobro_check(model.StringArray); report.StringArray = model.StringArray; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario.ToString(); report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
private void cargar_cliente_contacto(cl_filtros_facturacion_Info model) { tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus(); var lst_sucursal = bus_sucursal.get_list(model.IdEmpresa, false); lst_sucursal.Add(new Info.General.tb_sucursal_Info { IdSucursal = 0, Su_Descripcion = "TODAS" }); ViewBag.lst_sucursal = lst_sucursal; fa_cliente_Bus bus_cliente = new fa_cliente_Bus(); var lst_cliente = bus_cliente.get_list(model.IdEmpresa, false); ViewBag.lst_cliente = lst_cliente; fa_cliente_tipo_Bus bus_tipo_cliente = new fa_cliente_tipo_Bus(); var lst_tipo_cliente = bus_tipo_cliente.get_list(model.IdEmpresa, false); lst_tipo_cliente.Add(new fa_cliente_tipo_Info { IdEmpresa = model.IdEmpresa, Idtipo_cliente = 0, Descripcion_tip_cliente = "Todos" }); ViewBag.lst_tipo_cliente = lst_tipo_cliente; fa_cliente_contactos_Bus bus_contacto = new fa_cliente_contactos_Bus(); var lst_contacto = bus_contacto.get_list(model.IdEmpresa, model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente)); lst_contacto.Add(new fa_cliente_contactos_Info { IdContacto = 0, Nombres = "Todos" }); ViewBag.lst_contacto = lst_contacto; }
private void cargar_FAC010(cl_filtros_facturacion_Info model) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus(); var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false); lst_sucursal.Add(new tb_sucursal_Info { IdSucursal = 0, Su_Descripcion = "Todas" }); ViewBag.lst_sucursal = lst_sucursal; var lst_formapago = bus_catalogo.get_list((int)cl_enumeradores.eTipoCatalogoFact.FormaDePago, false); lst_formapago.Add(new fa_catalogo_Info { IdCatalogo = "", Nombre = "TODAS" }); ViewBag.lst_formapago = lst_formapago; }
private void cargar_cliente_contacto(cl_filtros_facturacion_Info model) { fa_cliente_Bus bus_cliente = new fa_cliente_Bus(); var lst_cliente = bus_cliente.get_list(model.IdEmpresa, false); lst_cliente.Add(new fa_cliente_Info { IdEmpresa = model.IdEmpresa, IdCliente = 0, Descripcion_tip_cliente = "Todos" }); ViewBag.lst_cliente = lst_cliente; fa_cliente_contactos_Bus bus_contacto = new fa_cliente_contactos_Bus(); var lst_contacto = bus_contacto.get_list(model.IdEmpresa, model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente)); lst_contacto.Add(new fa_cliente_contactos_Info { IdContacto = 0, Nombres = "Todos" }); ViewBag.lst_contacto = lst_contacto; }
public ActionResult FAC_010() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IdCatalogo_FormaPago = "" }; cargar_FAC010(model); FAC_010_Rpt report = new FAC_010_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_010"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_MostrarAnulados.Value = model.mostrarAnulados; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_010() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCatalogo_FormaPago = "" }; cargar_FAC010(model); FAC_010_Rpt report = new FAC_010_Rpt(); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdSucursal.Value = model.IdSucursal; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_IdCatalogo_FormaPago.Value = model.IdCatalogo_FormaPago; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_001() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), IdCliente = 0, IdProducto = 0, Check1 = false }; cargar_combos(model); FAC_001_Rpt report = new FAC_001_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_001"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente; report.p_IdVendedor.Value = model.IdVendedor; report.p_IdProducto.Value = model.IdProducto; report.p_mostrar_anulados.Value = model.Check1; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_017(cl_filtros_facturacion_Info model) { FAC_017_Rpt report = new FAC_017_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_017"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.IntArray = model.IntArray; report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdMarca.Value = model.IdMarca; report.p_fecha_ini.Value = model.fecha_ini; report.p_fecha_fin.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; cargar_marca_check(model.IdEmpresa, model.IntArray); ViewBag.Report = report; return(View(model)); }
public ActionResult FAC_014(cl_filtros_facturacion_Info model) { FAC_014_Rpt report = new FAC_014_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "FAC_014"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion CargarCombosFAC_014(model); report.p_IdEmpresa.Value = model.IdEmpresa; report.p_IdCliente.Value = model.IdCliente; report.p_IdCentroCosto.Value = model.IdCatalogo_FormaPago; report.p_FechaDesde.Value = model.fecha_ini; report.p_FechaHasta.Value = model.fecha_fin; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; ViewBag.Report = report; return(View(model)); }
public ActionResult CXC_011() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info { IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa), IdSucursal = Convert.ToInt32(SessionFixed.IdSucursal), Idtipo_cliente = 0, IdCliente = 0, DiasVencidos = 0 }; cargar_combos(model.IdEmpresa); CXC_011_Rpt report = new CXC_011_Rpt(); #region Cargo diseño desde base int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); var reporte = bus_rep_x_emp.GetInfo(IdEmpresa, "CXC_011"); if (reporte != null) { System.IO.File.WriteAllBytes(RootReporte, reporte.ReporteDisenio); report.LoadLayout(RootReporte); } #endregion report.p_IdEmpresa.Value = model.IdEmpresa; report.p_fechaCorte.Value = model.fecha_fin; report.p_IdSucursal.Value = model.IdSucursal; report.p_IdCliente.Value = model.IdCliente == null ? 0 : Convert.ToDecimal(model.IdCliente); report.p_Idtipo_cliente.Value = model.Idtipo_cliente == 0 ? 0 : Convert.ToDecimal(model.Idtipo_cliente); report.p_MostrarSoloCarteraVencida.Value = model.Check1; report.p_DiasVencimiento.Value = model.DiasVencidos; report.usuario = SessionFixed.IdUsuario; report.empresa = SessionFixed.NomEmpresa; report.RequestParameters = false; ViewBag.Report = report; return(View(model)); }
private void cargar_FAC010(cl_filtros_facturacion_Info model) { int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa); in_Producto_Bus bus_producto = new in_Producto_Bus(); var lst_producto = bus_producto.get_list(IdEmpresa, false); ViewBag.lst_producto = lst_producto; in_categorias_Bus bus_categoria = new in_categorias_Bus(); var lst_categoria = bus_categoria.get_list(IdEmpresa, false); lst_categoria.Add(new in_categorias_Info { IdEmpresa = model.IdEmpresa, IdCategoria = "", ca_Categoria = "Todos" }); ViewBag.lst_categoria = lst_categoria; in_linea_Bus bus_linea = new in_linea_Bus(); var lst_linea = bus_linea.get_list(IdEmpresa, model.IdCategoria, false); lst_linea.Add(new in_linea_Info { IdEmpresa = model.IdEmpresa, IdLinea = 0, nom_linea = "Todos" }); ViewBag.lst_linea = lst_linea; in_grupo_Bus bus_grupo = new in_grupo_Bus(); var lst_grupo = bus_grupo.get_list(IdEmpresa, model.IdCategoria, model.IdLinea, false); lst_grupo.Add(new in_grupo_Info { IdEmpresa = model.IdEmpresa, IdGrupo = 0, nom_grupo = "Todos" }); ViewBag.lst_grupo = lst_grupo; in_subgrupo_Bus bus_subgrupo = new in_subgrupo_Bus(); var lst_subgrupo = bus_subgrupo.get_list(IdEmpresa, model.IdCategoria, model.IdLinea, model.IdGrupo, false); lst_subgrupo.Add(new in_subgrupo_Info { IdEmpresa = model.IdEmpresa, IdSubgrupo = 0, nom_subgrupo = "Todos" }); ViewBag.lst_subgrupo = lst_subgrupo; in_Marca_Bus bus_marca = new in_Marca_Bus(); var lst_marca = bus_marca.get_list(IdEmpresa, false); lst_marca.Add(new Info.Inventario.in_Marca_Info { IdMarca = 0, Descripcion = "Todas" }); ViewBag.lst_marca = lst_marca; }
public ActionResult CmbCliente_Facturacion() { cl_filtros_facturacion_Info model = new cl_filtros_facturacion_Info(); return(PartialView("_CmbCliente_Facturacion", model)); }