服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-29 83d595aad854a42d6b28f8651ee7ef774dfd4e04
Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
@@ -45,7 +45,6 @@
            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;
@@ -69,6 +68,7 @@
        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())
            {
@@ -85,7 +85,7 @@
               }
   
               //判断是否需要打印入库标签
               NoNeedInStorePrint = (!CurPkg.IsNullOrEmpty() || !CurPkg.IsFinished)
               NoNeedInStorePrint = (CurPkg.IsNullOrEmpty() || !CurPkg.IsFinished)
                                       || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel);
               if (NoNeedInStorePrint)
               {