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(); keyValuePairs.Add("小料1", new DaCangValue() { volume = 150, Density = 0.69f }); keyValuePairs.Add("小料2", new DaCangValue() { volume = 150, Density = 0.87f }); keyValuePairs.Add("木粉", new DaCangValue() { volume = 300, Density = 0.4f }); keyValuePairs.Add("碳酸钙", new DaCangValue() { volume = 300, Density = 1.7f }); keyValuePairs.Add("木薯粉", new DaCangValue() { volume = 300, Density = 0.71f }); keyValuePairs.Add("玉米粉", new DaCangValue() { volume = 300, Density = 0.69f }); keyValuePairs.Add("碳粉1", new DaCangValue() { volume = 700, Density = 0.64f }); keyValuePairs.Add("碳粉2", new DaCangValue() { volume = 700, Density = 0.65f }); keyValuePairs.Add("碳粉3", new DaCangValue() { volume = 700, Density = 0.69f }); keyValuePairs.Add("碳粉4", new DaCangValue() { volume = 700, Density = 0.77f }); keyValuePairs.Add("碳粉5", new DaCangValue() { volume = 700, Density = 0.64f }); keyValuePairs.Add("碳粉6", new DaCangValue() { volume = 700, Density = 0.65f }); keyValuePairs.Add("碳粉7", new DaCangValue() { volume = 700, Density = 0.69f }); keyValuePairs.Add("碳粉8", new DaCangValue() { volume = 700, Density = 0.77f }); keyValuePairs.Add("回收罐", new DaCangValue() { volume = 50, Density = 0.69f }); return keyValuePairs; } } public class DaCangValue { /// /// 体积 /// public int volume { get; set; } /// /// 密度 /// public float Density { get; set; } } }