//Preenche a tabela com valores
        protected void preencheTabela(int rs)
        {
            if (rs > 0)
            {
                List <hRegistrado>   lhRegistrado    = new List <hRegistrado>();
                DALhRegistrado       oDALhRegistrado = new DALhRegistrado();
                List <hRegistrado>[] weekValues      = new List <hRegistrado> [7];

                for (int i = 1; i <= rs; i++)
                {
                    int x = 0;
                    for (int j = 0; j < 7; j++)
                    {
                        weekValues[j] = oDALhRegistrado.SelectDate(Convert.ToDateTime(semrow.Cells[j].InnerHtml).ToString("yyyy-MM-dd"));
                    }
                    for (int j = 0; j < 7; j++)
                    {
                        if (weekValues[j].Count > 0)
                        {
                            foreach (hRegistrado hr in weekValues[i])
                            {
                                try {
                                    x++;
                                    weekTable.Rows[x].Cells[j].InnerText = $"{hr.hInicio}~{hr.hFim}";
                                    weekTable.Rows[x].Cells[j].Attributes.Add("class", "bg-danger text-center");
                                }
                                catch (Exception e)
                                {
                                    Response.Write(e.Message);
                                }
                            }
                            //if (weekValues[j-1][i-1] != null)
                            //{
                            //    weekTable.Rows[i].Cells[j].InnerText = $"{weekValues[i][j].hInicio}~{weekValues[i][j].hFim}";
                            //    weekTable.Rows[i].Cells[j].Attributes.Add("class", "bg-danger text-center");
                            //}
                        }
                    }
                }
            }
        }
        protected int RowSize()
        {
            int maior = 0;

            for (int i = 0; i < 7; i++)
            {
                int atual = DALhRegistrado.NumberOfRows(Convert.ToDateTime(semrow.Cells[i].InnerHtml).ToString("yyyy-MM-dd"));
                if (atual > maior)
                {
                    maior = atual;
                }
            }
            if (maior > 0)
            {
                return(maior);
            }
            else
            {
                return(-1);
            }
        }