public static bool TieneConsumos(Cliente cliente) { consumosTabla = consumosAdapter.GetConsumoByCliente(cliente.IdCliente); if (consumosTabla.Count > 0) { return(true); } return(false); }
public static bool ExisteConsumoDeTarifa(string idTarifa) { bool existe = false; consumosTabla = consumosAdapter.GetConsumosPorTarifas(Convert.ToInt32(idTarifa)); if (consumosTabla.Count > 0) { existe = true; } return(existe); }
public static string TotalDeTotales(string idCliente) { double total = 0; consumosTabla = consumosAdapter.GetConsumoByCliente(Convert.ToInt32(idCliente)); for (int i = 0; i < consumosTabla.Count; i++) { total += SumaConsumo(consumosTabla[i].idConsumo.ToString()); } return(Math.Round(total, 2).ToString()); }