Examples of Cliente


Examples of br.com.lawoffice.dominio.Cliente

 
  /**
   * cria um novo {@link Cliente} com seu relacionamentos obrigatorios.
   */
  public void novoCliente(){
    cliente = new Cliente()
    Conta conta = new Conta();
    conta.setSaldo(new BigDecimal(0.0));
    cliente.setConta(conta);
    conta.setCliente(cliente);
  }
View Full Code Here

Examples of br.com.rodrigo.kuntzer.ee6demo.entity.Cliente

 
  public void listar(){
    FacesContext context = FacesContext.getCurrentInstance();
    if(!context.isPostback()){
      this.lista = clienteService.obterTodosClientes();
      this.entity = new Cliente();
      this.entity.setEstado(new Estado());
      this.itensComboTipoPessoa.clear();
      for(TipoCliente tipo:TipoCliente.values()){
        this.itensComboTipoPessoa.add(new SelectItem(tipo, tipo.getDescription()));
      }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

     * Test of create method, of class ClienteDAOImp.
     */
    @Test
    public void create() throws Exception {
        System.out.println("create");
        final Cliente cliente = new Cliente(null, "000", "dadada", "dasasda", 50, "fasdfas", 400, "qd 50", "guanabara", 50, 9, 7400, 200, 300, "danilo", 012030, new Date(), "0083", "daniolo", new Date(),"123312", "sdfafa", new Date(), "412341", "fasdfa", new Date());
        final ClienteDAOImpl instance = new ClienteDAOImpl();
        instance.salvar(cliente);
        assertNotNull("cliente", cliente);
        assertTrue(cliente.getRazaoSocial().length() > 0);
    }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

     * Test of update method, of class ClienteDAOImp.
     */
    @Test
    public void update() throws Exception {
        System.out.println("update");
        final Cliente cliente = new Cliente(3, "000000", "dededede", "desdedes", 50, "rua qlauqer", 800, "dqdq000", "fdasfasd", 60, 10, 10233, 32112, 321312, "dasdfaf@", 12023, new Date(), "93211232", "dtegadas", new Date(), null, null, new Date(), null, null, new Date());
        final ClienteDAOImpl instance = new ClienteDAOImpl();
        instance.atualizar(cliente);
        assertNotNull(cliente);
        assertEquals("Danilo razao", pesquisarId(4).getRazaoSocial());
    }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

     */
    @Test
    public void obterPorId() throws Exception {
        System.out.println("obterPorId");
        final Integer id = 4;
        final Cliente cliente = pesquisarId(id);
        assertNotNull(cliente);
        assertTrue(cliente.getNomeFantasia().length() > 0);
        System.out.println(cliente.getRazaoSocial());
    }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

     * Test of delete method, of class ClienteDAOImp.
     */
    @Test
    public void delete() throws Exception {
        System.out.println("delete");
        Cliente cliente = new Cliente();
        Integer id = 2;
        cliente.setIdCliente(id);
        ClienteDAOImpl instance = new ClienteDAOImpl();
        instance.excluir(cliente);
       
        try{
            cliente = pesquisarId(id);
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

 
  public void carregarRegistro(ActionEvent evento) {
    final String id = ((HtmlActionParameter)((HtmlCommandButton)evento.getSource()).getChildren().get(0)).getValue().toString();
    int idCliente = Integer.parseInt(id);

    final Cliente cliente = this.getDao().obterPorId(idCliente);

    this.getCliente().setIdCliente(cliente.getIdCliente());
    this.getCliente().setCnpj(cliente.getCnpj());
    this.getCliente().setRazaoSocial(cliente.getRazaoSocial());
    this.getCliente().setNomeFantasia(cliente.getNomeFantasia());
    this.getCliente().setRamo(cliente.getRamo());
    this.getCliente().setInscEst(cliente.getInscEst());
    this.getCliente().setDesde(cliente.getDesde());
    this.getCliente().setNomeResp1(cliente.getNomeResp1());
    this.getCliente().setTel1(cliente.getTel1());
    this.getCliente().setLogradouro(cliente.getLogradouro());
    this.getCliente().setNumero(cliente.getNumero())
    this.getCliente().setComplemento(cliente.getComplemento());
    this.getCliente().setBairro(cliente.getBairro());
    this.getCliente().setUf(cliente.getUf());
    this.getCliente().setCidade(cliente.getCidade());
    this.getCliente().setCep(cliente.getCep());
    this.getCliente().setTel1(cliente.getTel1());
    this.getCliente().setTel2(cliente.getTel2());
    this.getCliente().setEmail(cliente.getEmail());
    this.getCliente().setCpfResp1(cliente.getCpfResp1());
    this.getCliente().setCpfResp2(cliente.getCpfResp2());
    this.getCliente().setCpfResp3(cliente.getCpfResp3());
    this.getCliente().setNomeResp1(cliente.getNomeResp1());
    this.getCliente().setNomeResp2(cliente.getNomeResp2());
    this.getCliente().setNomeResp3(cliente.getNomeResp3());
    this.getCliente().setNascResp1(cliente.getNascResp1());
    this.getCliente().setNascResp2(cliente.getNascResp2());
    this.getCliente().setNascResp3(cliente.getNascResp3());
  }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

 
  public void excluirRegistro(ActionEvent evento) {
    final String id = ((HtmlActionParameter)((HtmlAjaxCommandButton)evento.getSource()).getChildren().get(0)).getValue().toString();
    int idCliente = Integer.parseInt(id);
   
    final Cliente cliente = this.getDao().obterPorId(idCliente);
   
    try {
      if(cliente != null){
        this.getDao().excluir(cliente);
        this.listarTodos();
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

    }
    return true;
  }
 
  public void limpar() {
    this.cliente = new Cliente();
  }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

  /**
   * @return the cliente
   */
  public Cliente getCliente() {
    if (this.cliente == null) {
      this.cliente= new Cliente();
    }
    return cliente;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.