xmlCleanupParser();
} else {
tmp->fp = emufs_abrir("articulos");
+ /* TODO Cargar registros desde el archivo */
}
lst_articulos = tmp;
t_Articulo *articulo;
char num[8];
- win = newwin(8, 68, 13, 1);
+ win = newwin(8, COLS-2, 13, 1);
box(win, 0, 0);
wrefresh(win);
form_destruir(form);
free(articulo);
- }
-
+ } else {
+ wattron(win, COLOR_PAIR(COLOR_YELLOW));
+ mvwaddstr(win, 6, 4, "No existe artículo con ese código. Abortando!");
+ wattroff(win, COLOR_PAIR(COLOR_YELLOW));
+ wrefresh(win);
+ getch();
+ }
werase(win);
wrefresh(win);
delwin(win);
WINDOW *win;
t_Articulo *articulo;
- win = newwin(8, 68, 13, 1);
+ win = newwin(8, COLS-2, 13, 1);
box(win, 0, 0);
wrefresh(win);
t_Form *form;
t_Articulo art;
- win = newwin(8, 68, 13, 1);
+ win = newwin(8, COLS-2, 13, 1);
box(win, 0, 0);
wrefresh(win);