|
|
@@ -782,7 +782,7 @@ namespace UAS_LabelMachine
|
|
|
SelectProdcode = LabelInf.Rows[SelectRowIndex].Cells["pib_prodcode"].Value.ToString();
|
|
|
for (int i = SelectRowIndex; i >= 0; i--)
|
|
|
{
|
|
|
- if (LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true")
|
|
|
+ if ((LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true") || i == SelectRowIndex)
|
|
|
{
|
|
|
LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
|
|
|
if (!MidOutBoxCode.Contains(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString())))
|
|
|
@@ -798,7 +798,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
for (int i = SelectRowIndex; i < LabelInf.Rows.Count - 1; i++)
|
|
|
{
|
|
|
- if (LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].Value.ToString().ToLower() != "true")
|
|
|
+ if ((LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true") || i == SelectRowIndex)
|
|
|
{
|
|
|
LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
|
|
|
if (!MidOutBoxCode.Contains(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString())))
|
|
|
@@ -1005,6 +1005,7 @@ namespace UAS_LabelMachine
|
|
|
OutReport.Print();
|
|
|
Properties.Settings.Default.OPrinter = OutBoxPrinter.Text;
|
|
|
Properties.Settings.Default.Save();
|
|
|
+ dh.UpdateByCondition("prodiobarcode", "pib_outifprint=-1", "pib_inoutno='" + pi_inoutno.Text + "' and pib_outboxcode2='" + pib_outboxcode2 + "'");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1747,6 +1748,10 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
private void OutBoxNum_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
{
|
|
|
+ if (!ComBoxClickChangeLabelDoc)
|
|
|
+ {
|
|
|
+ OutBoxNum1 = OutBoxNum.Text;
|
|
|
+ }
|
|
|
LoadGridData(sender, e);
|
|
|
}
|
|
|
|
|
|
@@ -1758,5 +1763,16 @@ namespace UAS_LabelMachine
|
|
|
SelectRowIndex = dsc[0].Index;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ string OutBoxNum1 = "";
|
|
|
+ private void OutBoxNum_SelectionChangeCommitted(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ if (OutBoxNum1 != "全部" && OutBoxNum1 != "新增")
|
|
|
+ if (dh.getFieldDataByCondition("prodiobarcode", "pib_outifprint", "pib_inoutno='" + pi_inoutno.Text + "' and pib_outboxcode2='" + OutBoxNum1 + "'").ToString() != "-1")
|
|
|
+ {
|
|
|
+ MessageBox.Show("外箱号" + OutBoxNum1 + "尚未打印标签");
|
|
|
+ }
|
|
|
+ OutBoxNum1 = OutBoxNum.Text;
|
|
|
+ }
|
|
|
}
|
|
|
}
|