服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-11-19 5f5d8997fb860e8554a9bbb4d627715ca66b17cc
Tiger.Business.MES/Transaction/Position.cs
@@ -606,9 +606,9 @@
                                    }
                                    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":
@@ -626,10 +626,11 @@
                                    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))
@@ -769,7 +770,8 @@
            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";
@@ -777,7 +779,8 @@
            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";