Exemple #1
0
        public ActionResult GridViewPartial_motivoinven()
        {
            int IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
            var model     = bus_motivo.get_list(IdEmpresa, true);

            return(PartialView("_GridViewPartial_motivoinven", model));
        }
        private void cargar_combos(int IdEmpresa)
        {
            var lst_catalogos = bus_catalogo.get_list(1);

            ViewBag.lst_catalogos = lst_catalogos;

            in_movi_inven_tipo_Bus bus_tipo = new in_movi_inven_tipo_Bus();
            var lst_tipo = bus_tipo.get_list(IdEmpresa, "+", false);

            ViewBag.lst_tipo = lst_tipo;

            in_Motivo_Inven_Bus bus_motivo = new in_Motivo_Inven_Bus();
            var lst_motivo = bus_motivo.get_list(IdEmpresa, false);

            ViewBag.lst_motivo = lst_motivo;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;
        }
Exemple #3
0
        public ActionResult Index()
        {
            #region Validar Session
            if (string.IsNullOrEmpty(SessionFixed.IdTransaccionSession))
            {
                return(RedirectToAction("Login", new { Area = "", Controller = "Account" }));
            }
            SessionFixed.IdTransaccionSession       = (Convert.ToDecimal(SessionFixed.IdTransaccionSession) + 1).ToString();
            SessionFixed.IdTransaccionSessionActual = SessionFixed.IdTransaccionSession;
            #endregion

            #region Permisos
            seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Inventario", "MotivoInventario", "Index");
            ViewBag.Nuevo = info.Nuevo;
            #endregion

            in_Motivo_Inven_Info model = new in_Motivo_Inven_Info
            {
                IdEmpresa            = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession),
            };

            var lst = bus_motivo.get_list(model.IdEmpresa, true);
            Lista_MotivoInv.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
        private void cargar_combos(int IdEmpresa)
        {
            var lst_tipo_comprobante = bus_tipo_comprobante.get_list(IdEmpresa, false);

            ViewBag.lst_tipo_comprobante = lst_tipo_comprobante;

            var lst_tipo_movimiento = bus_tipo_movimiento.get_list(IdEmpresa, "", false);

            ViewBag.lst_tipo_movimiento_egr = lst_tipo_movimiento.Where(q => q.cm_tipo_movi == "-").ToList();
            ViewBag.lst_tipo_movimiento_ing = lst_tipo_movimiento.Where(q => q.cm_tipo_movi == "+").ToList();

            var lst_motivo = bus_motivo_inven.get_list(IdEmpresa, false);

            ViewBag.lst_motivo_ing = lst_motivo.Where(q => q.Tipo_Ing_Egr == "ING").ToList();
            ViewBag.lst_motivo_egr = lst_motivo.Where(q => q.Tipo_Ing_Egr == "EGR").ToList();

            var lst_aprobacion = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoInventario.EST_APROB), false);

            ViewBag.lst_aprobacion = lst_aprobacion;

            var lst_tipo_conta = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoInventario.TIPO_CONTA_CTA), false);

            ViewBag.lst_tipo_conta = lst_tipo_conta;

            var lst_fecha_contab = bus_catalogo.get_list(Convert.ToInt32(cl_enumeradores.eTipoCatalogoInventario.FECH_CONTA), false);

            ViewBag.lst_fecha_contab = lst_fecha_contab;

            var lst_producto_tipo = bus_producto_tipo.get_list(IdEmpresa, false);

            ViewBag.lst_producto_tipo = lst_producto_tipo;
        }
Exemple #5
0
        private void cargar_combos(int IdEmpresa)
        {
            in_movi_inven_tipo_Bus bus_tipo = new in_movi_inven_tipo_Bus();
            var lst_tipo = bus_tipo.get_list(IdEmpresa, false);

            ViewBag.lst_tipo = lst_tipo;

            in_Motivo_Inven_Bus bus_motivo = new in_Motivo_Inven_Bus();
            var lst_motivo = bus_motivo.get_list(IdEmpresa, cl_enumeradores.eTipoIngEgr.ING.ToString(), false);

            ViewBag.lst_motivo = lst_motivo;
        }
        private void cargar_combos(in_Ing_Egr_Inven_Info model)
        {
            in_Motivo_Inven_Bus bus_motivo = new in_Motivo_Inven_Bus();
            var lst_motivo = bus_motivo.get_list(model.IdEmpresa, cl_enumeradores.eTipoIngEgr.ING.ToString(), false);

            ViewBag.lst_motivo = lst_motivo;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.GetList(model.IdEmpresa, SessionFixed.IdUsuario, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(model.IdEmpresa, model.IdSucursal, false);

            ViewBag.lst_bodega = lst_bodega;
        }
        private void cargar_combos(int IdEmpresa)
        {
            var lst_tipo = bus_comprobante_tipo.get_list(IdEmpresa, false);

            ViewBag.lst_tipo = lst_tipo;

            var lst_tipo_mov = bus_tipo.get_list(IdEmpresa, false);

            ViewBag.lst_tipo_mov = lst_tipo_mov;

            var lst_motivo = bus_motivo.get_list(IdEmpresa, false);

            ViewBag.lst_motivo = lst_motivo;

            var lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            var lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;
        }
        private void cargar_combos(in_Ing_Egr_Inven_Info model)
        {
            in_movi_inven_tipo_Bus bus_tipo = new in_movi_inven_tipo_Bus();
            var lst_tipo = bus_tipo.get_list(model.IdEmpresa, false);

            ViewBag.lst_tipo = lst_tipo;

            in_Motivo_Inven_Bus bus_motivo = new in_Motivo_Inven_Bus();
            var lst_motivo = bus_motivo.get_list(model.IdEmpresa, cl_enumeradores.eTipoIngEgr.EGR.ToString(), false);

            ViewBag.lst_motivo = lst_motivo;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(model.IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(model.IdEmpresa, model.IdSucursal, false);

            ViewBag.lst_bodega = lst_bodega;
        }