public static int GetChamberCount(string factoryID, string shopID, string eqpID) { int defaultCount = 1; if (string.IsNullOrEmpty(factoryID) || string.IsNullOrEmpty(shopID) || string.IsNullOrEmpty(eqpID)) { return(defaultCount); } var eqps = InputMart.Instance.RTS_EQP; if (eqps == null || eqps.Rows.Count == 0) { return(1); } var find = eqps.Rows.Find(factoryID, shopID, eqpID); if (find != null) { if (LcdHelper.IsChamberType(find.SIM_TYPE)) { return((int)Math.Max(find.CHAMBER_COUNT, 1)); } } return(defaultCount); }
public static bool IsChamberEqp(string factoryID, string shopID, string eqpID) { var chamberType = GetChamberType(factoryID, shopID, eqpID); return(LcdHelper.IsChamberType(chamberType)); }