Browse Source

盘点单增加批量新增

master
yibo 7 years ago
parent
commit
9ef3a451f5
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs

+ 21
- 0
B3ClientService.Web/Pages/B3ClientService/Bills/CarcassInventory_/CarcassInventoryEdit.cs View File

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


Loading…
Cancel
Save