diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs index d0f513a..f676a61 100644 --- a/UniApiGroup/Controller/OdbcApiQadController.cs +++ b/UniApiGroup/Controller/OdbcApiQadController.cs @@ -816,13 +816,13 @@ namespace CK.SCP.GrupUniApi.Controller var xxMaxbath = new List(); var Dlist = list.Where(p => p.ctype == "D"); var Ilist = list.Where(p => p.ctype != "D"); - var _li = Dlist.GroupBy(p => p.purDocNO); - foreach (var _lii in _li) + //var _li = Dlist.GroupBy(p => p.purDocNO); + foreach (var _lii in Dlist) { - var _liii = _lii.ToList(); - var _entity = _liii.First(); + //var _liii = _lii.ToList(); + //var _entity = _liii.First(); // ¸ù¾Ý Áã¼þºÅ×÷·Ï - var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _entity.purDocNO && p.PartCode == _entity.mtlNO).ToList(); + var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _lii.purDocNO && p.PartCode == _lii.mtlNO).ToList(); askdetaill.ForEach(p => { p.State = -1;