37 lines
700 B
C#
37 lines
700 B
C#
using System;
|
|
|
|
using System.Linq;
|
|
|
|
using CustomOpenAddins.Models;
|
|
|
|
/// <summary>
|
|
/// 支护类型
|
|
/// </summary>
|
|
public class Proof
|
|
{
|
|
public Proof(string typeOfSupport)
|
|
{
|
|
TypeOfSupport = typeOfSupport;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"支护类型:{TypeOfSupport};工程量:{Amount}{Measurement.Unit.GetDescription()}";
|
|
}
|
|
/// <summary>
|
|
/// 所属计量方式
|
|
/// </summary>
|
|
public Measurement Measurement { get; set; }
|
|
|
|
/// <summary>
|
|
/// 工程量
|
|
/// </summary>
|
|
public double Amount { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 支护类型
|
|
/// </summary>
|
|
public string TypeOfSupport { get; }
|
|
}
|
|
|