Browse Source

需求单No.137626

master
wugang 8 years ago
parent
commit
58688cab5f
4 changed files with 37 additions and 2 deletions
  1. +1
    -0
      BWP.B3_YunKen.Web/BWP.B3_YunKen.Web.csproj
  2. +11
    -2
      BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs
  3. +24
    -0
      BWP.B3_YunKen.Web/Pages/TypeIOCs/CustomerAcceptEditAddBasePropertiesIOC.cs
  4. +1
    -0
      BWP.B3_YunKen.Web/PluginClass.cs

+ 1
- 0
BWP.B3_YunKen.Web/BWP.B3_YunKen.Web.csproj View File

@ -140,6 +140,7 @@
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\MainToSecondConvertRowManger.cs" />
<Compile Include="Pages\TypeIOCs\CustomerAcceptEditAddBasePropertiesIOC.cs" />
<Compile Include="Pages\TypeIOCs\CustomerEditAddBasePropertiesIOC.cs" />
<Compile Include="Pages\TypeIOCs\GatheringPrintTypeIOC.cs" />
<Compile Include="Pages\TypeIOCs\GoodsApplyBasePropertiesIOC.cs" />


+ 11
- 2
BWP.B3_YunKen.Web/Pages/B3YunKen/B3YunKenSaleOutStoreToCustomerAccept.cs View File

@ -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();
};


+ 24
- 0
BWP.B3_YunKen.Web/Pages/TypeIOCs/CustomerAcceptEditAddBasePropertiesIOC.cs View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BWP.B3Frameworks;
using BWP.Web.Pages.B3Sale.BaseInfos;
using BWP.Web.Pages.B3Sale.Bills.CustomerAccept_;
using BWP.Web.Pages.B3Sale.Bills.GoodsApply_;
namespace BWP.Web.Pages.TypeIOCs
{
[TypeIOC(typeof(CustomerAcceptEdit), typeof(CustomerAcceptEdit.BaseDmoEditPageIOCs.BeforeBasePropertiesApplyLayout))]
public class CustomerAcceptEditAddBasePropertiesIOC : CustomerAcceptEdit.BaseDmoEditPageIOCs.BeforeBasePropertiesApplyLayout
{
public void Invoke(System.Web.UI.Page page, Layout.LayoutManager manager, Layout.AutoLayoutConfig config, CustomPageLayout.PageLayoutSection section)
{
config.AddBefore("OrderDate", "Remark");
config.AddAfter("LoadTime", "OrderDate");
config.AddAfter("DeliverAddress", "LoadTime");
config.AddAfter("CreditPolicy_ID", "DeliverAddress");
}
}
}

+ 1
- 0
BWP.B3_YunKen.Web/PluginClass.cs View File

@ -24,6 +24,7 @@ namespace BWP.B3_YunKen.Web
GlobalFlags.On(B3SaleConsts.Flags.DriverNameAllowSame);
GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.);
//GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.产品线增加字段上级产品线);
GlobalFlags.On(B3SaleConsts.Flags.IsDisplayCustomerAcceptSourceBillInfo);
WpfPageFactory.RegisterPageOverlay(typeof(OrderEdit).FullName, typeof(OrderEdit_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(SaleOutStoreEdit).FullName, typeof(SaleOutStoreEdit_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(SaleForecastEdit).FullName, typeof(SaleForecastEdit_Ext).FullName);


Loading…
Cancel
Save