Пример #1
0
				public void ExpandTile(Tile tile, string expandMode)
				{
						SessionObject.ExpandingTileMode = expandMode;
						SessionObject.ExpandingTile_ControlTile = tile;
				}
Пример #2
0
        private void LoadScheduleTiles()
        {
            if (SelectedStudent == null) return;

            foreach (var c in SelectedStudent.Classes)
            {
                var tileParms = new TileParms();
                tileParms.AddParm("class", c);
                const string controlPath = "~/Controls/Class/ClassIdentification.ascx";
                var encryptedClassId = Standpoint.Core.Classes.Encryption.EncryptInt(c.ID);
                var expandUrl = UserHasPermission(Permission.Icon_Expand_ClassIdentification) ? "../Controls/Class/ClassSummary_Edit.aspx?xID=" + encryptedClassId : null;
                var editUrl = UserHasPermission(Permission.Icon_Edit_ClassIdentification) ? "../Controls/Class/ClassSummary_Edit.aspx?xID=" + encryptedClassId : null;

                var title = "<div class='selectableClassTile' title='" + c.GetClassToolTip() + "' onclick='javascript: __doPostBack(\"" + doubleRotatorPanel.ClientID + "\",\"" + "@@dockID~" + c.ID + "\")'>" + c.GetFriendlyName() + "</div>";
                var tile = new Tile(title, controlPath, true, tileParms, null, expandUrl, editUrl, false);

                Rotator1Tiles.Add(tile);
                //_rotator1Tiles.Add(new Tile(c.GetFriendlyName(), controlPath, true, tileParms, ScheduleClassTileClick, expandUrl, editURL, true));
            }

            var selectedClass = SessionObject.clickedClass;

            if (selectedClass == null)
            {
                Panel buttonDiv2 = ctlDoublePanel.GetButtonsContainer2();
                LoadContainer(ctlDoublePanel, 2, "~/ContainerControls/TileContainer_3_1_Empty.ascx", null, 0, 0);

                //div.InnerHtml = "<div class='rotator2InitTxt'>Use <div class='lowerCarouselMsgIcon'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div> to select a class above and display details here.</div>";
                buttonDiv2.CssClass = "pagingDivTallHidden";

                Session.Remove("tileClicked");
                Session.Remove("selectedRDTitleBarClass");
            }
            else
            {
                (ctlDoublePanel.GetButtonsContainer2()).CssClass = "pagingDivTall";
                ctlDoublePanel.ResetPageOnPostBack("1");

                var classTileParms = new TileParms();
                classTileParms.AddParm("class", selectedClass);
                classTileParms.AddParm("level", EntityTypes.Student);
                classTileParms.AddParm("levelID", SelectedStudent.ID);
                classTileParms.AddParm("selectID", selectedClass.ID);
                classTileParms.AddParm("category", "Classroom");
                classTileParms.AddParm("folder", "Classes");
                classTileParms.AddParm("assignmentSharingTypeID", AssignShareMode.Student);

                Rotator2Tiles.Add(new Tile(Permission.Tile_Assessment_Results_StudentPortal, "Assessment Results", "~/Controls/Assessment/AssessmentResults.ascx", false, classTileParms)); //issue
                Rotator2Tiles.Add(new Tile(Permission.Tile_Class_Standards, "Standards", "~/Controls/Standards/StandardsSearch.ascx", false, classTileParms, null, "../Controls/Standards/StandardsSearch_ExpandedV2.aspx"));

                // TODOMPF: Do not delete.  -mpf: This is for assignments and sharing (capped off for now)
                //_rotator2Tiles.Add(new Tile(Permission.Tile_Assignments_Student, "Assignments", "~/Controls/Student/StudentAssignments.ascx", false, classTileParms, null, null, "../Controls/AssignmentShare/Assignment.aspx?EntityTypeID=2&mode=2&contentid=" + SelectedStudent.ID));                                
            }

        }
Пример #3
0
				public void ChangeTile(Tile tile)
				{
						if (tile.DockClickMethod == null)
						{
								return;
						}

						tile.DockClickMethod(tile.TileParms);
				}