Beispiel #1
0
        public List<frmTsk_GetSalaryTable> GetList()
        {
            for(int i = 0 ;i<aTeacherFacultyBO.Select_All().Count;i++)
            {
                frmTsk_GetSalaryTable aFrmTsk = new frmTsk_GetSalaryTable();
                // get id giao vien va id khoa tu id giao vien va id khoa cua bang teacherfacultyBO
                int idTeacher = aTeacherFacultyBO.Select_All()[i].Tea_Code;
                int idFaculty = aTeacherFacultyBO.Select_All()[i].Fac_Code ;
                decimal? salary = aTeacherFacultyBO.Select_All()[i].Tfa_Salary;

                // lay ten giao vien va ten khoa tu id giao vien va i khoa trung voi id giao vien va id khoa trong bang teacherfacultyBO
                string nameTeacher = aTeacherBO.Select_ById(idTeacher).First().Tea_Name.ToString();

                string nameFaculty = aFacultyBO.Select_ById(idFaculty).First().Fac_Name.ToString();

                aFrmTsk.SetList(nameTeacher, nameFaculty, salary);
                aList.Add(aFrmTsk);
            }
            return aList;
        }
Beispiel #2
0
        public List <frmTsk_GetSalaryTable> GetList()
        {
            for (int i = 0; i < aTeacherFacultyBO.Select_All().Count; i++)
            {
                frmTsk_GetSalaryTable aFrmTsk = new frmTsk_GetSalaryTable();
                // get id giao vien va id khoa tu id giao vien va id khoa cua bang teacherfacultyBO
                int     idTeacher = aTeacherFacultyBO.Select_All()[i].Tea_Code;
                int     idFaculty = aTeacherFacultyBO.Select_All()[i].Fac_Code;
                decimal?salary    = aTeacherFacultyBO.Select_All()[i].Tfa_Salary;

                // lay ten giao vien va ten khoa tu id giao vien va i khoa trung voi id giao vien va id khoa trong bang teacherfacultyBO
                string nameTeacher = aTeacherBO.Select_ById(idTeacher).First().Tea_Name.ToString();

                string nameFaculty = aFacultyBO.Select_ById(idFaculty).First().Fac_Name.ToString();

                aFrmTsk.SetList(nameTeacher, nameFaculty, salary);
                aList.Add(aFrmTsk);
            }
            return(aList);
        }