Пример #1
0
 public ActionResult Anular(cp_nota_DebCre_Info model)
 {
     bus_orden_giro  = new cp_nota_DebCre_Bus();
     model.IdUsuario = SessionFixed.IdUsuario.ToString();
     model.IdEmpresa = Convert.ToInt32(Session["IdEmpresa"]);
     if (!bus_orden_giro.anularDB(model))
     {
         cargar_combos(model.IdEmpresa, model.IdProveedor, model.IdIden_credito.ToString());
         return(View(model));
     }
     return(RedirectToAction("Index"));
 }
Пример #2
0
        public ActionResult Anular(cp_nota_DebCre_Info model)
        {
            model.IdUsuarioUltAnu = SessionFixed.IdUsuario.ToString();
            model.info_comrobante.lst_ct_cbtecble_det = list_ct_cbtecble_det.get_list(Convert.ToDecimal(SessionFixed.IdTransaccionSessionActual));
            model.IdEmpresa = Convert.ToInt32(SessionFixed.IdEmpresa);

            if (!bus_orden_giro.anularDB(model))
            {
                SessionFixed.IdTransaccionSessionActual = model.IdTransaccionSession.ToString();
                cargar_combos(model.IdEmpresa, model.IdProveedor, model.IdIden_credito.ToString());
                return(View(model));
            }
            return(RedirectToAction("Index"));
        }