X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/e826fb5076f847072bfe16584c36e3b2da8a442d..fbad10ba61c6229acb279fb8438a01e9e0a10a62:/demo/src/Vistas/MantenerPlanes.cs?ds=sidebyside diff --git a/demo/src/Vistas/MantenerPlanes.cs b/demo/src/Vistas/MantenerPlanes.cs index d0f5257..d0c63b2 100644 --- a/demo/src/Vistas/MantenerPlanes.cs +++ b/demo/src/Vistas/MantenerPlanes.cs @@ -44,12 +44,13 @@ public class VMantenerPlanes 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 (); @@ -83,9 +84,13 @@ public class VMantenerPlanes 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 (); }