private void listarCobranzas() {

    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
    // Cursor cursor = dbHelper_Comprob_Cobro.listarComprobantesToCobrosMante("" + idEstablec);
    Log.d("VENTACOMPRO", "" + idEstablec);
    Cursor cr = dbAdapter_impresion_cobros.listarImprimirCobros(getDatePhone(), idEstablec);
    CursorAdapter_Man_Cbrz cAdapter_Cbrz_Man = new CursorAdapter_Man_Cbrz(this, cr);
    final ListView listCbrz = (ListView) findViewById(R.id.VVCO_cbrz);
    listCbrz.setAdapter(cAdapter_Cbrz_Man);

    listCbrz.setOnItemClickListener(
        new OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            Cursor cursor = (Cursor) parent.getItemAtPosition(position);
            int tipo =
                cursor.getInt(
                    cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_tipo));
            String _id =
                cursor.getString(
                    cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_id_detalle));
            String monto =
                cursor.getString(
                    cursor.getColumnIndexOrThrow(DbAdapter_Impresion_Cobros.Imprimir_monto));
            if (tipo == Constants.COBRO_NORMAL) { // normal
              // int idCompo = dbHelper_Comprob_Cobro.fetchComprobCobrosById(_id);
              dialogItemCobros(tipo, _id + "", monto);
            } else { // manual

              dialogItemCobros(tipo, _id, monto);
            }
          }
        });
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    dbAdapter_temp_canjes_devoluciones = new DBAdapter_Temp_Canjes_Devoluciones(this);
    dbAdapter_temp_canjes_devoluciones.open();
    contexto = this;
    setContentView(R.layout.princ_venta_comprob);

    session = new DbAdapter_Temp_Session(this);
    session.open();

    // SLIDING MENU
    dbGastosIngresos = new DbGastos_Ingresos(this);
    dbGastosIngresos.open();

    dbAdapter_informe_gastos = new DbAdapter_Informe_Gastos(this);
    dbAdapter_informe_gastos.open();

    dbHelperAgente = new DbAdapter_Agente(this);
    dbHelperAgente.open();

    // VENTAS
    dbAdaptert_evento_establec = new DbAdaptert_Evento_Establec(this);
    dbAdaptert_evento_establec.open();

    dbAdapter_comprob_venta = new DbAdapter_Comprob_Venta(this);
    dbAdapter_comprob_venta.open();

    dbAdapter_impresion_cobros = new DbAdapter_Impresion_Cobros(this);
    dbAdapter_impresion_cobros.open();

    dbAutorizaciones = new DBAdapter_Temp_Autorizacion_Cobro(this);
    dbAutorizaciones.open();

    dbHelper = new DbAdapter_Comprob_Venta(this);
    dbHelper.open();
    dbHelper_Comp_Venta_Detalle = new DbAdapter_Comprob_Venta_Detalle(this);
    dbHelper_Comp_Venta_Detalle.open();
    dbHelper_Stock_Agente = new DbAdapter_Stock_Agente(this);
    dbHelper_Stock_Agente.open();
    dbHelper_Comprob_Cobro = new DbAdapter_Comprob_Cobro(this);
    dbHelper_Comprob_Cobro.open();

    // ---
    dbHelper_Canjes_Dev = new DbAdapter_Canjes_Devoluciones(this);
    dbHelper_Canjes_Dev.open();

    // idAgente=((MyApplication) this.getApplication()).getIdAgente();
    idAgente = session.fetchVarible(1);
    liquidacion = session.fetchVarible(3);

    tH = (TabHost) findViewById(R.id.tabMante);
    tH.setup();
    // idEstablec = ((MyApplication) this.getApplication()).getIdEstablecimiento();

    idEstablec = session.fetchVarible(2);

    // Item1
    TabHost.TabSpec spec = tH.newTabSpec("1");
    spec.setContent(R.id.comprob);
    spec.setIndicator("Comprobantes");
    displayListView();
    tH.addTab(spec);
    // Item2
    TabHost.TabSpec spec2 = tH.newTabSpec("2");
    spec2.setContent(R.id.cobranza);
    spec2.setIndicator("Cobranza");
    listarCobranzas();
    tH.addTab(spec2);
    // Item 3
    TabHost.TabSpec spec3 = tH.newTabSpec("3");
    spec3.setContent(R.id.canje);
    spec3.setIndicator("Dev / Can");
    mostrarItemsDevoluciones(idEstablec);
    tH.addTab(spec3);
    // Item 4
    TabHost.TabSpec spec4 = tH.newTabSpec("4");
    spec4.setContent(R.id.autoriz);
    spec4.setIndicator("Autorización");
    displayAutorizaciones();
    tH.addTab(spec4);

    // SLIDING MENU
    showSlideMenu(this);

    showHeader();
  }