Exemplo n.º 1
0
        public IList <Attendance> FillAttendance(IList <Attendance> list)
        {
            SqlFuns sf = new SqlFuns();

            foreach (Attendance tmp in list)
            {
                tmp.StrStudent = sf.SearchStudent(tmp.Student).Name;
                tmp.StrCourse  = sf.SearchCourseID(tmp.Course).Name;
            }
            return(list);
        }
Exemplo n.º 2
0
        public IList <Payment> FillPayment(IList <Payment> list)
        {
            SqlFuns sf = new SqlFuns();

            foreach (Payment tmp in list)
            {
                tmp.StrStuName = sf.SearchStudent(tmp.Stnum).Name;
                tmp.StrPayFor  = sf.SearchPayFor(tmp.Payfor).Description;
            }
            return(list);
        }