Exemplo n.º 1
0
        public static ChamberType GetChamberType(string factoryID, string shopID, string eqpID)
        {
            if (string.IsNullOrEmpty(factoryID) ||
                string.IsNullOrEmpty(shopID) ||
                string.IsNullOrEmpty(eqpID))
            {
                return(ChamberType.NONE);
            }

            var eqps = InputMart.Instance.RTS_EQP;

            if (eqps == null || eqps.Rows.Count == 0)
            {
                return(ChamberType.NONE);
            }

            var find = eqps.Rows.Find(factoryID, shopID, eqpID);

            if (find != null)
            {
                return(LcdHelper.GetChamberType(find.SIM_TYPE));
            }

            return(ChamberType.NONE);
        }