| | |
| | | #endregion |
| | | public BAS_LABEL_TEMP Label { get; set; } |
| | | public List<BAS_LABEL_PV> LabelPV { get; set; } |
| | | public bool NoNeedPrint { get; set; } |
| | | public bool NoNeedInStorePrint { get; set; } |
| | | #endregion Propertys & Variables |
| | | |
| | | #region Functions |
| | |
| | | { |
| | | var action = new ApiAction<SubmitOutput>(new SubmitOutput()); |
| | | |
| | | NoNeedPrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) |
| | | NoNeedInStorePrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) |
| | | || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel); |
| | | if (NoNeedPrint) |
| | | if (NoNeedInStorePrint) |
| | | { |
| | | action = End(input); |
| | | } |
| | |
| | | ACT_VALUE_2 = Label.Variables.ToJson(), |
| | | ACT_RESULT = "Y", |
| | | ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(), |
| | | TRACE_INFO = NoNeedPrint ? $"无需打印入库标签" : $"标签{Label.LABEL_NAME}[{Label.LABEL_CODE}]打印成功", |
| | | TRACE_INFO = NoNeedInStorePrint ? $"无需打印入库标签" : $"标签{Label.LABEL_NAME}[{Label.LABEL_CODE}]打印成功", |
| | | }; |
| | | wipActs.Add(wipAct); |
| | | } |
| | |
| | | }; |
| | | |
| | | IsFinished = true; |
| | | if (NoNeedPrint) |
| | | if (NoNeedInStorePrint) |
| | | { |
| | | CurStep.Message = Biz.L("无需打印"); |
| | | CurStep.Status = StepStatus.Finished; |