alta_plan_xml = new Glade.XML (null, "mantener_planes.glade", "alta_plan", null);
alta_plan_xml.Autoconnect (this);
- coberturas.Model = new ListStore (typeof(int), typeof(float), typeof (string), typeof (float));
+ coberturas.Model = new ListStore (typeof(int), typeof(float), typeof (float), typeof (int), typeof(string));
coberturas.HeadersVisible = true;
coberturas.AppendColumn ("Prestacion", new CellRendererText (), "text", 0);
coberturas.AppendColumn ("Carencia", new CellRendererText (), "text", 1);
coberturas.AppendColumn ("Cobertura", new CellRendererText (), "text", 2);
coberturas.AppendColumn ("Limite Anual", new CellRendererText (), "text", 3);
+ coberturas.AppendColumn ("Tipo", new CellRendererText (), "text", 4);
Dialog w = (Dialog)alta_plan_xml.GetWidget ("alta_plan");
w.Run ();
TreeIter nuevo = store.Append ();
store.SetValue (nuevo, 0, Int32.Parse (codigo_prestacion.Text));
- store.SetValue (nuevo, 1, (float)Double.Parse (categoria.Text));
- store.SetValue (nuevo, 2, descripcion.Text));
- store.SetValue (nuevo, 3, Int32.Parse (codigo_prestacion.Text));
+ store.SetValue (nuevo, 1, (float)Double.Parse (carencia.Text));
+ store.SetValue (nuevo, 2, (float)cobertura.Value);
+ store.SetValue (nuevo, 3, limite_anual.ValueAsInt);
+ if (tipo_auth.Active == true)
+ store.SetValue (nuevo, 4, "Manual");
+ else
+ store.SetValue (nuevo, 4, "Automatica");
}
w.Destroy ();
}