|
|
@@ -1484,19 +1484,22 @@ namespace UAS_LabelMachine
|
|
|
MidBoxCacheData.Clear();
|
|
|
BaseUtil.CleanDataTable(MidBoxCacheData);
|
|
|
List<int> MidOutBoxCode = new List<int>();
|
|
|
+ List<int> MidOutBoxCodeIndex = new List<int>();
|
|
|
string la_id = MidLabelCombox.SelectedValue.ToString().Split('#')[0];
|
|
|
for (int i = 0; i < LabelInf.Rows.Count; i++)
|
|
|
{
|
|
|
if (!MidIDAndOutboxcode.ContainsValue(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString()))
|
|
|
MidIDAndOutboxcode.Add(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString(), LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString());
|
|
|
- if (!MidOutBoxCode.Contains(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString()))) {
|
|
|
+ if (!MidOutBoxCode.Contains(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString())))
|
|
|
+ {
|
|
|
MidOutBoxCode.Add(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString()));
|
|
|
+ MidOutBoxCodeIndex.Add(i);
|
|
|
}
|
|
|
}
|
|
|
GetMidBoxData();
|
|
|
- for (int i = 0; i < MidOutBoxCode.Count; i++)
|
|
|
+ for (int i = 0; i < MidOutBoxCodeIndex.Count; i++)
|
|
|
{
|
|
|
- MidBoxCodePrint(la_id, MidOutBoxCode[i],"HanlePrint");
|
|
|
+ MidBoxCodePrint(la_id, MidOutBoxCodeIndex[i], "HanlePrint");
|
|
|
}
|
|
|
MidBoxArgument.Clear();
|
|
|
MidBoxCacheData.Clear();
|