Example #1
0
  private static void pruebaCliente(CuadroMandoServiceImpl cuadroMando) throws Exception {
    // ParametroService parametrosService = new ParametroServiceImpl();
    // Cliente cliente = cuadroMando.buscarCliente("P011437", "L", "06681016");
    // Cliente cliente = cuadroMando.buscarCliente("P019075", "L", "08780209");
    // List<Contrato> listContratos = cuadroMando.buscarContratos("P019075", "L", "08780209");
    // 29523728
    Cliente cliente = cuadroMando.buscarCliente("P017073", "", "", "77783161");
    List<Contrato> listContratos = cuadroMando.buscarTodosContratos("P017073", "L", "40253714");
    cliente.setListContratos(listContratos);
    System.out.println("Cliente: " + cliente);
    /*
    ReadProperties readProperties = new ReadProperties();
    Map<String, Object> mapResult = parametrosService.verifyIsValidClient(cliente, readProperties);
    System.out.println("mapResult: " + mapResult);
    Map<String, Object> mapResultProducts = parametrosService.getAllStructureProducts(cliente, cliente.getListContratos());
    System.out.println("mapResultProducts: " + mapResultProducts);
    */

    /*Cloner cloner = new Cloner();
    List<Contrato> listaTemporal = cloner.deepClone(listContratos);
    */
    Utilities.serializaObjeto(
        "D:\\BBVA\\Proyectos\\OperativizacionHC\\serializados\\produccion\\cliente.ser", cliente);
  }
Example #2
0
 private static void obtenerPerfilHOST() {
   CtConOhcQF3BRs rs = InvokeWS.consumirQF3B("P016653", "P016653");
   System.out.println(
       ArrayUtils.toString(Utilities.splitByPosition(rs.getData().getAplfacu(), 2)));
 }
Example #3
0
 private static void recuperaCliente() throws Exception {
   System.out.println("Cliente: " + Utilities.deserializaObjeto("D:\\cliente.ser"));
 }