예제 #1
0
        void ParseViews(PDModel m, PDPackage package, XmlNode root)
        {
            foreach (XmlNode viewNode in root.ChildNodes)
            {
                PDView view = new PDView();
                view.Model   = m;
                view.Package = package;
                view.ID      = viewNode.Attributes["Id"].Value;

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

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

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

                    default:
                        break;
                    }
                }//end parse view

                if (package == null)
                {
                    m.AddView(view);
                }
                else
                {
                    package.AddView(view);
                }
            }//end parse views
        }
예제 #2
0
 public void AddView(PDView view) { _ViewList.Add(view); }
예제 #3
0
        void ParseViews(PDModel m, PDPackage package, XmlNode root)
        {
            foreach (XmlNode viewNode in root.ChildNodes)
            {
                PDView view = new PDView();
                view.Model = m;
                view.Package = package;
                view.ID = viewNode.Attributes["Id"].Value;

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

                if (package == null)
                {
                    m.AddView(view);
                }
                else
                {
                    package.AddView(view);
                }
            }//end parse views
        }
예제 #4
0
        public static SOView ToSOView(PDView view)
        {
            SOView v = new SOView();

            return(v);
        }
 public static SOView ToSOView(PDView view)
 {
     SOView v = new SOView();
     return v;
 }