diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DaCangFactory.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DaCangFactory.cs index f18d332..695ec9d 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DaCangFactory.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/LjDeliver/DaCangFactory.cs @@ -8,104 +8,132 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver { public class DaCangFactory { - public static IDictionary GetDefault() + public static IDictionary GetDefault() { - IDictionary keyValuePairs=new - Dictionary(); - keyValuePairs.Add("小料1", new DaCangValue() + IDictionary keyValuePairs = new + Dictionary { - 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 - }); + { + "小料1", + new DaCangValue() + { + volume = 150, + Density = 0.45f + } + }, + { + "小料2", + 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; } @@ -118,9 +146,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver /// public int volume { get; set; } - /// - /// 密度 - /// + /// + /// 密度 + /// public float Density { get; set; } } }