X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/ac4a956058b69d4a283635f45c09ab2741b9dffb..HEAD:/demo/src/Controlador/PlanesController.cs diff --git a/demo/src/Controlador/PlanesController.cs b/demo/src/Controlador/PlanesController.cs index a449372..26e8d45 100644 --- a/demo/src/Controlador/PlanesController.cs +++ b/demo/src/Controlador/PlanesController.cs @@ -26,6 +26,9 @@ public class PlanesController : Controller p.Descripcion = desc; p.PermanenciaMinima = permanencia; + AutoIncrementable c = new AutoIncrementable (); + p.Codigo = c.NextPlan (); + c.Dispose (); actual = p; return true; } @@ -60,6 +63,16 @@ public class PlanesController : Controller return ObjectSetToArrayList (result); } + + public ArrayList ObtenerCoberturas (int codigo) + { + Plan c = new Plan (); + c.Codigo = codigo; + ObjectSet result = Db.get (c); + + c = (Plan)result.next (); + return c.Coberturas; + } } }