Browse Source

Merge branch t re'master' of bwpgit:BWPB3/B3YunKen

master
wushukun 8 years ago
parent
commit
0e6f23017e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs

+ 3
- 3
BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs View File

@ -214,12 +214,12 @@ namespace BWP.Web.Pages.B3YunKen {
var deliverAddressInput = hPanel2.Add(new DFTextBox() { Width=300}); var deliverAddressInput = hPanel2.Add(new DFTextBox() { Width=300});
hPanel2.Add(buildButton); hPanel2.Add(buildButton);
buildButton.Click += delegate { 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()) if (!items.Any())
throw new ApplicationException("请选择单据!"); throw new ApplicationException("请选择单据!");
var resultList = items.Where(x => x.Item2);
var resultList = items.Where(x => x.Item3);
if (resultList.Count() > 0) 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); BIFactory.Create<ISaleOutStoreBL>().CreateCustomerAccept(items.Select(x=>x.Item1), dateInput.Value, loadTimeInput.Value, orderTimeInput.Value, deliverAddressInput.Text);
AspUtil.Alert(this, BIFactory.GetLastMessage()); AspUtil.Alert(this, BIFactory.GetLastMessage());
_grid.DataBind(); _grid.DataBind();


Loading…
Cancel
Save