Пример #1
0
        void ParseProcedures(PDModel m, PDPackage package, XmlNode root)
        {
            foreach (XmlNode procedureNode in root.ChildNodes)
            {
                PDProcedure procedure = new PDProcedure();
                procedure.Model   = m;
                procedure.Package = package;
                procedure.ID      = procedureNode.Attributes["Id"].Value;

                foreach (XmlNode node in procedureNode.ChildNodes)
                {
                    switch (node.Name)
                    {
                    case "a:Name":
                        procedure.Name = node.InnerText;
                        break;

                    case "a:Code":
                        procedure.Code = node.InnerText;
                        break;

                    case "a:Comment":
                        procedure.Comment = node.InnerText;
                        break;

                    default:
                        break;
                    }
                }//end parse procedure

                if (package == null)
                {
                    m.AddProcedure(procedure);
                }
                else
                {
                    package.AddProcedure(procedure);
                }
            }//end parse procedures
        }
Пример #2
0
 public void AddProcedure(PDProcedure procedure) { _ProcedureList.Add(procedure); }
Пример #3
0
        void ParseProcedures(PDModel m, PDPackage package, XmlNode root)
        {
            foreach (XmlNode procedureNode in root.ChildNodes)
            {
                PDProcedure procedure = new PDProcedure();
                procedure.Model = m;
                procedure.Package = package;
                procedure.ID = procedureNode.Attributes["Id"].Value;

                foreach (XmlNode node in procedureNode.ChildNodes)
                {
                    switch (node.Name)
                    {
                        case "a:Name":
                            procedure.Name = node.InnerText;
                            break;
                        case "a:Code":
                            procedure.Code = node.InnerText;
                            break;
                        case "a:Comment":
                            procedure.Comment = node.InnerText;
                            break;
                        default:
                            break;
                    }
                }//end parse procedure

                if (package == null)
                {
                    m.AddProcedure(procedure);
                }
                else
                {
                    package.AddProcedure(procedure);
                }
            }//end parse procedures
        }
Пример #4
0
        public static SOCommand ToSOCommand(PDProcedure sp)
        {
            SOCommand cmd = new SOCommand();

            return(cmd);
        }
 public static SOCommand ToSOCommand(PDProcedure sp)
 {
     SOCommand cmd = new SOCommand();
     return cmd;
 }