Exemplo n.º 1
0
 public List<AbstractReviewer> GetAll()
 {
     AbstractReviewerDAC _abstractReviewerComponent = new AbstractReviewerDAC();
      IDataReader reader =  _abstractReviewerComponent.GetAllAbstractReviewer().CreateDataReader();
      List<AbstractReviewer> _abstractReviewerList = new List<AbstractReviewer>();
      while(reader.Read())
      {
      if(_abstractReviewerList == null)
          _abstractReviewerList = new List<AbstractReviewer>();
          AbstractReviewer _abstractReviewer = new AbstractReviewer();
          if(reader["AbstractReviewerId"] != DBNull.Value)
              _abstractReviewer.AbstractReviewerId = Convert.ToInt32(reader["AbstractReviewerId"]);
          if(reader["PersonId"] != DBNull.Value)
              _abstractReviewer.PersonId = Convert.ToInt32(reader["PersonId"]);
          if(reader["IsInternal"] != DBNull.Value)
              _abstractReviewer.IsInternal = Convert.ToBoolean(reader["IsInternal"]);
          if(reader["DateCreated"] != DBNull.Value)
              _abstractReviewer.DateCreated = Convert.ToDateTime(reader["DateCreated"]);
          if(reader["IsActive"] != DBNull.Value)
              _abstractReviewer.IsActive = Convert.ToBoolean(reader["IsActive"]);
      _abstractReviewer.NewRecord = false;
      _abstractReviewerList.Add(_abstractReviewer);
      }             reader.Close();
      return _abstractReviewerList;
 }
Exemplo n.º 2
0
 public AbstractReviewer GetByID(int _abstractReviewerId)
 {
     AbstractReviewerDAC _abstractReviewerComponent = new AbstractReviewerDAC();
      IDataReader reader = _abstractReviewerComponent.GetByIDAbstractReviewer(_abstractReviewerId);
      AbstractReviewer _abstractReviewer = null;
      while(reader.Read())
      {
          _abstractReviewer = new AbstractReviewer();
          if(reader["AbstractReviewerId"] != DBNull.Value)
              _abstractReviewer.AbstractReviewerId = Convert.ToInt32(reader["AbstractReviewerId"]);
          if(reader["PersonId"] != DBNull.Value)
              _abstractReviewer.PersonId = Convert.ToInt32(reader["PersonId"]);
          if(reader["IsInternal"] != DBNull.Value)
              _abstractReviewer.IsInternal = Convert.ToBoolean(reader["IsInternal"]);
          if(reader["DateCreated"] != DBNull.Value)
              _abstractReviewer.DateCreated = Convert.ToDateTime(reader["DateCreated"]);
          if(reader["IsActive"] != DBNull.Value)
              _abstractReviewer.IsActive = Convert.ToBoolean(reader["IsActive"]);
      _abstractReviewer.NewRecord = false;             }             reader.Close();
      return _abstractReviewer;
 }
Exemplo n.º 3
0
 public bool Insert( ref int AbstractReviewerId,  int PersonId,  bool IsInternal,  DateTime DateCreated,  bool IsActive)
 {
     AbstractReviewerDAC abstractreviewerComponent = new AbstractReviewerDAC();
     return abstractreviewerComponent.InsertNewAbstractReviewer( ref AbstractReviewerId,  PersonId,  IsInternal,  DateCreated,  IsActive);
 }
Exemplo n.º 4
0
 public bool Insert(AbstractReviewer abstractreviewer)
 {
     int autonumber = 0;
     AbstractReviewerDAC abstractreviewerComponent = new AbstractReviewerDAC();
     bool endedSuccessfuly = abstractreviewerComponent.InsertNewAbstractReviewer( ref autonumber,  abstractreviewer.PersonId,  abstractreviewer.IsInternal,  abstractreviewer.DateCreated,  abstractreviewer.IsActive);
     if(endedSuccessfuly)
     {
         abstractreviewer.AbstractReviewerId = autonumber;
     }
     return endedSuccessfuly;
 }
Exemplo n.º 5
0
 public void Delete(int Original_AbstractReviewerId)
 {
     AbstractReviewerDAC abstractreviewerComponent = new AbstractReviewerDAC();
     abstractreviewerComponent.DeleteAbstractReviewer(Original_AbstractReviewerId);
 }
Exemplo n.º 6
0
 public int UpdateDataset(System.Data.DataSet dataset)
 {
     AbstractReviewerDAC abstractreviewercomponent = new AbstractReviewerDAC();
     return abstractreviewercomponent.UpdateDataset(dataset);
 }
Exemplo n.º 7
0
 public bool Update( int PersonId,  bool IsInternal,  DateTime DateCreated,  bool IsActive,  int Original_AbstractReviewerId)
 {
     AbstractReviewerDAC abstractreviewerComponent = new AbstractReviewerDAC();
     return abstractreviewerComponent.UpdateAbstractReviewer( PersonId,  IsInternal,  DateCreated,  IsActive,  Original_AbstractReviewerId);
 }
Exemplo n.º 8
0
 public bool Update(AbstractReviewer abstractreviewer ,int old_abstractReviewerId)
 {
     AbstractReviewerDAC abstractreviewerComponent = new AbstractReviewerDAC();
     return abstractreviewerComponent.UpdateAbstractReviewer( abstractreviewer.PersonId,  abstractreviewer.IsInternal,  abstractreviewer.DateCreated,  abstractreviewer.IsActive,  old_abstractReviewerId);
 }