|
@ -640,6 +640,7 @@ namespace QMAPP.WinForm.Forms.Operation |
|
|
txtCode.Text = ""; |
|
|
txtCode.Text = ""; |
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
|
|
|
media.Play(); |
|
|
this.lblError.Text = "请先选择设备!"; |
|
|
this.lblError.Text = "请先选择设备!"; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.BackColor = Color.Red; |
|
|
this.lblError.BackColor = Color.Red; |
|
@ -654,6 +655,7 @@ namespace QMAPP.WinForm.Forms.Operation |
|
|
txtCode.Text = ""; |
|
|
txtCode.Text = ""; |
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
|
|
|
media.Play(); |
|
|
this.lblError.Text = "请输入条码!"; |
|
|
this.lblError.Text = "请输入条码!"; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.BackColor = Color.Red; |
|
|
this.lblError.BackColor = Color.Red; |
|
@ -675,6 +677,7 @@ namespace QMAPP.WinForm.Forms.Operation |
|
|
txtCode.Text = ""; |
|
|
txtCode.Text = ""; |
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
|
|
|
media.Play(); |
|
|
this.lblError.Text = "输入条码不是本工序可接受格式!"; |
|
|
this.lblError.Text = "输入条码不是本工序可接受格式!"; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.BackColor = Color.Red; |
|
|
this.lblError.BackColor = Color.Red; |
|
@ -764,6 +767,7 @@ namespace QMAPP.WinForm.Forms.Operation |
|
|
{ |
|
|
{ |
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
//PlaySound.PlaySounds.Play(@errorSoundPath);
|
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(errorSoundPath); |
|
|
|
|
|
media.Play(); |
|
|
this.lblError.Text = result.Message; |
|
|
this.lblError.Text = result.Message; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.ForeColor = Color.White; |
|
|
this.lblError.BackColor = Color.Red; |
|
|
this.lblError.BackColor = Color.Red; |
|
@ -803,6 +807,7 @@ namespace QMAPP.WinForm.Forms.Operation |
|
|
if (!"770,018,278".Contains(productCode.Substring(0, 3))) |
|
|
if (!"770,018,278".Contains(productCode.Substring(0, 3))) |
|
|
{ |
|
|
{ |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(@okSoundPath); |
|
|
System.Media.SoundPlayer media = new System.Media.SoundPlayer(@okSoundPath); |
|
|
|
|
|
media.Play(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|