Exemplo n.º 1
0
        public static void SaveReport(string fileName, string menuCode, string parentMenuCode, string text)
        {
            ReportMenu menu = new ReportMenu
            {
                FileName = fileName,
                MenuCode = menuCode,
                ParentMenuCode = parentMenuCode,
                Text = text
            };

            DataLayer.AddMenus(new[] {menu});
        }
Exemplo n.º 2
0
        internal ReportMenu Parse()
        {
            XmlDocument xml = new XmlDocument();
            xml.PreserveWhitespace = true;
            xml.LoadXml(this.Content);

            ReportMenu menu = new ReportMenu();
            menu.FileName = this.FileName;
            menu.Text = this.ParseTitle(xml);
            menu.MenuCode = this.ParseMenuCode(xml);
            menu.ParentMenuCode = this.ParseParentMenuCode(xml);

            return menu;
        }
Exemplo n.º 3
0
        internal ReportMenu Parse()
        {
            XmlDocument xml = new XmlDocument();

            xml.PreserveWhitespace = true;
            xml.LoadXml(this.Content);

            ReportMenu menu = new ReportMenu();

            menu.FileName       = this.FileName;
            menu.Text           = this.ParseTitle(xml);
            menu.MenuCode       = this.ParseMenuCode(xml);
            menu.ParentMenuCode = this.ParseParentMenuCode(xml);

            return(menu);
        }