| | |
| | | /// </summary> |
| | | public partial class MESService |
| | | { |
| | | public WebResponseContent bindWorkOrder(string stationCode) |
| | | public WebResponseContent bindWorkOrder(string stationNo, string rfid) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_MESIPAddress); |
| | |
| | | } |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationCode); |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationNo); |
| | | |
| | | BindWorkOrder passPoint = new BindWorkOrder() |
| | | { |
| | |
| | | stationCode = stationInfo.stationChildCode, |
| | | messageTime = DateTime.Now.ToString(), |
| | | plantCode = "1022", |
| | | pvi = "", |
| | | pvi = rfid, |
| | | workOrderNo = "", |
| | | workOrderType = "", |
| | | workshopCode = "" |