فهرست منبع

修改提示音

callm 6 ماه پیش
والد
کامیت
bcb10a1556

+ 7 - 0
UAS_MES_LGDZ/CustomControl/RichText/RichTextAutoBottom.cs

@@ -67,6 +67,13 @@ namespace UAS_MES_NEW.CustomControl.RichText
                 thread.Start();
                 thread = new Thread(PlaySound);
             }
+            else if (color == Color.DarkGreen && Entity.SystemInf.CheckAudioEnable)
+            {
+                //颜色是绿色,进行正确提示音
+                FileName = Application.StartupPath + @"\Resources\Sound\PASS.wav";
+                thread.Start();
+                thread = new Thread(PlaySound);
+            }
             LogManager.DoLog(FindForm().Tag + str);
         }
 

+ 2 - 1
UAS_MES_LGDZ/FunctionCode/Make/Make_OutBoxSnCheck.cs

@@ -130,8 +130,9 @@ namespace UAS_MES_NEW.Make
                         if (LogicHandler.OutBoxStepPass(pa_outboxcode.Text, pa_makecode.Text, User.UserSourceCode, User.UserCode, "栈板采集成功,栈板号:" + pa_outboxcode.Text, "栈板采集", out ErrorMessage))
                         {
                             dh.UpdateByCondition("package", "pa_nextstep='" + dh.getFieldDataByCondition("packagedetail left join makeserial on ms_sncode=pd_barcode and ms_makecode=pd_makecode", "max(ms_nextstepcode)", "pd_outboxcode='" + pa_outboxcode.Text + "'").ToString() + "', PA_CURRENTSTEP = '' ", "pa_outboxcode='" + pa_outboxcode.Text + "'");
-                        };
+                        }
                     }
+                    OperateResult.AppendText("<<卡通箱核对成功\n", Color.DarkGreen, sncode);
                     CheckRow = 0;
                     SetCheck set = new SetCheck("OK", Color.Green);
                     BaseUtil.SetFormCenter(set);