コード例 #1
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "id")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".ID"))
                {
                    variable.Value = ssID;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "tablename")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".TableName"))
                {
                    variable.Value = ssTableName;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #2
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "messagetext")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".MessageText"))
                {
                    variable.Value = ssMessageText;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "messagetype")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".MessageType"))
                {
                    variable.Value = ssMessageType;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #3
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "name")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Name"))
                {
                    variable.Value = ssName;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "attributies")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Attributies"))
                {
                    variable.Value = ssAttributies;
                }
                else
                {
                    variable.Optimized = true;
                }
                variable.SetFieldName("attributies");
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #4
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "objectchanged")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".ObjectChanged"))
                {
                    variable.Value = ssSTObjectChanged;
                }
                else
                {
                    variable.Optimized = true;
                }
                variable.SetFieldName("objectchanged");
            }
            else if (head == "error")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Error"))
                {
                    variable.Value = ssSTError;
                }
                else
                {
                    variable.Optimized = true;
                }
                variable.SetFieldName("error");
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #5
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "name")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Name"))
                {
                    variable.Value = ssName;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "jobtitle")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".JobTitle"))
                {
                    variable.Value = ssJobTitle;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "phone")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Phone"))
                {
                    variable.Value = ssPhone;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "email")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Email"))
                {
                    variable.Value = ssEmail;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #6
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "number")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Number"))
                {
                    variable.Value = ssNumber;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "index")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Index"))
                {
                    variable.Value = ssIndex;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "iscurrent")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".IsCurrent"))
                {
                    variable.Value = ssIsCurrent;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #7
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "id")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Id"))
                {
                    variable.Value = ssId;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "order")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Order"))
                {
                    variable.Value = ssOrder;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "caption")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Caption"))
                {
                    variable.Value = ssCaption;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #8
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "attribute")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Attribute"))
                {
                    variable.Value = ssAttribute;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "originalvalue")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".OriginalValue"))
                {
                    variable.Value = ssOriginalValue;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            else if (head == "modifieldvalue")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".ModifieldValue"))
                {
                    variable.Value = ssModifieldValue;
                }
                else
                {
                    variable.Optimized = true;
                }
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #9
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "feedback_message")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".Feedback_Message"))
                {
                    variable.Value = ssSTFeedback_Message;
                }
                else
                {
                    variable.Optimized = true;
                }
                variable.SetFieldName("feedback_message");
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #10
0
        public void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (head == "listnavigation_pagenumber")
            {
                if (!VarValue.FieldIsOptimized(parent, baseName + ".ListNavigation_PageNumber"))
                {
                    variable.Value = ssSTListNavigation_PageNumber;
                }
                else
                {
                    variable.Optimized = true;
                }
                variable.SetFieldName("listnavigation_pagenumber");
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(this, head, tail);
            }
        }
コード例 #11
0
        public static void EvaluateFields(IRtWidget rtWidget, VarValue variable, Object parent, String baseName, String fields)
        {
            String head = VarValue.GetHead(fields);
            String tail = VarValue.GetTail(fields);

            variable.Found = false;
            if (rtWidget.Id != null)
            {
                if (head == "id")
                {
                    variable.Value = rtWidget.Id;
                }
            }
            rtWidget.InnerEvaluateField(variable, head);
            if (!variable.Found && rtWidget.Control != null)
            {
                variable.InvokeEvaluateFields(rtWidget.Control, baseName, fields);
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(rtWidget, head, tail);
            }
        }
コード例 #12
0
        public static void EvaluateFields(VarValue variable, Object parent, String baseName, String fields)
        {
            int    dotPos = fields.IndexOf(".");
            String head   = (dotPos == -1 ? fields: fields.Substring(0, dotPos));
            String tail   = (dotPos == -1 ? null: fields.Substring(dotPos + 1));

            variable.Found = false;
            if (head == "Schedule")
            {
                variable.Value = Schedule;
            }
            else if (head == "LastRun")
            {
                variable.Value = LastRun;
            }
            else if (head == "NextRun")
            {
                variable.Value = NextRun;
            }
            if (variable.Found && tail != null)
            {
                variable.EvaluateFields(null, head, tail);
            }
        }