예제 #1
0
        public string BuscarObjeto(ref object unObjetoLocal, short unaOpcion)
        {
            cliente registro      = (cliente)unObjetoLocal;
            string  valorDevuelto = null;

            switch (unaOpcion)
            {
            case 1:
            {
                persona entidad = (persona)BuscarListaPr.BuscarPersona();
                if (entidad != null)
                {
                    registro.fkconyuge = entidad;
                    valorDevuelto      = registro.fkconyuge.ToString();
                }
            }
            break;

            case 3:
            {
                barrio entidad = (barrio)BuscarListaPr.BuscarBarrio();
                if (entidad != null)
                {
                    registro.fkbarrio = entidad;
                    valorDevuelto     = entidad.ToString();
                }
            }
            break;

            case 4:
            {
                profesion entidad = (profesion)BuscarListaPr.BuscarProfesion();
                if (entidad != null)
                {
                    registro.fkprofesione = entidad;
                    valorDevuelto         = entidad.ToString();
                }
            }
            break;
            }
            return(valorDevuelto);
        }
예제 #2
0
 public int Borrar(profesion item)
 {
     return(item.BorrarObjetoT());
 }
예제 #3
0
 public int Grabar(profesion item)
 {
     return(item.GrabarObjetoT(x => x.id));
 }