Browse Source

需求单No.137704

master
wugang 8 years ago
parent
commit
6f7af0816b
6 changed files with 106 additions and 3 deletions
  1. +4
    -0
      BWP.B3_YunKen.Web/BWP.B3_YunKen.Web.csproj
  2. +24
    -0
      BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/CustomerApplyEdit_Ext.cs
  3. +22
    -0
      BWP.B3_YunKen.Web/Pages/TypeIOCs/CustomerEditAddBasePropertiesIOC.cs
  4. +2
    -1
      BWP.B3_YunKen.Web/PluginClass.cs
  5. +51
    -0
      BWP.B3_YunKen/BLActions/CustomerDealerBLAction.cs
  6. +3
    -2
      BWP.B3_YunKen/BWP.B3_YunKen.csproj

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

@ -97,6 +97,9 @@
<Compile Include="Pages\B3YunKen\Dialogs\ProductionCompletionDialog.cs"> <Compile Include="Pages\B3YunKen\Dialogs\ProductionCompletionDialog.cs">
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Pages\B3YunKen\Overlays\CustomerApplyEdit_Ext.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Pages\B3YunKen\Overlays\OrderEdit_Ext.cs"> <Compile Include="Pages\B3YunKen\Overlays\OrderEdit_Ext.cs">
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
@ -137,6 +140,7 @@
<SubType>ASPXCodeBehind</SubType> <SubType>ASPXCodeBehind</SubType>
</Compile> </Compile>
<Compile Include="Pages\MainToSecondConvertRowManger.cs" /> <Compile Include="Pages\MainToSecondConvertRowManger.cs" />
<Compile Include="Pages\TypeIOCs\CustomerEditAddBasePropertiesIOC.cs" />
<Compile Include="Pages\TypeIOCs\GatheringPrintTypeIOC.cs" /> <Compile Include="Pages\TypeIOCs\GatheringPrintTypeIOC.cs" />
<Compile Include="Pages\TypeIOCs\GoodsApplyBasePropertiesIOC.cs" /> <Compile Include="Pages\TypeIOCs\GoodsApplyBasePropertiesIOC.cs" />
<Compile Include="Pages\Utils\Second_ConvertRatioRowManager.cs" /> <Compile Include="Pages\Utils\Second_ConvertRatioRowManager.cs" />


+ 24
- 0
BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/CustomerApplyEdit_Ext.cs View File

@ -0,0 +1,24 @@
using BWP.B3Butchery.BO;
using BWP.Web.Pages.B3Butchery.Bills.ProductInStore_;
using BWP.Web.Utils;
using BWP.Web.WebControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSingSoft.WebControls2;
using BWP.Web.Pages.B3Sale.Bills.CustomerApply_;
namespace BWP.Web.Pages.B3YunKen.Overlays
{
public class CustomerApplyEdit_Ext : CustomerApplyEdit
{
public override void AddConfig(Layout.AutoLayoutConfig config)
{
base.AddConfig(config);
config.AddBefore("SalePeople_ID", "Remark");
config.AddAfter("Dealer_ID", "SalePeople_ID");
config.AddAfter("OfficeAddress", "Dealer_ID");
}
}
}

+ 22
- 0
BWP.B3_YunKen.Web/Pages/TypeIOCs/CustomerEditAddBasePropertiesIOC.cs View File

@ -0,0 +1,22 @@
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.GoodsApply_;
namespace BWP.Web.Pages.TypeIOCs
{
[TypeIOC(typeof(CustomerEdit), typeof(CustomerEdit.BaseDmoEditPageIOCs.BeforeBasePropertiesApplyLayout))]
public class CustomerEditAddBasePropertiesIOC : CustomerEdit.BaseDmoEditPageIOCs.BeforeBasePropertiesApplyLayout
{
public void Invoke(System.Web.UI.Page page, Layout.LayoutManager manager, Layout.AutoLayoutConfig config, CustomPageLayout.PageLayoutSection section)
{
config.AddBefore("SalePeople_ID", "Remark");
config.AddAfter("Dealer_ID", "SalePeople_ID");
config.AddAfter("OfficeAddress", "Dealer_ID");
}
}
}

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

@ -10,6 +10,7 @@ using BWP.Web.Pages.B3Sale.Bills.SaleForecast_;
using BWP.Web.Pages.B3Butchery.Bills.ProductNotice_; using BWP.Web.Pages.B3Butchery.Bills.ProductNotice_;
using BWP.Web.Pages.B3Butchery.Reports.ProductNoticeReport_; using BWP.Web.Pages.B3Butchery.Reports.ProductNoticeReport_;
using BWP.Web.Pages.B3Butchery.Bills.ProductInStore_; using BWP.Web.Pages.B3Butchery.Bills.ProductInStore_;
using BWP.Web.Pages.B3Sale.Bills.CustomerApply_;
namespace BWP.B3_YunKen.Web namespace BWP.B3_YunKen.Web
{ {
@ -20,7 +21,6 @@ namespace BWP.B3_YunKen.Web
GlobalFlags.On(B3SaleConsts.Flags.EnableStandardGoods); GlobalFlags.On(B3SaleConsts.Flags.EnableStandardGoods);
GlobalFlags.On(B3SaleConsts.Flags.RecordLastSaleOutStoreDate); GlobalFlags.On(B3SaleConsts.Flags.RecordLastSaleOutStoreDate);
GlobalFlags.On(B3SaleConsts.Flags.IsYunKen); GlobalFlags.On(B3SaleConsts.Flags.IsYunKen);
GlobalFlags.On(B3SaleConsts.Flags.DriverNameAllowSame); GlobalFlags.On(B3SaleConsts.Flags.DriverNameAllowSame);
GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.); GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.);
//GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.产品线增加字段上级产品线); //GlobalFlags.On(B3UnitedInfosConsts.GlobalFlags.产品线增加字段上级产品线);
@ -31,6 +31,7 @@ namespace BWP.B3_YunKen.Web
WpfPageFactory.RegisterPageOverlay(typeof(ProductNoticeReport).FullName, typeof(ProductNoticeReport_Ext).FullName); WpfPageFactory.RegisterPageOverlay(typeof(ProductNoticeReport).FullName, typeof(ProductNoticeReport_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(ProduceFinishEdit).FullName, typeof(ProduceFinishEdit_Ext).FullName); WpfPageFactory.RegisterPageOverlay(typeof(ProduceFinishEdit).FullName, typeof(ProduceFinishEdit_Ext).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(ProductInStoreEdit).FullName, typeof(ProduceFinishBtnExt).FullName); WpfPageFactory.RegisterPageOverlay(typeof(ProductInStoreEdit).FullName, typeof(ProduceFinishBtnExt).FullName);
WpfPageFactory.RegisterPageOverlay(typeof(CustomerApplyEdit).FullName, typeof(CustomerApplyEdit_Ext).FullName);
} }
public void OnUnitInit() public void OnUnitInit()


+ 51
- 0
BWP.B3_YunKen/BLActions/CustomerDealerBLAction.cs View File

@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BWP.B3Sale.BL;
using BWP.B3Sale.BO;
using Forks.EnterpriseServices.BusinessInterfaces;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
using TSingSoft.WebPluginFramework.BIPlugins.BLEvents;
namespace BWP.B3_YunKen.BLActions
{
public class CustomerDealerBLAction : IBLMethodAction
{
public string Description
{
get { return "若所选择【经销商】档案明细没有此客户,则在【经销商】中下插入一条明细"; }
}
public void Execute(Forks.EnterpriseServices.BusinessInterfaces.IDmoContext context, object dmo, object parameter)
{
var customer = dmo as Customer;
if (customer!=null && !customer.IsDealers && customer.Dealer_ID != null) {
var query = new DQueryDom(new JoinAlias(typeof(Dealer_Detail)));
query.Columns.Add(DQSelectColumn.Field("ID"));
query.Where.Conditions.Add(DQCondition.EQ("Dealer_ID", customer.Dealer_ID));
query.Where.Conditions.Add(DQCondition.EQ("Customer_ID", customer.ID));
var id = (long?)context.Session.ExecuteScalar(query);
if (id == null) {
var bl = BIFactory.Create<IDealerBL>(context.Session);
var dealer = bl.Load(customer.Dealer_ID.Value);
var detail = new Dealer_Detail();
detail.Customer_ID = customer.ID;
dealer.Details.Add(detail);
bl.Update(dealer);
}
}
}
public IList<string> Features
{
get { return new List<string>(); }
}
public string Name
{
get { return "B3_HuaDu.若所选择【经销商】档案明细没有此客户,则在【经销商】中下插入一条明细"; }
}
}
}

+ 3
- 2
BWP.B3_YunKen/BWP.B3_YunKen.csproj View File

@ -61,10 +61,11 @@
</Reference> </Reference>
<Reference Include="Wpf.System, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL" /> <Reference Include="Wpf.System, Version=1.3.0.0, Culture=neutral, PublicKeyToken=a04fa581c0f74d43, processorArchitecture=MSIL" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile Include="BLActions\OrderBLIsSetWrappageActions.cs" /> <Compile Include="BLActions\OrderBLIsSetWrappageActions.cs" />
<Compile Include="BLActions\SaleForecastBLIsSetWrappageActions.cs" /> <Compile Include="BLActions\SaleForecastBLIsSetWrappageActions.cs" />
<Compile Include="BLActions\SaleOutStoreBLIsSetWrappageActions.c.cs" />
<Compile Include="BLActions\SaleOutStoreBLIsSetWrappageActions.c.cs" />
<Compile Include="BLActions\CustomerDealerBLAction.cs" />
<Compile Include="BL\Bill\Goods_PackageBL.cs" /> <Compile Include="BL\Bill\Goods_PackageBL.cs" />
<Compile Include="BO\Bill\Goods_Package.cs" /> <Compile Include="BO\Bill\Goods_Package.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />


Loading…
Cancel
Save