Ejemplo n.º 1
0
    public void BindPoitn()
    {
        List <ExamPoint>  exam_temp = new List <ExamPoint>();
        List <FirstPoint> first     = pointBll.GetFirstPoint();

        if (first != null)
        {
            foreach (var item in first)
            {
                ExamPoint examPoint = new ExamPoint();
                examPoint.firstPoint = item;
                examPoint.IsAllChose = pointBll.SecondHaveAllChose(int.Parse(item.FirstPointId.ToString()));

                List <secondPont> second = pointBll.GetSecondPoint_Plus(int.Parse(item.FirstPointId.ToString()));
                if (second != null)
                {
                    foreach (var subItem in second)
                    {
                        examPoint.secondPoints.Add(subItem);
                    }
                    exam_temp.Add(examPoint);
                }
            }
            ExamPoint_S = exam_temp;
        }
    }