|
|
|
@ -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,bool>((long)row["Code"],(bool)row["IsSplitCreatedCustomerAccept"])); |
|
|
|
var items = _grid.GetSelectedItems().Select(row => new Tuple<long, string, bool>((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<ISaleOutStoreBL>().CreateCustomerAccept(items.Select(x=>x.Item1), dateInput.Value, loadTimeInput.Value, orderTimeInput.Value, deliverAddressInput.Text); |
|
|
|
AspUtil.Alert(this, BIFactory.GetLastMessage()); |
|
|
|
_grid.DataBind(); |
|
|
|
|