|
|
@@ -6,19 +6,35 @@ using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace BPASmartClient.MorkTM |
|
|
|
{ |
|
|
|
public enum Material |
|
|
|
public enum MaterialPosion |
|
|
|
{ |
|
|
|
Material_Top_1, Material_Top_2, Material_Top_3, Material_Top_4, Material_Top_5, Material_Top_6, |
|
|
|
Material_Mid_1, Material_Mid_2, Material_Mid_3, Material_Mid_4, Material_Mid_5, Material_Mid_6, Material_Mid_7, Material_Mid_8, Material_Mid_9, Material_Mid_10, |
|
|
|
Marerial_Bottom_1, Marerial_Bottom_2, Marerial_Bottom_3, Marerial_Top_4,Marerial_Bottom_5, Marerial_Bottom_6 |
|
|
|
Marerial_Bottom_1, Marerial_Bottom_2, Marerial_Bottom_3, Marerial_Bottom_4, Marerial_Bottom_5, Marerial_Bottom_6, |
|
|
|
Matetial_Tea_1, Matetial_Tea_2, Matetial_Tea_3, Matetial_Tea_4, Matetial_Tea_5, Matetial_Tea_6 |
|
|
|
|
|
|
|
} |
|
|
|
public enum TeaStorageBox |
|
|
|
public enum OutMaterialPosion |
|
|
|
{ |
|
|
|
TeaStorageBox_1, TeaStorageBox_2, TeaStorageBox_3, TeaStorageBox_4, TeaStorageBox_5, TeaStorageBox_6 |
|
|
|
OutMaterial_1, OutMaterial_2, OutMaterial_3, OutMaterial_4, OutMaterial_5, OutMaterial_6, OutMaterial_7, OutMaterial_8, OutMaterial_9, OutMaterial_10 |
|
|
|
} |
|
|
|
|
|
|
|
public class PolymerBatching |
|
|
|
{ |
|
|
|
public static void GetMaterialInfo() |
|
|
|
{ |
|
|
|
Array arrayPosion = Enum.GetValues(typeof(MaterialPosion)); |
|
|
|
Array arrayOutPosion = Enum.GetValues(typeof(OutMaterialPosion)); |
|
|
|
for (int i = 0; i < arrayPosion.Length; i++) |
|
|
|
{ |
|
|
|
int j = (int)Math.Ceiling((double)(i + 1) / 3) - 1; |
|
|
|
GoodsMaterialPosion.Add((MaterialPosion)arrayPosion.GetValue(i), (OutMaterialPosion)arrayOutPosion.GetValue(j)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static Dictionary<MaterialPosion, OutMaterialPosion> GoodsMaterialPosion = new Dictionary<MaterialPosion, OutMaterialPosion>(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |