public OriginalPrice CountOriginalPrice(PriceList price)
        {
            OriginalPrice originalPrice = new OriginalPrice();

            originalPrice.priceType   = price.priceType;
            originalPrice.priceValue  = ConvertCurrencyIDR(price.priceValue);
            originalPrice.priceStatus = price.priceStatus;

            return(originalPrice);
        }
Exemplo n.º 2
0
 public override bool Equals(object obj)
 {
     if (ReferenceEquals(null, obj))
     {
         return(false);
     }
     if (ReferenceEquals(this, obj))
     {
         return(true);
     }
     if (obj.GetType() != this.GetType())
     {
         return(false);
     }
     return(OriginalPrice.Equals(((TaxResponse)obj).OriginalPrice) && FullPrice.Equals(((TaxResponse)obj).FullPrice) && TaxRate.Equals(((TaxResponse)obj).TaxRate));
 }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MallId != 0)
            {
                hash ^= MallId.GetHashCode();
            }
            if (CommodityType != 0)
            {
                hash ^= CommodityType.GetHashCode();
            }
            if (MallSort != 0)
            {
                hash ^= MallSort.GetHashCode();
            }
            if (MallName.Length != 0)
            {
                hash ^= MallName.GetHashCode();
            }
            if (MallDesc.Length != 0)
            {
                hash ^= MallDesc.GetHashCode();
            }
            if (GiftImage.Length != 0)
            {
                hash ^= GiftImage.GetHashCode();
            }
            if (Slot != 0)
            {
                hash ^= Slot.GetHashCode();
            }
            if (MallLabel != 0)
            {
                hash ^= MallLabel.GetHashCode();
            }
            if (LabelImage.Length != 0)
            {
                hash ^= LabelImage.GetHashCode();
            }
            if (RealPrice != 0)
            {
                hash ^= RealPrice.GetHashCode();
            }
            if (OriginalPrice != 0)
            {
                hash ^= OriginalPrice.GetHashCode();
            }
            if (BuyMax != 0)
            {
                hash ^= BuyMax.GetHashCode();
            }
            if (BuyRefreshDay != 0)
            {
                hash ^= BuyRefreshDay.GetHashCode();
            }
            hash ^= award_.GetHashCode();
            if (StartTime != 0L)
            {
                hash ^= StartTime.GetHashCode();
            }
            if (EndTime != 0L)
            {
                hash ^= EndTime.GetHashCode();
            }
            if (Special != false)
            {
                hash ^= Special.GetHashCode();
            }
            return(hash);
        }