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;
30 ObjectSet result = Db.get (s);
31 return ObjectSetToArrayList (result);
34 public void EstablecerPendiente (ETipoDocumento tipoDoc, int nroDoc)
36 /* Obtengo el solicitante */
37 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
38 ObjectSet result = Db.get (s);
39 s = (Solicitante)result.next ();
44 public void EliminarSolicitante (ETipoDocumento tipoDoc, int nroDoc)
46 /* Obtengo el solicitante */
47 Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null);
48 ObjectSet result = Db.get (s);
49 s = (Solicitante)result.next ();