| | |
| | | } |
| | | if (curAction is PrintInStoreLabel) |
| | | { |
| | | qtylist = (curAction as PrintInStoreLabel).CurPkg.Item.GetMinPackageList().Select(q => q.SN).ToList(); |
| | | qtylist = (curAction as PrintInStoreLabel).CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList(); |
| | | } |
| | | return $"{qtylist.Count}PCS"; |
| | | return $"{qtylist.Count}"; |
| | | case "GetModel": |
| | | return GetLabelVarWo(lv, WorkBatch.Product.ExtInfo?.Model); |
| | | case "GetInput": |
| | |
| | | var _orderAction = curAction is PackingAction ? curAction as PackingAction : null; |
| | | if (_orderAction != null) |
| | | { |
| | | var snList = _orderAction.CurPkg.Item.GetMinPackageList().Select(q => q.FLOW_SN).ToList(); |
| | | //var snList = _orderAction.CurPkg.Item.GetMinPackageList().Select(q => q.FLOW_SN).ToList(); |
| | | var snList = _orderAction.CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList(); |
| | | if (!snList.Any()) |
| | | { |
| | | snList.Add(_orderAction.CurPkg.CustSN.FLOW_SN); |
| | | snList.Add(_orderAction.CurPkg.CustSN?.FLOW_SN); |
| | | } |
| | | _lotnos = string.Join(",", Biz.Db.Queryable<MES_CUST_SN>() |
| | | .Where((q) => snList.Contains(q.FLOW_SN)) |
| | |
| | | if (action is PackingAction) |
| | | { |
| | | var pkg = action as PackingAction; |
| | | minPkgList = pkg.CurPkg.Item.GetMinPackageList().Select(q => q.SN).ToList(); |
| | | //minPkgList = pkg.CurPkg.Item.GetMinPackageList().Select(q => q.SN).ToList(); |
| | | minPkgList = pkg.CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList(); |
| | | itemCode = pkg.CurPkg.CustSN?.ITEM_CODE; |
| | | weight = pkg.CurPkg.WeightInfo.Weight; |
| | | unit = pkg.CurPkg.WeightInfo.Unit?.ToUpper() ?? "kg"; |
| | |
| | | if (action is PrintInStoreLabel) |
| | | { |
| | | var print = action as PrintInStoreLabel; |
| | | minPkgList = print.CurPkg.Item.GetMinPackageList().Select(q => q.SN).ToList(); |
| | | //minPkgList = print.CurPkg.Item.GetMinPackageList().Select(q => q.SN).ToList(); |
| | | minPkgList = print.CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList(); |
| | | itemCode = print.CurPkg.CustSN?.ITEM_CODE; |
| | | weight = print.CurPkg.WeightInfo.Weight; |
| | | unit = print.CurPkg.WeightInfo.Unit?.ToUpper() ?? "kg"; |