Browse Source

...

master
wugang 8 years ago
parent
commit
9738370a0e
3 changed files with 53 additions and 0 deletions
  1. +1
    -0
      BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/OrderEdit_Ext.cs
  2. +51
    -0
      BWP.B3_YunKen/BLActions/SaleOutStoreFreightData.cs
  3. +1
    -0
      BWP.B3_YunKen/BWP.B3_YunKen.csproj

+ 1
- 0
BWP.B3_YunKen.Web/Pages/B3YunKen/Overlays/OrderEdit_Ext.cs View File

@ -25,6 +25,7 @@ namespace BWP.Web.Pages.B3YunKen.Overlays
config.Add("FreightBear");
config.Add("FreightUnitPrice");
config.Add("FreightPrice");
config.Add("FreightPayment");
}
protected override void AddLayOutManagerScript(LayoutManager layoutPanel)//联动下拉


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

@ -0,0 +1,51 @@
using BWP.B3Frameworks.Utils;
using BWP.B3Sale.BO;
using Forks.EnterpriseServices.BusinessInterfaces;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.EnterpriseServices.DomainObjects2.DQuery;
using Forks.EnterpriseServices.SqlDoms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSingSoft.WebPluginFramework;
using TSingSoft.WebPluginFramework.BIPlugins.BLEvents;
using BWP.B3Sale.Utils;
using Forks.Utils;
using BWP.B3Frameworks.BO.MoneyTemplate;
namespace BWP.B3_YunKen.BLActions
{
public class SaleOutStoreFreightData : IBLMethodAction
{
public string Description
{
get { return "若{计价方式}为计重,则运费金额=【销售出库】明细中{报价数量}合计*{运费单价};若{计价方式}为包车,则运费单价=【销售出库】的{运费金额}/【销售出库】明细中{报价数量}合计"; }
}
public void Execute(IDmoContext context, object dmo, object parameter)
{
var bill = dmo as SaleOutStore;
if (bill == null)
return;
if (bill.FreightPayment == .) {
bill.FreightPrice = (Money<>?)(bill.AllUnitNum * (bill.FreightUnitPrice??0).Value);
} else if (bill.FreightPayment == . && bill.AllUnitNum!=0) {
bill.FreightUnitPrice = bill.FreightPrice / bill.AllUnitNum.Value.Value;
}
}
public IList<string> Features
{
get { return new List<string>(); }
}
public string Name
{
get { return "B3_YunKen.根据计价方式算运费相关"; }
}
}
}

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

@ -67,6 +67,7 @@
<Compile Include="BLActions\SaleForecastBLIsSetWrappageActions.cs" />
<Compile Include="BLActions\SaleOutStoreBLIsSetWrappageActions.c.cs" />
<Compile Include="BLActions\CustomerDealerBLAction.cs" />
<Compile Include="BLActions\SaleOutStoreFreightData.cs" />
<Compile Include="BL\Bill\Goods_PackageBL.cs" />
<Compile Include="BO\Bill\Goods_Package.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />


Loading…
Cancel
Save