示例#1
0
 public IList<InmuebleDTO> getInmuebles(int IdCliente, bool AsSelectList = false)
 {
     ClienteBL oBL = new ClienteBL();
     if (!AsSelectList)
         return oBL.getInmuebles(IdCliente);
     else
     {
         var lista = oBL.getInmuebles(IdCliente);
         lista.Insert(0, new InmuebleDTO() { IdInmueble = 0, NombreInmueble = "Seleccione un Inmueble" });
         return lista;
     }
 }
示例#2
0
 public IList<ClienteDTO> getComboClientes()
 {
     ClienteBL oBL = new ClienteBL();
     var lista = oBL.getComboClientes();
     lista.Insert(0, new ClienteDTO() { IdCliente = 0, NombreEmpresa = "Seleccione un Cliente" });
     return lista;
 }
示例#3
0
 public IList<EstadoDTO> getEstados(int IdServicio, bool AsSelectList = false)
 {
     ClienteBL oBL = new ClienteBL();
     if (!AsSelectList)
         return oBL.getEstados(IdServicio);
     else
     {
         var lista = oBL.getEstados(IdServicio);
         lista.Insert(0, new EstadoDTO() { IdEstado = 0, NombreEstado = "Seleccione un Estado" });
         return lista;
     }
 }
示例#4
0
 public IList<ClienteDTO> getClientes(bool AsSelectList = false)
 {
     ClienteBL oBL = new ClienteBL();
     if (!AsSelectList)
         return oBL.getClientes();
     else
     {
         var lista = oBL.getClientes();
         lista.Insert(0, new ClienteDTO() { IdCliente = 0, NombreEmpresa = "Seleccione un Cliente" });
         return lista;
     }
 }