From 41524d5266f45c53b912ad3b9e68eeb4e391f54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE=E7=94=B7?= <446507344@qq.com> Date: Mon, 15 May 2023 10:58:14 +0800 Subject: [PATCH] 11 --- APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs | 5 +++++ APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs b/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs index 5933823..953ce95 100644 --- a/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs +++ b/APPQ5/QMAPP.WinForm/Forms/Operation/OperationForm.cs @@ -640,6 +640,7 @@ namespace QMAPP.WinForm.Forms.Operation txtCode.Text = ""; //PlaySound.PlaySounds.Play(@errorSoundPath); System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); + media.Play(); this.lblError.Text = "请先选择设备!"; this.lblError.ForeColor = Color.White; this.lblError.BackColor = Color.Red; @@ -654,6 +655,7 @@ namespace QMAPP.WinForm.Forms.Operation txtCode.Text = ""; //PlaySound.PlaySounds.Play(@errorSoundPath); System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); + media.Play(); this.lblError.Text = "请输入条码!"; this.lblError.ForeColor = Color.White; this.lblError.BackColor = Color.Red; @@ -675,6 +677,7 @@ namespace QMAPP.WinForm.Forms.Operation txtCode.Text = ""; //PlaySound.PlaySounds.Play(@errorSoundPath); System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); + media.Play(); this.lblError.Text = "输入条码不是本工序可接受格式!"; this.lblError.ForeColor = Color.White; this.lblError.BackColor = Color.Red; @@ -764,6 +767,7 @@ namespace QMAPP.WinForm.Forms.Operation { //PlaySound.PlaySounds.Play(@errorSoundPath); System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); + media.Play(); this.lblError.Text = result.Message; this.lblError.ForeColor = Color.White; this.lblError.BackColor = Color.Red; @@ -803,6 +807,7 @@ namespace QMAPP.WinForm.Forms.Operation if (!"770,018,278".Contains(productCode.Substring(0, 3))) { System.Media.SoundPlayer media = new System.Media.SoundPlayer(@okSoundPath); + media.Play(); } diff --git a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs index 76ea9b1..27680d3 100644 --- a/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs +++ b/APPQ5/QMAPP.WinForm/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, // 方法是按如下所示使用“*”: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2023.04.27.01")] -[assembly: AssemblyFileVersion("2023.04.27.01")] +[assembly: AssemblyVersion("2023.05.15.01")] +[assembly: AssemblyFileVersion("2023.05.15.01")]