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 LoadSummaryView(DataTable summaryTbl, DataTable standardQuestionCountsTbl, Int32 totalRigorLevelCount, Thinkgate.Base.Classes.Assessment assessment) { DataRow summaryRow = summaryTbl.Rows[0]; lblStatus.Text = (DataIntegrity.ConvertToBool(summaryRow["TestProofed"])) ? "Proofed" : "Unproofed"; lblStandards.Text = standardQuestionCountsTbl.Rows.Count.ToString(); lblRigorLevels.Text = totalRigorLevelCount.ToString(); //lblitems.Text = assessment.Items.Count.ToString(); lblitems.Text = standardQuestionCountsTbl.Rows.Count != 0 ? standardQuestionCountsTbl.Rows[0]["TotalItemCount"].ToString() : "0"; lblAddendums.Text = assessment.AddendumCount.ToString(); lblRubrics.Text = summaryRow["RubricCount"].ToString(); DateTime? edited = DataIntegrity.ConvertToNullableDate(summaryRow["DateUpdated"]); DateTime? created = DataIntegrity.ConvertToNullableDate(summaryRow["DateCreated"]); lblLastEdited.Text = (edited.HasValue) ? edited.Value.ToShortDateString() : (created.HasValue) ? created.Value.ToShortDateString() : String.Empty; #if false // Original content. lblContType.Text = attrRow["Content_Type"].ToString(); lblFieldTest.Text = attrRow["FieldTest"].ToString(); lblNumForms.Text = DataIntegrity.ConvertToInt(attrRow["FormCount"]).ToString(); lblFormSequence.Text = attrRow["FormSeq"].ToString(); lblScoreType.Text = attrRow["ScoreType"].ToString(); if(String.IsNullOrEmpty(lblScoreType.Text)) lblScoreType.Text = "Percent"; lblDistractors.Text = attrRow["AlternatingDistractorValue"].ToString(); DateTime? edited = DataIntegrity.ConvertToNullableDate(attrRow["DateUpdated"]); DateTime? created = DataIntegrity.ConvertToNullableDate(attrRow["DateCreated"]); lblLastEdited.Text = (edited.HasValue) ? edited.Value.ToShortDateString() : (created.HasValue) ? created.Value.ToShortDateString() : String.Empty; #endif }
/// <summary> /// Reurn true if the currently logged in user has the passed permission. /// </summary> /// <param name="permission"></param> /// <returns></returns> protected Boolean UserHasPermission(Thinkgate.Base.Enums.Permission permission) { if (SessionObject == null) { SessionObject = (SessionObject)Session["SessionObject"]; } return SessionObject.LoggedInUser.HasPermission(permission); }
private string BuildStdTitle(Thinkgate.Base.Classes.Standards oStd) { sb = new StringBuilder(""); if (!string.IsNullOrEmpty(oStd.Level)) sb.Append(oStd.Level + " "); if (!string.IsNullOrEmpty(oStd.StateNbr)) sb.Append("(" + oStd.StateNbr + ") "); //if (!string.IsNullOrEmpty(oStd.StandardName)) sb.Append(oStd.StandardName + " "); return sb.ToString(); }
/// <summary> /// Get Standard Levels By StandardList Data /// </summary> /// <param name="id"></param> /// <returns></returns> public static DataTable GetStandardLevelbyStandardList(Thinkgate.Base.DataAccess.dtGeneric_Int ids,string StandardSet, int WorksheetId) { SqlParameterCollection parms = new SqlCommand().Parameters; SqlParameter idCollections = new SqlParameter("StandardIds", SqlDbType.Structured); idCollections.TypeName = "dbo.Generic_Int"; idCollections.Value = ids; parms.Add(idCollections); parms.AddWithValue("StandardSet", StandardSet); parms.AddWithValue("WorksheetId", WorksheetId); DataTable dt = ThinkgateDataAccess.FetchDataTable(AppSettings.ConnectionString, StoredProcedures.E3_GET_STANDARDLEVEL_BY_STANDARDLIST, CommandType.StoredProcedure, parms); return dt; }
private void PopulateProfileLabels(Thinkgate.Base.Classes.Class c) { lblGrade.Text = c.Grade.DisplayText; lblSubject.Text = c.Subject.DisplayText; lblCourse.Text = c.Course.CourseName; lblSection.Text = c.Section; lblPeriod.Text = c.Period; lblSemester.Text = c.Semester; lblYear.Text = c.Year; lblBlock.Text = c.Block; lblSchoolName.Text = c.School.Name; }
private void PopulateProfileLabels(Thinkgate.Base.Classes.Class c) { lblSchoolName.Text = c.School.Name; lblPrimaryTeacher.Text = c.PrimaryTeacher; lblGrade.Text = c.Grade.DisplayText; lblSubject.Text = c.Subject.DisplayText; lblCourse.Text = c.Course.CourseName; lblSection.Text = c.Section; lblPeriod.Text = c.Period; lblSemester.Text = c.Semester; lblYear.Text = c.Year; lblBlock.Text = c.Block; lblRetainOnResync.Text = c.RetainOnResync ? "Yes" : "No"; }