|
|
|
@ -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<Goods>(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 = "盘点详情"; |
|
|
|
|