|
|
|
@ -200,12 +200,21 @@ namespace BWP.Web.Pages.B3YunKen { |
|
|
|
hPanel.Add(new SimpleLabel("验收日期")); |
|
|
|
var dateInput = hPanel.Add(new DFDateInput()); |
|
|
|
dateInput.Value = BLContext.Today; |
|
|
|
hPanel.Add(buildButton); |
|
|
|
hPanel.Add(new SimpleLabel("发货时间")); |
|
|
|
var loadTimeInput = hPanel.Add(new DFDateTimeInput()); |
|
|
|
loadTimeInput.Value = BLContext.Now; |
|
|
|
hPanel.Add(new SimpleLabel("订货时间")); |
|
|
|
var orderTimeInput = hPanel.Add(new DFDateTimeInput()); |
|
|
|
orderTimeInput.Value = BLContext.Now; |
|
|
|
var hPanel2 = vPanel.Add(new HLayoutPanel()); |
|
|
|
hPanel2.Add(new SimpleLabel("送货地址")); |
|
|
|
var deliverAddressInput = hPanel2.Add(new DFTextBox() { Width=300}); |
|
|
|
hPanel2.Add(buildButton); |
|
|
|
buildButton.Click += delegate { |
|
|
|
var ids = _grid.GetSelectedItems().Select(row => (long)row["ID"]); |
|
|
|
if (!ids.Any()) |
|
|
|
throw new ApplicationException("请选择单据!"); |
|
|
|
BIFactory.Create<ISaleOutStoreBL>().CreateCustomerAccept(ids, dateInput.Value); |
|
|
|
BIFactory.Create<ISaleOutStoreBL>().CreateCustomerAccept(ids, dateInput.Value, loadTimeInput.Value, orderTimeInput.Value, deliverAddressInput.Text); |
|
|
|
AspUtil.Alert(this, BIFactory.GetLastMessage()); |
|
|
|
_grid.DataBind(); |
|
|
|
}; |
|
|
|
|