public ServiceProcessingStatus(XmlNode xmlNode) { XmlNodeList cycleNodeList = xmlNode.SelectNodes("cycle"); if (cycleNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in cycleNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { cycleIDRef = item.Attributes["id"].Name; ServiceProcessingCycle ob = ServiceProcessingCycle(); IDManager.SetID(cycleIDRef, ob); } else if (item.Attributes.ToString() == "href") { cycleIDRef = item.Attributes["href"].Name; } else { cycle = new ServiceProcessingCycle(item); } } } XmlNodeList stepNodeList = xmlNode.SelectNodes("step"); if (stepNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in stepNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { stepIDRef = item.Attributes["id"].Name; ServiceProcessingStep ob = ServiceProcessingStep(); IDManager.SetID(stepIDRef, ob); } else if (item.Attributes.ToString() == "href") { stepIDRef = item.Attributes["href"].Name; } else { step = new ServiceProcessingStep(item); } } } XmlNodeList eventNodeList = xmlNode.SelectNodes("event"); if (eventNodeList.Count > 1 ) { throw new Exception(); } foreach (XmlNode item in eventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { eventIDRef = item.Attributes["id"].Name; ServiceProcessingEvent ob = ServiceProcessingEvent(); IDManager.SetID(eventIDRef, ob); } else if (item.Attributes.ToString() == "href") { eventIDRef = item.Attributes["href"].Name; } else {
public ServiceProcessingStatus(XmlNode xmlNode) { XmlNode cycleNode = xmlNode.SelectSingleNode("cycle"); if (cycleNode != null) { if (cycleNode.Attributes["href"] != null || cycleNode.Attributes["id"] != null) { if (cycleNode.Attributes["id"] != null) { cycleIDRef_ = cycleNode.Attributes["id"].Value; ServiceProcessingCycle ob = new ServiceProcessingCycle(cycleNode); IDManager.SetID(cycleIDRef_, ob); } else if (cycleNode.Attributes["href"] != null) { cycleIDRef_ = cycleNode.Attributes["href"].Value; } else { cycle_ = new ServiceProcessingCycle(cycleNode); } } else { cycle_ = new ServiceProcessingCycle(cycleNode); } } XmlNode stepNode = xmlNode.SelectSingleNode("step"); if (stepNode != null) { if (stepNode.Attributes["href"] != null || stepNode.Attributes["id"] != null) { if (stepNode.Attributes["id"] != null) { stepIDRef_ = stepNode.Attributes["id"].Value; ServiceProcessingStep ob = new ServiceProcessingStep(stepNode); IDManager.SetID(stepIDRef_, ob); } else if (stepNode.Attributes["href"] != null) { stepIDRef_ = stepNode.Attributes["href"].Value; } else { step_ = new ServiceProcessingStep(stepNode); } } else { step_ = new ServiceProcessingStep(stepNode); } } XmlNode eventNode = xmlNode.SelectSingleNode("event"); if (eventNode != null) { if (eventNode.Attributes["href"] != null || eventNode.Attributes["id"] != null) { if (eventNode.Attributes["id"] != null) { eventIDRef_ = eventNode.Attributes["id"].Value; ServiceProcessingEvent ob = new ServiceProcessingEvent(eventNode); IDManager.SetID(eventIDRef_, ob); } else if (eventNode.Attributes["href"] != null) { eventIDRef_ = eventNode.Attributes["href"].Value; } else { event_ = new ServiceProcessingEvent(eventNode); } } else { event_ = new ServiceProcessingEvent(eventNode); } } }
public ServiceProcessingStatus(XmlNode xmlNode) { XmlNodeList cycleNodeList = xmlNode.SelectNodes("cycle"); if (cycleNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in cycleNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { cycleIDRef = item.Attributes["id"].Name; ServiceProcessingCycle ob = ServiceProcessingCycle(); IDManager.SetID(cycleIDRef, ob); } else if (item.Attributes.ToString() == "href") { cycleIDRef = item.Attributes["href"].Name; } else { cycle = new ServiceProcessingCycle(item); } } } XmlNodeList stepNodeList = xmlNode.SelectNodes("step"); if (stepNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in stepNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { stepIDRef = item.Attributes["id"].Name; ServiceProcessingStep ob = ServiceProcessingStep(); IDManager.SetID(stepIDRef, ob); } else if (item.Attributes.ToString() == "href") { stepIDRef = item.Attributes["href"].Name; } else { step = new ServiceProcessingStep(item); } } } XmlNodeList eventNodeList = xmlNode.SelectNodes("event"); if (eventNodeList.Count > 1) { throw new Exception(); } foreach (XmlNode item in eventNodeList) { if (item.Attributes["href"] != null || item.Attributes["id"] == null) { if (item.Attributes["id"] != null) { eventIDRef = item.Attributes["id"].Name; ServiceProcessingEvent ob = ServiceProcessingEvent(); IDManager.SetID(eventIDRef, ob); } else if (item.Attributes.ToString() == "href") { eventIDRef = item.Attributes["href"].Name; } else {