Browse Source

调整打印BUG

章政 7 years ago
parent
commit
0435e2d88e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 2 - 2
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -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() != "true")
+                        if (LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true")
                         {
                             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()!="true")
+                        if (LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() == SelectProdcode && LabelInf.Rows[i].Cells["pib_ifprint"].Value.ToString().ToLower() != "true")
                         {
                             LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
                             if (!MidOutBoxCode.Contains(int.Parse(LabelInf.Rows[i].Cells["pib_outboxcode1"].Value.ToString())))