Browse Source

客户端存货设置支持批量更新标准重量标准上下限。

master
yibo 7 years ago
parent
commit
ed7046a564
1 changed files with 11 additions and 10 deletions
  1. +11
    -10
      B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs

+ 11
- 10
B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs View File

@ -88,15 +88,20 @@ namespace BWP.Web.Pages.B3ClientService.BaseInfos.ClientGoodsSet_
}
_detailGrid.DataBind();
};
hPanel.Add(new SimpleLabel("标准重量"));
var standard = hPanel.Add(new DFTextBox() { Width = Unit.Pixel(50) });
hPanel.Add(new SimpleLabel("标准上限"));
var up = hPanel.Add(new DFTextBox() { Width=Unit.Pixel(50)});
var up = hPanel.Add(new DFTextBox() { Width = Unit.Pixel(50) });
hPanel.Add(new SimpleLabel("标准上限"));
var dw = hPanel.Add(new DFTextBox() { Width = Unit.Pixel(50) });
hPanel.Add(new TSButton("更新上下限", delegate {
hPanel.Add(new TSButton("更新上下限", delegate
{
GetFromUI();
decimal? sValue = null;
decimal? uValue = null;
decimal? wValue = null;
if (!standard.IsEmpty)
sValue = decimal.Parse(standard.Text);
if (!up.IsEmpty)
uValue = decimal.Parse(up.Text);
if (!dw.IsEmpty)
@ -104,13 +109,9 @@ namespace BWP.Web.Pages.B3ClientService.BaseInfos.ClientGoodsSet_
foreach (var d in _detailGrid.GetSelectedItems())
{
var detail = d as ClientGoodsSet_Detail;
if (detail.StandardWeight.HasValue)
{
if (uValue.HasValue)
detail.StandardWeightUp = detail.StandardWeight + uValue;
if (wValue.HasValue )
detail.StandardWeightLow = detail.StandardWeight - wValue;
}
detail.StandardWeight = sValue;
detail.StandardWeightUp = detail.StandardWeight + uValue;
detail.StandardWeightLow = detail.StandardWeight - wValue;
}
AppToUI();
}));


Loading…
Cancel
Save