| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Diagnostics.Contracts; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading; |
| | |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ21 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{result}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | |
| | | var validteReslt = ValidateIsAllowCut(); |
| | | if (validteReslt == false) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | //string upi = "LS070700101B0001GS"; |
| | | //è°ç¨åºçº¸æºæ¥å£ |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// éªè¯æ¯å¦å
许å纸 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public static bool ValidateIsAllowCut() |
| | | { |
| | | var rgvLocation = StationLocationEnum.BZ3007.ToString(); |
| | | |
| | | if (FormCC.stationView == null) |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21 = $"{rgvLocation.ToString()}-è·åPLC对象为null"; |
| | | return false; |
| | | } |
| | | var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); |
| | | if (obj != null) |
| | | { |
| | | if (obj.R_AllowCut) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21 = $"{rgvLocation.ToString()}-PLCä¸å
许å纸"; |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_BZ21 = $"{rgvLocation.ToString()}-è·åPLC对象为null"; |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |