X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/075d8b3e11e8832c9dd28a72a2a78a2407635873..60d19968b2c88b4e00d012fc4fb3e0ca0da2f928:/emufs_gui/articulos.c diff --git a/emufs_gui/articulos.c b/emufs_gui/articulos.c index 13da37c..83b5fb8 100644 --- a/emufs_gui/articulos.c +++ b/emufs_gui/articulos.c @@ -94,7 +94,7 @@ t_LstArticulos *art_cargar(const char *filename, int tipo) node = node->next; } - tmp->fp = emufs_crear("articulos", tipo-1, sizeof(t_Articulo)*2, sizeof(t_Articulo)); + tmp->fp = emufs_crear("articulos", tipo-1, sizeof(t_Articulo)*40+128, sizeof(t_Articulo)); for (node=inicio ; node ; node = node->next) { if (node->type == XML_ELEMENT_NODE) { if (strcmp(node->name, "ARTICULO") == 0) { @@ -245,6 +245,7 @@ void art_modificar(char *s) form = form_crear(win); sprintf(num, "%08d", articulo->numero); form_agregar_widget(form, INPUT, "Numero de Artículo", 8, num); + form_es_modificable(form, "Numero de Artículo" , 0); form_agregar_widget(form, INPUT, "Descripción", 50, articulo->desc); form_agregar_widget(form, INPUT, "Presentación", 30, articulo->presentacion); form_agregar_widget(form, INPUT, "Stock Actual", 8, articulo->existencia);