示例#1
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, "Caja", "CajaMovimientoEgreso", "Index");
            ViewBag.Nuevo = info.Nuevo;
            #endregion

            cl_filtros_caja_Info model = new cl_filtros_caja_Info
            {
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSession),
                IdEmpresa            = Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal           = Convert.ToInt32(SessionFixed.IdSucursal),
                IdCaja    = 0,
                fecha_ini = DateTime.Now.Date.AddMonths(-1),
                fecha_fin = DateTime.Now.Date
            };
            CargarCombosConsulta(model.IdEmpresa);
            var lst = bus_caja_mov.get_list(model.IdEmpresa, model.IdCaja, "-", true, model.fecha_ini, model.fecha_fin);
            Lista_CajaMovimiento.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
        public ActionResult Index()
        {
            cl_filtros_caja_Info model = new cl_filtros_caja_Info
            {
                IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdCaja    = string.IsNullOrEmpty(SessionFixed.IdCaja) ? 0 : Convert.ToInt32(SessionFixed.IdCaja)
            };

            CargarCombosConsulta(model.IdEmpresa);
            return(View(model));
        }
示例#3
0
        public ActionResult Index(cl_filtros_caja_Info model)
        {
            #region Permisos
            seg_Menu_x_Empresa_x_Usuario_Info info = bus_permisos.get_list_menu_accion(Convert.ToInt32(SessionFixed.IdEmpresa), SessionFixed.IdUsuario, "Caja", "CajaMovimientoEgreso", "Index");
            ViewBag.Nuevo = info.Nuevo;
            #endregion
            SessionFixed.IdTransaccionSessionActual = model.IdTransaccionSession.ToString();

            CargarCombosConsulta(model.IdEmpresa);
            var lst = bus_caja_mov.get_list(model.IdEmpresa, model.IdCaja, "-", true, model.fecha_ini, model.fecha_fin);
            Lista_CajaMovimiento.set_list(lst, model.IdTransaccionSession);
            return(View(model));
        }
 public ActionResult Index(cl_filtros_caja_Info model)
 {
     CargarCombosConsulta(model.IdEmpresa);
     return(View(model));
 }