예제 #1
0
 public Int32 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     OEStudentPracticeDA da = new OEStudentPracticeDA();
     Int32  result = da.Insert(parameters);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
예제 #2
0
 public int Delete(NameValueCollection where, out ErrorEntity ErrInfo)
 {
     OEStudentPracticeDA da = new OEStudentPracticeDA();
     int result = da.Delete(where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
예제 #3
0
 public List<OEStudentPractice> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     OEStudentPracticeDA da = new OEStudentPracticeDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEStudentPractice>();
 }
예제 #4
0
 public List<OEStudentPractice> Select(NameValueCollection where, NameValueCollection orderby)
 {
     OEStudentPracticeDA da = new OEStudentPracticeDA();
     return da.Select(where, orderby).DataTableToList<OEStudentPractice>();
 }