Ejemplo n.º 1
0
 public EUserCourseTime()
 {
     ReNewDateTime = DateTime.MinValue;
     if (ReNewDateTime == DateTime.MinValue)
     {
         InValidDateTime = CreateDateTime.AddYears(1);
     }
     else
     {
         InValidDateTime = ReNewDateTime.AddYears(1);
     }
 }
Ejemplo n.º 2
0
 public void CreateDateTimeHandler(CreateDateTime request)
 {
     request.ResponsePort.Post(
         new DateTime(
             request.Body.Year
             , request.Body.Month
             , request.Body.Day
             , request.Body.Hour
             , request.Body.Minute
             , request.Body.Second
             , request.Body.Millisecond
             )
         );
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Source != null ? Source.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Aim != null ? Aim.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsCofidentialityViolation.GetHashCode();
         hashCode = (hashCode * 397) ^ IsIntegrityViolation.GetHashCode();
         hashCode = (hashCode * 397) ^ IsAvailabilityViolation.GetHashCode();
         hashCode = (hashCode * 397) ^ CreateDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdateDateTime.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
 public bool Equals(ExcelRow other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Name == other.Name &&
            Description == other.Description &&
            Source == other.Source &&
            Aim == other.Aim &&
            IsCofidentialityViolation == other.IsCofidentialityViolation &&
            IsIntegrityViolation == other.IsIntegrityViolation &&
            IsAvailabilityViolation == other.IsAvailabilityViolation &&
            CreateDateTime.Equals(other.CreateDateTime) &&
            UpdateDateTime.Equals(other.UpdateDateTime));
 }
Ejemplo n.º 5
0
 public void AddToDataTable(DataTable table)
 {
     table.Rows.Add(IncidentNumber, StoreNumber, ContactName, CreateDateTime.ToString(Database.dateFormat),
                    ContactType, ProblemType, Status, Priority, Convert.ToInt32(PosManual), Problem);
 }