예제 #1
0
        private void BindReportCard(string studentId)
        {
            var blCategories = new BLParent();
            var dtCategories = blCategories.LoadReportCards(1, "DEMO");

            if (dtCategories != null)
            {
                var studentReport = dtCategories.FirstOrDefault(c => c.AdmissionId == studentId);
                gvReport.Visible = true;
                gvReport.DataSource = dtCategories;
                gvReport.DataBind();
            }
            else
            {
                gvReport.Visible = false;
            }
        }
        private void BindTimeTable()
        {
            try
            {
                var blCategories = new BLParent();
                var dtCategories = blCategories.LoadAnnouncements();

                if (dtCategories != null)
                {
                    gvTimtable.Visible = true;
                    gvTimtable.DataSource = dtCategories;
                    gvTimtable.DataBind();
                }
                else
                {
                    gvTimtable.Visible = false;
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }