|
|
@@ -391,9 +391,9 @@ namespace UAS_MES.Make
|
|
|
return;
|
|
|
}
|
|
|
//如果岗位资源对应工序的版面不为空的时候
|
|
|
- if (dh.getFieldDataByCondition("makeserial left join step on ms_stepcode=st_code", "st_table", "ms_sncode='" + GetSNCode.Text + "'").ToString() != "")
|
|
|
+ if (dh.getFieldDataByCondition("makeserial left join step on ms_stepcode=st_code", "st_table", "ms_id='" + msid+ "'").ToString() != "")
|
|
|
{
|
|
|
- if (!dh.CheckExist("makebadrsloc", "mbl_mbrid='" + mbr_id + "' and mbl_sncode='" + GetSNCode.Text + "' "))
|
|
|
+ if (!dh.CheckExist("makebadrsloc", "mbl_mbrid='" + mbr_id + "' mbl_makecode='"+ms_makecode.Text+"' and mbl_sncode='" + GetSNCode.Text + "' "))
|
|
|
{
|
|
|
OperatResult.AppendText(">>工序存在版面必须维护不良位置\n", Color.Red);
|
|
|
return;
|