protected void timerAguardeAtendimento_Tick(object sender, EventArgs e) { OFMS ofms = OFMS.GetInstance(); bool em_atedimento = ofms.ExistsRequisicaoEmAtendimento(Base.SessaoUsuario.ID); if (em_atedimento) { multiview.ActiveViewIndex = VIEW_EM_ATENDIMENTO; } ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "GetAtendimento()", true); }