public int Delete(NameValueCollection where, out ErrorEntity ErrInfo)
 {
     OEPaperDetailSetDA da = new OEPaperDetailSetDA();
     int result = da.Delete(where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
 public Int32 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     try
     {
         OEPaperDetailSetDA da = new OEPaperDetailSetDA();
         Int32 result = da.Insert(parameters);
         if (result > 0)
         {
             ErrInfo = new ErrorEntity(RespCode.Success);
         }
         else
         {
             ErrInfo = new ErrorEntity(RespCode.SysError);
         }
         return result;
     }
     catch (Exception ex)
     {
         ErrInfo = new ErrorEntity("999999", ex.Message);
         return -1;
     }
 }
 public List<OEPaperDetailSet> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     OEPaperDetailSetDA da = new OEPaperDetailSetDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEPaperDetailSet>();
 }
 public List<OEPaperDetailSet> Select(NameValueCollection where, NameValueCollection orderby)
 {
     OEPaperDetailSetDA da = new OEPaperDetailSetDA();
     return da.Select(where, orderby).DataTableToList<OEPaperDetailSet>();
 }
 public int Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo)
 {
     try
     {
         OEPaperDetailSetDA da = new OEPaperDetailSetDA();
         int result = da.Update(parameters, where);
         if (result > 0)
         {
             ErrInfo = new ErrorEntity(RespCode.Success);
         }
         else
         {
             ErrInfo = new ErrorEntity(RespCode.SysError);
         }
         return result;
     }
     catch (Exception ex)
     {
         ErrInfo = new ErrorEntity("999999", ex.Message);
         return -1;
     }
 }