Load() private method

private Load ( XmlNode node ) : AgGateway.ADAPT.ApplicationDataModel.Guidance.GuidanceShift
node System.Xml.XmlNode
return AgGateway.ADAPT.ApplicationDataModel.Guidance.GuidanceShift
Exemplo n.º 1
0
        public static GuidanceShift Load(XmlNodeList inputNode, TaskDataDocument taskDataDocument)
        {
            var loader = new GuidanceShiftLoader(taskDataDocument);

            var node = inputNode.Item(0);
            return loader.Load(node);
        }
Exemplo n.º 2
0
        public static GuidanceShift Load(XmlNodeList inputNode, TaskDataDocument taskDataDocument)
        {
            var loader = new GuidanceShiftLoader(taskDataDocument);

            var node = inputNode.Item(0);

            return(loader.Load(node));
        }
Exemplo n.º 3
0
        private GuidanceAllocation LoadGuidanceAllocations(XmlNode inputNode)
        {
            var groupId = inputNode.GetXmlNodeValue("@A");

            if (string.IsNullOrEmpty(groupId))
            {
                return(null);
            }

            var group = FindGuidanceGroup(groupId);
            var gsts  = inputNode.SelectNodes("GST");

            var allocation = new GuidanceAllocation
            {
                GuidanceGroupId = group.Group.Id.ReferenceId,
                GuidanceShift   = GuidanceShiftLoader.Load(gsts, _taskDocument),
                TimeScopes      = new List <TimeScope> {
                    AllocationTimestampLoader.Load(inputNode) ?? AllocationTimestampLoader.Load(inputNode)
                }
            };

            return(allocation);
        }