|
|
@@ -448,6 +448,14 @@ namespace UAS_LabelMachine
|
|
|
BaseUtil.SetFormCenter(stw);
|
|
|
stw.ShowDialog();
|
|
|
}
|
|
|
+ SumQty = new DataTable();
|
|
|
+ if (SumQty.Columns.Count == 0)
|
|
|
+ {
|
|
|
+ sql.Clear();
|
|
|
+ sql.Append("select pib_pdno,pib_prodcode,sum(pib_qty) pib_qty from prodiodetail left join prodiobarcode on pd_id=pib_pdid and pd_pdno=pib_pdno ");
|
|
|
+ sql.Append("where pib_inoutno='" + pi_inoutno.Text + "' group by pib_prodcode,pib_pdno order by pib_pdno ");
|
|
|
+ SumQty = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
+ }
|
|
|
//采集后重新计数,自动跳到下一行
|
|
|
collectqty = (SumQty.Compute("sum(pib_qty)", "pib_prodcode='" + CurrentPrCode + "' and pib_pdno='" + CurrentPDNO + "'").ToString());
|
|
|
CollectQty = (collectqty == "" ? 0 : double.Parse(collectqty));
|
|
|
@@ -529,6 +537,7 @@ namespace UAS_LabelMachine
|
|
|
}
|
|
|
if (!SingleLabelCombox.SelectedValue.ToString().Contains("System.Data.DataRowView"))
|
|
|
SingleReport.Load(SingleLabelCombox.SelectedValue.ToString());
|
|
|
+ // SingleReport.Load(@"C:\打印标签\立景创新LP.frx");
|
|
|
for (int j = 0; j < SingleReport.Parameters.Count; j++)
|
|
|
{
|
|
|
SingleReport.SetParameterValue(SingleReport.Parameters[j].Name, "");
|