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 GetDefault() { IDictionary keyValuePairs = new Dictionary { { "小料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 { /// /// 体积 /// public int volume { get; set; } /// /// 密度 /// public float Density { get; set; } } }