C# Class Engage.Dnn.Survey.AnalyzeResponses

Afficher le fichier Open project: EngageSoftware/Engage-Survey

Protected Properties

Свойство Type Description
ChartsPanel global::System.Web.UI.WebControls.Panel
ResponseGridPlaceholder global::System.Web.UI.WebControls.PlaceHolder

Private Properties

Свойство Type Description
CreateGraphs void
CreateGrid void
GetAnswerLabel string
GetExportFilename string
GetQuestionLabel string
GetQuestionTextColumnName string
GetRelativeOrderColumnName string
GetUser string
Page_Load void
PivotQuestions DataTable
RemoveInvalidCharacters string
ResponseGrid_ItemCreated void
ResponseGrid_NeedDataSource void

Méthodes protégées

Méthode Description
OnInit ( EventArgs e ) : void

Raises the Control.Init event.

Private Methods

Méthode Description
CreateGraphs ( ) : void

Creates the graphs for each question.

CreateGrid ( ) : void

Creates the ResponseGrid.

Because we're creating the question columns dynamically, it's easier to just create the whole grid dynamically

GetAnswerLabel ( int relativeOrder, string answerText, bool asHtml ) : string

Gets the text label for an answer.

GetExportFilename ( ) : string

Gets the name of the file when exporting data

GetQuestionLabel ( int relativeOrder, string questionText, bool asHtml ) : string

Gets the text label for a question.

GetQuestionTextColumnName ( int questionId ) : string

Gets the name of the column for the question text.

GetRelativeOrderColumnName ( int questionId ) : string

Gets the name of the column for the question's order.

GetUser ( int userId ) : string

Gets the name of the user.

Page_Load ( object sender, EventArgs e ) : void

Handles the Control.Load event of this control.

PivotQuestions ( Response>.IQueryable responsesByHeader ) : DataTable

Pivots the questions into columns.

RemoveInvalidCharacters ( string filename ) : string

Replaces characters in the given filename which are invalid for filenames.

ResponseGrid_ItemCreated ( object sender, GridItemEventArgs e ) : void

Handles the RadGrid.ItemCreated event of the ResponseGrid control.

ResponseGrid_NeedDataSource ( object source, GridNeedDataSourceEventArgs e ) : void

Handles the RadGrid.NeedDataSource event of the ResponseGrid control.

Method Details

OnInit() protected méthode

Raises the Control.Init event.
protected OnInit ( EventArgs e ) : void
e EventArgs The instance containing the event data.
Résultat void

Property Details

ChartsPanel protected_oe property

ChartsPanel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Panel ChartsPanel
Résultat global::System.Web.UI.WebControls.Panel

ResponseGridPlaceholder protected_oe property

ResponseGridPlaceholder control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.PlaceHolder ResponseGridPlaceholder
Résultat global::System.Web.UI.WebControls.PlaceHolder