コード例 #1
0
        public int AddEdit(StudentsAttendance entity)
        {
            User objUser = null;
            if (eSchoolSession.IsInSession(SessionKeys.CurrentUser))
                objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser);

            if (objUser != null && !string.IsNullOrEmpty(objUser.SchoolID))
                entity.SchoolID = objUser.SchoolID;

            string[] addParams = { StudentsAttendance_Constants.STUDENTSATTENDANCEID, Student_Constant.SCHOOL_ID, StudentsAttendance_Constants.CURRENTCLASSID, StudentsAttendance_Constants.CURRENTSECTIONID, StudentsAttendance_Constants.STUDENTID, StudentsAttendance_Constants.MONTH, StudentsAttendance_Constants.WEEK, StudentsAttendance_Constants.DATE, StudentsAttendance_Constants.ISABSENT, StudentsAttendance_Constants.ISPRESENT, BaseEntity_Constant.CREATED_BY_ID, BaseEntity_Constant.MODIFIED_BY_ID };

            return _StudentsAttendanceRepository.ExecuteNonQuery(entity, addParams, StudentsAttendance_Constants.SPROC_ADDEDITSTUDENTSATTENDANCE);
        }
コード例 #2
0
        public IEnumerable<StudentsAttendance> GetAll(StudentsAttendance entity)
        {
            User objUser = null;
            if (eSchoolSession.IsInSession(SessionKeys.CurrentUser))
                objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser);

            if (objUser != null && !string.IsNullOrEmpty(objUser.SchoolID))
                entity.SchoolID = objUser.SchoolID;

            string[] addParams = { Student_Constant.SCHOOL_ID,
                                    Student_Constant.CURRENT_ACADEMIC_YEAR_ID,
                                    StudentsAttendance_Constants.CURRENTCLASSID,
                                    StudentsAttendance_Constants.CURRENTSECTIONID,
                                    StudentsAttendance_Constants.MONTH,
                                    StudentsAttendance_Constants.WEEK
                                 };
            return _StudentsAttendanceRepository.GetAll(entity, addParams, StudentsAttendance_Constants.SPROC_STUDENTSATTENDANCE_LSTALL);
        }
コード例 #3
0
 public object GetScalar(StudentsAttendance obj)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public StudentsAttendance Get(StudentsAttendance obj)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public int Delete(StudentsAttendance entity)
 {
     throw new NotImplementedException();
 }