コード例 #1
0
        public ActionResult CreateTargetCondition(policyData vData, int id, int linkId)
        {
            vData.PolicyLink = new PolicyLinkEntity(linkId);

            vData.Target = new TargetEntity(id);
            vData.Condition = new DecisionNodeEntity();
            vData.Condition.Type = constants.conditionType;
            vData.Condition.CombineAnd = true;

            TargetConditionEntity tce = new TargetConditionEntity();
            tce.Target = vData.Target;
            tce.DecisionNode = vData.Condition;
            tce.Save(true);

            ViewData["title"] = "new target condition";

            return View("EditTarget",vData);
        }
コード例 #2
0
        private void loadSubject(TargetEntity te, XmlNode node)
        {
            DecisionNodeEntity ce = new DecisionNodeEntity();

            TargetConditionEntity tce = new TargetConditionEntity();
            tce.Target = te;
            tce.DecisionNode = ce;

            loadCondition(ce, node);
        }
コード例 #3
0
        /// <summary>Creates a new, empty TargetConditionEntity object.</summary>
        /// <returns>A new, empty TargetConditionEntity object.</returns>
        public override IEntity Create()
        {
            IEntity toReturn = new TargetConditionEntity();

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTargetCondition
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }