@Override
  protected void processOk() {
    String message;

    boolean isExito = resumenGerenteVentasProxy.isExito();
    if (isExito) {
      int status = resumenGerenteVentasProxy.getResponse().getStatus();
      if (status == 0) {

        ArrayList<ResumenVentaTO> resumenVenta =
            resumenGerenteVentasProxy.getResponse().detalle.resumen;
        ResumenVenta_Adapter adapterResumen = new ResumenVenta_Adapter(this, resumenVenta);
        lstResumen.setAdapter(adapterResumen);

        ArrayList<ResumenVentaDetalleTO> resumenVentaDetalle =
            resumenGerenteVentasProxy.getResponse().detalle.detalle;
        ResumenDetalleVenta_Adapter adapterDetalle =
            new ResumenDetalleVenta_Adapter(this, resumenVentaDetalle);
        lstDetalle.setAdapter(adapterDetalle);

        super.processOk();
      } else {
        message = resumenGerenteVentasProxy.getResponse().getDescripcion();
        super.processOk();
        showToast(message);
      }

    } else {
      processError();
    }
  }
 @Override
 protected void processError() {
   String message;
   if (resumenGerenteVentasProxy.getResponse() != null) {
     String error = resumenGerenteVentasProxy.getResponse().getDescripcion();
     message = error;
   } else {
     message = error_generico_process;
   }
   super.processError();
   showToast(message);
 }
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    inicializarRecursos();

    setContentView(R.layout.resumenadminfranquicia_activity);
    setTitle(R.string.resumen_gerenteventas_activity_title);
    getSupportActionBar().setSubtitle(nombre_cda);

    getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

    ActionBar.Tab tab = getSupportActionBar().newTab();
    tab.setText("Resumen");
    tab.setTabListener(this);
    getSupportActionBar().addTab(tab);

    ActionBar.Tab tab2 = getSupportActionBar().newTab();
    tab2.setText("Detalle");
    tab2.setTabListener(this);
    getSupportActionBar().addTab(tab2);

    processAsync();
  }