Esempio n. 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);
     }
 }
Esempio n. 2
0
 public void SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.UnitType.ToString();
 }
Esempio n. 3
0
 /// <summary>
 /// 设置单位
 /// </summary>
 /// <returns></returns>
 public TransportUnitPrice SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.ToString();
     return(this);
 }
Esempio n. 4
0
 /// <summary>
 /// 设置计价单位
 /// </summary>
 /// <param name="unit"></param>
 /// <returns></returns>
 public UnloadGoodsPrice SetPriceUnit(PriceUnit unit)
 {
     _priceUnit = unit;
     _unit      = unit.ToString();
     return(this);
 }
Esempio n. 5
0
 public UpstairsPrice SetUnit(PriceUnit priceUnit)
 {
     _unit = priceUnit.ToString();
     return(this);
 }