Browse Source

青岛万福 修改业务逻辑 详见需求单 141760

master
wushukun 7 years ago
parent
commit
c08901d578
1 changed files with 25 additions and 0 deletions
  1. +25
    -0
      B3QingDaoWanFu/BLActions/SaleForecastBLAction.cs

+ 25
- 0
B3QingDaoWanFu/BLActions/SaleForecastBLAction.cs View File

@ -10,7 +10,32 @@ namespace BWP.B3QingDaoWanFu.BLActions
{
public class SaleForecastBLAction : IBLMethodAction
{
//需求单 141760 修改业务逻辑
public void Execute(IDmoContext context, object dmo, object parameter)
{
//时 分
var bill = dmo as SaleForecast;
var shi = Convert.ToInt32(parameter.ToString().Split(',')[0]);
var fen = Convert.ToInt32(parameter.ToString().Split(',')[1]);
var = bill.DeliveryTime.Value.Date;
var = DateTime.Today;
var = DateTime.Now;
if ( == )
{
if ( > new DateTime(.Year, .Month, .Day, shi, fen, 0))
{
throw new Exception(string.Format("审核失败,超出订货时间{0}时,{1}分不允许订货", shi, fen));
}
}
else if ( > )
{
throw new Exception("提货日期不符,请修改提货日期");
}
}
public void Execute111(IDmoContext context, object dmo, object parameter)
{
//时 分
var bill = dmo as SaleForecast;


Loading…
Cancel
Save