//增加一个盒号 private void AddOneCase(String msg) { if (hashSetCases.Add(msg)) { ViewGridAddRow(msg); if (hashSetCases.Count == BaseData.CapSum) { Console.WriteLine("生成箱单开始" + DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss")); Guid boxGuid = Guid.NewGuid(); AccessDB.CreatBoxOrder(hashSetCases, boxGuid.ToString()); AddOneNoUpBox(boxGuid.ToString()); ViewGridClear(); Console.WriteLine("生成箱单结束" + DateTime.Now.ToString("yyyy/MM/dd hh:mm:ss")); } } }