| | |
| | | #endregion |
| | | public BAS_LABEL_TEMP Label { get; set; } |
| | | public List<BAS_LABEL_PV> LabelPV { get; set; } |
| | | public WipPkg CurPkg { get; set; } |
| | | public bool NoNeedInStorePrint { get; set; } |
| | | #endregion Propertys & Variables |
| | | |
| | |
| | | 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()) |
| | | { |
| | |
| | | { |
| | | //设置打印变量值 |
| | | Label = CurPosition.SetLabelVariables(LabelPV, Label, this); |
| | | if (CurPosition.Context.ContainsKey("CurPackage")) |
| | | if (!CurPkg.IsNullOrEmpty()) |
| | | { |
| | | (CurPosition.Context["CurPackage"] as WipPkg).InStoreActID = NodeAct.ID; |
| | | (CurPosition.Context["CurPackage"] as WipPkg).InStoreLabel = Label; |
| | | CurPkg.InStoreActID = NodeAct.ID; |
| | | CurPkg.InStoreLabel = Label; |
| | | } |
| | | |
| | | //判断是否需要打印入库标签 |
| | | NoNeedInStorePrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) |
| | | NoNeedInStorePrint = (CurPkg.IsNullOrEmpty() || !CurPkg.IsFinished) |
| | | || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel); |
| | | if (NoNeedInStorePrint) |
| | | { |
| | |
| | | { |
| | | var action = new ApiAction<SubmitOutput>(new SubmitOutput()); |
| | | |
| | | var CurPkg = CurPosition.Context.ContainsKey("CurPackage") ? CurPosition.Context["CurPackage"] as WipPkg : null; |
| | | //记录行为操作记录 |
| | | var wipActs = new List<MES_WIP_ACT>(); |
| | | foreach (var wipSn in CurPosition.CurWipSNs) |