示例#1
0
        public int AddEdit(ExamMarks entity)
        {
            entity.DateCreated = DateTime.Now;
            entity.DateModified = DateTime.Now;

            User objUser = null;
            if (eSchoolSession.IsInSession(SessionKeys.CurrentUser))
                objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser);

            if (objUser != null && !string.IsNullOrEmpty(objUser.UserID))
            {
                entity.CreatedByID = objUser.UserID;
                entity.ModifiedByID = objUser.UserID;
            }

            string[] addParams = new string[] { ExamMarks_Constant.EXAM_MARK_ID, ExamMarks_Constant.EXAM_ID, ExamMarks_Constant.STUDENT_ID, ExamMarks_Constant.MARKS_OBTAIN, ExamMarks_Constant.SUBJECT_ID, ExamMarks_Constant.GRADE_OBTAIN, ExamMarks_Constant.CREATED_BY_ID, ExamMarks_Constant.MODIFIED_BY_ID };

            return _IExamMarksRepository.ExecuteNonQuery(entity, addParams, ExamMarks_Constant.SPROC_EXAMMARKS_UPS);
        }
示例#2
0
 public object GetScalar(ExamMarks obj)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public IEnumerable<ExamMarks> GetAll(ExamMarks entity)
 {
     string[] addParams = new string[] { ExamMarks_Constant.EXAM_ID };
     return _IExamMarksRepository.GetAll(entity, addParams, ExamMarks_Constant.SPROC_EXAMMARKS_GETALL);
 }
示例#4
0
 public ExamMarks Get(ExamMarks obj)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public IEnumerable<ExamMarks> FormatTwoDetails(ExamMarks obj)
 {
     string[] addParams = new string[] { ExamMarks_Constant.SUBJECT_ID, ExamMarks_Constant.AYID, ExamMarks_Constant.CLASSID, ExamMarks_Constant.SECTIONID };
     return _IExamMarksRepository.GetAll(obj, addParams, ExamMarks_Constant.SPROC_FORMATTWODETAILS);
 }
示例#6
0
 public int Delete(ExamMarks entity)
 {
     throw new NotImplementedException();
 }