Пример #1
0
        public static GuidanceShift Load(XmlNodeList inputNode, TaskDataDocument taskDataDocument)
        {
            var loader = new GuidanceShiftLoader(taskDataDocument);

            var node = inputNode.Item(0);
            return loader.Load(node);
        }
Пример #2
0
        public static GuidanceShift Load(XmlNodeList inputNode, TaskDataDocument taskDataDocument)
        {
            var loader = new GuidanceShiftLoader(taskDataDocument);

            var node = inputNode.Item(0);

            return(loader.Load(node));
        }
Пример #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);
        }