Exemplo n.º 1
0
 /// <summary>
 /// Перед вызовом
 /// </summary>
 public override void Calc()
 {
     // Масса ед
     Weight = RoundHelper.Round3Digits(WeightUnit);
     // Масса общая
     WeightTotal = RoundHelper.Round2Digits(Weight * Meters);
     Amount      = WeightTotal;
 }
Exemplo n.º 2
0
 public virtual void Calc()
 {
     // Кол стержней
     if (Width != 0 && Step != 0)
     {
         Count = CalcCountByStep(Width, Step) * Rows;
     }
     // Масса ед. кг.
     Weight = RoundHelper.Round3Digits(WeightUnit * ConvertMmToMLength(Length));
     // Масса всех стержней
     WeightTotal = RoundHelper.Round2Digits(Weight * Count);
     Amount      = WeightTotal;
 }
Exemplo n.º 3
0
 public void Calc()
 {
     // Масса ед. кг.
     Weight = RoundHelper.Round3Digits(WeightUnit * ConvertMmToMLength(Length));
     Amount = Weight;
 }