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 @@ +