]> git.llucax.com Git - z.facultad/75.10/miklolife.git/blobdiff - demo/src/Controlador/AfiliadoSolicitanteController.cs
(no commit message)
[z.facultad/75.10/miklolife.git] / demo / src / Controlador / AfiliadoSolicitanteController.cs
index 3b6668a9aec3f0989603f588c146b9b47a40783e..51a28ab95ccda9019d899a03eaa3eea6110f12fb 100644 (file)
@@ -262,7 +262,18 @@ public class AfiliadoSolicitanteController : Controller
                a.NroDocumento = nroDoc;
                a.Apellido = apellido;
 
                a.NroDocumento = nroDoc;
                a.Apellido = apellido;
 
-               ObjectSet result = Db.get (a);
+               Query query = Db.query();
+               query.constrain(typeof(Afiliado));
+               if (codigo != 0)
+                       query.descend("_codigo").constrain(codigo);
+               if (tipoDoc != ETipoDocumento.NONE)
+                       query.descend("_tipoDocumento").constrain(tipoDoc);
+               if (nroDoc != 0)
+                       query.descend("_nroDocumento").constrain(nroDoc);
+               if (apellido != null)
+                       query.descend("_apellido").constrain(apellido);
+
+               ObjectSet result = query.execute ();
                return ObjectSetToArrayList (result);           
        }
        
                return ObjectSetToArrayList (result);           
        }