示例#1
0
        public DataSet GetClassInfo(int classID, int gradeID)
        {
            DataSet classInfo;

            using (ClassesDataAccess classDataAccess = new ClassesDataAccess())
            {
                classInfo = classDataAccess.GetClassInfo(classID, gradeID);
            }

            return(classInfo);
        }
示例#2
0
        public DataSet GetClassInfoList()
        {
            DataSet classInfoList;

            using (ClassesDataAccess classDataAccess = new ClassesDataAccess())
            {
                classInfoList = classDataAccess.GetClassInfoList();
            }

            return(classInfoList);
        }
示例#3
0
        public int DeleteClassInfo(int classID, int gradeID)
        {
            int rowsAffected = 0;

            using (ClassesDataAccess classesDataAccess = new ClassesDataAccess())
            {
                rowsAffected = classesDataAccess.DeleteClassInfo(classID, gradeID);
            }

            return(rowsAffected);
        }
示例#4
0
        public int UpdateClassInfo(Classes classes)
        {
            int rowsAffected = 0;

            using (ClassesDataAccess classDataAccess = new ClassesDataAccess())
            {
                rowsAffected = classDataAccess.UpdateClassInfo(classes);
            }

            return(rowsAffected);
        }
示例#5
0
        public int InsertClassInfo(Classes classes, string gradeName)
        {
            int rowsAffected = 0;

            using (ClassesDataAccess classDataAccess = new ClassesDataAccess())
            {
                rowsAffected = classDataAccess.InsertClassInfo(classes, gradeName);
            }

            return(rowsAffected);
        }
示例#6
0
        public DataTable GetGetClassAndGrade()
        {
            DataTable dt = null;

            try
            {
                dt = new ClassesDataAccess().GetClassAndGrade();
            }
            catch (Exception ex)
            {
                Util.WriteLog(ex.Message, Util.EXCEPTION_LOG_TITLE);
            }
            return(dt);
        }