|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkT_BarCounter
- {
- internal enum GOODS_TYPE
- {
- /// <summary>
- /// 未知
- /// </summary>
- NEITHER,
- /// <summary>
- /// 咖啡
- /// </summary>
- COFFEE,
- /// <summary>
- /// 果汁
- /// </summary>
- JUICE,
- /// <summary>
- /// 茶水
- /// </summary>
- TEA,
- /// <summary>
- /// 水
- /// </summary>
- WATER,
- /// <summary>
- /// 杯子
- /// </summary>
- CUP
- }
-
- internal enum BATCHING_CLASS
- {
- HOLDER,
- MAIN_MATERIAL,
- }
-
- internal class PolymerBatching
- {
- internal const string Juicer_MAIN_BATCHIN1_LOC = "52";
- internal const string Juicer_MAIN_BATCHIN2_LOC = "53";
- internal const string Juicer_MAIN_BATCHIN3_LOC = "54";
- internal const string Juicer_MAIN_BATCHIN4_LOC = "55";
- //internal const string Juicer_MAIN_BATCHIN5_LOC = "56";
- //internal const string Juicer_MAIN_BATCHIN6_LOC = "57";
- //internal const string Juicer_MAIN_BATCHIN7_LOC = "58";
- //internal const string Juicer_MAIN_BATCHIN8_LOC = "59";
-
- internal const string COFFEE_HOLDER_LOC = "30";
- internal const string TEA_HOLDER_LOC = "51";
- public static Dictionary<string, GOODS_TYPE> GOODS_TYPES = new Dictionary<string, GOODS_TYPE>() {
- {"1", GOODS_TYPE.COFFEE},
- {"2", GOODS_TYPE.COFFEE},
- {"3", GOODS_TYPE.COFFEE},
- {"4", GOODS_TYPE.COFFEE},
- {"5", GOODS_TYPE.COFFEE},
- {"6", GOODS_TYPE.COFFEE},
- {"7", GOODS_TYPE.COFFEE},
- {"8", GOODS_TYPE.COFFEE},
- {"9", GOODS_TYPE.COFFEE},
- {"10",GOODS_TYPE.COFFEE},
- {"11",GOODS_TYPE.COFFEE},
- {"12",GOODS_TYPE.COFFEE},
- {"13",GOODS_TYPE.COFFEE},
- {"14",GOODS_TYPE.COFFEE},
- {"15",GOODS_TYPE.COFFEE},
- {"16",GOODS_TYPE.COFFEE},
- {"17",GOODS_TYPE.COFFEE},
- {"18",GOODS_TYPE.COFFEE},
- {"19",GOODS_TYPE.COFFEE},
- {"20",GOODS_TYPE.COFFEE},
- {"21",GOODS_TYPE.COFFEE},
- {"22",GOODS_TYPE.COFFEE},
- {"23",GOODS_TYPE.COFFEE},
- {"24",GOODS_TYPE.COFFEE},
- {"25",GOODS_TYPE.COFFEE},
- { COFFEE_HOLDER_LOC,GOODS_TYPE.CUP},
- {"56",GOODS_TYPE.TEA },
- {"61",GOODS_TYPE.WATER },
- {Juicer_MAIN_BATCHIN1_LOC,GOODS_TYPE.JUICE},
- {Juicer_MAIN_BATCHIN2_LOC,GOODS_TYPE.JUICE},
- {Juicer_MAIN_BATCHIN3_LOC,GOODS_TYPE.JUICE},
- {Juicer_MAIN_BATCHIN4_LOC,GOODS_TYPE.JUICE},
- //{Juicer_MAIN_BATCHIN5_LOC,GOODS_TYPE.JUICE},
- //{Juicer_MAIN_BATCHIN6_LOC,GOODS_TYPE.JUICE},
- //{Juicer_MAIN_BATCHIN7_LOC,GOODS_TYPE.JUICE},
- //{Juicer_MAIN_BATCHIN8_LOC,GOODS_TYPE.JUICE},
- };
-
- public GOODS_TYPE GoodsType { get; set; }
- public BATCHING_CLASS BatchingClass { get; set; }
- private string loc;
-
- public string Loc
- {
- get { return loc; }
- set
- {
- loc = value;
- if (GOODS_TYPES.ContainsKey(loc))
- GoodsType = GOODS_TYPES[loc];
- switch (loc)
- {
- case COFFEE_HOLDER_LOC:
- case TEA_HOLDER_LOC:
- BatchingClass = BATCHING_CLASS.HOLDER;
- break;
- default:
- BatchingClass = BATCHING_CLASS.MAIN_MATERIAL;
- break;
- }
- }
- }
-
- internal static Dictionary<string, PolymerBatching> BuildAll()
- {
- Dictionary<string, PolymerBatching> temp = new Dictionary<string, PolymerBatching>();
- foreach (var item in GOODS_TYPES)
- {
- temp.Add(item.Key, new PolymerBatching() { Loc = item.Key });
- }
- return temp;
- }
-
- //internal static IC_SE GetIceCreamSE(string loc, out string sence)
- //{
- // switch (loc)
- // {
- // case Juicer_MAIN_BATCHIN1_LOC:
- // sence = JaKaHelper.SENCE_接果汁1;
- // return IC_SE.SE_1;
-
- // case Juicer_MAIN_BATCHIN2_LOC:
- // sence = JaKaHelper.SENCE_接果汁2;
- // return IC_SE.SE_2;
-
- // case Juicer_MAIN_BATCHIN3_LOC:
- // sence = JaKaHelper.SENCE_接果汁3;
- // return IC_SE.SE_3;
-
- // default:
- // sence = JaKaHelper.SENCE_接果汁1;
- // return IC_SE.SE_1;
- // }
- //}
- }
- }
|