diff --git a/BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs b/BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs index e2ee17c..5d66126 100644 --- a/BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs +++ b/BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs @@ -214,12 +214,12 @@ namespace BWP.Web.Pages.B3YunKen { var deliverAddressInput = hPanel2.Add(new DFTextBox() { Width=300}); hPanel2.Add(buildButton); buildButton.Click += delegate { - var items = _grid.GetSelectedItems().Select(row => new Tuple((long)row["Code"],(bool)row["IsSplitCreatedCustomerAccept"])); + var items = _grid.GetSelectedItems().Select(row => new Tuple((long)row["ID"], (string)row["Code"], (bool)row["IsSplitCreatedCustomerAccept"])); if (!items.Any()) throw new ApplicationException("请选择单据!"); - var resultList = items.Where(x => x.Item2); + var resultList = items.Where(x => x.Item3); if (resultList.Count() > 0) - throw new ApplicationException("出库单"+string.Join("、",resultList.Select(x=>x.Item1))+"已经拆分过,不得勾选"); + throw new ApplicationException("出库单"+string.Join("、",resultList.Select(x=>x.Item2))+"已经拆分过,不得勾选"); BIFactory.Create().CreateCustomerAccept(items.Select(x=>x.Item1), dateInput.Value, loadTimeInput.Value, orderTimeInput.Value, deliverAddressInput.Text); AspUtil.Alert(this, BIFactory.GetLastMessage()); _grid.DataBind();