You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DaCangFactory.cs

155 lines
4.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.LjDeliver
{
public class DaCangFactory
{
public static IDictionary<String, DaCangValue> GetDefault()
{
IDictionary<String, DaCangValue> keyValuePairs = new
Dictionary<String, DaCangValue>
{
{
"小料1",
new DaCangValue()
{
volume = 150,
Density = 0.45f
}
},
{
"碳粉9",
new DaCangValue()
{
volume = 150,
Density = 1.044f
}
},
{
"木粉",
new DaCangValue()
{
volume = 300,
Density = 0.166f
}
},
{
"碳酸钙",
new DaCangValue()
{
volume = 300,
Density = 0.437f
}
},
{
"木薯粉",
new DaCangValue()
{
volume = 300,
Density = 0.349f
}
},
{
"玉米粉",
new DaCangValue()
{
volume = 300,
Density = 0.6f
}
},
{
"碳粉1",
new DaCangValue()
{
volume = 700,
Density = 0.3f
}
},
{
"碳粉2",
new DaCangValue()
{
volume = 700,
Density = 0.3f
}
},
{
"碳粉3",
new DaCangValue()
{
volume = 700,
Density = 0.33f
}
},
{
"碳粉4",
new DaCangValue()
{
volume = 700,
Density = 0.569f
}
},
{
"碳粉5",
new DaCangValue()
{
volume = 700,
Density = 0.64f
}
},
{
"碳粉6",
new DaCangValue()
{
volume = 700,
Density = 0.65f
}
},
{
"碳粉7",
new DaCangValue()
{
volume = 700,
Density = 0.69f
}
},
{
"碳粉8",
new DaCangValue()
{
volume = 700,
Density = 0.77f
}
},
{
"回收罐",
new DaCangValue()
{
volume = 50,
Density = 0.279f
}
}
};
return keyValuePairs;
}
}
public class DaCangValue
{
/// <summary>
/// 体积
/// </summary>
public int volume { get; set; }
/// <summary>
/// 密度
/// </summary>
public float Density { get; set; }
}
}