|
|
@@ -58,7 +58,7 @@ namespace UAS_MES_NEW.Special
|
|
|
|
|
|
private bool ReSN(string sncode, string stepcode)
|
|
|
{
|
|
|
- DataTable dt = (DataTable)dh.ExecuteSql("select ms_id,ms_ifactive,ms_paststep,nvl(ms_qccheck,0)ms_qccheck,nvl(ms_ifqccheck,0)ms_ifqccheck,ms_makecode,nvl(ms_outstatus,0)ms_outstatus,nvl(pr_ifrepaircheck,0)pr_ifrepaircheck from makeserial left join product on pr_code=ms_prodcode where ms_sncode ='" + sncode + "' order by ms_id desc", "select");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql("select ms_id,MS_ISACTIVE,ms_paststep,nvl(ms_qccheck,0)ms_qccheck,nvl(ms_ifqccheck,0)ms_ifqccheck,ms_makecode,nvl(ms_outstatus,0)ms_outstatus,nvl(pr_ifrepaircheck,0)pr_ifrepaircheck from makeserial left join product on pr_code=ms_prodcode where ms_sncode ='" + sncode + "' order by ms_id desc", "select");
|
|
|
if (!dt.Rows[0]["ms_paststep"].ToString().Contains(cd_stepcode.Text))
|
|
|
{
|
|
|
OperatResult.AppendText(">>序列号" + sncode + "不允许回流到未执行工序\n", Color.Red);
|
|
|
@@ -69,7 +69,7 @@ namespace UAS_MES_NEW.Special
|
|
|
OperatResult.AppendText(">>序列号" + sncode + "已出货不允许回流\n", Color.Red);
|
|
|
return false;
|
|
|
}
|
|
|
- if (dt.Rows[0]["ms_ifactive"].ToString() == "-1")
|
|
|
+ if (dt.Rows[0]["MS_ISACTIVE"].ToString() == "-1")
|
|
|
{
|
|
|
OperatResult.AppendText(">>序列号" + sncode + "已激活不允许冻结\n", Color.Red);
|
|
|
return false;
|