public List <Goods> GetStockOutGoodsList(uint filterarea) { List <uint> goodsids = StockList.FindAll(c => c.area == filterarea && (c.TrackType == TrackTypeE.储砖_出 || c.TrackType == TrackTypeE.储砖_出入)).Select(t => t.goods_id).ToList(); return(GoodsList.FindAll(c => c.area_id == filterarea && goodsids.Contains(c.id))); }
public List <Goods> GetGoodsList(uint filterarea) { if (filterarea == 0) { return(GetGoodsList()); } return(GoodsList.FindAll(c => c.area_id == filterarea)); }