public virtual bool Execute(PurchaseSetupRequest request) { foreach (var item in Settings) { ProcessingEngine.Log(string.Format("Setting: {0}:{1}", item.Key, item.Value)); } return true; }
public override bool Execute(PurchaseSetupRequest request) { ProcessingEngine.Log("Execute BaseLocalRestriction class"); foreach (var item in Settings) { ProcessingEngine.Log(string.Format("Setting: {0}:{1}", item.Key, item.Value)); } return true; }
public bool Execute(PurchaseSetupRequest request) { ProcessingEngine.Log("Execute BaseValidation class"); foreach (var item in Settings) { ProcessingEngine.Log(string.Format("Setting: {0}:{1}", item.Key, item.Value)); } //ProcessingEngine.Log(string.Format("DateStart: {0}", ((DateTime)Settings["DateStart"]).ToShortDateString())); //ProcessingEngine.Log(string.Format("DateEnd: {0}", ((DateTime)Settings["DateEnd"]).ToShortDateString())); return true; }
public override bool Execute(PurchaseSetupRequest request) { ProcessingEngine.Log("Check for condition..."); if (request.Date > (DateTime)Settings["Date"]) { ProcessingEngine.Log("return true"); return true; } ProcessingEngine.Log("return false"); return false; }
public bool Execute(PurchaseSetupRequest request) { foreach (var item in Conditions) { if (item.Execute(request)) { if (ExpressionType == ExpressionType.OR) { return true; } } else { if (ExpressionType == ExpressionType.AND) { return false; } } } foreach (var item in Groups) { if (item.Execute(request)) { if (ExpressionType == ExpressionType.OR) { return true; } } else { if (ExpressionType == ExpressionType.AND) { return false; } } } return ExpressionType == ExpressionType.AND ? true : false; }
public bool Execute(PurchaseSetupRequest request) { return ConditionItem.Execute(request); }