From e0e50438365547238be3a1f1b31da54a5c7f665c Mon Sep 17 00:00:00 2001 From: wugang <425674808@qq.com> Date: Thu, 11 Jan 2018 16:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.138142?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();