Browse Source

业务逻辑

master
luanhui 8 years ago
parent
commit
f0ad186350
3 changed files with 49 additions and 1 deletions
  1. +1
    -1
      B3QingDaoWanFu/B3QingDaoWanFu.csproj
  2. +47
    -0
      B3QingDaoWanFu/BLActions/SaleForecastBLAction.cs
  3. +1
    -0
      WebFolder/config/plugins/B3QingDaoWanFu.plugin

+ 1
- 1
B3QingDaoWanFu/B3QingDaoWanFu.csproj View File

@ -126,9 +126,9 @@
<Compile Include="..\..\..\version\Customer_version.cs"> <Compile Include="..\..\..\version\Customer_version.cs">
<Link>Customer_version.cs</Link> <Link>Customer_version.cs</Link>
</Compile> </Compile>
<Compile Include="BLActions\SaleForecastBLAction.cs" />
<Compile Include="DataPatchs\StatPaySetBillNeedValue20171123.cs" /> <Compile Include="DataPatchs\StatPaySetBillNeedValue20171123.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TypeIOCs\SaleOutStoreBLTypeIoc.cs" />
<Compile Include="TypeIOCs\StatPayBLTypeIoc.cs" /> <Compile Include="TypeIOCs\StatPayBLTypeIoc.cs" />
<Compile Include="Utils\WanFuOnlineConfig.cs" /> <Compile Include="Utils\WanFuOnlineConfig.cs" />
</ItemGroup> </ItemGroup>


+ 47
- 0
B3QingDaoWanFu/BLActions/SaleForecastBLAction.cs View File

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BWP.B3Sale.BO;
using Forks.EnterpriseServices.BusinessInterfaces;
using TSingSoft.WebPluginFramework.BIPlugins.BLEvents;
namespace BWP.B3QingDaoWanFu.BLActions
{
public class SaleForecastBLAction : IBLMethodAction
{
public void Execute(IDmoContext context, object dmo, object parameter)
{
//时 分
var bill = dmo as SaleForecast;
var shi =Convert.ToInt32(parameter.ToString().Split(',')[0]);
var fen = Convert.ToInt32(parameter.ToString().Split(',')[1]);
var = bill.CreateTime.Value.Date;
var = bill.DeliveryTime.Value.Date;
if ( == )
{
if (DateTime.Now > new DateTime(.Year, .Month, .Day, shi, fen, 0))
{
throw new Exception("超时间订货,请于"+shi+"时"+fen+"分 前订货");
}
}
else if(> )
{
throw new Exception("创建日期不能大于提货日期");
}
}
public string Name {
get { return "B3QingDaoWanFu.销售预报审核控制时间"; }
}
public string Description {
get { return "销售预报审核控制时间"; }
}
public IList<string> Features
{
get { return new List<string>(); }
}
}
}

+ 1
- 0
WebFolder/config/plugins/B3QingDaoWanFu.plugin View File

@ -4,6 +4,7 @@
<Plugin name="B3ProduceUnitedInfos" version="$appVersion"/> <Plugin name="B3ProduceUnitedInfos" version="$appVersion"/>
<Plugin name="B3Procurement" version="$appVersion"/> <Plugin name="B3Procurement" version="$appVersion"/>
<Plugin name="B3ButcherManage" version="$appVersion"/> <Plugin name="B3ButcherManage" version="$appVersion"/>
<Plugin name="B3Sale" version="$appVersion"/>
</Requires> </Requires>
<Assemblies> <Assemblies>
<File name="B3QingDaoWanFu.dll" type="bo bl"/> <File name="B3QingDaoWanFu.dll" type="bo bl"/>


Loading…
Cancel
Save