添加项目文件。
This commit is contained in:
36
ExportExcelTest/Models/Proof.cs
Normal file
36
ExportExcelTest/Models/Proof.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user