You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

49 lines
1.0 KiB

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<string> Features
{
get { return new List<string>(); }
}
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, context);
}
}
}
}
}