|
@@ -159,12 +159,21 @@ namespace UAS_MES.Make
|
|
|
//修改转换结果时,输入两次SN直接过站
|
|
//修改转换结果时,输入两次SN直接过站
|
|
|
if (dh.CheckExist("MakeSerial", "ms_id='" + oMsId + "' and ms_sncode='" + sncode.Text + "' and ms_beforesn is not null"))
|
|
if (dh.CheckExist("MakeSerial", "ms_id='" + oMsId + "' and ms_sncode='" + sncode.Text + "' and ms_beforesn is not null"))
|
|
|
{
|
|
{
|
|
|
- bsncode = sncode.Text;
|
|
|
|
|
- //显示序列号
|
|
|
|
|
- show_sncode.Text = bsncode;
|
|
|
|
|
- OperateResult.AppendText(">>请输入SN号\n", Color.Green, sncode);
|
|
|
|
|
- ChangeResult.Enabled = false;
|
|
|
|
|
- onlyPass = true;
|
|
|
|
|
|
|
+ string nextstepcode = dh.getFieldDataByCondition("makeserial", "ms_nextstepcode", "ms_id='" + oMsId + "'").ToString();
|
|
|
|
|
+ if (nextstepcode == User.CurrentStepCode)
|
|
|
|
|
+ {
|
|
|
|
|
+ bsncode = sncode.Text;
|
|
|
|
|
+ //显示序列号
|
|
|
|
|
+ show_sncode.Text = bsncode;
|
|
|
|
|
+ OperateResult.AppendText(">>请输入SN号\n", Color.Green, sncode);
|
|
|
|
|
+ ChangeResult.Enabled = false;
|
|
|
|
|
+ onlyPass = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ OperateResult.AppendText("<<序列号:" + sncode.Text + "下一工序是" + nextstepcode + ",不是当前岗位的工序\n", Color.Red, sncode);
|
|
|
|
|
+ OperateResult.AppendText(">>请重新输入TSN号\n", Color.Black);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|