public ViewColumnInfo(ViewInfo View)
 {
     _ViewInfo = View;
 }
示例#2
0
        //初始化"o:View"的节点
        private ViewInfo GetView(XmlNode xnView)
        {
            ViewInfo   theView = new ViewInfo();
            XmlElement xe      = (XmlElement)xnView;

            theView.ViewId = xe.GetAttribute("Id");
            XmlNodeList xnTProperty = xe.ChildNodes;

            foreach (XmlNode xnP in xnTProperty)
            {
                switch (xnP.Name)
                {
                case "a:ObjectID":
                    theView.ObjectId = xnP.InnerText;
                    break;

                case "a:Name":
                    theView.Name = xnP.InnerText;
                    break;

                case "a:Code":
                    theView.Code = xnP.InnerText;
                    break;

                case "a:CreationDate":
                    theView.CreationDate = String2DateTime(xnP.InnerText);
                    break;

                case "a:Creator":
                    theView.Creator = xnP.InnerText;
                    break;

                case "a:ModificationDate":
                    theView.ModificationDate = String2DateTime(xnP.InnerText);
                    break;

                case "a:Modifier":
                    theView.Modifier = xnP.InnerText;
                    break;

                case "a:Comment":
                    theView.Comment = xnP.InnerText;
                    break;

                case "a:Description":
                    theView.Description = xnP.InnerText;
                    break;

                case "a:View.SQLQuery":
                    theView.ViewSQLQuery = xnP.InnerText;
                    break;

                case "a:TaggedSQLQuery":
                    theView.TaggedSQLQuery = xnP.InnerText;
                    break;

                case "c:Columns":
                    InitColumns(xnP, theView);
                    break;
                }
            }
            return(theView);
        }