终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

PolymerBatching.cs 4.8 KiB

1 anno fa
1 anno fa
1 anno fa
1 anno fa
1 anno fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.MorkT_BarCounter
  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. MilkTea,
  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. {"60",GOODS_TYPE.MilkTea },
  80. //{Juicer_MAIN_BATCHIN1_LOC,GOODS_TYPE.JUICE},
  81. //{Juicer_MAIN_BATCHIN2_LOC,GOODS_TYPE.JUICE},
  82. //{Juicer_MAIN_BATCHIN3_LOC,GOODS_TYPE.JUICE},
  83. //{Juicer_MAIN_BATCHIN4_LOC,GOODS_TYPE.JUICE},
  84. //{Juicer_MAIN_BATCHIN5_LOC,GOODS_TYPE.JUICE},
  85. //{Juicer_MAIN_BATCHIN6_LOC,GOODS_TYPE.JUICE},
  86. //{Juicer_MAIN_BATCHIN7_LOC,GOODS_TYPE.JUICE},
  87. //{Juicer_MAIN_BATCHIN8_LOC,GOODS_TYPE.JUICE},
  88. };
  89. public GOODS_TYPE GoodsType { get; set; }
  90. public BATCHING_CLASS BatchingClass { get; set; }
  91. private string loc;
  92. public string Loc
  93. {
  94. get { return loc; }
  95. set
  96. {
  97. loc = value;
  98. if (GOODS_TYPES.ContainsKey(loc))
  99. GoodsType = GOODS_TYPES[loc];
  100. switch (loc)
  101. {
  102. case COFFEE_HOLDER_LOC:
  103. case TEA_HOLDER_LOC:
  104. BatchingClass = BATCHING_CLASS.HOLDER;
  105. break;
  106. default:
  107. BatchingClass = BATCHING_CLASS.MAIN_MATERIAL;
  108. break;
  109. }
  110. }
  111. }
  112. internal static Dictionary<string, PolymerBatching> BuildAll()
  113. {
  114. Dictionary<string, PolymerBatching> temp = new Dictionary<string, PolymerBatching>();
  115. foreach (var item in GOODS_TYPES)
  116. {
  117. temp.Add(item.Key, new PolymerBatching() { Loc = item.Key });
  118. }
  119. return temp;
  120. }
  121. //internal static IC_SE GetIceCreamSE(string loc, out string sence)
  122. //{
  123. // switch (loc)
  124. // {
  125. // case Juicer_MAIN_BATCHIN1_LOC:
  126. // sence = JaKaHelper.SENCE_接果汁1;
  127. // return IC_SE.SE_1;
  128. // case Juicer_MAIN_BATCHIN2_LOC:
  129. // sence = JaKaHelper.SENCE_接果汁2;
  130. // return IC_SE.SE_2;
  131. // case Juicer_MAIN_BATCHIN3_LOC:
  132. // sence = JaKaHelper.SENCE_接果汁3;
  133. // return IC_SE.SE_3;
  134. // default:
  135. // sence = JaKaHelper.SENCE_接果汁1;
  136. // return IC_SE.SE_1;
  137. // }
  138. //}
  139. }
  140. }