@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.ficha_consultar_cliente_activity); mActionBar.setTitle(titulo); mActionBar.setSubTitle(subtitulo); mActionBar.setHomeLogo(R.drawable.header_logo); txtCodigo.addTextChangedListener(txtCodigoTextWatcher); txtRuc.addTextChangedListener(txtRucTextWatcher); txtDni.addTextChangedListener(txtDniTextWatcher); }
@Override protected void processOk() { // TODO Auto-generated method stub boolean isExito = consultarClienteProxy.isExito(); if (isExito) { int status = consultarClienteProxy.getResponse().getStatus(); if (status == 0) { List<ClienteResumenTO> clientes = consultarClienteProxy.getResponse().getClientes(); RTMApplication application = (RTMApplication) contextProvider.get().getApplicationContext(); application.setClienteTO(clientes.get(0)); adap = new EfficientAdapter(this, clientes); setListAdapter(adap); } } super.processOk(); }
@Override protected void processOk() { // TODO Auto-generated method stub boolean isExito = consultarActividadProxy.isExito(); if (isExito) { int status = consultarActividadProxy.getResponse().getStatus(); if (status == 0) { List<ActividadTO> actividades = consultarActividadProxy.getResponse().getActividades(); adap = new EfficientAdapter(this, actividades); setListAdapter(adap); } else { showToast(consultarActividadProxy.getResponse().getDescripcion()); } } else { processError(); } super.processOk(); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); Intent intent = this.getIntent(); codigo_cliente = intent.getStringExtra(CODIGO_CLIENTE); codigo_plan = intent.getStringExtra(CODIGO_PLAN); // nombre_plan = intent.getStringExtra(NOMBRE_PLAN); setContentView(R.layout.plandesarrollo_actividades_activity); final RTMApplication application = (RTMApplication) contextProvider.get().getApplicationContext(); ClienteResumenTO cliente = application.getClienteTO(); mActionBar.setSubTitle(cliente.getCodigoCliente() + "-" + cliente.getRazonSocial()); mActionBar.setTitle(R.string.pd_mostrar_ctividad_activity_title); mActionBar.setHomeLogo(R.drawable.header_logo); // txViewPlan.setText(nombre_plan); txViewPlan.setVisibility(View.GONE); }
@Override protected void onStart() { // TODO Auto-generated method stub super.onStart(); processAsync(); }
@Override protected void processError() { // TODO Auto-generated method stub super.processError(); showToast(error_generico_process); }
@Override protected void processError() { // TODO Auto-generated method stub super.processError(); }