protected void Page_Load(object sender, EventArgs e) { if (Buscar.Usuario.ID.Equals(0)) { Response.Redirect("Logout.aspx"); } var table = Listar.Agendamentos.PorCliente(Buscar.Usuario.ID); if (table.Rows.Count.Equals(0)) { body = container.Replace("{%}", Msg.NaoHaRegistros); } else { for (int i = 0; i < table.Rows.Count; i++) { Buscar.Editor.ID = Convert.ToInt32(table.Rows[i]["id"]); body += Snippets.Agendamento.Home; body = body.Replace("{m}", Buscar.Agendamento.Info["tecnico"].ToString()); body = body.Replace("{e}", Buscar.Agendamento.Info["especialidade"].ToString()); body = body.Replace("{d}", Buscar.Agendamento.Info["dia"].ToString()); body = body.Replace("{h}", Buscar.Agendamento.Info["hora"].ToString()); body = body.Replace("{s}", Buscar.Agendamento.Info["situacao"].ToString().Equals("Finalizado") ? "{l}" : Buscar.Agendamento.Info["situacao"].ToString()); body = body.Replace("{l}", Criar.Links(new [] { Buscar.Agendamento.Info["situacao"].ToString() })); body = body.Replace("{i}", Buscar.Agendamento.Info["id"].ToString()); body = body.Replace("{u}", "Agendamentos_resumo"); } } page_content.InnerHtml = Criar.Output(body); }
protected void Page_Load(object sender, EventArgs e) { if (Buscar.Usuario.ID.Equals(0)) { Response.Redirect("/App/Logout.aspx"); } if (!Buscar.Usuario.ID.Equals(0)) { for (int i = 0; i < Etiquetas.Configuracoes.Labels.Length; i++) { body += Criar.Links(new [] { Etiquetas.Configuracoes.Labels[i] }, null, "button border light-gray"); body = body.Replace("?id={i}", string.Empty); body = body.Replace("{u}", "Configuracoes_" + Etiquetas.Configuracoes.Urls[i]); body = Snippets.Container.Replace("{%}", body); } page_content.InnerHtml = Criar.Output(body); } }