|
|
@@ -244,7 +244,7 @@ namespace UAS_LabelMachine
|
|
|
case "FrontendCheck":
|
|
|
//比对当前箱数量和容量
|
|
|
FrontCollect.Text = msg;
|
|
|
- if (!FrontCheckFunction( msg, out ErrorMsg))
|
|
|
+ if (!FrontCheckFunction(msg, out ErrorMsg))
|
|
|
{
|
|
|
LogicHandler.SendDataToPLC(PLC1, PLCInstruct.FrontDataDelete);
|
|
|
MessageLog.AppendText(">>" + ErrorMsg + "\n", Color.Red);
|
|
|
@@ -354,7 +354,7 @@ namespace UAS_LabelMachine
|
|
|
//自动匹配客户PN
|
|
|
DataTable pndt = (DataTable)adh.ExecuteSql("select min(rownum) as rn from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' and pr_orispeccode='" + PN + "' and pib_ifpick=0", "select");
|
|
|
int rownum = 0;
|
|
|
- if (pndt.Rows.Count > 0)
|
|
|
+ if (pndt.Rows[0][0].ToString() != "")
|
|
|
{
|
|
|
rownum = int.Parse(pndt.Rows[0]["rn"].ToString());
|
|
|
//如果需要翻页的话
|
|
|
@@ -1417,7 +1417,7 @@ namespace UAS_LabelMachine
|
|
|
LoadGridData(new object(), new EventArgs());
|
|
|
}
|
|
|
int CurrentPage = 1;
|
|
|
- int PageSize = 4;
|
|
|
+ int PageSize = 500;
|
|
|
int DataSize = 0;
|
|
|
int MaxPageSize = 0;
|
|
|
/// <summary>
|
|
|
@@ -1895,7 +1895,7 @@ namespace UAS_LabelMachine
|
|
|
string pib_id = LabelInf.Rows[CurrentRowIndex].Cells["pib_id1"].Value.ToString();
|
|
|
int pib_pdno = int.Parse(LabelInf.Rows[CurrentRowIndex].Cells["pib_pdno"].Value.ToString());
|
|
|
string ErrorMsg = "";
|
|
|
- FrontCheckFunction( "", out ErrorMsg);
|
|
|
+ FrontCheckFunction("", out ErrorMsg);
|
|
|
}
|
|
|
|
|
|
private void ButtonRecheckPass_Click(object sender, EventArgs e)
|
|
|
@@ -2003,5 +2003,20 @@ namespace UAS_LabelMachine
|
|
|
LogMenu.Show(new Point(MessageLog.Location.X + 100, MessageLog.Location.Y + 20));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void UploadData_Click(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ if (LogicHandler.CheckUploadData(pi_inoutno.Text))
|
|
|
+ {
|
|
|
+ DataTable dtt = LabelInf.DataSource as DataTable;
|
|
|
+ for (int i = 0; i < dtt.Rows.Count; i++)
|
|
|
+ {
|
|
|
+ if (dtt.Rows[i]["pib_ifrecheck"].ToString() != "0" && dtt.Rows[i]["pib_ifupload"].ToString() == "0")
|
|
|
+ {
|
|
|
+ dtt.Rows[i]["pib_ifupload"] = -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|