|
|
@@ -205,12 +205,22 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (LogInUserInfo.CurrentUser.CurrentUserEntity.AccountCode == "imex" &&
|
|
|
- this.scbUser1.SearchedValue == null)
|
|
|
+ if (LogInUserInfo.CurrentUser.CurrentUserEntity.AccountCode == "imex")
|
|
|
{
|
|
|
- MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "成型班长"),
|
|
|
- this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
|
|
|
- return;
|
|
|
+ if (this.scbUser1.ValueFrom == WinForm.Controls.SearchBoxValueFrom.InitValue &&
|
|
|
+ this._lineEntity.MonitorID == null)
|
|
|
+ {
|
|
|
+ MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "成型班长"),
|
|
|
+ this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.scbUser1.ValueFrom != WinForm.Controls.SearchBoxValueFrom.InitValue &&
|
|
|
+ this.scbUser1.SearchedItem == null)
|
|
|
+ {
|
|
|
+ MessageBox.Show(string.Format(Messages.MSG_CMN_W005, "成型班长"),
|
|
|
+ this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//this._lineEntity.BUILDINGNO = this.txtBuildingNo.Text.Trim();
|