Beispiel #1
0
        public void Add(NippsLog t)
        {
            NippsModule nippsModule = NippsModuleDao.GetByName(t.LogModuleName);

            //LogModule validated. go on...
            NippsLogDao.Add(t);
        }
Beispiel #2
0
        public List <NippsLog> List(NippsLog t)
        {
            //do not care the record not Fatal and checked before by anyone
            t.LogLevelId = NippsLogLevel.Fatal;
            t.CheckedBy  = null;

            return(NippsLogDao.List(t));
        }
Beispiel #3
0
        public void Update(NippsLog t)
        {
            //only CheckedBy field can be updated by the requester!!!
            NippsLog oldLog = NippsLogDao.Get(t.LogId);

            oldLog.CheckedBy = t.CheckedBy;
            NippsLogDao.Update(oldLog);
        }
Beispiel #4
0
 public List <NippsLog> List()
 {
     return(NippsLogDao.List());
 }
Beispiel #5
0
 public List <NippsLog> List(int pageNo)
 {
     return(NippsLogDao.List(pageNo));
 }
Beispiel #6
0
 public NippsLog GetByName(string name)
 {
     return(NippsLogDao.GetByName(name));
 }
Beispiel #7
0
 public NippsLog Get(int id)
 {
     return(NippsLogDao.Get(id));
 }