| | |
| | | { |
| | | var result = new WeiLiResult(); |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | var cntrweight = model.cntrWeight == 1 ? 2 : model.cntrWeight == 2 ? 3 : model.cntrWeight == 3 ? 11 : model.cntrWeight == 4 ? 30 : model.cntrWeight == 5 ? 150 : 0; |
| | | var cntrweight = model.cntrWeight; |
| | | if (!string.IsNullOrEmpty(model.startBit) && !string.IsNullOrEmpty(model.endBit)) |
| | | { |
| | | if (!string.IsNullOrEmpty(model.TaskNo)) |
| | |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | var result = new PlcSendTaskres { requestPk = model.requestPk, code = "0" }; |
| | | string message = ""; |
| | | try |
| | | { |
| | | if (model.noticeType == "0" || model.noticeType == "ERROR") |
| | | { |
| | | //称重 |
| | |
| | | result.msg = "该任务编号不存在"; |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogHelper.Error($"WCS回报任务失败 异常信息{ex.Message}", ex); |
| | | result.code = "1"; |
| | | result.msg = $"WCS回报任务失败 异常信息{ex.Message}"; |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |