コード例 #1
0
 public ActionResult Nuevo()
 {
     try
     {
         ro_tipo_prestamo_Info info = new ro_tipo_prestamo_Info();
         info.IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);
         return(View(info));
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 public ActionResult Anular(ro_tipo_prestamo_Info info)
 {
     try
     {
         if (!bus_tipo_prestamo.anularDB(info))
         {
             return(View(info));
         }
         else
         {
             return(RedirectToAction("Index"));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #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

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

            List <ro_tipo_prestamo_Info> lista = bus_tipo_prestamo.get_list(model.IdEmpresa, true);
            Lista_TipoPrestamo.set_list(lista, Convert.ToDecimal(SessionFixed.IdTransaccionSession));

            return(View(model));
        }