| | |
| | | |
| | | Label = Biz.Db.Queryable<BAS_LABEL_TEMP>().Where(q => q.LABEL_CODE == setting.LABEL_CODE).IncludesAllFirstLayer().First(); |
| | | LabelPV = Biz.Db.Queryable<BAS_LABEL_PV>().ToList(); |
| | | CurPkg = CurPosition.Context.ContainsKey("CurPackage") ? CurPosition.Context["CurPackage"] as WipPkg : null; |
| | | |
| | | CurStep.Message = Biz.L("等待标签打印"); |
| | | CurStep.Status = StepStatus.Normal; |
| | |
| | | public ApiAction<SubmitOutput> TryBegin(SubmitInput input) |
| | | { |
| | | var action = new ApiAction<SubmitOutput>(new SubmitOutput()); |
| | | CurPkg = CurPosition.Context.ContainsKey("CurPackage") ? CurPosition.Context["CurPackage"] as WipPkg : null; |
| | | |
| | | if (Label.IsNullOrEmpty()) |
| | | { |
| | |
| | | } |
| | | |
| | | //判断是否需要打印入库标签 |
| | | NoNeedInStorePrint = (!CurPkg.IsNullOrEmpty() || !CurPkg.IsFinished) |
| | | NoNeedInStorePrint = (CurPkg.IsNullOrEmpty() || !CurPkg.IsFinished) |
| | | || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel); |
| | | if (NoNeedInStorePrint) |
| | | { |
| | |
| | | ACT_VALUE_1 = CurPkg?.IsFinished == true ? "Y" : "N", |
| | | ACT_VALUE_2 = CurPkg?.ToJson(), |
| | | ACT_VALUE_3 = Label?.ToJson(), |
| | | ACT_VALUE_4 = "InStroe", |
| | | ACT_VALUE_4 = "InStore", |
| | | ACT_RESULT = "Y", |
| | | ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(), |
| | | TRACE_INFO = NoNeedInStorePrint ? $"无需打印入库标签" : $"标签{Label?.LABEL_NAME}[{Label?.LABEL_CODE}]打印成功", |