Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hasChildElements"></param>
        /// <returns></returns>
        protected override string SerializeCommandData(ref bool hasChildElements)
        {
            CommandSerializationHelper helper = new CommandSerializationHelper();

            bool execStackExists = ExecutionStack != null && !ExecutionStack.empty();

            helper.SerializeTaskTag(TaskTag);

            if (HandlerId != null && !execStackExists)
            {
                helper.SerializeAttribute(ConstInterface.MG_ATTR_HANDLERID, HandlerId);
            }

            if (OperIdx > Int32.MinValue && !execStackExists)
            {
                helper.SerializeAttribute(ConstInterface.MG_ATTR_OPER_IDX, OperIdx);
            }

            helper.SerializeDitIdx(DitIdx);
            if (Val != null)
            {
                helper.SerializeAttribute(XMLConstants.MG_ATTR_VALUE, XmlParser.escape(Val));
            }

            if (CheckOnly)
            {
                helper.SerializeAttribute(ConstInterface.MG_ATTR_CHECK_ONLY, "1");
            }

            return(helper.GetString());
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hasChildElements"></param>
        /// <returns></returns>
        protected override string SerializeCommandData(ref bool hasChildElements)
        {
            CommandSerializationHelper helper = new CommandSerializationHelper();

            helper.SerializeTaskTag(TaskTag);
            helper.SerializeMagicEvent(MagicEvent);
            helper.SerializeDitIdx(DitIdx);

            return(helper.GetString());
        }
Example #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hasChildElements"></param>
        /// <returns></returns>
        protected override string SerializeCommandData(ref bool hasChildElements)
        {
            CommandSerializationHelper helper = new CommandSerializationHelper();

            helper.SerializeTaskTag(TaskTag);
            helper.SerializeFldId(FldId);
            helper.SerializeMagicEvent(MagicEvent);
            helper.SerializeDitIdx(DitIdx);
            helper.SerializeAttribute(ConstInterface.MG_ATTR_DIRECTION, Direction);

            return(helper.GetString());
        }
Example #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hasChildElements"></param>
        /// <returns></returns>
        protected override string SerializeCommandData(ref bool hasChildElements)
        {
            CommandSerializationHelper helper = new CommandSerializationHelper();

            helper.SerializeTaskTag(TaskTag);
            helper.SerializeFldId(FldId);
            helper.SerializeMagicEvent(MagicEvent);
            helper.SerializeDitIdx(DitIdx);
            helper.SerializeAttribute(ConstInterface.MG_ATTR_SEARCH_STR, IncrmentalSearchString);

            if (ResetIncrementalSearch)
            {
                helper.SerializeAttribute(ConstInterface.MG_ATTR_RESET_SEARCH, "1");
            }

            return(helper.GetString());
        }