| | |
| | | /// </summary> |
| | | public partial class MESService |
| | | { |
| | | /// <summary> |
| | | /// BDC请æ±çè£
ç¹å¾ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="rfidPrint">RFID</param> |
| | | /// <param name="vin">VINå·</param> |
| | | /// <param name="stationNo">ç«å°è¯·æ±ç¹ä½</param> |
| | | /// <returns></returns> |
| | | public WebResponseContent issuedCharacter(string rfidPrint, string vin, string stationNo) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | { |
| | | IssuedCharacterInfo characterInfo = new IssuedCharacterInfo() |
| | | { |
| | | plantCode = "1022", |
| | | plantCode = "1052", |
| | | rfidPrint = rfidPrint, |
| | | vin = vin, |
| | | messageTime = DateTime.Now |
| | |
| | | } |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | |
| | | var MESrespon = HttpHelper.Post(wmsIpAddress, characterInfo.ToJson()); |
| | | var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson()).Result; |
| | | |
| | | IssuedCharacterRespon characterRespon = JsonConvert.DeserializeObject<IssuedCharacterRespon>(MESrespon); |
| | | if (!characterRespon.success) |
| | |
| | | }; |
| | | |
| | | _carBodyRepository.AddData(CarBody); |
| | | |
| | | LogFactory.GetLog("请æ±çè£
ç¹å¾ä¿¡æ¯").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("请æ±çè£
ç¹å¾ä¿¡æ¯").Info(true, $"å·¥ä½å·:{stationNo},RFID:{rfidPrint}"); |
| | | |
| | | |
| | | return content; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogFactory.GetLog("请æ±çè£
ç¹å¾ä¿¡æ¯").Info(true, $"请æ±çè£
ç¹å¾ä¿¡æ¯å¼å¸¸ï¼:{ex.Message}"); |
| | | return content.Error($"请æ±çè£
ç¹å¾ä¿¡æ¯å¼å¸¸ï¼:{ex.Message}"); |
| | | } |
| | | } |