Пример #1
0
 public int Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo)
 {
     OEPaperDifficultyDA da = new OEPaperDifficultyDA();
     int result = da.Update(parameters, where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Пример #2
0
 public Int32 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     OEPaperDifficultyDA da = new OEPaperDifficultyDA();
     Int32 result = da.Insert(parameters);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
Пример #3
0
 public List<OEPaperDifficulty> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     OEPaperDifficultyDA da = new OEPaperDifficultyDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEPaperDifficulty>();
 }
Пример #4
0
 public List<OEPaperDifficulty> Select(NameValueCollection where, NameValueCollection orderby)
 {
     OEPaperDifficultyDA da = new OEPaperDifficultyDA();
     return da.Select(where, orderby).DataTableToList<OEPaperDifficulty>();
 }