|
|
@@ -196,8 +196,14 @@ namespace UAS_LabelMachine.PublicMethod
|
|
|
//累计Excel该型号的数量
|
|
|
sumqty[pr_spec] += decimal.Parse(qty);
|
|
|
}
|
|
|
- dt.DefaultView.Sort = "箱号,DC ";
|
|
|
- dt = dt.DefaultView.ToTable();
|
|
|
+ DataTable temp = dt.Clone();
|
|
|
+ temp.Columns["箱号"].DataType = typeof(int);
|
|
|
+ foreach (DataRow s in dt.Rows)
|
|
|
+ {
|
|
|
+ temp.ImportRow(s);//导入旧数据
|
|
|
+ }
|
|
|
+ temp.DefaultView.Sort = "箱号,DC ";
|
|
|
+ dt = temp.DefaultView.ToTable();
|
|
|
for (int i = 0; i < dt1.Rows.Count; i++)
|
|
|
{
|
|
|
//不包含型号则进行添加
|