public EUserCourseTime() { ReNewDateTime = DateTime.MinValue; if (ReNewDateTime == DateTime.MinValue) { InValidDateTime = CreateDateTime.AddYears(1); } else { InValidDateTime = ReNewDateTime.AddYears(1); } }
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 ) ); }
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); } }
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)); }
public void AddToDataTable(DataTable table) { table.Rows.Add(IncidentNumber, StoreNumber, ContactName, CreateDateTime.ToString(Database.dateFormat), ContactType, ProblemType, Status, Priority, Convert.ToInt32(PosManual), Problem); }