示例#1
0
文件: UsFuns.cs 项目: tabtu/ADBP2
        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);
        }
示例#2
0
文件: UsFuns.cs 项目: tabtu/ADBP2
        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);
        }