コード例 #1
0
        public static System.Web.WebPages.HelperResult TocAdditionalScore(ScoringGroup group, int score)
        {
#line default
#line hidden
            return(new System.Web.WebPages.HelperResult(__razor_helper_writer => {
                WriteLiteralTo(__razor_helper_writer, "\t<li");

                WriteLiteralTo(__razor_helper_writer, " class=\"slide-list-item full-size\"");

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<i");

                WriteLiteralTo(__razor_helper_writer, " class=\"navbar-label\"");

                WriteLiteralTo(__razor_helper_writer, " title=\"\"");

                WriteLiteralTo(__razor_helper_writer, "></i>\r\n\t\t<span");

                WriteLiteralTo(__razor_helper_writer, " style=\"margin-right: 5px\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, group.Name);

                WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t\t<span");

                WriteLiteralTo(__razor_helper_writer, " class=\"score right\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, SlideHtml.ShowScore(score, group.MaxAdditionalScore));

                WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t</li>\r\n");
            }));

#line default
#line hidden
        }
コード例 #2
0
        public static System.Web.WebPages.HelperResult Toc(TocModel toc)
        {
#line default
#line hidden
            return(new System.Web.WebPages.HelperResult(__razor_helper_writer => {
                WriteLiteralTo(__razor_helper_writer, "\t<ul");

                WriteLiteralTo(__razor_helper_writer, " class=\"nav\"");

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<li");

                WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item full-width units-list-item-text course-name\"");

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t<a");

                WriteLiteralTo(__razor_helper_writer, " data-score=\"");

                WriteTo(__razor_helper_writer, SlideHtml.ShowScore(toc.Score, toc.MaxScore));

                WriteLiteralTo(__razor_helper_writer, "\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, toc.Course.Title);

                WriteLiteralTo(__razor_helper_writer, "</a>\r\n\t\t</li>\r\n");


                foreach (var group in toc.GroupsForStatistics)
                {
                    WriteLiteralTo(__razor_helper_writer, "\t\t\t<li");

                    WriteLiteralTo(__razor_helper_writer, " class=\"full-width group-statistics-link\"");

                    WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t\t<a");

                    WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 863), Tuple.Create("\"", 890)
                                     , Tuple.Create(Tuple.Create("", 870), Tuple.Create <System.Object, System.Int32>(group.StatisticsUrl
                                                                                                                      , 870), false)
                                     );

                    WriteLiteralTo(__razor_helper_writer, "><span");

                    WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-list\"");

                    WriteLiteralTo(__razor_helper_writer, "></span>Ведомость ");

                    WriteTo(__razor_helper_writer, group.GroupName);

                    WriteLiteralTo(__razor_helper_writer, "</a>\r\n\t\t\t</li>\r\n");
                }

                WriteLiteralTo(__razor_helper_writer, "\t\t");


                int iUnit = 0;
                foreach (var unit in toc.Units)
                {
                    WriteTo(__razor_helper_writer, TocUnit(unit, iUnit));


                    iUnit++;
                }

                WriteLiteralTo(__razor_helper_writer, "\r\n\t</ul>\r\n");
            }));

#line default
#line hidden
        }
コード例 #3
0
        public static System.Web.WebPages.HelperResult TocItem(TocPageInfo page)
        {
#line default
#line hidden
            return(new System.Web.WebPages.HelperResult(__razor_helper_writer => {
                WriteLiteralTo(__razor_helper_writer, "\t<a");

                WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 1813), Tuple.Create("\"", 1829)
                                 , Tuple.Create(Tuple.Create("", 1820), Tuple.Create <System.Object, System.Int32>(page.Url
                                                                                                                   , 1820), false)
                                 );

                WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1830), Tuple.Create("\"", 1874)
                                 , Tuple.Create(Tuple.Create("", 1838), Tuple.Create <System.Object, System.Int32>(page.IsCurrent ? "selected" : ""
                                                                                                                   , 1838), false)
                                 );

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<span");

                WriteLiteralTo(__razor_helper_writer, " class=\"slide-list-item clickable full-size\"");

                WriteLiteralTo(__razor_helper_writer, " data-slide-id=\"");

                WriteTo(__razor_helper_writer, page.SlideId);

                WriteLiteralTo(__razor_helper_writer, "\"");

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t\t<i");

                WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1967), Tuple.Create("\"", 2011)
                                 , Tuple.Create(Tuple.Create("", 1975), Tuple.Create <System.Object, System.Int32>(GetPageIconClass(page)
                                                                                                                   , 1975), false)
                                 , Tuple.Create(Tuple.Create(" ", 1998), Tuple.Create("navbar-label", 1999), true)
                                 );

                WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 2012), Tuple.Create("\"", 2051)
                                 , Tuple.Create(Tuple.Create("", 2020), Tuple.Create <System.Object, System.Int32>(GetTocPageTytle(page.PageType)
                                                                                                                   , 2020), false)
                                 );

                WriteLiteralTo(__razor_helper_writer, "></i>\r\n\t\t\t<span");

                WriteLiteralTo(__razor_helper_writer, " class=\"underline-on-parent-hover\"");

                WriteLiteralTo(__razor_helper_writer, " style=\"margin-right: 5px\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, page.Name);

                WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t\t\t<span");

                WriteLiteralTo(__razor_helper_writer, " class=\"score right\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, SlideHtml.ShowScore(page.Score, page.MaxScore));

                WriteLiteralTo(__razor_helper_writer, "</span>\r\n\t\t</span>\r\n\t</a>\r\n");
            }));

#line default
#line hidden
        }
コード例 #4
0
        public static System.Web.WebPages.HelperResult TocUnit(TocUnitModel unit, int index)
        {
#line default
#line hidden
            return(new System.Web.WebPages.HelperResult(__razor_helper_writer => {
                var collapseOption = unit.IsCurrent ? "collapse in" : "collapse";

                WriteLiteralTo(__razor_helper_writer, "\t<li");

                WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item clickable full-width\"");

                WriteLiteralTo(__razor_helper_writer, ">\r\n\t\t<a");

                WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\"");

                WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=", 1300), Tuple.Create("", 1322)
                                 , Tuple.Create(Tuple.Create("", 1306), Tuple.Create <System.Object, System.Int32>("#N" + index
                                                                                                                   , 1306), false)
                                 );

                WriteLiteralTo(__razor_helper_writer, " class=\"units-list-item-text no-smooth-scrolling\"");

                WriteLiteralTo(__razor_helper_writer, " data-score=\"");

                WriteTo(__razor_helper_writer, SlideHtml.ShowScore(unit.Score, unit.MaxScore));

                WriteLiteralTo(__razor_helper_writer, "\"");

                WriteLiteralTo(__razor_helper_writer, ">");

                WriteTo(__razor_helper_writer, unit.UnitName);

                WriteLiteralTo(__razor_helper_writer, "</a>\r\n\t\t<ul");

                WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=", 1458), Tuple.Create("", 1477)
                                 , Tuple.Create(Tuple.Create("", 1462), Tuple.Create <System.Object, System.Int32>("N" + index
                                                                                                                   , 1462), false)
                                 );

                WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 1477), Tuple.Create("\"", 1512)
                                 , Tuple.Create(Tuple.Create("", 1485), Tuple.Create("slides-list", 1485), true)
                                 , Tuple.Create(Tuple.Create(" ", 1496), Tuple.Create <System.Object, System.Int32>(collapseOption
                                                                                                                    , 1497), false)
                                 );

                WriteLiteralTo(__razor_helper_writer, ">\r\n");


                foreach (var page in unit.Pages)
                {
                    WriteTo(__razor_helper_writer, TocItem(page));
                }

                WriteLiteralTo(__razor_helper_writer, "\t\t\t");

                foreach (var kv in unit.AdditionalScores)
                {
                    var scoringGroup = kv.Key;
                    var score = kv.Value;

                    WriteTo(__razor_helper_writer, TocAdditionalScore(scoringGroup, score));
                }

                WriteLiteralTo(__razor_helper_writer, "\t\t</ul>\r\n\t</li>\r\n");
            }));

#line default
#line hidden
        }