diff --git a/B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs b/B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs index 048166d..f61b598 100644 --- a/B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs +++ b/B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs @@ -2,6 +2,7 @@ using BWP.B3ClientService.BL; using BWP.B3ClientService.BO; using BWP.Web.Layout; +using BWP.Web.Utils; using BWP.Web.WebControls; using Forks.EnterpriseServices.DataForm; using System; @@ -51,6 +52,26 @@ namespace BWP.Web.Pages.B3ClientService.Bills.CarcassInventory_ Dmo.Details.Add(new CarcassInventory_SummaryDetail { Goods_ID = goodsID, Goods_Name = goodsSelect.DisplayValue }); AppToUI(); })); + + var addGoods = hPanel.Add(new DialogButton + { + Text = "选择存货", + }); + addGoods.Url = "~/B3ClientService/Dialogs/SelectGoodsDialogs.aspx"; + addGoods.Click += delegate + { + _detailGrid.GetFromUI(); + foreach (var goods in DialogUtil.GetCachedObj(this)) + { + if (Dmo.Details.Any(x => x.Goods_ID == goods.ID)) + continue; + var detail = new CarcassInventory_SummaryDetail(); + detail.Goods_ID = goods.ID; + detail.Goods_Name = goods.Name; + Dmo.Details.Add(detail); + } + _detailGrid.DataBind(); + }; } var btn = titlePanel.NavPanel.EAdd(new DialogButton()); btn.Text = "盘点详情";