| | |
| | | // item.Status = "Y"; |
| | | // if (!ErpProdInBth.IsNullOrEmpty()) |
| | | // { |
| | | // ErpProdInBth.ORDER_NO = $"YDRKD24120000{5+i}"; |
| | | // ErpProdInBth.ORDER_NO = $"YDRKD24120000{5 + i}"; |
| | | // ErpProdInBth.IS_HANDLED = "Y"; |
| | | // ErpProdInBth.HANDLED_DATE = DateTime.Now; |
| | | // } |
| | | // List<RcvRptDocCreateParam> param = new() { |
| | | // new() { |
| | | // CompleteList = new(){ |
| | | // new CompleteList |
| | | // { |
| | | // MOKey = new MOKey { DocNo = item.WorkOrder }, |
| | | // Wh = new Wh { Code = item.WhCode }, |
| | | // DescFlexField = new DescFlexField { PrivateDescSeg1 = item.PkgQty.ToString() }, |
| | | // Item = new Item { Code = item.ItemCode }, |
| | | // CompleteQty = item.CompleteQty, |
| | | // OutputType = item.OutputType, |
| | | // StorageType = item.StorageType, |
| | | // DocState = item.DocState, |
| | | // } |
| | | // }, |
| | | // Remark = "接口生成", |
| | | // BusinessDate = DateTime.Now, |
| | | // } |
| | | // }; |
| | | // foreach (var p in input.PrintJsons) |
| | | // { |
| | | // var d = p.Items.Where(q => q.WORK_ORDER == item.WorkOrder).FirstOrDefault(); |
| | |
| | | //{ |
| | | // action.CatchExceptionWithLog(_dbTran.ErrorException, $"数据处理失败"); |
| | | // Logger.Interface.Error(action.Message); |
| | | // IsSuccessed = false; |
| | | // //IsSuccessed = false; |
| | | //} |
| | | |
| | | //保存成功,调用U9C接口 |
| | |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<BarcodeCreateInput>> U9CCreateBarCodeByAssignQty(BarcodeCreateByAssignQtyInput input) |
| | | public async Task<ApiAction<List<string>>> U9CCreateBarCodeByAssignQty(BarcodeCreateByAssignQtyInput input) |
| | | { |
| | | Logger.Interface.Info($"/**\r\n *进入半成品生成条码接口....\r\n */\r\n"); //固定写法 |
| | | var action = new ApiAction<BarcodeCreateInput>(); |
| | | var action = new ApiAction<List<string>>(new List<string>()); |
| | | try |
| | | { |
| | | if (input.IsLogin) |
| | |
| | | var result = JsonConvert.DeserializeObject<BarcodeCreateByAssignQtyResult>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success) |
| | | if (result.Success && result.Data.IsSuccess) |
| | | { |
| | | Logger.Interface.Info($"半成品生成条码接口提交Json: {JsonConvert.SerializeObject(param)},返回Json: {response.Message}"); |
| | | action.Data = result.Data.Data; |
| | | } |
| | | else |
| | | { |