示例#1
0
        /// <summary>
        /// 空砖信号后,情况轨道库存
        /// </summary>
        /// <param name="take_track_id"></param>
        public void ClearTrackEmtpy(uint take_track_id)
        {
            List <Stock> stocks = StockList.FindAll(c => c.track_id == take_track_id);

            if (stocks.Count > 0)
            {
                PubMaster.Mod.GoodSql.DeleteStock(take_track_id);
                StockList.RemoveAll(c => c.track_id == take_track_id);
                RemoveTrackSum(take_track_id);
            }
        }
示例#2
0
 //检查并更新轨道库存为空
 public void RemoveStock(uint trackid)
 {
     StockList.RemoveAll(c => c.track_id == trackid);
     PubMaster.Mod.GoodSql.DeleteStock(trackid);
 }