From 00864808732699fd3c2bbe9d2214323753fe2b7d Mon Sep 17 00:00:00 2001 From: duanluohua Date: Sat, 10 Mar 2018 11:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.138908=20?= =?UTF-8?q?=E3=80=90=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95=E3=80=91=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=A2=9E=E5=8A=A0=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=9A=E8=8B=A5=E3=80=90=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E3=80=91=E7=9A=84=E9=83=A8=E9=97=A8=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E5=A4=84=E4=BA=8E=E5=88=9D=E5=A7=8B=E7=8A=B6=E6=80=81=EF=BC=8C?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=88=99=E6=A0=B9=E6=8D=AE=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E6=9B=B4=E6=96=B0=E6=94=BF=E7=AD=96=E5=8D=95?= =?UTF-8?q?=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BLActions/SaleOrderUpdatePolicyPrice.cs | 49 +++++++++++++++++++ BWP.B3_YunKen/BWP.B3_YunKen.csproj | 1 + 2 files changed, 50 insertions(+) create mode 100644 BWP.B3_YunKen/BLActions/SaleOrderUpdatePolicyPrice.cs diff --git a/BWP.B3_YunKen/BLActions/SaleOrderUpdatePolicyPrice.cs b/BWP.B3_YunKen/BLActions/SaleOrderUpdatePolicyPrice.cs new file mode 100644 index 0000000..cf9d4f5 --- /dev/null +++ b/BWP.B3_YunKen/BLActions/SaleOrderUpdatePolicyPrice.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Forks.EnterpriseServices.BusinessInterfaces; +using TSingSoft.WebPluginFramework.BIPlugins.BLEvents; +using BWP.B3Sale.BO; +using BWP.B3Sale.BL; + +namespace BWP.B3_YunKen.BLActions +{ + public class SaleOrderUpdatePolicyPrice : IBLMethodAction + { + public string Description + { + get + { + return "根据价格策略更新政策单价"; + } + } + + public IList Features + { + get { return new List(); } + } + + public string Name + { + get + { + return "B3_YunKen.更新政策单价"; + } + } + + public void Execute(IDmoContext context, object dmo, object parameter) + { + var bill = dmo as Order; + var dep_id = bill.DepartmentWorkFlow_Detail_ID; + if (dep_id==0) + { + var factor = PriceFactor.ForOrder(bill); + foreach (Order_Detail detail in bill.Details) + { + detail.SetPrice(factor); + } + } + } + } +} diff --git a/BWP.B3_YunKen/BWP.B3_YunKen.csproj b/BWP.B3_YunKen/BWP.B3_YunKen.csproj index 9673f82..12d804a 100644 --- a/BWP.B3_YunKen/BWP.B3_YunKen.csproj +++ b/BWP.B3_YunKen/BWP.B3_YunKen.csproj @@ -69,6 +69,7 @@ +