|
|
@@ -788,6 +788,10 @@ namespace UAS_MES_NEW.Make
|
|
|
if (dh.getRowCount("productsmtlocation", "PSL_PSID='" + ps_id +"'") > 0)
|
|
|
{
|
|
|
dh.ExecuteSql("delete from productsmtlocation where PSL_PSID = '" + ps_id +"'", "delete");
|
|
|
+
|
|
|
+ string wo = dh.getFieldDataByCondition("deviceline", "DL_MACODE", "dl_prodcode = "+ Part_ + "").ToString();
|
|
|
+ LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, wo, User.UserLineCode, User.UserSourceCode, "贴片机对接", $"已删除更新站位: {ps_id}", "", "");
|
|
|
+
|
|
|
}
|
|
|
sql.Clear();
|
|
|
sql.Append("insert into productsmtlocation(PSL_ID, PSL_PSID, PSL_DETNO, PSL_PRODCODE, PSL_REPCODE, PSL_LOCATION, PSL_BASEQTY, PSL_TABLE)" +
|
|
|
@@ -1046,6 +1050,20 @@ namespace UAS_MES_NEW.Make
|
|
|
|
|
|
if (ishave_sn == "是")
|
|
|
{
|
|
|
+ if (equiType == "AOI")
|
|
|
+ {
|
|
|
+ dt = (DataTable)dh.ExecuteSql($"select * from makeserial where ms_sncode = '{item.SN}' and ms_status = 3", "select");
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ if (logs.IndexOf(item) == logs.Count - 1)
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ LogMessage($"序列号: {item.SN}为不良品,不记录系统");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (LogicHandler.CheckStepSNAndMacode(ma_code.Text, User.UserSourceCode, item.SN, User.UserCode, out omakeCode, out oMsid, out oErrorMessage))
|
|
|
{
|
|
|
string passStationRes = "OK";
|