diff --git a/B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs b/B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs index 8fc276c..2b5496d 100644 --- a/B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs +++ b/B3ClientService.Web/Pages/B3ClientService/BaseInfos/ClientGoodsSet_/ClientGoodsSetEdit.cs @@ -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(); }));