public void disPlay900() { Light temp_light = null; que_light.TryDequeue(out temp_light); //数据读取........................................................................... var skuinfo = new List <string>(); //前面数字 var quantities = new List <int>(); //后面数字 skuinfo.Add(temp_light.id.ToString()); quantities.Add(Convert.ToInt32(temp_light.qty)); //显示 bool isSucceed = this.xgate.Display900U(temp_light.machineNum, skuinfo, quantities, 0x2d, 0, true); if (!isSucceed) { string str = "机架号:" + temp_light.machineNum.ToString() + "\r\n 数量:" + skuinfo; IniHelper.WriteInfo(str); } }
void xgate_PickedInforCallback(XGate xgate, Device PTLDevice, string[] contents, int[] pickedQuantities, bool FnPressed) { try { this.BeginInvoke(new MethodInvoker(() => { websocket.LightSortReturn(int.Parse(contents[0]), pickedQuantities[0]); xgate.Clear900U(PTLDevice.Address); //xgate.Close(); string info = "设备类型:" + PTLDevice + "\r\n" + "货位号:" + contents[0] + "\r\n" + "拣货数量:" + pickedQuantities[0]; IniHelper.WriteInfo(info); if (que_light.Count != 0) { disPlay900(); } })); } catch (Exception ex) { IniHelper.WriteLog(ex); } }