终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

PolymerBatching.cs 4.8 KiB

il y a 2 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.MorkTLebaiJC
  7. {
  8. internal enum GOODS_TYPE
  9. {
  10. /// <summary>
  11. /// 未知
  12. /// </summary>
  13. NEITHER,
  14. /// <summary>
  15. /// 咖啡
  16. /// </summary>
  17. COFFEE,
  18. /// <summary>
  19. /// 果汁
  20. /// </summary>
  21. JUICE,
  22. /// <summary>
  23. /// 茶水
  24. /// </summary>
  25. TEA,
  26. /// <summary>
  27. /// 水
  28. /// </summary>
  29. WATER,
  30. /// <summary>
  31. /// 杯子
  32. /// </summary>
  33. CUP
  34. }
  35. internal enum BATCHING_CLASS
  36. {
  37. HOLDER,
  38. MAIN_MATERIAL,
  39. }
  40. internal class PolymerBatching
  41. {
  42. internal const string Juicer_MAIN_BATCHIN1_LOC = "52";
  43. internal const string Juicer_MAIN_BATCHIN2_LOC = "53";
  44. internal const string Juicer_MAIN_BATCHIN3_LOC = "54";
  45. internal const string Juicer_MAIN_BATCHIN4_LOC = "55";
  46. //internal const string Juicer_MAIN_BATCHIN5_LOC = "56";
  47. //internal const string Juicer_MAIN_BATCHIN6_LOC = "57";
  48. //internal const string Juicer_MAIN_BATCHIN7_LOC = "58";
  49. //internal const string Juicer_MAIN_BATCHIN8_LOC = "59";
  50. internal const string COFFEE_HOLDER_LOC = "30";
  51. internal const string TEA_HOLDER_LOC = "51";
  52. public static Dictionary<string, GOODS_TYPE> GOODS_TYPES = new Dictionary<string, GOODS_TYPE>() {
  53. {"1", GOODS_TYPE.COFFEE},
  54. {"2", GOODS_TYPE.COFFEE},
  55. {"3", GOODS_TYPE.COFFEE},
  56. {"4", GOODS_TYPE.COFFEE},
  57. {"5", GOODS_TYPE.COFFEE},
  58. {"6", GOODS_TYPE.COFFEE},
  59. {"7", GOODS_TYPE.COFFEE},
  60. {"8", GOODS_TYPE.COFFEE},
  61. {"9", GOODS_TYPE.COFFEE},
  62. {"10",GOODS_TYPE.COFFEE},
  63. {"11",GOODS_TYPE.COFFEE},
  64. {"12",GOODS_TYPE.COFFEE},
  65. {"13",GOODS_TYPE.COFFEE},
  66. {"14",GOODS_TYPE.COFFEE},
  67. {"15",GOODS_TYPE.COFFEE},
  68. {"16",GOODS_TYPE.COFFEE},
  69. {"17",GOODS_TYPE.COFFEE},
  70. {"18",GOODS_TYPE.COFFEE},
  71. {"19",GOODS_TYPE.COFFEE},
  72. {"20",GOODS_TYPE.COFFEE},
  73. {"21",GOODS_TYPE.COFFEE},
  74. {"22",GOODS_TYPE.COFFEE},
  75. {"23",GOODS_TYPE.COFFEE},
  76. {"24",GOODS_TYPE.COFFEE},
  77. {"25",GOODS_TYPE.COFFEE},
  78. { COFFEE_HOLDER_LOC,GOODS_TYPE.CUP},
  79. {"56",GOODS_TYPE.TEA },
  80. {"61",GOODS_TYPE.WATER },
  81. {Juicer_MAIN_BATCHIN1_LOC,GOODS_TYPE.JUICE},
  82. {Juicer_MAIN_BATCHIN2_LOC,GOODS_TYPE.JUICE},
  83. {Juicer_MAIN_BATCHIN3_LOC,GOODS_TYPE.JUICE},
  84. {Juicer_MAIN_BATCHIN4_LOC,GOODS_TYPE.JUICE},
  85. //{Juicer_MAIN_BATCHIN5_LOC,GOODS_TYPE.JUICE},
  86. //{Juicer_MAIN_BATCHIN6_LOC,GOODS_TYPE.JUICE},
  87. //{Juicer_MAIN_BATCHIN7_LOC,GOODS_TYPE.JUICE},
  88. //{Juicer_MAIN_BATCHIN8_LOC,GOODS_TYPE.JUICE},
  89. };
  90. public GOODS_TYPE GoodsType { get; set; }
  91. public BATCHING_CLASS BatchingClass { get; set; }
  92. private string loc;
  93. public string Loc
  94. {
  95. get { return loc; }
  96. set
  97. {
  98. loc = value;
  99. if (GOODS_TYPES.ContainsKey(loc))
  100. GoodsType = GOODS_TYPES[loc];
  101. switch (loc)
  102. {
  103. case COFFEE_HOLDER_LOC:
  104. case TEA_HOLDER_LOC:
  105. BatchingClass = BATCHING_CLASS.HOLDER;
  106. break;
  107. default:
  108. BatchingClass = BATCHING_CLASS.MAIN_MATERIAL;
  109. break;
  110. }
  111. }
  112. }
  113. internal static Dictionary<string, PolymerBatching> BuildAll()
  114. {
  115. Dictionary<string, PolymerBatching> temp = new Dictionary<string, PolymerBatching>();
  116. foreach (var item in GOODS_TYPES)
  117. {
  118. temp.Add(item.Key, new PolymerBatching() { Loc = item.Key });
  119. }
  120. return temp;
  121. }
  122. //internal static IC_SE GetIceCreamSE(string loc, out string sence)
  123. //{
  124. // switch (loc)
  125. // {
  126. // case Juicer_MAIN_BATCHIN1_LOC:
  127. // sence = JaKaHelper.SENCE_接果汁1;
  128. // return IC_SE.SE_1;
  129. // case Juicer_MAIN_BATCHIN2_LOC:
  130. // sence = JaKaHelper.SENCE_接果汁2;
  131. // return IC_SE.SE_2;
  132. // case Juicer_MAIN_BATCHIN3_LOC:
  133. // sence = JaKaHelper.SENCE_接果汁3;
  134. // return IC_SE.SE_3;
  135. // default:
  136. // sence = JaKaHelper.SENCE_接果汁1;
  137. // return IC_SE.SE_1;
  138. // }
  139. //}
  140. }
  141. }