|
|
@@ -610,15 +610,15 @@ namespace UAS_LabelMachine
|
|
|
//直接验证两个值相等
|
|
|
if (Equal.Checked)
|
|
|
{
|
|
|
- string pibid = adh.getFieldDataByCondition("prodiobarcode", "min(pib_id)", "pib_inoutno='" + pi_inoutno.Text + "' and pd_custprodcode='" + msgArr[i] + "'").ToString();
|
|
|
+ string pibid = adh.getFieldDataByCondition("prodiobarcode", "min(pib_id)", "pib_inoutno='" + pi_inoutno.Text + "' and pd_custprodcode='" + msgArr[i] + "' and pib_ifrecheck=0").ToString();
|
|
|
if (pibid != "")
|
|
|
{
|
|
|
DataRow[] dr = LabelInfDataTable.Select("pib_id=" + pibid);
|
|
|
if (dr.Length > 0)
|
|
|
{
|
|
|
- dr[0]["pib_ifpick"] = -1;
|
|
|
+ dr[0]["pib_ifrecheck"] = -1;
|
|
|
}
|
|
|
- adh.ExecuteSql("update prodiobarcode set pib_ifpick=-1 where pib_id=" + pibid, "update");
|
|
|
+ adh.ExecuteSql("update prodiobarcode set pib_ifrecheck=-1 where pib_id=" + pibid, "update");
|
|
|
CheckItem.Remove("客户料号");
|
|
|
checkItemCount = checkItemCount + 1;
|
|
|
}
|
|
|
@@ -646,15 +646,15 @@ namespace UAS_LabelMachine
|
|
|
CheckItem.Add("唯一条码");
|
|
|
CheckItem.Add("原厂型号");
|
|
|
}
|
|
|
- string pibid = adh.getFieldDataByCondition("prodiobarcode", "min(pib_id)", "pib_inoutno='" + pi_inoutno.Text + "' and pib_custbarcode='" + msgArr[i] + "'").ToString();
|
|
|
+ string pibid = adh.getFieldDataByCondition("prodiobarcode", "min(pib_id)", "pib_inoutno='" + pi_inoutno.Text + "' and pib_custbarcode='" + msgArr[i] + "' and pib_ifrecheck=0").ToString();
|
|
|
if (pibid != "")
|
|
|
{
|
|
|
DataRow[] dr = LabelInfDataTable.Select("pib_id=" + pibid);
|
|
|
if (dr.Length > 0)
|
|
|
{
|
|
|
- dr[0]["pib_ifpick"] = -1;
|
|
|
+ dr[0]["pib_ifrecheck"] = -1;
|
|
|
}
|
|
|
- adh.ExecuteSql("update prodiobarcode set pib_ifpick=-1 where pib_id=" + pibid, "update");
|
|
|
+ adh.ExecuteSql("update prodiobarcode set pib_ifrecheck=-1 where pib_id=" + pibid, "update");
|
|
|
CheckItem.Remove("唯一条码");
|
|
|
checkItemCount = checkItemCount + 1;
|
|
|
}
|
|
|
@@ -675,11 +675,7 @@ namespace UAS_LabelMachine
|
|
|
ErrorMsg = Item + "复核不通过";
|
|
|
return false;
|
|
|
}
|
|
|
- LabelInf.Rows[CurrentRowIndex].Cells["pib_ifrecheck"].Value = true;
|
|
|
- adh.ExecuteSql("update prodiobarcode set pib_ifrecheck=-1 where pib_id=" + pib_id, "update");
|
|
|
LabelInf.Invalidate();
|
|
|
- if (CurrentRowIndex + 1 < LabelInf.Rows.Count)
|
|
|
- CurrentRowIndex = CurrentRowIndex + 1;
|
|
|
RefreshProcessData();
|
|
|
if (CurrentRowIndex - 10 > 0)
|
|
|
LabelInf.FirstDisplayedScrollingRowIndex = CurrentRowIndex - 5;
|