22
schangxiang@126.com
2024-12-10 c733a6f12bc6f8e7f206ef8173e8991041248c36
CC/iWareCC_ASRS/ThreadService/04_BZ21(搬运整垛机器人)/2、DataProcess_BZ21_IssueTask.cs
@@ -78,12 +78,20 @@
                            cartonhigh = (short)upiObj.Info3;
                            cartonwidth = (short)upiObj.Info2;
                            var ngFlag = false;
                            var queryFlag = (int)UpiFlagEnum.NG;
                            var ngCount = upilist.Count(x => x.UpiFlag == queryFlag);
                            if (ngCount > 0)
                            {
                                ngFlag = true;
                            }
                            //杩欓噷涓嬪彂 浠诲姟
                            using (StationServiceClient client = new StationServiceClient())
                            {
                                var plcres = client.WriteSurroundTaskInfo((int)EDevice.Station, rgvLocation, short.Parse(task.TaskNo),
                                      (short)upilength, (short)upiwidth, cartonhigh, cartonwidth, 0, 0);
                                      (short)upilength, (short)upiwidth, cartonhigh, cartonwidth, 0, 0, ngFlag);
                                if (!plcres.result)
                                {
                                    SystemWarningMsg._lbl_Alert_DataProcess_BZ21_IssueTask = $"{rgvLocation.ToString()}-涓嬪彂鍏ュ簱浠诲姟 澶辫触,WriteInStoreTaskInfoAsync 杩斿洖:{plcres.resMsg}";