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.SetPolicyPrice(factor); } } } } }