|
|
@@ -752,7 +752,7 @@ namespace UAS_MES_NEW.Make
|
|
|
|
|
|
string lineId = dh.getFieldDataByCondition("smtlocationinto", "SLI_LANE", "SLI_MCNO='" + MachineName[0] + "'").ToString();
|
|
|
|
|
|
- if (!dh.CheckExist("productsmt", "ps_prodcode='" + Part_ + "'"))
|
|
|
+ if (!dh.CheckExist("productsmt", "ps_prodcode='" + Part_ + "' and PS_LINECODE = '"+ lineId + "'"))
|
|
|
{
|
|
|
ps_id = dh.GetSEQ("productsmt_seq");
|
|
|
/*dh.ExecuteSql("insert into productsmt(ps_id,ps_prodcode,ps_status,ps_statuscode,PS_LINECODE,PS_CODE,PS_TABLE,PS_INDATE,PS_AUDITDATE)" +
|
|
|
@@ -763,7 +763,7 @@ namespace UAS_MES_NEW.Make
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- ps_id = dh.getFieldDataByCondition("productsmt", "ps_id", "ps_prodcode='" + Part_ + "'").ToString();
|
|
|
+ ps_id = dh.getFieldDataByCondition("productsmt", "ps_id", "ps_prodcode='" + Part_ + "' and PS_LINECODE = '"+ lineId + "'").ToString();
|
|
|
}
|
|
|
if (dh.getRowCount("productsmtlocation", "PSL_PSID='" + ps_id +"'") > 0)
|
|
|
{
|
|
|
@@ -919,8 +919,11 @@ namespace UAS_MES_NEW.Make
|
|
|
}
|
|
|
else if (equiType == "AOI")
|
|
|
{
|
|
|
- res = currItem[3];
|
|
|
- detail = currItem[3];
|
|
|
+ if(currItem.Length > 3)
|
|
|
+ {
|
|
|
+ res = currItem[3];
|
|
|
+ detail = currItem[3];
|
|
|
+ }
|
|
|
|
|
|
if(string.IsNullOrEmpty(res) && string.IsNullOrEmpty(detail))
|
|
|
{
|