|
@@ -285,7 +285,7 @@ namespace UAS_LabelMachine
|
|
|
|
|
|
bool ShowChcode = true;
|
|
|
|
|
|
- List<string> ch_code = new List<string>();
|
|
|
+ List<string> pib_id = new List<string>();
|
|
|
|
|
|
List<string> pib_outboxcode1 = new List<string>();
|
|
|
|
|
@@ -623,7 +623,7 @@ namespace UAS_LabelMachine
|
|
|
sheet.SetRowBreak(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
- ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
+ pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
|
}
|
|
|
for (int i = 0; i < sheet.LastRowNum; i++)
|
|
@@ -808,7 +808,7 @@ namespace UAS_LabelMachine
|
|
|
sheet.SetRowBreak(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
- ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
+ pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
|
}
|
|
|
for (int i = 0; i < sheet.LastRowNum; i++)
|
|
@@ -1004,7 +1004,7 @@ namespace UAS_LabelMachine
|
|
|
sheet.SetRowBreak(PaintIndex);
|
|
|
PaintIndex = PaintIndex + 1;
|
|
|
}
|
|
|
- ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
|
|
|
+ pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
|
|
|
pib_outboxcode1.Add(BoxCode.ToString());
|
|
|
}
|
|
|
for (int i = 0; i < sheet.LastRowNum; i++)
|
|
@@ -1019,7 +1019,7 @@ namespace UAS_LabelMachine
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- dh.BatchInsert("update prodiobarcode set pib_outboxcode1=:pib_outboxcode1 where pib_inoutno='" + Inoutno + "' and pib_custbarcode=:pib_custbarcode", new string[] { "pib_outboxcode1", "pib_custbarcode" }, pib_outboxcode1.ToArray(), ch_code.ToArray());
|
|
|
+ dh.BatchInsert("update prodiobarcode set pib_outboxcode1=:pib_outboxcode1 where pib_inoutno='" + Inoutno + "' and pib_id=:pib_id", new string[] { "pib_outboxcode1", "pib_id" }, pib_outboxcode1.ToArray(), pib_id.ToArray());
|
|
|
|
|
|
HttpHandler.GenDownLoadLinK(Inoutno);
|
|
|
|