2 Commits bf8ac93d89 ... 379fa33758

Author SHA1 Message Date
  callm 379fa33758 修改BUG 1 month ago
  callm 25433a80c5 BUG修改 1 month ago

+ 8 - 1
UAS_MES_JH/FunctionCode/Make/Make_TestCollectionqrcode.cs

@@ -670,6 +670,13 @@ namespace UAS_MES_NEW.Make
                     }
                     if (LogicHandler.CheckStepSNAndMacode(oMakeCode, User.UserSourceCode, ms_sncode.Text, User.UserCode, out oMakeCode, out oMSID, out ErrorMessage))
                     {
+                        string nextstepcode = dh.getFieldDataByCondition("makeserial", "ms_nextstepcode", "ms_id='" + oMSID + "'").ToString();
+                        if (nextstepcode != User.CurrentStepCode)
+                        {
+                            string stname = dh.getFieldDataByCondition("step", "st_name", "st_code='" + nextstepcode + "'").ToString();
+                            OperateResult.AppendText("<<序列号:" + ms_sncode.Text + "下一工序是" + stname + ",不是当前岗位的工序\n", Color.Red, ms_sncode);
+                            return;
+                        }
                         //是否提示过工单切换框,检测前后执行
                         if (!LogicHandler.CheckDiffMakeCodeAfterStepCheck(ms_sncode.Text, oMakeCode, NoteForChange.Checked, NoteAlready, ma_code, out ErrorMessage))
                         {
@@ -737,7 +744,7 @@ namespace UAS_MES_NEW.Make
                         }
                         if (dh.CheckExist("product", "pr_code  = '" + ma_prodcode.Text + "' and pr_height = -1 "))
                         {
-                            bool shouldNotIntercept = !string.IsNullOrEmpty(bt) || mac.Contains("UNKNOWN");
+                            bool shouldNotIntercept = !string.IsNullOrEmpty(mac) || mac.Contains("UNKNOWN");
                             if (!shouldNotIntercept)  // 若不满足不拦截条件,则拦截
                             {
                                 OperateResult.AppendText("<<序列号:" + ms_sncode.Text + " WIFI信息异常\n", Color.Red);

BIN
UAS_MES_JH/Tool/Interop.BarTender.dll


+ 2 - 2
UAS_MES_JH/UAS_MES_JH.csproj

@@ -132,10 +132,10 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>Tool\ICSharpCode.SharpZipLib.dll</HintPath>
     </Reference>
-    <Reference Include="Interop.BarTender, Version=11.0.8.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7, processorArchitecture=MSIL">
+    <Reference Include="Interop.BarTender, Version=11.0.7.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <EmbedInteropTypes>True</EmbedInteropTypes>
-      <HintPath>..\UAS_MES_LT\Tool\Interop.BarTender.dll</HintPath>
+      <HintPath>Tool\Interop.BarTender.dll</HintPath>
     </Reference>
     <Reference Include="Interop.LabelManager2, Version=6.0.0.0, Culture=neutral, processorArchitecture=x86">
       <SpecificVersion>False</SpecificVersion>