Пример #1
0
 internal bool IsLessThan(Goods goods, PriceUnit priceUnit)
 {
     if (Value <= 0)
     {
         return(false);
     }
     if (priceUnit.UnitType == UnitTypeEnum.GJ)
     {
         return(_value < goods.Weight);
     }
     else
     {
         return(_value < goods.Volume);
     }
 }
Пример #2
0
 public void SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.UnitType.ToString();
 }
Пример #3
0
 /// <summary>
 /// 设置单位
 /// </summary>
 /// <returns></returns>
 public TransportUnitPrice SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.ToString();
     return(this);
 }
Пример #4
0
 /// <summary>
 /// 设置计价单位
 /// </summary>
 /// <param name="unit"></param>
 /// <returns></returns>
 public UnloadGoodsPrice SetPriceUnit(PriceUnit unit)
 {
     _priceUnit = unit;
     _unit      = unit.ToString();
     return(this);
 }
Пример #5
0
 public UpstairsPrice SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.ToString();
     return(this);
 }