private static ToolTypeClassList getToolTypeList(XmlNode productparameter, ToolTypeClassList toolTypeClassList) { ToolTypeClassList toolTypeList = new ToolTypeClassList(); XmlNodeList toolTypes = productparameter.ChildNodes; foreach (XmlNode tooType in toolTypes) { string toolTypeID = tooType.InnerText; ToolTypeClass toolType = toolTypeClassList.GetToolType(tooType.InnerText); toolTypeList.AddToolType(toolType); } return(toolTypeList); }
public static ToolTypeClassList parse(XmlNodeList ToolTypeClassNodeList) { ToolTypeClassList toolTypeClassList = new ToolTypeClassList(); foreach (XmlNode toolTypeParameter in ToolTypeClassNodeList) { ToolTypeClass toolType = new ToolTypeClass(); XMlToolTypeClassFields XMLToolTypeField = (XMlToolTypeClassFields)Enum.Parse(typeof(XMlToolTypeClassFields), toolTypeParameter.Name, true); if (XMLToolTypeField == XMlToolTypeClassFields.ToolTypeBranch) { toolType = getToolType(toolTypeParameter); } toolTypeClassList.AddToolType(toolType); } return(toolTypeClassList); }
public void AddProductionOrder(ProductionOrder productionOrder) { ToolTypeClass toolType = productionOrder.ProductionProgress.ExtractFirstToolType(); ProductionQueue[toolType].AddOrder(productionOrder); }