Пример #1
0
        FlowNodeComponent getFlowNodeComponentFromServer(string NodeID)
        {
            FlowNodeComponent ac = new FlowNodeComponent();

            ac              = new FlowNodeComponent();
            ac.NodeID       = this.NodeID;
            ac.FK_Flow      = this.FK_Flow;
            ac.NodeName     = sdPicture.NodeName;
            ac.FlowNodeType = HisRunModel.ToString();
            ac.SubFlow      = this.SubFlow;
            return(ac);
        }
Пример #2
0
        public string ToXmlString()
        {
            var xml = new System.Text.StringBuilder();

            xml.Append(@"       <FlowNode ");
            xml.Append(@" FK_Flow=""" + FK_Flow + @"""");
            xml.Append(@" NodeID=""" + NodeID + @"""");
            xml.Append(@" NodeName=""" + NodeName + @"""");
            xml.Append(@" Type=""" + HisRunModel.ToString() + @"""");
            xml.Append(@" SubFlow=""" + (HisRunModel == FlowNodeType.Ordinary ? SubFlow : @"") + @"""");
            xml.Append(@" PositionX=""" + CenterPoint.X + @"""");
            xml.Append(@" PositionY=""" + CenterPoint.Y + @"""");
            xml.Append(@" RepeatDirection=""" + RepeatDirection.ToString() + @"""");
            xml.Append(@" ZIndex=""" + ZIndex + @""">");

            xml.Append(Environment.NewLine);
            xml.Append("        </FlowNode>");
            return(xml.ToString());
        }