Browse Source

调整打印问题

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

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

@@ -939,7 +939,7 @@ namespace UAS_LabelMachine
                 }
                 }
                 //名称相等的时候,取SQL进行值的查询
                 //名称相等的时候,取SQL进行值的查询
                 DataTable dt;
                 DataTable dt;
-                if (MidLabelAutoPrint.Checked)
+                if (MidLabelAutoPrint.Checked || SelectRowIndex > 0)
                 {
                 {
                     dt = (DataTable)dh.ExecuteSql("select * from prodiomidinfo_view where 出货单号='" + pi_inoutno.Text + "' and 中盒号 in(" + pib_outboxcode1 + ")", "select");
                     dt = (DataTable)dh.ExecuteSql("select * from prodiomidinfo_view where 出货单号='" + pi_inoutno.Text + "' and 中盒号 in(" + pib_outboxcode1 + ")", "select");
                 }
                 }