Example #1
0
            public virtual SourceSpecificationItem Initialize()
            {
                if (BranchSourceFormulaType != null && BranchSourceFormula == null)
                {
                    BranchSourceFormula = PXFormulaAttribute.InitFormula(BranchSourceFormulaType);
                }

                return(this);
            }
        protected static bool GetConditionResult(PXCache sender, object row, Type conditionType)
        {
            IBqlCreator condition = PXFormulaAttribute.InitFormula(conditionType);
            bool?       result    = null;
            object      value     = null;

            BqlFormula.Verify(sender, row, condition, ref result, ref value);
            return((value as bool?) == true);
        }
        public PXBaseConditionAttribute(Type conditionType)
            : this()
        {
            Type condition = conditionType;

            if (typeof(IBqlWhere).IsAssignableFrom(condition))
            {
                condition = BqlCommand.MakeGenericType(typeof(Switch <,>), typeof(Case <,>), conditionType, typeof(True), typeof(False));
            }
            _Condition = PXFormulaAttribute.InitFormula(condition);
        }
 public PXBaseConditionAttribute(Type conditionType)
     : this()
 {
     _Condition = PXFormulaAttribute.InitFormula(conditionType);
 }
Example #5
0
 public FormulaDefaultAttribute(Type formulaType)
 {
     Formula = PXFormulaAttribute.InitFormula(formulaType);
 }