public void RIOCARD_reembolsos() { int indLineGrid = 0; try { this.trataTempos(TipoThread.RIOCARD_REEMBOLSOS); ClsIncidenteBus ib = new ClsIncidenteBus(); List <ClsIncidente> list = ib.getInsertNewsIncidentesForMonitoracao(); int contador = 0; if (list != null) { if (list.Count > 0) { contador = list.Count; } } gridAlertas[2, indLineGrid].Value = "Executado " + DateTime.Now.ToString("dd/MM/yyyy HH:mm") + " " + contador.ToString() + " reembolsos | "; gridAlertas[2, indLineGrid].Value += "Próxima execução " + ClsTempoExecucaoBus.NOVA_EXEC_RIOCARD_REEMBOLSOS; } catch (Exception ex) { gridAlertas[3, indLineGrid].Value = ex.Message.ToString(); } }
private void RIOCARD_resolveReembolsoEN() { int indLineGrid = 0; try { ClsIncidenteBus incb = new ClsIncidenteBus(); Application.DoEvents(); List <ClsIncidente> list = incb.setReembolsoStatusAP(); contadorReembolsosResolvidos = contadorReembolsosResolvidos + list.Count; this.trataTempos(TipoThread.RIOCARD_RESOLVE_REEMB_EN); indLineGrid = this.getLineGrid(this.gridAlertasResolvidos, "RIOCARD - REEMB."); gridAlertasResolvidos[2, indLineGrid].Value = "Executado " + DateTime.Now.ToString("dd/MM/yyyy HH:mm") + " " + contadorReembolsosResolvidos + " resolvidos | "; gridAlertasResolvidos[2, indLineGrid].Value += "Próxima execução " + ClsTempoExecucaoBus.NOVA_EXEC_RIOCARD_RESOLVE_REEMBOLSOS_EN; Application.DoEvents(); } catch (Exception ex) { gridAlertasResolvidos[2, indLineGrid].Value = ex.Message.ToString(); Application.DoEvents(); } }