Пример #1
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject = new DataObject();
 }
Пример #2
0
 public WorkflowNode()
 {
     FormPatterns = new FormPatterns();
     DataPatterns = new DataPatterns();
     UserPatterns = new UserPatterns();
     dataObject   = new DataObject();
 }
Пример #3
0
        public XmlNode Searialize(XmlDocument doc)
        {
            FormPatterns obj  = this;
            XmlNode      node = doc.CreateNode(XmlNodeType.Element, "FormPatterns", null);

            foreach (FormPattern fp in obj.ListofFormPatterns)
            {
                XmlNode      cnode            = doc.CreateNode(XmlNodeType.Element, "formpattern", null);
                XmlAttribute formpatternidatt = doc.CreateAttribute("formpatternid");
                formpatternidatt.Value = fp.Formpatternid;
                cnode.Attributes.Append(formpatternidatt);
                node.AppendChild(cnode);
            }
            return(node);
        }
Пример #4
0
 public static FormPatterns Desearilize(XmlNode node)
 {
     FormPatterns obj = null;
     if(node!=null && node.Name=="FormPatterns")
     {
         obj = new FormPatterns();
         foreach (XmlNode cnode in node.ChildNodes)
         {
             if (cnode.Name == "formpattern")
             {
                 obj.ListofFormPatterns.Add(new FormPattern(cnode.Attributes["formpatternid"].Value));
             }
         }
     }
     return obj;
 }
Пример #5
0
        public static FormPatterns Desearilize(XmlNode node)
        {
            FormPatterns obj = null;

            if (node != null && node.Name == "FormPatterns")
            {
                obj = new FormPatterns();
                foreach (XmlNode cnode in node.ChildNodes)
                {
                    if (cnode.Name == "formpattern")
                    {
                        obj.ListofFormPatterns.Add(new FormPattern(cnode.Attributes["formpatternid"].Value));
                    }
                }
            }
            return(obj);
        }