From a993f69309df5936fa235b3cf7f52cd9858112d7 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 28 Jun 2005 19:44:13 +0000 Subject: [PATCH] * Ya se peuden agregar Coberturas a un Plan (no persistente) --- demo/src/Vistas/MantenerPlanes.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 (); } -- 2.43.0