Exemplo n.º 1
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "Mode", (int)this.LoadMode);
            xmlDoc.AppendChild(String.Empty, "SqlRegex", this.SqlRegex);
            xmlDoc.AppendChild(String.Empty, "DataEntityId", this.DataEntityId);
            xmlDoc.AppendInnerXml(this.Load.ToXml());
            xmlDoc.AppendInnerXml(this.Where.ToXml());
            return(xmlDoc.ToString());
        }
Exemplo n.º 2
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "DataEntityId", this.DataEntityId);
            xmlDoc.AppendInnerXml(this.Save.ToXml());
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "TargetWindow", (int)this.TargetWindow);
            xmlDoc.AppendChild(String.Empty, "DataList", this.DataList);
            xmlDoc.AppendInnerXml(String.Empty, this.Where.ToXml());
            return(xmlDoc.ToString());
        }
Exemplo n.º 4
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild("Items");
            foreach (EnumItemEntity enumItemEntity in this.Items)
            {
                xmlDoc.AppendInnerXml("/Items", enumItemEntity.ToXml());
            }
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "TargetWindow", (int)this.TargetWindow);
            xmlDoc.AppendChild(String.Empty, "FormElement", this.FormElement);
            xmlDoc.AppendChild(String.Empty, "FormElementControlType", this.FormElementControlType.Code);
            xmlDoc.AppendChild(String.Empty, "EventCode", this.Event.Code);
            xmlDoc.AppendInnerXml(String.Empty, this.CallEvent.ToXml());
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            if (this.ReturnSetXml == String.Empty)
            {
                this.ReturnSetXml = "<ReturnSet/>";
            }
            xmlDoc.AppendInnerXml(this.ReturnSetXml);
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "Mode", (int)this.ValidateMode);
            if (this.ValidateSetXml == String.Empty)
            {
                this.ValidateSetXml = "<ValidateSet/>";
            }
            xmlDoc.AppendInnerXml(this.ValidateSetXml);
            return(xmlDoc.ToString());
        }
Exemplo n.º 8
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "Text", this.Text);
            xmlDoc.AppendChild(String.Empty, "Layer", this.Layer);
            xmlDoc.AppendChild(String.Empty, "ParentId", this.ParentId);
            xmlDoc.AppendChild("Events");
            foreach (EventBase eve in this.Events)
            {
                xmlDoc.AppendInnerXml("/Events", eve.ToXml());
            }
            return(xmlDoc.ToString());
        }
Exemplo n.º 9
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "WindowId", this.WindowId);
            xmlDoc.AppendChild(String.Empty, "IfOpend", (int)this.IfOpend);
            xmlDoc.AppendChild(String.Empty, "IsDialog", this.IsDialog);
            if (this.SendDataXml == null || this.SendDataXml == String.Empty)
            {
                this.SendDataXml = "<SendData/>";
            }
            xmlDoc.AppendInnerXml(this.SendDataXml);
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendAttribute(String.Empty, "GroupId", this.GroupId);
            xmlDoc.AppendChild(String.Empty, "ControlType", ToolStripItemEntityTypesFactory.Instance.GetProvideAttribute(this).Code);
            xmlDoc.AppendChild(String.Empty, "ToolTipText", this.ToolTipText);
            xmlDoc.AppendChild(String.Empty, "Text", this.Text);
            xmlDoc.AppendChild("Events");
            if (this.Events != null)
            {
                foreach (EventBase even in this.Events)
                {
                    xmlDoc.AppendInnerXml("/Events", even.ToXml());
                }
            }
            return(xmlDoc.ToString());
        }
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "DataEntity", this.DataEntityId);
            //xmlDoc.AppendChild(XmlRootName, "NavigationLocation", (int)this.NavigationLocation);
            //xmlDoc.AppendChild(String.Empty, "Pagination", this.Pagination);
            //xmlDoc.AppendChild(String.Empty, "ShowItemCount", this.ShowItemCount);
            //xmlDoc.AppendChild(String.Empty, "ShowPageCount", this.ShowPageCount);
            //xmlDoc.AppendChild(String.Empty, "ShowPageHomeEnd", this.ShowPageHomeEnd);

            xmlDoc.AppendChild("Columns");

            foreach (UIElementDataListColumnEntityAbstract column in this.DataColumns)
            {
                xmlDoc.AppendInnerXml("/Columns", column.ToXml());
            }

            return(xmlDoc.ToString());
        }
Exemplo n.º 12
0
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            //XmlNode xmlnode;

            xmlDoc.AppendChild(String.Empty, "Folder", this.FolderId);
            xmlDoc.AppendChild(String.Empty, "Width", this.Width);
            xmlDoc.AppendChild(String.Empty, "Height", this.Height);
            xmlDoc.AppendChild(String.Empty, "ClientWidth", this.ClientWidth);
            xmlDoc.AppendChild(String.Empty, "ClientHeight", this.ClientHeight);
            xmlDoc.AppendChild(String.Empty, "OpenState", (int)this.WindowState);
            xmlDoc.AppendChild(String.Empty, "Text", this.Text);
            xmlDoc.AppendChild("BackColorValue");
            xmlDoc.AppendInnerXml("/BackColorValue", new UIElementColor(this.BackColorValue).ToXml());
            xmlDoc.AppendChild("ForeColorValue");
            xmlDoc.AppendInnerXml("/ForeColorValue", new UIElementColor(this.ForeColorValue).ToXml());
            xmlDoc.AppendChild(String.Empty, "Remark", this.Remark);

            if (this.Font != null)
            {
                xmlDoc.AppendInnerXml(this.Font.ToXml());
            }
            else
            {
                xmlDoc.AppendInnerXml("<Font/>");
            }

            xmlDoc.AppendChild("Events");
            xmlDoc.AppendChild("Elements");

            foreach (EventBase eve in this.Events)
            {
                xmlDoc.AppendInnerXml("/Events", eve.ToXml());
            }

            //对窗体元素的ZOrder进行排序
            var elements = from c in this.Elements orderby c.ZOrder ascending select c;

            foreach (UIElement formElement in elements)
            {
                xmlDoc.AppendInnerXml("/Elements", formElement.ToXml());
            }

            return(xmlDoc.ToString());
        }
Exemplo n.º 13
0
        /// <summary>
        /// 获取无素的完整xml形式
        /// 这里完成共有部分,其余由继承的类具体实现
        /// </summary>
        /// <returns></returns>
        public override string ToXml()
        {
            SEXElement xmlDoc = SEXElement.Parse(base.ToXml());

            xmlDoc.AppendChild(String.Empty, "ControlType", UIElementEntityTypes.Instance.GetProvideAttribute(this).Code);
            xmlDoc.AppendChild(String.Empty, "Text", this.Text);
            xmlDoc.AppendChild("BackColorValue");
            xmlDoc.AppendInnerXml("/BackColorValue", new UIElementColor(this.BackColorValue).ToXml());
            xmlDoc.AppendChild("ForeColorValue");
            xmlDoc.AppendInnerXml("/ForeColorValue", new UIElementColor(this.ForeColorValue).ToXml());
            xmlDoc.AppendChild(String.Empty, "Enabled", this.Enabled);
            xmlDoc.AppendChild(String.Empty, "Visible", this.Visible);
            xmlDoc.AppendChild(String.Empty, "Top", this.Location.Y);
            xmlDoc.AppendChild(String.Empty, "Left", this.Location.X);
            xmlDoc.AppendChild(String.Empty, "Width", this.Width);
            xmlDoc.AppendChild(String.Empty, "Height", this.Height);
            xmlDoc.AppendChild(String.Empty, "TabIndex", this.TabIndex);
            xmlDoc.AppendChild(String.Empty, "ZOrder", this.ZOrder);
            xmlDoc.AppendChild("Anchor");
            xmlDoc.AppendInnerXml("/Anchor", this.Anchor.GetXml());

            //字体
            if (this.Font != null)
            {
                xmlDoc.AppendInnerXml(this.Font.ToXml());
            }
            else
            {
                xmlDoc.AppendInnerXml("<Font/>");
            }

            //事件
            xmlDoc.AppendChild("Events");

            foreach (EventBase even in this.Events)
            {
                xmlDoc.AppendInnerXml("/Events", even.ToXml());
            }

            return(xmlDoc.ToString());
        }