|
@@ -313,9 +313,6 @@ namespace UAS_MES.Warehouse
|
|
|
|
|
|
}
|
|
|
getqty.Text = ((DataTable)bindingSource1.DataSource).Rows.Count.ToString();
|
|
|
- DataView dv = ((DataTable)bindingSource1.DataSource).DefaultView;
|
|
|
- DataTable dta = dv.ToTable(true, "pim_outboxcode");
|
|
|
- outboxqty.Text = dta.Rows.Count.ToString();
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -404,6 +401,7 @@ namespace UAS_MES.Warehouse
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
(bindingSource1.DataSource as DataTable).Merge(dt.Copy());
|
|
|
BaseUtil.FillDgvWithDataTable(InOutDetailDGV, (DataTable)bindingSource1.DataSource);
|
|
|
+ outboxqty.Text = dt.Rows.Count+"";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -413,6 +411,7 @@ namespace UAS_MES.Warehouse
|
|
|
DataTable dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
(bindingSource1.DataSource as DataTable).Merge(dt.Copy());
|
|
|
BaseUtil.FillDgvWithDataTable(InOutDetailDGV, (DataTable)bindingSource1.DataSource);
|
|
|
+ outboxqty.Text = dt.Rows.Count + "";
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -532,9 +531,6 @@ namespace UAS_MES.Warehouse
|
|
|
private void InOutDetailDGV_DataSourceChanged(object sender, EventArgs e)
|
|
|
{
|
|
|
getqty.Text = InOutDetailDGV.Rows.Count.ToString();
|
|
|
- DataView dv = ((DataTable)InOutDetailDGV.DataSource).DefaultView;
|
|
|
- DataTable dt = dv.ToTable(true, "pim_outboxcode");
|
|
|
- outboxqty.Text = dt.Rows.Count.ToString();
|
|
|
|
|
|
}
|
|
|
}
|