From 9ef3a451f597ed1f6acb8b838f148d0c847af706 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Mon, 10 Sep 2018 20:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E5=8D=95=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarcassInventory_/CarcassInventoryEdit.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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 = "盘点详情";