예제 #1
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject = new DataObject();
 }
예제 #2
0
        public static void saveXMLofNode(Control nodeControl, XmlNode xmlNode)
        {
            if (nodeControl != null)
            {
                EIBNode      nodeEIB      = (EIBNode)nodeControl;
                WorkflowNode workflowNode = nodeEIB.WorkFlowNode;
                //Save workflow Node
                Hashtable controlProperties = new Hashtable();
                //Save Form Pattern
                FormPatterns formpatterns = workflowNode.FormPatterns;
                //controlProperties.Clear();
                XmlNode xmlformpatternsnode = formpatterns.Searialize(xmlNode.OwnerDocument);
                xmlNode.AppendChild(xmlformpatternsnode);

                //Save Data Pattern
                DataPatterns dataPatterns = workflowNode.DataPatterns;
                //controlProperties.Clear();
                XmlNode xmldatapatternsnode = dataPatterns.Searialize(xmlNode.OwnerDocument);
                xmlNode.AppendChild(xmldatapatternsnode);

                //Save Data Pattern
                EIBFormDesigner.Workflow.Node.DataObject dataObject = workflowNode.DataObject;
                //controlProperties.Clear();
                XmlNode dataObjectNode = XMLServices.writeElement(xmlNode, "dataobject", controlProperties, null, null);

                //Save Data Info section
                //controlProperties.Clear();
                XMLServices.writeElement(dataObjectNode, "info", controlProperties, null, null);

                //Save Data data section
                //controlProperties.Clear();
                XMLServices.writeElement(dataObjectNode, "data", controlProperties, null, null);

                //Save Data status section
                //controlProperties.Clear();
                XmlNode xmlNodeStatus = XMLServices.writeElement(dataObjectNode, "status", controlProperties, null, null);

                xmlNodeStatus.InnerText = dataObject.Status;
                //xmlNodeStatus.AppendChild(status);
                //Save User Pattern
                UserPatterns userPattern = workflowNode.UserPatterns;
                //controlProperties.Clear();
                XmlNode xmluserpatternsnode = userPattern.Searialize(xmlNode.OwnerDocument);
                xmlNode.AppendChild(xmluserpatternsnode);


                //Save Data status section
                //controlProperties.Clear();
                //XMLServices.writeElement(userPatternNode, "role", controlProperties, null);
            }
        }
예제 #3
0
 internal static DataObject Desearilize(System.Xml.XmlNode node)
 {
     DataObject obj = null;
     if (node != null && node.Name == "dataobject")
     {
         obj = new DataObject();
         foreach (XmlNode cnode in node.ChildNodes)
         {
             if (cnode.Name == "status")
             {
                 obj.Status = cnode.InnerText;
             }
         }
     }
     return obj;
 }