Beispiel #1
0
 public ActionResult Index(com_orden_aprobacion_Info model)
 {
     model.IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa);
     List_apro.get_list(model.IdTransaccionSession);
     cargar_combos(model.IdEmpresa);
     return(View(model));
 }
        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

            com_orden_aprobacion_Info model = new com_orden_aprobacion_Info
            {
                IdEmpresa            = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal           = string.IsNullOrEmpty(SessionFixed.IdSucursal) ? 0 : Convert.ToInt32(SessionFixed.IdSucursal),
                IdUsuarioAprobacion  = string.IsNullOrEmpty(SessionFixed.IdUsuario) ? "" : SessionFixed.IdUsuario,
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual),
                fecha_ini            = DateTime.Now.Date.AddMonths(-1),
                fecha_fin            = DateTime.Now.Date,
            };
            var lst = bus_ordencompra.GetListPorAprobar_OS(model.IdEmpresa, model.IdSucursal, model.fecha_ini, model.fecha_fin);
            List_apro.set_list(lst, model.IdTransaccionSession);
            cargar_combos(model.IdEmpresa);
            return(View(model));
        }
        public ActionResult Index(com_orden_aprobacion_Info model)
        {
            model.IdEmpresa = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa);
            SessionFixed.IdTransaccionSessionActual = model.IdTransaccionSession.ToString();
            var lst = bus_ordencompra.GetListPorAprobar_OS(model.IdEmpresa, model.IdSucursal, model.fecha_ini, model.fecha_fin);

            List_apro.set_list(lst, model.IdTransaccionSession);
            cargar_combos(model.IdEmpresa);
            return(View(model));
        }
Beispiel #4
0
        public ActionResult Index()
        {
            com_orden_aprobacion_Info model = new com_orden_aprobacion_Info
            {
                IdEmpresa            = string.IsNullOrEmpty(SessionFixed.IdEmpresa) ? 0 : Convert.ToInt32(SessionFixed.IdEmpresa),
                IdSucursal           = string.IsNullOrEmpty(SessionFixed.IdSucursal) ? 0 : Convert.ToInt32(SessionFixed.IdSucursal),
                IdUsuarioAprobacion  = string.IsNullOrEmpty(SessionFixed.IdUsuario) ? "" : SessionFixed.IdUsuario,
                IdTransaccionSession = Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual)
            };

            List_apro.set_list(new List <com_ordencompra_local_Info>(), model.IdTransaccionSession);
            cargar_combos(model.IdEmpresa);
            return(View(model));
        }