2 namespace Controlador {
5 using Dominio.Afiliados;
11 using System.Collections;
13 public class RegistrarVisitasController : Controller
15 private Promotor _promotor;
17 public RegistrarVisitasController (Promotor p):base ()
20 Promotor a = new Promotor (ETipoDocumento.DNI, 12345678, null, null);
21 ObjectSet result = Db.get (a);
22 _promotor = (Promotor)result.next ();
25 public ArrayList ObtenerSolicitantesAsignados ()
27 Solicitante s = new Solicitante (0, 0, null, null);
28 s.Promotor = _promotor;
31 ObjectSet result = Db.get (s);
32 return ObjectSetToArrayList (result);
35 public void EstablecerPendiente (ETipoDocumento tipoDoc, int nroDoc)
37 /* Obtengo el solicitante */
38 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
39 ObjectSet result = Db.get (s);
40 s = (Solicitante)result.next ();
45 public void EliminarSolicitante (ETipoDocumento tipoDoc, int nroDoc)
47 /* Obtengo el solicitante */
48 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
49 ObjectSet result = Db.get (s);
50 s = (Solicitante)result.next ();
54 public void Visitado (ETipoDocumento tipoDoc, int nroDoc)
56 /* Obtengo el solicitante */
57 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
58 ObjectSet result = Db.get (s);
59 s = (Solicitante)result.next ();
64 public int ObtenerCantidadFamiliares (ETipoDocumento tipoDoc, int nroDoc)
66 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
68 s.Promotor = _promotor;
70 ObjectSet result = Db.get (s);
71 s = (Solicitante)result.next ();
74 Console.WriteLine ("No pude recuperar solicitante");