コード例 #1
0
 public List<AbstractReviewerAssignment> GetAllByAbstractId(int AbstractId)
 {
     AbstractReviewerAssignmentDAC _abstractReviewerAssignmentComponent = new AbstractReviewerAssignmentDAC();
     IDataReader reader = _abstractReviewerAssignmentComponent.GetAllAbstractReviewerAssignment("AbstractId = " + AbstractId).CreateDataReader();
     List<AbstractReviewerAssignment> _abstractReviewerAssignmentList = new List<AbstractReviewerAssignment>();
     while (reader.Read())
     {
         if (_abstractReviewerAssignmentList == null)
             _abstractReviewerAssignmentList = new List<AbstractReviewerAssignment>();
         AbstractReviewerAssignment _abstractReviewerAssignment = new AbstractReviewerAssignment();
         if (reader["AbstractReviewerAssignmentId"] != DBNull.Value)
             _abstractReviewerAssignment.AbstractReviewerAssignmentId = Convert.ToInt32(reader["AbstractReviewerAssignmentId"]);
         if (reader["AbstractReviewerId"] != DBNull.Value)
             _abstractReviewerAssignment.AbstractReviewerId = Convert.ToInt32(reader["AbstractReviewerId"]);
         if (reader["AbstractId"] != DBNull.Value)
             _abstractReviewerAssignment.AbstractId = Convert.ToInt32(reader["AbstractId"]);
         if (reader["HasAcceptedReview"] != DBNull.Value)
             _abstractReviewerAssignment.HasAcceptedReview = Convert.ToBoolean(reader["HasAcceptedReview"]);
         if (reader["DateAssigned"] != DBNull.Value)
             _abstractReviewerAssignment.DateAssigned = Convert.ToDateTime(reader["DateAssigned"]);
         if (reader["DateAccepted"] != DBNull.Value)
             _abstractReviewerAssignment.DateAccepted = Convert.ToDateTime(reader["DateAccepted"]);
         _abstractReviewerAssignment.NewRecord = false;
         _abstractReviewerAssignmentList.Add(_abstractReviewerAssignment);
     } reader.Close();
     return _abstractReviewerAssignmentList;
 }
コード例 #2
0
 public AbstractReviewerAssignment GetByID(int _abstractReviewerAssignmentId)
 {
     AbstractReviewerAssignmentDAC _abstractReviewerAssignmentComponent = new AbstractReviewerAssignmentDAC();
      IDataReader reader = _abstractReviewerAssignmentComponent.GetByIDAbstractReviewerAssignment(_abstractReviewerAssignmentId);
      AbstractReviewerAssignment _abstractReviewerAssignment = null;
      while(reader.Read())
      {
          _abstractReviewerAssignment = new AbstractReviewerAssignment();
          if(reader["AbstractReviewerAssignmentId"] != DBNull.Value)
              _abstractReviewerAssignment.AbstractReviewerAssignmentId = Convert.ToInt32(reader["AbstractReviewerAssignmentId"]);
          if(reader["AbstractReviewerId"] != DBNull.Value)
              _abstractReviewerAssignment.AbstractReviewerId = Convert.ToInt32(reader["AbstractReviewerId"]);
          if(reader["AbstractId"] != DBNull.Value)
              _abstractReviewerAssignment.AbstractId = Convert.ToInt32(reader["AbstractId"]);
          if(reader["HasAcceptedReview"] != DBNull.Value)
              _abstractReviewerAssignment.HasAcceptedReview = Convert.ToBoolean(reader["HasAcceptedReview"]);
          if(reader["DateAssigned"] != DBNull.Value)
              _abstractReviewerAssignment.DateAssigned = Convert.ToDateTime(reader["DateAssigned"]);
          if(reader["DateAccepted"] != DBNull.Value)
              _abstractReviewerAssignment.DateAccepted = Convert.ToDateTime(reader["DateAccepted"]);
      _abstractReviewerAssignment.NewRecord = false;             }             reader.Close();
      return _abstractReviewerAssignment;
 }
コード例 #3
0
 public void Delete(int Original_AbstractReviewerAssignmentId)
 {
     AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC();
     abstractreviewerassignmentComponent.DeleteAbstractReviewerAssignment(Original_AbstractReviewerAssignmentId);
 }
コード例 #4
0
 public int UpdateDataset(System.Data.DataSet dataset)
 {
     AbstractReviewerAssignmentDAC abstractreviewerassignmentcomponent = new AbstractReviewerAssignmentDAC();
     return abstractreviewerassignmentcomponent.UpdateDataset(dataset);
 }
コード例 #5
0
 public bool Update( int AbstractReviewerId,  int AbstractId,  bool HasAcceptedReview,  DateTime DateAssigned,  DateTime DateAccepted,  int Original_AbstractReviewerAssignmentId)
 {
     AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC();
     return abstractreviewerassignmentComponent.UpdateAbstractReviewerAssignment( AbstractReviewerId,  AbstractId,  HasAcceptedReview,  DateAssigned,  DateAccepted,  Original_AbstractReviewerAssignmentId);
 }
コード例 #6
0
 public bool Update(AbstractReviewerAssignment abstractreviewerassignment ,int old_abstractReviewerAssignmentId)
 {
     AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC();
     return abstractreviewerassignmentComponent.UpdateAbstractReviewerAssignment( abstractreviewerassignment.AbstractReviewerId,  abstractreviewerassignment.AbstractId,  abstractreviewerassignment.HasAcceptedReview,  abstractreviewerassignment.DateAssigned,  abstractreviewerassignment.DateAccepted,  old_abstractReviewerAssignmentId);
 }
コード例 #7
0
        public bool Insert( int AbstractReviewerId,  int AbstractId,  bool HasAcceptedReview,  DateTime DateAssigned,  DateTime DateAccepted)
        {
            AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC();
            int AbstractReviewerAssignmentId = 0;

            return abstractreviewerassignmentComponent.InsertNewAbstractReviewerAssignment( ref AbstractReviewerAssignmentId,  AbstractReviewerId,  AbstractId,  HasAcceptedReview,  DateAssigned,  DateAccepted);
        }
コード例 #8
0
 public bool Insert(AbstractReviewerAssignment abstractreviewerassignment)
 {
     int autonumber = 0;
     AbstractReviewerAssignmentDAC abstractreviewerassignmentComponent = new AbstractReviewerAssignmentDAC();
     bool endedSuccessfuly = abstractreviewerassignmentComponent.InsertNewAbstractReviewerAssignment( ref autonumber,  abstractreviewerassignment.AbstractReviewerId,  abstractreviewerassignment.AbstractId,  abstractreviewerassignment.HasAcceptedReview,  abstractreviewerassignment.DateAssigned,  abstractreviewerassignment.DateAccepted);
     if(endedSuccessfuly)
     {
         abstractreviewerassignment.AbstractReviewerAssignmentId = autonumber;
     }
     return endedSuccessfuly;
 }