/// <summary> /// 检查高库存预警状态 /// </summary> /// <param name="wareHouse"></param> /// <returns></returns> public bool CheckStockHighWarning(string wareHouse) { bool result = false; string condition = string.Format("WareHouse='{0}' ", wareHouse); IStock dal = baseDal as IStock; List <StockInfo> stockList = dal.Find(condition); foreach (StockInfo info in stockList) { if (info.HighWarning > 0 && info.StockQuantity >= info.HighWarning) { result = true; } } return(result); }