Example #1
0
 public Tile(Thinkgate.Base.Enums.Permission tilePermission, string title, string controlPath, bool isIteration = false,
         TileParms tileParms = null, DockClickMethod dockClickMethod = null, string expandedControlPath = "",
         string editControlPath = "", bool toggleView = false, string toggleDefault = "list", string expandJSFunctionOverride = "",
         string editJSFunctionOverride = "", string helpJSFunction = "", string exportToExcelJSFunctionOverride = "", string reportControlPath = "", string reportJSFunctionOverride = ""
     , string performanceLevelControlPath = "", string performanceLevelJSFunctionOverride = ""
     )
 {
     TilePermission = tilePermission;
     Title = title;
     ControlPath = controlPath;
     IsIteration = isIteration;
     TileParms = tileParms;
     DockClickMethod = dockClickMethod;
     ExpandedControlPath = expandedControlPath;
     EditControlPath = editControlPath;
     ToggleView = toggleView;
     ToggleDefault = toggleDefault;
     ExpandJSFunctionOverride = expandJSFunctionOverride;
     EditJSFunctionOverride = editJSFunctionOverride;
     HelpJSFunction = helpJSFunction;
     ExportToExcelJSFunctionOverride = exportToExcelJSFunctionOverride;
     ReportControlPath = reportControlPath;
     ReportJSFunctionOverride = reportJSFunctionOverride;
     PerformanceLevelControlPath = performanceLevelControlPath;
     PerformanceLevelJSFunctionOverride = performanceLevelJSFunctionOverride;
 }
 private void LoadLCOTiles()
 {
     if (UserHasPermission(Permission.Tile_Staff))
     {
         TileParms lcoStaffParms = new TileParms();
         lcoStaffParms.AddParm("levelID", _userID);
         Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_Staff, "Staff", "~/Controls/LCO/StaffSearch.ascx", false, lcoStaffParms, null,
                      (UserHasPermission(Permission.Icon_ExpandedSearch_Staff)) ? "" : ""));
     }
 }
        private void LoadCourseObjectTiles()
        {
            if (UserHasPermission(Permission.Tile_Identification_Course))
            {
                string identificationEditURL = "../Controls/LCO/AddCourse.aspx?senderPage=identification&grade="+_lco.Grade+"&subject="+_lco.ProgramArea+"&course="+_lco.Course+"&courseId="+_lco.CourseID;
                TileParms identificationCourse = new TileParms();
                identificationCourse.AddParm("LCO", _lco);
                Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_Identification_Course, "Identification", "~/Controls/LCO/CourseIdentification.ascx", false, identificationCourse, null, null, ((_level == EntityTypes.IMC) && (_lco.IMCID == _userId)&& (_lco.IsRegionRequested==false)) ? identificationEditURL : null,
                                            false, null, null, "openAssessmentObjectIdentificationEditRadWindow")); //(_lco.CreatedBy == SessionObject.LoggedInUser.UserName) ? "../Controls/LCO/AddCourse.aspx" : null));
            }


            if (UserHasPermission(Permission.Tile_Approvals))
            {
                TileParms ApprovalCourse = new TileParms();
                ApprovalCourse.AddParm("LCO", _lco);
                Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_Approvals, "Approvals", "~/Controls/LCO/Approvals.ascx", false, ApprovalCourse, null, null));
            }
            //LoadAssessmentTiles();
        }
        private void LoadLcoTiles()
        {
            if (UserHasPermission(Permission.Tile_PendingSubmission))
            {
                TileParms pendingSubmissionParms = new TileParms();
                pendingSubmissionParms.AddParm("lcos", _lcos.Where(lco => lco.IsRegionRequested == false).ToList());
                Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_PendingSubmission, "Pending Submissions", "~/Controls/LCO/PendingSubmissions.ascx", false, pendingSubmissionParms, null, null));
            }

            if (UserHasPermission(Permission.Tile_PendingApproval))
            {
                TileParms pendingApprovalParms = new TileParms();
                pendingApprovalParms.AddParm("lcos", _lcos.Where(lco => ((lco.IsRegionRequested == true) && (lco.IsApproved == false) && (lco.IsInfoRequested != true))).ToList());
                Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_PendingApproval, "Pending Approvals", "~/Controls/LCO/PendingApprovals.ascx", false, pendingApprovalParms, null, null));
            }

            if (UserHasPermission(Permission.Tile_LcoInformationRequested))
            {
                TileParms infoReqParms = new TileParms();
                infoReqParms.AddParm("lcos", _lcos.Where(lco => ((lco.IsRegionRequested == true) && (lco.IsApproved == false) && (lco.IsInfoRequested == true))).ToList());
                Rotator1Tiles.Add(new Tile(Base.Enums.Permission.Tile_LcoInformationRequested, "Information Requested", "~/Controls/LCO/LcoInformationRequested.ascx", false, infoReqParms, null, null));
            }

            if (UserHasPermission(Permission.Tile_Approved))
            {
                TileParms ApprovedParms = new TileParms();
                ApprovedParms.AddParm("lcos", _lcos.Where(lco => lco.IsApproved == true).ToList());
                Rotator2Tiles.Add(new Tile(Base.Enums.Permission.Tile_Approved, "Approved", "~/Controls/LCO/Approved.ascx", false, ApprovedParms, null, null));
            }
            if (UserHasPermission(Permission.Tile_LCO_CourseCatalog))
            {
                TileParms CatalogParms = new TileParms();
                CatalogParms.AddParm("alllcos", _alllcos.Where(alllco => ((alllco.IsApproved == true) && (alllco.IsOriginal == true))).ToList());
                Rotator2Tiles.Add(new Tile(Base.Enums.Permission.Tile_LCO_CourseCatalog, "Course Catalog", "~/Controls/LCO/CourseCatalog.ascx", false, CatalogParms, null, null));
            }

        }
        private void LoadProfileTiles()
        {
            if (SelectedStudent == null) return;

            var studentTileParms = new TileParms();
            studentTileParms.AddParm("student", SelectedStudent);
            studentTileParms.AddParm("level", EntityTypes.Student);
            studentTileParms.AddParm("levelID", SelectedStudent.ID);
            studentTileParms.AddParm("folder", "Profile");

            Rotator1Tiles.Add(new Tile(Permission.Tile_Identification_Student,
                                        "Identification",
                                        "~/Controls/Student/StudentInformation.ascx",
                                        false,
                                        studentTileParms,
                                        null,
                                        null,
                                        (UserHasPermission(Permission.Icon_Edit_StudentIdentification) ? ResolveUrl("~/Controls/Student/") + "StudentIdentification_Edit.aspx?xID=" + EntityIdEncrypted : null),
                                        false,
                                        null,
                                        null));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Demographics_Student,
                                        "Demographics",
                                        "~/Controls/Student/StudentDemographics.ascx",
                                        false,
                                        studentTileParms,
                                        null,
                                        null,
                                        (UserHasPermission(Permission.Icon_Edit_StudentDemographics) ? "../Controls/Student/StudentDemographics_Edit.aspx?xID=" + EntityIdEncrypted : null),
                                        false,
                                        null,
                                        null));

            System.Data.DataTable studentchecklist = Base.Classes.Student.GetStudentGradeInformation(Convert.ToInt32(SelectedStudent.ID));

            if (Convert.ToInt32(studentchecklist.Rows[0][0]) == 0)
                Rotator1Tiles.Add(new Tile(Permission.Tile_AdvisementChecklist, "Advisement Checklist", "~/Controls/Student/StudentChecklistTile.ascx", false, studentTileParms));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Portfolio_Student, "Portfolio", "~/Controls/Student/StudentPortfolio.ascx", false, studentTileParms));
            Rotator1Tiles.Add(new Tile(Permission.Tile_StudentAttendance, "Attendance", "~/Controls/Student/StudentAttendance.ascx", false, studentTileParms));
            Rotator1Tiles.Add(new Tile(Permission.Tile_StudentGrades, "Grades", "~/Controls/Student/StudentGrades.ascx", false, studentTileParms));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Discipline, "Discipline", "~/Controls/Student/StudentDiscipline.ascx", false, studentTileParms));
            Rotator1Tiles.Add(new Tile(Permission.Tile_StandardProficiencyReport, "Standards Proficiency", "~/Record/StandardsProficiency.ascx", false, studentTileParms));

            var udfEditUrl = UserHasPermission(Permission.Icon_Edit_AdditionalInformation) ? "../Controls/ExpandedPlaceholder.aspx" : null;
            Rotator1Tiles.Add(new Tile(Permission.Tile_AdditionalInformation,
                                        "Additional Information", "~/Controls/UDFs/UDFInformation.ascx", false,
                                        studentTileParms, null, null, udfEditUrl));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Accommodations_Student,
                                        "Accommodations",
                                        "~/Controls/Student/StudentAccommodation.ascx",
                                        false,
                                        studentTileParms,
                                        null,
                                        null,
                                        (UserHasPermission(Permission.Icon_Edit_StudentAccommodations) ? ResolveUrl("~/Controls/Student/") + "StudentAccommodation_Edit.aspx?xID=" + EntityIdEncrypted : null),
                                        false,
                                        null,
                                        null));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Assessment_Results_StudentPortal, "Assessment Results", "~/Controls/Assessment/AssessmentResults.ascx", false, studentTileParms));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Credentials_Student,
                                       "Credentials",
                                       "~/Controls/Credentials/StudentCredentials.ascx",
                                       false,
                                       studentTileParms,
                                       null,
                                       (UserHasPermission(Permission.Icon_Expand_StudentCredential) ? ResolveUrl("~/Controls/Credentials/") + "StudentCredentials_Expanded.aspx?xID=" + EntityIdEncrypted : null),
                                       null,
                                       false,
                                       null,
                                       null));            
        }
 private void LoadFolderLinking()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("studentId", _studentId);
     Rotator1Tiles.Add(new Tile(Permission.Folder_Linking, "Groups", "~/Controls/Groups/GroupStudent.ascx", tileParms: tileParms));
 }
 private void LoadTeacherStudentLearningObjectivesArchive()
 {
     var tileParms = new TileParms();
     ScriptManager.RegisterStartupScript(this, typeof(String), "teacherStudentLearningObjectives", "setDocumentTitle('Teacher Student Learning Objectives');", true);
     LoadReportTiles("~/Controls/Reports/TeacherStudentLearningObjectivesControl.ascx", tileParms, "Teacher Student Learning Objectives");
 }
		private void LoadProfileTiles()
		{
			var schoolTileParms = new TileParms();
			schoolTileParms.AddParm("school", _selectedSchool);

			var searchTileParms = new TileParms();
			searchTileParms.AddParm("level", EntityTypes.School);
			searchTileParms.AddParm("levelID", _selectedSchool.ID);
			searchTileParms.AddParm("levelType", _selectedSchool.Type);

			var editSchoolUrl = UserHasPermission(Permission.Icon_Edit_School_Identification)
															? "../Controls/School/SchoolIdentification_Edit.aspx?xID=" +
																Standpoint.Core.Classes.Encryption.EncryptInt(_selectedSchool.ID)
															: null;
			Rotator1Tiles.Add(new Tile(Permission.Tile_Identification_School, "Identification", "~/Controls/School/SchoolIdentification.ascx", false,
																	schoolTileParms, null, null, editSchoolUrl));

			Rotator1Tiles.Add(new Tile(Permission.Tile_Staff,
																	"Staff",
																	"~/Controls/Teacher/TeacherSearch.ascx",
																	false,
																	searchTileParms,
																	null,
																	UserHasPermission(Permission.Icon_ExpandedSearch_Staff) ? "../Controls/Teacher/TeacherSearch_Expanded.aspx" : ""));

			Rotator1Tiles.Add(new Tile(Permission.Tile_Classes,
																	"Classes",
																	"~/Controls/Class/ClassSearch.ascx",
																	false,
																	searchTileParms,
																	null,
																	UserHasPermission(Permission.Icon_ExpandedSearch_Classes) ? "../Controls/Class/ClassSearch_Expanded.aspx" : ""));

			var studentSearchUrl = "../Controls/Student/StudentSearch_Expanded.aspx?level=School&levelID=" + Standpoint.Core.Classes.Encryption.EncryptInt(_selectedSchool.ID);
			Rotator1Tiles.Add(new Tile(Permission.Tile_Students,
																	"Students",
																	"~/Controls/Student/StudentSearch.ascx",
																	false,
																	searchTileParms,
																	null,
																	UserHasPermission(Permission.Icon_ExpandedSearch_Students) ? studentSearchUrl : "",
																	string.Empty,
																	false,
																	"list"));

			Rotator1Tiles.Add(new Tile(Permission.Tile_StaffDemographics_School,
																   "Staff Demographics",
																   "~/Controls/Staff/StaffDemographics.ascx",
																   false,
																   searchTileParms,
																   null, null));

			Rotator1Tiles.Add(new Tile(Permission.Tile_Absences_School,
																 "Absences/Tardies (10+)",
																 "~/Controls/School/AbsenceRates.ascx",
																 false,
																 searchTileParms,
																 null, null));

			Rotator1Tiles.Add(new Tile(Permission.Tile_SuspensionRates_School,
																	 "Suspension Rates",
																	 "~/Controls/School/SuspensionRates.ascx",
																	 false,
																	 searchTileParms,
																	 null, null));

			if (_selectedSchool.HasHighSchoolClasses)
			{
				Rotator1Tiles.Add(new Tile(Permission.Tile_GraduationRates_School,
											"Graduation Rates",
											"~/Controls/School/SchoolGraduationRates.ascx",
											false,
											searchTileParms,
											null,
											""));
				Rotator1Tiles.Add(new Tile(Permission.Tile_DropoutPrevention_School,
											"Dropout Rates",
											"~/Controls/School/SchoolDropoutPrevention.ascx",
											false,
											searchTileParms,
											null,
											""));
			}

			Rotator1Tiles.Add(new Tile(Permission.Tile_Attendance_School,
																	"Attendance Rates",
																	"~/Controls/School/SchoolAttendanceRates.ascx",
																	false,
																	searchTileParms,
																	null,
																	""));
			//TODO: Add real permission flags and develop functionality for two tiles.
			//_rotator1Tiles.Add(new Tile("UDFs", "~/Controls/School/SchoolUserDefinedFields.ascx", false, schoolTileParms));
			//_rotator1Tiles.Add(new Tile("Demographics", "~/Controls/PlaceholderTile.ascx", false, schoolTileParms));
		}
 protected void ScheduleClassTileClick(TileParms tileParms)
 {
     SessionObject.clickedClass = (Thinkgate.Base.Classes.Class)tileParms.GetParm("class");
     ReloadTilesControl("Classes");
 }
        private void LoadTiles(int term)
        {
            if (_selectedPlan == null) return;

            var pacingParms = new TileParms();
            pacingParms.AddParm("planID", _planId);
            Rotator1Tiles.Add(new Tile(Permission.Tile_Pacing, "Pacing", "~/Controls/Plans/Pacing.ascx", false, pacingParms, null,
                                "~/Dialogues/InstructionalPlanCalendar.aspx", "~/Dialogues/Pacing.aspx", false, "list", "expandPacingTile", "editPacingTile"));

            var classTileParms = new TileParms();
            classTileParms.AddParm("class", _selectedPlan.Class);
            classTileParms.AddParm("level", Thinkgate.Base.Enums.EntityTypes.Teacher);
            classTileParms.AddParm("levelID", _selectedPlan.TeacherPage);
            classTileParms.AddParm("selectID", _selectedPlan.Class.ID);
            classTileParms.AddParm("category", "Classroom");
            classTileParms.AddParm("folder", "Classes");
            classTileParms.AddParm("planID", _planId);
            classTileParms.AddParm("term", term);
            classTileParms.AddParm("showCalendarIcon", true);

            if (UserHasPermission(Base.Enums.Permission.Tile_Standards))
            {
                Rotator1Tiles.Add(new Tile("Standards", "~/Controls/Standards/StandardsSearch.ascx",
                                            false, classTileParms, null,
                                            "../Controls/Standards/StandardsSearch_ExpandedV2.aspx"));
            }

            var lessonPlanParms = new TileParms();
            lessonPlanParms.AddParm("showCalendarIcon", true);
            lessonPlanParms.AddParm("selectID", _selectedPlan.Class.ID);
            lessonPlanParms.AddParm("planID", _planId);
            lessonPlanParms.AddParm("term", term);
            Rotator1Tiles.Add(new Tile(Permission.Tile_LessonPlans, "Lesson Plans", "~/Controls/Plans/LessonPlans.ascx", false,  lessonPlanParms));

            TileParms districtAssessmentParms = new TileParms();
            districtAssessmentParms.AddParm("level", Thinkgate.Base.Enums.EntityTypes.Class);
            districtAssessmentParms.AddParm("category", "District");
            districtAssessmentParms.AddParm("userID", _selectedPlan.TeacherPage);
            districtAssessmentParms.AddParm("levelID", _selectedPlan.Class.ID);
            districtAssessmentParms.AddParm("showCalendarIcon", true);
            Rotator1Tiles.Add(new Tile("District Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, districtAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=District", null));

            TileParms classroomAssessmentParms = new TileParms();
            classroomAssessmentParms.AddParm("class", _selectedPlan.Class);
            classroomAssessmentParms.AddParm("level", Thinkgate.Base.Enums.EntityTypes.Class);
            classroomAssessmentParms.AddParm("category", "Classroom");
            classroomAssessmentParms.AddParm("userID", _selectedPlan.TeacherPage);
            classroomAssessmentParms.AddParm("levelID", _selectedPlan.Class.ID);
            classroomAssessmentParms.AddParm("folder", "Classes");
            classroomAssessmentParms.AddParm("showCalendarIcon", true);
            Rotator1Tiles.Add(new Tile("Classroom Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, classroomAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=Classroom", null));
            
            var resourceParms = new TileParms();
            resourceParms.AddParm("showCalendarIcon", true);
            resourceParms.AddParm("level", Thinkgate.Base.Enums.EntityTypes.InstructionalPlan);
            resourceParms.AddParm("levelID", _selectedPlan.ID);
            resourceParms.AddParm("selectID", _selectedPlan.Class.ID);
            resourceParms.AddParm("planID", _planId);
            resourceParms.AddParm("term", term);
            Rotator1Tiles.Add(new Tile(Permission.Tile_Resources, "Resources", "~/Controls/Documents/Resources.ascx", false, resourceParms));

        }
Example #11
0
        private void LoadMtssTiles()
        {
            DistrictParms districtParms = DistrictParms.LoadDistrictParms();

            var resourceTileParms1 = new TileParms();
            var title1 = GetRtiFormTileTitle();
            resourceTileParms1.AddParm("level", EntityTypes.School);
            resourceTileParms1.AddParm("resourceToShow", "thinkgate.MTSSForms");
            resourceTileParms1.AddParm("title", title1);
            resourceTileParms1.AddParm("height", "500");
            resourceTileParms1.AddParm("width", "900");
            resourceTileParms1.AddParm("type", "MTSSForms");
            Rotator1Tiles.Add(new Tile(Permission.Tile_RTIForms_SchoolPortal, title1, "~/Controls/Documents/MTSSFormsDocumentTile.ascx", false, resourceTileParms1));

            var resourceTileParms2 = new TileParms();
            var title2 = GetRtiAnalysisTileTitle();
            resourceTileParms2.AddParm("level", EntityTypes.School);
            resourceTileParms2.AddParm("resourceToShow", "thinkgate.MTSSAnalysis");
            resourceTileParms2.AddParm("title", title2);
            resourceTileParms2.AddParm("height", "500");
            resourceTileParms2.AddParm("width", "900");
            resourceTileParms2.AddParm("type", "MTSSAnalysis");
            resourceTileParms2.AddParm("isFormColumnEnabled", UserHasPermission(Permission.Tile_RTIForms_DistrictPortal));
            var link = ResolveUrl("~/SessionBridge.aspx?ReturnURL=") + System.Web.HttpUtility.UrlEncode("fastsql_v2_direct.asp?ID=7274|Testgate_ViewRoster&??x=find");
            Rotator1Tiles.Add(new Tile(Permission.Tile_RTIAnalysis_SchoolPortal, title2, "~/Controls/Documents/MTSSAnalysisDocumentTile.ascx", false, resourceTileParms2, null, link, null, false, null, "OpenLegacyRTISearch"));

            var resourceTileParms3 = new TileParms();
            var title3 = GetRtiInterventionsTileTitle();
            resourceTileParms3.AddParm("level", EntityTypes.School);
            resourceTileParms3.AddParm("resourceToShow", "thinkgate.MTSSInterventions");
            resourceTileParms3.AddParm("title", title3);
            resourceTileParms3.AddParm("height", "500");
            resourceTileParms3.AddParm("width", "900");
            resourceTileParms3.AddParm("type", "MTSSInterventions");
            resourceTileParms3.AddParm("isFormColumnEnabled", UserHasPermission(Permission.Tile_RTIForms_DistrictPortal));
            Rotator1Tiles.Add(new Tile(Permission.Tile_RTIInterventions_SchoolPortal, title3, "~/Controls/Documents/MTSSInterventionsDocumentTile.ascx", false, resourceTileParms3, null, link, null, false, null, "OpenLegacyRTISearch"));
        }
Example #12
0
		private void LoadAssessmentTiles()
		{
			if (_selectedSchool == null)
				return;

			var schoolTileParms = new TileParms();
			schoolTileParms.AddParm("school", _selectedSchool);

			TileParms classroomAssessmentParms = new TileParms();
			classroomAssessmentParms.AddParm("level", EntityTypes.School);
			classroomAssessmentParms.AddParm("levelID", _selectedSchool.ID);
			classroomAssessmentParms.AddParm("category", "Classroom");

			TileParms districtAssessmentParms = new TileParms();
			districtAssessmentParms.AddParm("level", EntityTypes.School);
			districtAssessmentParms.AddParm("levelID", _selectedSchool.ID);
			districtAssessmentParms.AddParm("category", "District");

            TileParms blueprintAssessmentParms = new TileParms();
            blueprintAssessmentParms.AddParm("level", EntityTypes.School);
            blueprintAssessmentParms.AddParm("levelID", _selectedSchool.ID);
            blueprintAssessmentParms.AddParm("category", "Blueprint");

            Rotator1Tiles.Add(new Tile(Permission.Tile_DistrictAssessment, "District Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, districtAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=District&level=School", null));
            Rotator1Tiles.Add(new Tile(Permission.Tile_ClassroomAssessment, "Classroom Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, classroomAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=Classroom&level=School", null));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Items, "Items", "~/Controls/Items/Items.ascx", false, schoolTileParms, null, UserHasPermission(Permission.Search_Item) ? "../Controls/Items/ItemSearch.aspx" : null, null, false, null, null, null, null, "assessmentItemsExportToExcel"));
			Rotator1Tiles.Add(new Tile(Permission.Tile_Images, "Images", "~/Controls/Assessment/AssessmentItems.ascx", false, schoolTileParms, null, UserHasPermission(Permission.Search_Image) ? "../Controls/Images/ImageSearch_ExpandedV2.aspx" : null));
			Rotator1Tiles.Add(new Tile(Permission.Tile_Addendum, "Addendums", "~/Controls/Assessment/AssessmentItems.ascx", false, schoolTileParms, null, UserHasPermission(Permission.Search_Addendum) ? "../Controls/Addendums/AddendumSearch_ExpandedV2.aspx" : null));
			Rotator1Tiles.Add(new Tile(Permission.Tile_Rubrics, "Rubrics", "~/Controls/Assessment/AssessmentItems.ascx", false, schoolTileParms, null, UserHasPermission(Permission.Search_Rubric) ? "../Controls/Rubrics/RubricSearch_ExpandedV2.aspx" : null));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Blueprint, "Blueprints", "~/Controls/Assessment/ViewBlueprints.ascx", false, blueprintAssessmentParms, null, null, string.Empty, false, "graphical"));
		}
Example #13
0
		private void LoadEvalTiles()
		{
			TileParms schoolTileParmsCi = new TileParms();
			schoolTileParmsCi.AddParm("level", EntityTypes.School);
			schoolTileParmsCi.AddParm("levelID", _selectedSchool.ID);
			schoolTileParmsCi.AddParm("evalType", EvaluationTypes.TeacherClassroom);

			TileParms schoolTileParmsNci = new TileParms();
			schoolTileParmsNci.AddParm("level", EntityTypes.School);
			schoolTileParmsNci.AddParm("levelID", _selectedSchool.ID);
			schoolTileParmsNci.AddParm("evalType", EvaluationTypes.TeacherNonClassroom);

			TileParms schoolTileParmsSa = new TileParms();
			schoolTileParmsSa.AddParm("level", EntityTypes.School);
			schoolTileParmsSa.AddParm("levelID", _selectedSchool.ID);
			schoolTileParmsSa.AddParm("evalType", EvaluationTypes.Administrator);


			if (UserHasPermission(Permission.Tile_ClassroomInstructionalStaff))
				Rotator1Tiles.Add(new Tile("Classroom Instructional Staff", "~/Controls/Staff/StaffEvaluationSearch.ascx", false, schoolTileParmsCi));
			if (UserHasPermission(Permission.Tile_NonClassroomInstructionalStaff))
				Rotator1Tiles.Add(new Tile("Non-Classroom Instructional Staff", "~/Controls/Staff/StaffEvaluationSearch.ascx", false, schoolTileParmsNci));
			if (UserHasPermission(Permission.Tile_SchoolBasedAdministrativeStaff))
				Rotator1Tiles.Add(new Tile("School-Based Administrative Staff", "~/Controls/Staff/StaffEvaluationSearch.ascx", false, schoolTileParmsSa));
		}
Example #14
0
		private void LoadReportingTiles()
		{
			var schoolTileParms = new TileParms();
			schoolTileParms.AddParm("level", EntityTypes.School);
			schoolTileParms.AddParm("levelID", _selectedSchool.ID);
			schoolTileParms.AddParm("selectID", _selectedSchool.ID);
			schoolTileParms.AddParm("school", _selectedSchool);
			schoolTileParms.AddParm("folder", "Reporting");

			Rotator1Tiles.Add(new Tile(Permission.Tile_AdvancedReporting, "Advanced Reporting", "~/Controls/Reports/AdvancedReporting.ascx", false, schoolTileParms));

			var archivedReportingTileParms = new TileParms();
			archivedReportingTileParms.AddParm("archives", "yes");
			Rotator1Tiles.Add(new Tile(Permission.Tile_ArchivedReporting, "Archived Reporting", "~/Controls/Reports/AdvancedReporting.ascx", false, archivedReportingTileParms));

			Rotator1Tiles.Add(new Tile(Permission.Tile_Growth_Analysis, "Growth Analysis", "~/Controls/School/SchoolGrowthAnalysis.ascx", false, schoolTileParms));
			Rotator1Tiles.Add(new Tile(Permission.Tile_School_ProficiencyAnalysis, "Proficiency Analysis", "~/Controls/School/SchoolProficiencyAnalysis.ascx", false, schoolTileParms));
#if false
						_rotator1Tiles.Add(new Tile("Results", "~/Controls/School/SchoolResults.ascxc", false, schoolTileParms));
#endif
			Rotator1Tiles.Add(new Tile(Permission.Tile_AssessmentResults, "Assessment Results", "~/Controls/Assessment/AssessmentResults.ascx", false, schoolTileParms, null, "../Controls/Assessment/AssessmentResults_ExpandedV2.aspx", null, false, null, "expandAssessmentResults"));
			Rotator1Tiles.Add(new Tile(Permission.Tile_School_EarlyWarning, "Early Warning", "~/Controls/School/SchoolEarlyWarning.ascx", false, schoolTileParms));
			Rotator1Tiles.Add(new Tile(Permission.Tile_School_Readiness, "Readiness", "~/Controls/School/SchoolReadiness.ascx", false, schoolTileParms));
		}
Example #15
0
		private void LoadInstructionTiles()
		{
			var schoolTileParms = new TileParms();
			schoolTileParms.AddParm("school", _selectedSchool);

			if ((bool)Session["KenticoEnabled"] == true)
			{
                if (UserHasPermission(Permission.Tile_InstructionalPlans))
                {
				var InstructionalPlanTileParms = new TileParms();
                var title = GetInstructionalPlanTileTitle();
				InstructionalPlanTileParms.AddParm("resourceToShow", "thinkgate.InstructionalPlan");
                InstructionalPlanTileParms.AddParm("title", title);
				InstructionalPlanTileParms.AddParm("height", "500");
				InstructionalPlanTileParms.AddParm("width", "900");
				InstructionalPlanTileParms.AddParm("type", "InstructionalPlans");
                InstructionalPlanTileParms.AddParm("typeKey", ((int)LookupDetail.CurriculumMap).ToString());
                Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, InstructionalPlanTileParms, null, UserHasPermission(Permission.Icon_Expand_CurriculumMap) ? "../Controls/Resources/ResourceSearchKentico.aspx?type=" + ((int)LookupDetail.CurriculumMap).ToString() : null));
                }

                if (UserHasPermission(Permission.Tile_UnitPlans))
                {
				var UnitPlanTileParms = new TileParms();
                var title = GetUnitPlanTileTitle();
                UnitPlanTileParms.AddParm("resourceToShow", "thinkgate.UnitPlan");
                UnitPlanTileParms.AddParm("title", title);
				UnitPlanTileParms.AddParm("height", "500");
				UnitPlanTileParms.AddParm("width", "900");
				UnitPlanTileParms.AddParm("type", "UnitPlans");
                UnitPlanTileParms.AddParm("typeKey", ((int)LookupDetail.UnitPlan).ToString());
                Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, UnitPlanTileParms, null, UserHasPermission(Permission.Icon_Expand_Unitplan) ? "../Controls/Resources/ResourceSearchKentico.aspx?type=" + ((int)LookupDetail.UnitPlan).ToString() : null));
                }

                if (UserHasPermission(Permission.Tile_LessonPlansResources))
                {
				var LessonPlanTileParms = new TileParms();
                var title = GetLessonPlanTileTitle();
                LessonPlanTileParms.AddParm("resourceToShow", "thinkgate.LessonPlan");
                LessonPlanTileParms.AddParm("title", title);
				LessonPlanTileParms.AddParm("height", "500");
				LessonPlanTileParms.AddParm("width", "900");
				LessonPlanTileParms.AddParm("type", "LessonPlans");
                LessonPlanTileParms.AddParm("typeKey", ((int)LookupDetail.LessonPlan).ToString());
                Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, LessonPlanTileParms, null, UserHasPermission(Permission.Icon_Expand_Lessonplan) ? "../Controls/Resources/ResourceSearchKentico.aspx?type=" + ((int)LookupDetail.LessonPlan).ToString() : null));
                }

              
                if (UserHasPermission(Permission.Tile_ModelCurriculumUnit))
                {
                    string clientState = DistrictParms.State;
                    TileParms modelCurriculumParms = new TileParms();
                    string title;
                    switch (clientState)
                    {
                        case "OH": //OHIO
                            title = GetModelCurriculumTileTitle();
                            modelCurriculumParms.AddParm("resourceToShow", "thinkgate.curriculumUnit");
                            modelCurriculumParms.AddParm("title", title);
                            modelCurriculumParms.AddParm("height", "500");
                            modelCurriculumParms.AddParm("width", "900");
                            modelCurriculumParms.AddParm("type", "Curriculum Unit");
                            modelCurriculumParms.AddParm("showStateOnly", true);
                            modelCurriculumParms.AddParm("typeKey", ((int)LookupDetail.CurriculumUnitOH).ToString());
                            Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, modelCurriculumParms, null, UserHasPermission(Permission.Icon_Expand_Curriculumunit) ? "../Controls/Resources/ResourceSearchKentico.aspx?type=" + ((int)LookupDetail.CurriculumUnitOH) : null));
                            break;
                        case "MA": //MASS
                            title = GetModelCurriculumTileTitle();
                            modelCurriculumParms.AddParm("resourceToShow", "thinkgate.UnitPlan");
                            modelCurriculumParms.AddParm("title", title);
                            modelCurriculumParms.AddParm("height", "500");
                            modelCurriculumParms.AddParm("width", "900");
                            modelCurriculumParms.AddParm("type", "UnitPlans");
                            modelCurriculumParms.AddParm("showStateOnly", true);
                            modelCurriculumParms.AddParm("typeKey", ((int)LookupDetail.CurriculumUnitMA).ToString());
                            Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, modelCurriculumParms, null, UserHasPermission(Permission.Icon_Expand_Curriculumunit) ? "../Controls/Resources/ResourceSearchKentico.aspx?type=" + ((int)LookupDetail.UnitPlan) : null));
                            break;
                    }
                }
               

                if (DistrictParms.Tile_Kentico_Resources == "Yes")
                {
                   
                    var resourceTileParms3 = new TileParms();
                    var title = GetResourceTileTitle();
                    resourceTileParms3.AddParm("resourceToShow", GetKenticoResourceTileResourceTypeName());
                    resourceTileParms3.AddParm("title", title);
                    resourceTileParms3.AddParm("height", "500");
                    resourceTileParms3.AddParm("width", "900");
                    resourceTileParms3.AddParm("type", "Resources");
                    resourceTileParms3.AddParm("typeKey", ((int)LookupDetail.Resource).ToString(CultureInfo.CurrentCulture));
                    Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, resourceTileParms3, null, UserHasPermission(Permission.Icon_Expand_Resources) ? "../Controls/Resources/ResourceSearchKentico.aspx" : null));
                }

			}
            else
            {
                TileParms unitPlanParms = new TileParms();
                unitPlanParms.AddParm("level", EntityTypes.School);
                unitPlanParms.AddParm("levelID", _selectedSchool.ID);
                unitPlanParms.AddParm("type", "Unit Plans");
                Rotator1Tiles.Add(new Tile(Permission.Tile_UnitPlans, "Unit Plans", "~/Controls/Documents/Resources.ascx", false, unitPlanParms, null, "../Controls/Resources/ResourceSearch.aspx"));

                TileParms lessonPlanParms = new TileParms();
                lessonPlanParms.AddParm("level", EntityTypes.School);
                lessonPlanParms.AddParm("levelID", _selectedSchool.ID);
                lessonPlanParms.AddParm("type", "Lesson Plans");
                Rotator1Tiles.Add(new Tile(Permission.Tile_LessonPlansResources, "Lesson Plans", "~/Controls/Documents/Resources.ascx", false, lessonPlanParms, null, "../Controls/Resources/ResourceSearch.aspx"));

                TileParms pacingDocumentsParms = new TileParms();
                pacingDocumentsParms.AddParm("level", EntityTypes.School);
                pacingDocumentsParms.AddParm("levelID", _selectedSchool.ID);
                pacingDocumentsParms.AddParm("type", "Pacing Documents");
                Rotator1Tiles.Add(new Tile(Permission.Tile_PacingDocuments, "Pacing Documents", "~/Controls/Documents/Resources.ascx", false, pacingDocumentsParms, null, "../Controls/Resources/ResourceSearch.aspx"));
			}

            
            if (DistrictParms.Tile_E3_Resources == "Yes")
            {
            TileParms plansParms = new TileParms();
            plansParms.AddParm("level", EntityTypes.School);
            plansParms.AddParm("levelID", _selectedSchool.ID);
            plansParms.AddParm("type", "Resources");
            var resourcesTileFilterToDisplay = DistrictParms.LoadDistrictParms().ResourcesTileFilterToDisplay;
            if (!string.IsNullOrEmpty(resourcesTileFilterToDisplay)) plansParms.AddParm("UseResourcesTileFilterToDisplay", resourcesTileFilterToDisplay);

            var resourceTileExpand = UserHasPermission(Permission.Icon_Expand_Resources) ? "../Controls/Resources/ResourceSearch.aspx" : null;
            Rotator1Tiles.Add(new Tile(Permission.Tile_School_Resources, "Resources", "~/Controls/Documents/Resources.ascx", false, plansParms, null, resourceTileExpand));
            }

            if (UserHasPermission(Permission.Tile_Playbook))
            {
                Rotator1Tiles.Add(new Tile("Playbooks", "~/Controls/Plans/Playbook.ascx", false, null));
            }

			Rotator1Tiles.Add(new Tile(Permission.Tile_School_Attendance, "Attendance", "~/Controls/School/SchoolAttendance.ascx", false, schoolTileParms));
			Rotator1Tiles.Add(new Tile(Permission.Tile_School_Discipline, "Discipline", "~/Controls/School/SchoolDiscipline.ascx", false, schoolTileParms));
			Rotator1Tiles.Add(new Tile(Permission.Tile_School_Grades, "Grades", "~/Controls/School/SchoolGrades.ascx", false, schoolTileParms));            

		}
Example #16
0
		private void LoadPlanningTiles()
		{
			var schoolTileParms = new TileParms();
			schoolTileParms.AddParm("level", EntityTypes.School);
			schoolTileParms.AddParm("levelID", _selectedSchool.ID);
			schoolTileParms.AddParm("school", _selectedSchool);

			if (UserHasPermission(Permission.Tile_Standards))
			{
                Rotator1Tiles.Add(new Tile("Standards", "~/Controls/Standards/StandardsSearchDistSchool.ascx", false, schoolTileParms, null, "../Controls/Standards/StandardsSearch_ExpandedV2.aspx"));
                Rotator1Tiles.Add(new Tile("Standard Filter", "~/Controls/Standards/StandardsFilter.ascx", false, null, null, null));

			}

            if ((bool)Session["KenticoEnabled"])
				{
                if (UserHasPermission(Permission.Tile_Competencylists))
                {
                    var resourceTileParms2 = new TileParms();
                    var title = "Competency Lists";
                    resourceTileParms2.AddParm("resourceToShow", "Thinkgate.CompetencyList");
                    resourceTileParms2.AddParm("title", title);
                    resourceTileParms2.AddParm("height", "500");
                    resourceTileParms2.AddParm("width", "900");
                    resourceTileParms2.AddParm("type", "CompetencyLists");
                    Rotator1Tiles.Add(new Tile(title, "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, resourceTileParms2, null, null));
				}
			}
            if (UserHasPermission(Permission.Tile_DistrictImprovementPlan))
            {
                var improvementPlanTileParms = new TileParms();
                improvementPlanTileParms.AddParm("improvementPlanType", ImprovementPlanType.District);
                Rotator1Tiles.Add(new Tile("District Improvement Plan", "~/Controls/ImprovementPlan/ImprovementPlanTile.ascx",
                    false, improvementPlanTileParms));
		}

            if (UserHasPermission(Permission.Tile_SchoolImprovementPlan))
            {
                var improvementPlanTileParms = new TileParms();
                improvementPlanTileParms.AddParm("improvementPlanType", ImprovementPlanType.School);
                improvementPlanTileParms.AddParm("schoolID", _schoolId);
                Rotator1Tiles.Add(new Tile("School Improvement Plan", "~/Controls/ImprovementPlan/ImprovementPlanTile.ascx",
                    false, improvementPlanTileParms));
            }            
		}
        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));                                
            }

        }
 private void LoadCompetencyTrackingReport()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("guid", _guid);
     LoadReportTiles("~/Controls/Reports/CredentialTrackingReport.ascx", tileParms, "Credential Tracking Report");
 }
Example #19
0
		private void LoadProfileTiles()
		{
			if (SelectedStaff == null) return;

			var staffTileParms = new TileParms();
			var staffIdEncrypted = Encryption.EncryptInt(StaffId);
			staffTileParms.AddParm("staff", SelectedStaff);

			Rotator1Tiles.Add(new Tile("Identification", 
                                        "~/Controls/Staff/StaffIdentification.ascx", 
                                        false,
										staffTileParms, 
                                        null, 
                                        null,
										SessionObject.LoggedInUser.UserId == SelectedStaff.UserID ?
                                            (UserHasPermission(Permission.Icon_Edit_Profile_Identification_Self) ? String.Concat("../Controls/Staff/StaffIdentification_Edit.aspx?xID=",staffIdEncrypted) : null) :
                                            (UserHasPermission(Permission.Icon_Edit_Profile_Identification) ? String.Concat("../Controls/Staff/StaffIdentification_Edit.aspx?xID=",staffIdEncrypted) : null), 
                                        false, 
                                        null, 
                                        null,
										"openStaffIdentificationEditRadWindow"));
            //TODO:DHB 2012-08-30 The IsNonClassroomTeacher_Evaluation and IsSchoolAdministrator properties are currently hardcoded to true.  However, it is anticipated that down the road, it will be used to determine when a non classroom instructor (NCI) is still to be considered a teacher.  See email from HCB on 8/30/2012.
            if (
                    (SessionObject.LoggedInUser.IsNonClassroomTeacher_Evaluation || SessionObject.LoggedInUser.IsSchoolAdministrator_Evaluation) &&
                    UserHasPermission(Permission.Tile_Evaluations_SchoolTeacherNCI_MyProfile) 
                    ||
                    (SessionObject.LoggedInUser.IsClassroomTeacher_Evaluation || SessionObject.LoggedInUser.IsSchoolAdministrator_Evaluation) &&
                    UserHasPermission(Permission.Tile_Evaluations_SchoolTeacherCI_MyProfile) 
                    ||
                    SessionObject.LoggedInUser.IsSchoolAdministrator_Evaluation && UserHasPermission(Permission.Tile_Evaluations_SchoolAdministrator)
                )
			{
				TileParms evalTileParms = new TileParms();

                if (SessionObject.LoggedInUser.IsSchoolAdministrator_Evaluation)
                        evalTileParms.AddParm("staffType", "SA");
                else if (SessionObject.LoggedInUser.IsClassroomTeacher_Evaluation)
                    evalTileParms.AddParm("staffType", "CI");
                else if (SessionObject.LoggedInUser.IsNonClassroomTeacher_Evaluation)
                    evalTileParms.AddParm("staffType", "NCI");        

				Rotator1Tiles.Add(new Tile("Personal Evaluations", "~/Controls/Staff/StaffEvaluation.ascx", false, evalTileParms));
			}
		}
        private void LoadInformationTiles()
        {
            if (_selectedAddendum == null) return;

            var addendumTileParms = new TileParms();
            addendumTileParms.AddParm("addendum", _selectedAddendum);

            var editUrl = "../Controls/Assessment/ContentEditor/ContentEditor_Addendum.aspx?xID=" + _addendumIdEncrypted;
            Rotator1Tiles.Add(new Tile(Permission.Tile_Identification_AddendumObjectScreen,
                                        "Addendum Identification", 
                                        "~/Controls/Addendums/AddendumIdentification.ascx", 
                                        false,
                                        addendumTileParms, 
                                        null, 
                                        null, 
                                        editUrl, 
                                        false, 
                                        null, 
                                        null, 
                                        "AddendumPage_openExpandEditRadWindow"));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Content_AddendumObjectScreen,
                                        "Addendum Content",
                                        "~/Controls/Addendums/AddendumContent.ascx", 
                                        false, 
                                        addendumTileParms, 
                                        null,
                                        null, 
                                        editUrl, 
                                        false,
                                        null, 
                                        null, 
                                        "AddendumPage_openExpandEditRadWindow"));
        }
        private void LoadInformationTiles()
        {
            if (_selectedRubric == null) return;

            var rubricTileParms = new TileParms();
            rubricTileParms.AddParm("rubric", _selectedRubric);

            var editURL = "../Controls/Assessment/ContentEditor/ContentEditor_Rubric.aspx?xID=" + _rubricIdEncrypted;
            Rotator1Tiles.Add(new Tile(Permission.Tile_Identification_RubricObjectScreen, 
                                        "Rubric Identification", 
                                        "~/Controls/Rubrics/RubricIdentification.ascx", 
                                        false, 
                                        rubricTileParms,
                                        null, 
                                        null, 
                                        editURL, 
                                        false, 
                                        null, 
                                        null, 
                                        "RubricPage_openExpandEditRadWindow"));

            Rotator1Tiles.Add(new Tile(Permission.Tile_Content_RubricObjectScreen,
                                        "Rubric Content", 
                                        "~/Controls/Rubrics/RubricContent.ascx", 
                                        false, 
                                        rubricTileParms, 
                                        null, 
                                        null, 
                                        editURL, 
                                        false, 
                                        null, 
                                        null, 
                                        "RubricPage_openExpandEditRadWindow"));
        }
        private void LoadReportTiles(string tilePath, TileParms tileParms = null, string reportName = "Results")
        {
            if (tileParms == null) tileParms = new TileParms();

            tileParms.AddParm("CriteriaGUID", hiddenTxtBox.Text);
            tileParms.AddParm("multiTestIDs", _multiTestIDs);

            //_rotator1Tiles.Add(new Tile("Criteria", "~/Controls/Reports/ReportCriteria.ascx", false, tileParms));
            Rotator1Tiles.Add(new Tile(reportName, tilePath, false, tileParms));
        }
Example #23
0
 public Breadcrumb(string displayText, string controlSection, TileParms tileParms)
 {
     DisplayText = displayText;
     ControlSection = controlSection;
     TileParms = tileParms;
 }
 private void LoadGradeConversion()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("testID", _testId);
     tileParms.AddParm("level", _level);
     tileParms.AddParm("levelID", _levelId);
     tileParms.AddParm("year", _year);
     tileParms.AddParm("testType", _type);
     LoadReportTiles("~/Controls/Reports/GradeConversion.ascx", tileParms, "Grade Conversion");
 }
        public void SetParms(TileParms tileParms)
        {
            if (Tile == null) return;

            Tile.TileParms = tileParms;
        }
Example #26
0
        private void LoadInformationTiles()
        {
            var classTileParms = new TileParms();
            classTileParms.AddParm("class", _selectedClass);
            classTileParms.AddParm("level", EntityTypes.Class);
            classTileParms.AddParm("levelID", _selectedClass.ID);
            classTileParms.AddParm("folder", "Information");
            if (_thisIsAClone) classTileParms.AddParm("clonedClassID",_selectedClass.ID);

            var classTileParms2 = new TileParms();
            classTileParms2.AddParm("class", _selectedClass);
            classTileParms2.AddParm("level", EntityTypes.Class);
            classTileParms2.AddParm("levelID", _selectedClass.ID);
            classTileParms2.AddParm("folder", "Information");
            if (_thisIsAClone) classTileParms2.AddParm("clonedClassID", _selectedClass.ID);

            TileParms districtAssessmentParms = new TileParms(classTileParms.Parms);
            districtAssessmentParms.AddParm("category", "District");

            SessionObject.DistrictTileParms = districtAssessmentParms;

            TileParms classroomAssessmentParms = new TileParms(classTileParms2.Parms);
            classroomAssessmentParms.AddParm("category", "Classroom");

            var expandUrl = UserHasPermission(Permission.Icon_Expand_Class) ? "../Controls/Class/ClassSummary_Expanded.aspx?xID=" + EntityIdEncrypted : string.Empty;
            var editUrl = UserHasPermission(Permission.Edit_Class) ? "../Controls/Class/ClassSummary_Edit.aspx?xID=" + EntityIdEncrypted : string.Empty;

            // Page 1 upper row
            Rotator1Tiles.Add(new Tile(Permission.Tile_Identification_Class, "Identification", "~/Controls/Class/ClassIdentification.ascx", false, classTileParms, null, expandUrl, editUrl));
            Rotator1Tiles.Add(new Tile(Permission.Tile_Teachers_Class, "Teachers", "~/Controls/Teacher/Teachers.ascx", false, classTileParms, null, expandUrl, editUrl, true, "graphical"));
            Rotator1Tiles.Add(new Tile(Permission.Tile_Roster_Class, "Roster", "~/Controls/Class/ClassRoster.ascx", false, classTileParms, null, expandUrl, editUrl, true, "graphical"));
            // Page 1 lower row

            Rotator1Tiles.Add(new Tile("District Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, districtAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=District&level=Class", null));
            Rotator1Tiles.Add(new Tile("Classroom Assessments", "~/Controls/Assessment/ViewAssessmentsV2.ascx", false, classroomAssessmentParms, null, "../Controls/Assessment/AssessmentSearchExpanded.aspx?category=Classroom&level=Class", null));
            Rotator1Tiles.Add(new Tile("Assessment Results", "~/Controls/Assessment/AssessmentResults.ascx", false, classTileParms, null, "../Controls/Assessment/AssessmentResults_ExpandedV2.aspx", null, false, null, "expandAssessmentResults"));


            // Page 2 upper row
            //_rotator1Tiles.Add(new Tile("Resources", "~/Controls/Documents/Resources.ascx", false, classTileParms, null, "../Controls/Resources/ResourceSearch.aspx"));


            DistrictParms districtParms = DistrictParms.LoadDistrictParms();
            if (districtParms.Tile_Kentico_Resources == "Yes")
            {
                var resourceTileParms3 = new TileParms();
                resourceTileParms3.AddParm("resourceToShow", GetKenticoResourceTileResourceTypeName());
                resourceTileParms3.AddParm("title", "Resources");
                resourceTileParms3.AddParm("height", "500");
                resourceTileParms3.AddParm("width", "900");
                resourceTileParms3.AddParm("type", "Resources");
                Rotator1Tiles.Add(new Tile("Resources", "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, resourceTileParms3, null, "../Controls/Resources/ResourceSearchKentico.aspx"));

            }
            if (UserHasPermission(Permission.Tile_Class_Attendance))
            {
                Rotator1Tiles.Add(new Tile("Attendance", "~/Controls/Class/ClassAttendance.ascx", false, classTileParms));
            }
            if (UserHasPermission(Permission.Tile_Discipline_Class))
            {
                Rotator1Tiles.Add(new Tile("Discipline", "~/Controls/Class/ClassDiscipline.ascx", false, classTileParms));
            }
            // Page 2 lower row
            if (UserHasPermission(Permission.Tile_Demographics_Class))
            {
                Rotator1Tiles.Add(new Tile("Demographics", "~/Controls/PlaceholderTile.ascx", false, classTileParms));
            }
            if (UserHasPermission(Permission.Tile_UDF_Class))
            {
                Rotator1Tiles.Add(new Tile("UDFs", "~/Controls/Class/ClassUserDefinedFields.ascx", false, classTileParms));
            }
            //_rotator1Tiles.Add(new Tile("Common Core State Standards", "~/Controls/Standards/StandardsSearch.ascx", false, classTileParms));

            Rotator1Tiles.Add(new Tile("Standards", "~/Controls/Standards/StandardsSearch.ascx", false, classTileParms, null, "../Controls/Standards/StandardsSearch_ExpandedV2.aspx"));

            //            _rotator1Tiles.Add(new Tile("Grades", "~/Controls/Class/ClassGrades.ascx", false, classTileParms));
            //            _rotator1Tiles.Add(new Tile("Assessments", "~/Controls/Class/ClassAssessments.ascx", false, classTileParms));
            //           _rotator1Tiles.Add(new Tile("Results", "~/Controls/Class/ClassResults.ascx", false, classTileParms));
            //            _rotator1Tiles.Add(new Tile("Early Warning", "~/Controls/Class/ClassEarlyWarning.ascx", false, classTileParms));
            //            _rotator1Tiles.Add(new Tile("Readiness", "~/Controls/Class/ClassReadiness.ascx", false, classTileParms));
        }
 private void LoadReportCard()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("type", _type);
     LoadReportTiles("~/Controls/Reports/ReportCardStandard.ascx", tileParms, "Report Card by Standard");
 }
        private void LoadInformationTiles()
        {
            DistrictParms districtParms = DistrictParms.LoadDistrictParms();
            if (_selectedStandard == null) return;
            _from = Request.QueryString["from"] ?? string.Empty;

            var standardsTileParms = new TileParms();
            standardsTileParms.AddParm("standards", _selectedStandard);

            Rotator1Tiles.Add(new Tile(Permission.Icon_Edit_Standard, "Standard Identification", "~/Controls/Standards/StandardsIdentification.ascx", false, standardsTileParms, null, null, "../Controls/ExpandedPlaceholder.aspx", false, null, null));
            Rotator1Tiles.Add(new Tile("Standard Contents", "~/Controls/Standards/StandardsContent.ascx", false, standardsTileParms));

            if (districtParms.Tile_E3_Resources_StandardsPage == "Yes")
            {
                TileParms plansParms = new TileParms();
                plansParms.AddParm("level", EntityTypes.Standard);
                plansParms.AddParm("levelID", _selectedStandard.ID);
                Rotator1Tiles.Add(new Tile(Permission.Tile_Resources_StandardObjectScreen, "Resources", "~/Controls/Documents/Resources.ascx", false, plansParms, null, "../Controls/Resources/ResourceSearch.aspx"));
            }
            if (districtParms.Tile_Kentico_Resources == "Yes")
            {
               
                var resourceTileParms3 = new TileParms();
                resourceTileParms3.AddParm("resourceToShow", GetKenticoResourceTileResourceTypeName());
                resourceTileParms3.AddParm("title", "Resources");
                resourceTileParms3.AddParm("height", "500");
                resourceTileParms3.AddParm("width", "900");
                resourceTileParms3.AddParm("type", "Resources");                
                resourceTileParms3.AddParm("standards", _selectedStandard);
                Rotator1Tiles.Add(new Tile("Resources", "~/Controls/Documents/GenericCMSDocumentTile.ascx", false, resourceTileParms3, null, "../Controls/Resources/ResourceSearchKentico.aspx?" + string.Format("from={0}&standardID={1}", _from, _selectedStandard.ID)));
            }

        }
 private void LoadStandardAnaylsis()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("AnalysisType", AnalysisType.StandardAnalysis);
     LoadReportTiles("~/Controls/Reports/ItemAnalysis.ascx", tileParms, "Standard Analysis");
 }
 private void LoadProficiencyArchive()
 {
     var tileParms = new TileParms();
     tileParms.AddParm("Archive", true);
     LoadReportTiles("~/Controls/Reports/ProficiencyV2.ascx", tileParms, "Proficiency Archive");
 }