| | |
| | | private readonly IPdaAsnServer _pdaAsnServer;// PDA |
| | | private readonly IHttpServer _http; |
| | | |
| | | private string logStr = $@".\log\SAP赋码\Sap下发报文" + DateTime.Now.ToString("yyyyMMdd") + ".txt"; |
| | | |
| | | public UpApiController(IOptions<ApiUrlConfig> setting, IExportNoticeServer exNoticeSvc, IArrivalNoticeServer arrivalNoticeServer, IStockCheckServer stockCheckSvc, IProcurePlanServer procurePlanSvc, IPdaAsnServer pdaAsnServer, IHttpServer http) |
| | | { |
| | | _config = setting.Value; |
| | |
| | | #endregion |
| | | |
| | | #region JC34 |
| | | |
| | | |
| | | /// <summary> |
| | | /// 物料下发 |
| | | /// </summary> |
| | |
| | | [HttpPost] |
| | | public IActionResult CreateSku(object model) |
| | | { |
| | | |
| | | try |
| | | { |
| | | |
| | | LogFile.SaveLogToFile($"Sap物料主数据:( {model} ),", logStr); |
| | | return Ok(new { result = true, code = "1" ,message = "success" }); |
| | | } |
| | | catch (Exception e) |
| | |
| | | { |
| | | |
| | | try |
| | | { |
| | | { |
| | | LogFile.SaveLogToFile($"Sap客户信息主数据:( {model} ),", logStr); |
| | | return Ok(new { result = true, code = "1", message = "success" }); |
| | | } |
| | | catch (Exception e) |
| | |
| | | |
| | | try |
| | | { |
| | | LogFile.SaveLogToFile($"Sap入库单下发:( {model} ),", logStr); |
| | | return Ok(new { result = true, code = "1", message = "success" }); |
| | | } |
| | | catch (Exception e) |
| | |
| | | |
| | | try |
| | | { |
| | | LogFile.SaveLogToFile($"Sap出库单下发:( {model} ),", logStr); |
| | | return Ok(new { result = true, code = "1", message = "success" }); |
| | | } |
| | | catch (Exception e) |
| | |
| | | |
| | | try |
| | | { |
| | | // var sd = JsonConvert.SerializeObject(model); |
| | | // var sd2 = JsonConvert.DeserializeObject<BoxPalletBindVm>(sd); |
| | | |
| | | // var sd = JsonConvert.SerializeObject(model); |
| | | // var sd2 = JsonConvert.DeserializeObject<BoxPalletBindVm>(sd); |
| | | LogFile.SaveLogToFile($"Sap质量状态变更:( {model} ),", logStr); |
| | | return Ok(new { result = true, code = "1", message = "success" }); |
| | | } |
| | | catch (Exception e) |