Пример #1
0
        public override void Execute()
        {
            WriteLiteral("\r\n");



            #line 7 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"

            const string uniqueIdentifier = "GS";
            var          studentUSI       = EdFiDashboardContext.Current.StudentUSI.GetValueOrDefault();
            var          metricVariantId  = EdFiDashboardContext.Current.MetricVariantId.GetValueOrDefault();
            var          edfiGridModel    = new EdFiGridModel
            {
                DisplayAddRemoveColumns = false,
                DisplayInteractionMenu  = true,
                FixedHeight             = 10,
                GridName          = "Metric" + uniqueIdentifier + metricVariantId,
                GridTable         = Model,
                SizeToWindow      = false,
                UniqueTableName   = "Metric" + uniqueIdentifier + metricVariantId,
                DefaultSortColumn = 1,
                LegendViewNames   = new List <string> {
                    "GoalStrands"
                },
            };



            #line default
            #line hidden
            WriteLiteral("\r\n<div id=\"GoalStrandTable");



            #line 25 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral("\">\r\n    <script>\r\n        analyticsManager.trackDrilldown(\'GoalStrandTable\', \'");



            #line 27 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral("\', \'");



            #line 27 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(studentUSI);


            #line default
            #line hidden
            WriteLiteral("\');\r\n        $(\"#Metric");



            #line 28 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(uniqueIdentifier + metricVariantId);


            #line default
            #line hidden
            WriteLiteral("-EdFiGrid-interaction-custom\").append($(\"#buttonExportAll");



            #line 28 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(uniqueIdentifier);


            #line default
            #line hidden
            WriteLiteral("-");



            #line 28 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral("\"));\r\n        $(\"#buttonExportAll");



            #line 29 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(uniqueIdentifier);


            #line default
            #line hidden
            WriteLiteral("-");



            #line 29 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral("\").show();\r\n    </script>\r\n    <a href=\"");



            #line 31 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(Url.Action("Get", "GoalStrandsExport"));


            #line default
            #line hidden
            WriteLiteral("\" id=\"buttonExportAll");



            #line 31 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(uniqueIdentifier);


            #line default
            #line hidden
            WriteLiteral("-");



            #line 31 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral("\" class=\"btn\" style=\"display:none;\"><i class=\"icon-floppy\"></i> EXPORT ALL</a>\r\n " +
                         "   <a href=\"");



            #line 32 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(Url.Action("Get", "GoalStrandsExport"));


            #line default
            #line hidden
            WriteLiteral("\" class=\"hidden\">Export goal strands for metric ");



            #line 32 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Write(metricVariantId);


            #line default
            #line hidden
            WriteLiteral(" to csv</a>\r\n");



            #line 33 "..\..\Areas\StudentSchool\Views\Detail\GoalStrandTable\Get.cshtml"
            Html.RenderPartial("EdFiGrid", model: edfiGridModel);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n\r\n\r\n");
        }
Пример #2
0
        public override void Execute()
        {
            WriteLiteral("\r\n");


            WriteLiteral("\r\n");



            #line 14 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"

            var localEducationAgencyId = EdFiDashboardContext.Current.LocalEducationAgencyId.GetValueOrDefault();
            var schoolId = EdFiDashboardContext.Current.SchoolId.GetValueOrDefault();
            var staffUSI = EdFiDashboardContext.Current.StaffUSI.GetValueOrDefault();



            #line default
            #line hidden
            WriteLiteral("\r\n");


            DefineSection("ContentPlaceHolderHead", () => {
                WriteLiteral("\r\n    <title>");



            #line 21 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                Write(Html.Action("Title", typeof(StaffLayoutController).GetControllerName(), new { subTitle = "Assessment Details" }));


            #line default
            #line hidden
                WriteLiteral("</title>\r\n    <script type=\"text/javascript\">\r\n        var pageArea = { Area: \'cl" +
                             "assroom\', Page: \'Assessment Details - ");



            #line 23 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                Write(Model.AssessmentSubType);


            #line default
            #line hidden
                WriteLiteral(" - ");



            #line 23 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                Write(Model.SubjectArea);


            #line default
            #line hidden
                WriteLiteral("\' };\r\n    </script>\r\n");
            });

            WriteLiteral("\r\n\r\n");


            DefineSection("ContentPlaceHolder1", () => {
                WriteLiteral("   \r\n");



            #line 28 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                if (Model.GridTable != null)
                {
                    var edfiGridModel = new EdFiGridModel
                    {
                        DisplayInteractionMenu  = true,
                        DisplayAddRemoveColumns = true,
                        FixedHeight             = 0,
                        GridName             = "AssessmentDetails",
                        GridTable            = Model.GridTable,
                        SizeToWindow         = true,
                        UniqueTableName      = "AssessmentDetails",
                        NonPersistedSettings = Model.GetDefaultNonPersistedSettings("AssessmentDetailsEdFiGrid"),
                        EntityList           = new EntityListModel {
                            ListType = "StudentList", MetricVariantId = String.Empty, RowIndexForId = 1
                        },
                        LegendViewNames   = Model.LegendViewNames,
                        DefaultSortColumn = 1,
                        AllowMaximizeGrid = true
                    };

                    Html.RenderPartial("EdFiGrid", model: edfiGridModel);

                    if (Model.IsCurrentUserListOwner)
                    {
                        var customStudentListModel = new CustomStudentListModel
                        {
                            ControlId                        = "AssessmentDetails",
                            IsCustomStudentList              = Model.IsCustomStudentList,
                            LinkParentIdentifier             = "#AssessmentDetails-EdFiGrid-interaction-custom",
                            CheckboxParentIentifier          = "#AssessmentDetails-EdFiGrid-fixed-data-table",
                            SelectAllCheckboxParentIentifier = "#AssessmentDetails-EdFiGrid-fixed-header-table",
                            CustomStudentListId              = Model.IsCustomStudentList ? Model.ListId : (long?)null,
                            LocalEducationAgencyId           = localEducationAgencyId,
                            SchoolId             = schoolId,
                            StaffUSI             = staffUSI,
                            CustomStudentListUrl = EdFiDashboards.Site.Staff.CustomStudentList(schoolId, staffUSI, null, new { format = "json" })
                        };

                        Html.RenderPartial("CustomStudentList", model: customStudentListModel);
                    }

                    if (Model.IsCurrentUserListOwner)
                    {
            #line default
            #line hidden
                        WriteLiteral(@"                <script>
                    $('#AssessmentDetails-EdFiGrid').bind('afterDrawEvent', function(e, table) {
                        AssessmentDetailsCustomStudentList.redrawCheckboxes();
                    });
                </script>
");



            #line 74 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                    }


            #line default
            #line hidden
                    WriteLiteral(@"        <script type=""text/javascript"">
            $('#AssessmentDetails-EdFiGrid').bind('afterMaximizeEvent', function (e, table) {
                $('#PriorYear-EdFiGrid-interaction-custom2').append($('#StaffSlidingSubmenu'));
            });

            $('#AssessmentDetails-EdFiGrid').bind('afterRestoreDownEvent', function (e, table) {
                $('#StaffSlidingMenuHome').append($('#StaffSlidingSubmenu'));
            });
        </script>
");



            #line 84 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                }
                else
                {
            #line default
            #line hidden
                    WriteLiteral("        <span class=\"MetricNoData\">No data available.</span>\r\n");



            #line 88 "..\..\Areas\Staff\Views\AssessmentDetails\Get.cshtml"
                }


            #line default
            #line hidden
            });

            WriteLiteral("\r\n");
        }