public bool Equals(OpportunityDetail other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DetailId == other.DetailId ||
                     DetailId != null &&
                     DetailId.Equals(other.DetailId)
                     ) &&
                 (
                     TextValue == other.TextValue ||
                     TextValue != null &&
                     TextValue.Equals(other.TextValue)
                 ) &&
                 (
                     DttmValue == other.DttmValue ||
                     DttmValue != null &&
                     DttmValue.Equals(other.DttmValue)
                 ) &&
                 (
                     IntValue == other.IntValue ||
                     IntValue != null &&
                     IntValue.Equals(other.IntValue)
                 ));
        }
        public int CompareTo(ComplexityAndSalaryOnUnitByWorkGuild other)
        {
            if (ReferenceEquals(this, other))
            {
                return(0);
            }

            if (ReferenceEquals(null, other))
            {
                return(1);
            }
            var workGuildIdComparison = WorkGuildId.CompareTo(other.WorkGuildId);

            if (workGuildIdComparison != 0)
            {
                return(workGuildIdComparison);
            }
            var areaIdComparison = AreaId.CompareTo(other.AreaId);

            if (areaIdComparison != 0)
            {
                return(areaIdComparison);
            }
            var detalIdComparison = DetailId.CompareTo(other.DetailId);

            if (detalIdComparison != 0)
            {
                return(detalIdComparison);
            }
            var vstkComparison = Vstk.CompareTo(other.Vstk);

            if (vstkComparison != 0)
            {
                return(vstkComparison);
            }
            var rstkComparison = Rstk.CompareTo(other.Rstk);

            if (rstkComparison != 0)
            {
                return(rstkComparison);
            }
            var nadbComparison = Nadb.CompareTo(other.Nadb);

            if (nadbComparison != 0)
            {
                return(nadbComparison);
            }
            return(Prtnorm.CompareTo(other.Prtnorm));
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DetailId.GetHashCode();
         hashCode = (hashCode * 397) ^ (DetailName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(DetailName) : 0);
         hashCode = (hashCode * 397) ^ (DetailMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(DetailMark) : 0);
         hashCode = (hashCode * 397) ^ WorkGuildId.GetHashCode();
         hashCode = (hashCode * 397) ^ AreaId.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 41;
         if (DetailId != null)
         {
             hash = hash * 59 + DetailId.GetHashCode();
         }
         if (TextValue != null)
         {
             hash = hash * 59 + TextValue.GetHashCode();
         }
         if (DttmValue != null)
         {
             hash = hash * 59 + DttmValue.GetHashCode();
         }
         if (IntValue != null)
         {
             hash = hash * 59 + IntValue.GetHashCode();
         }
         return(hash);
     }
 }