diff --git a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs index 8534405..a581f0d 100644 --- a/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs +++ b/ButcherFactory.Form/CarcassTakeOut_/CarcassTakeOutForm.cs @@ -175,7 +175,7 @@ namespace ButcherFactory.CarcassTakeOut_ private void submitBtn_Click(object sender, EventArgs e) { - var arrs = needSubmitedList.Where(x => x.Weight.HasValue); + var arrs = needSubmitedList.Where(x => x.Weight.HasValue).ToList(); CarcassTakeOutBL.Submit(arrs.Select(x => x.ID)); foreach (var item in arrs) {