|
@@ -606,7 +606,7 @@ namespace UAS_LabelMachine
|
|
|
for (int i = 0; i < LabelInf.RowCount; i++)
|
|
for (int i = 0; i < LabelInf.RowCount; i++)
|
|
|
{
|
|
{
|
|
|
//勾选了并且未打印
|
|
//勾选了并且未打印
|
|
|
- if (LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString().ToLower() == "true" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true")
|
|
|
|
|
|
|
+ if (LabelInf.Rows[i].Cells["Choose"].FormattedValue != null && LabelInf.Rows[i].Cells["Choose"].FormattedValue.ToString().ToLower() == "true" && LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToLower() != "true")
|
|
|
{
|
|
{
|
|
|
pibid += LabelInf.Rows[i].Cells["pib_id1"].Value.ToString() + ",";
|
|
pibid += LabelInf.Rows[i].Cells["pib_id1"].Value.ToString() + ",";
|
|
|
LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
|
|
LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
|
|
@@ -635,7 +635,7 @@ namespace UAS_LabelMachine
|
|
|
{
|
|
{
|
|
|
SingleReport.Print();
|
|
SingleReport.Print();
|
|
|
}
|
|
}
|
|
|
- catch (Exception e)
|
|
|
|
|
|
|
+ catch (Exception e)
|
|
|
{
|
|
{
|
|
|
MessageBox.Show(e.Message);
|
|
MessageBox.Show(e.Message);
|
|
|
return;
|
|
return;
|