3 using System.Collections;
7 using Controlador.Afiliacion;
8 using Dominio.Autorizaciones;
11 public class VBuscarPrestacion
18 public VBuscarPrestacion ()
20 xml = new Glade.XML (null, "buscar_prestacion.glade", "buscar_prestacion", null);
21 xml.Autoconnect (this);
23 categoria = (ComboBox)xml.GetWidget ("categoria");
24 lista = (TreeView)xml.GetWidget ("lista");
26 lista.Model = new ListStore (typeof(string), typeof(string), typeof(string), typeof (DateTime));
29 lista.HeadersVisible = true;
30 lista.AppendColumn ("Codigo", new CellRendererText (), "text", 0);
31 lista.AppendColumn ("Nombre", new CellRendererText (), "text", 1);
32 lista.AppendColumn ("Cagetoria", new CellRendererText (), "text", 2);
33 lista.AppendColumn ("Fecha Baja", new CellRendererText (), "text", 3);
35 /* Cargo las categorias */
36 ListStore l = (ListStore)categoria.Model;
38 PrestacionesController c = new PrestacionesController ();
40 ArrayList lst = c.Categorias ();
41 foreach (Categoria p in lst) {
42 l.AppendValues (String.Format ("{0}", p.Nombre));
47 public void OnDialogResponse (object o, ResponseArgs args)
49 if (args.ResponseId == ResponseType.Cancel)
53 public void OnBuscar (object o, EventArgs args)
60 Dialog w = (Dialog)xml.GetWidget ("buscar_prestacion");