예제 #1
0
 public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     OEExamPaperDA da = new OEExamPaperDA();
     Int64 result = da.InsertAndReturnId64(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)
 {
     OEExamPaperDA da = new OEExamPaperDA();
     NameValueCollection parameters = new NameValueCollection();
     parameters.Add("FPaperStatus", "0");
     int result = da.Update(parameters, where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
예제 #3
0
 public List<OEExamPaper> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     OEExamPaperDA da = new OEExamPaperDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEExamPaper>();
 }
예제 #4
0
 public List<OEExamPaper> Select(NameValueCollection where, NameValueCollection orderby)
 {
     OEExamPaperDA da = new OEExamPaperDA();
     return da.Select(where, orderby).DataTableToList<OEExamPaper>();
 }