private void LoadSurveySimpleQuestionOutput(hitbl_Survey_Answer_Row_SAR surveyAnswerRow, bool editMode, LinkButton buttonNew) { string idPostFix = surveyAnswerRow.SAR_ID.ToString().Replace("_", "_"); Control ucSurveySimpleQuestion = LoadControl("/UserControls/Wizards/SurveySimpleAnswer.ascx"); ISurveyWizardPage iSurveySimpleQuestion = ucSurveySimpleQuestion as ISurveyWizardPage; iSurveySimpleQuestion.survey = survey; iSurveySimpleQuestion.Settings = new Dictionary <string, object> { { "SurveyAnswerRow", surveyAnswerRow }, { "surveyDataClassDataContext", surveyDataClassDataContext }, { "SurveyAnswersType", currentQuestion.QuestionType }, { "SurveyQuestionMultiPage", radMP } }; if (editMode) { iSurveySimpleQuestion.Settings.Add("EditMode", editMode); if (buttonNew != null) { iSurveySimpleQuestion.Settings.Add("ButtonNew", buttonNew); } } ucSurveySimpleQuestion.ID = string.Format("GDP_{0}", idPostFix); phAnsList.Controls.Add(ucSurveySimpleQuestion); }
private void LoadTestResultsControl(hitbl_Survey_TestResult_STR testResultObject) { Control testResultControl = LoadControl("/UserControls/Wizards/SurveyTestResults.ascx"); ISurveyWizardPage iTestResultControl = testResultControl as ISurveyWizardPage; iTestResultControl.Settings = new Dictionary <string, object> { { "TestResult", testResultObject }, { "surveyDataClassDataContext", surveyDataClassDataContext }, }; iTestResultControl.survey = survey; phTextResults.Controls.Add(testResultControl); }
private void InsertControlInPageView(int pageIndex, hitbl_Survey_Page_SPG surveyPage) { string idPostFix = surveyPage.SPG_ID.ToString().Replace("_", "_"); radMultiPage.PageViews[pageIndex].Controls.Clear(); Control ucSurveyPageInfo = LoadControl("/UserControls/Wizards/SurveyPageInfo.ascx"); ISurveyWizardPage iSurveyPageInfo = ucSurveyPageInfo as ISurveyWizardPage; iSurveyPageInfo.survey = survey; iSurveyPageInfo.Settings = new Dictionary <string, object> { { "SurveyPage", surveyPage }, { "surveyDataClassDataContext", surveyDataClassDataContext }, { "currentPageTab", radTab.Tabs[pageIndex] } }; ucSurveyPageInfo.ID = string.Format("GDP_{0}", idPostFix); radMultiPage.PageViews[pageIndex].Controls.Add(ucSurveyPageInfo); }
private void LoadQuestionOutput(hitbl_Survey_Question_SQU surveyQuestion, bool editMode, LinkButton buttonNew) { string idPostFix = surveyQuestion.SQU_ID.ToString().Replace("_", "_"); Control ucSurveyQuestion = LoadControl("/UserControls/Wizards/SurveyQuestion.ascx"); ISurveyWizardPage iSurveyQuestion = ucSurveyQuestion as ISurveyWizardPage; iSurveyQuestion.survey = survey; iSurveyQuestion.Settings = new Dictionary <string, object> { { "SurveyQuestion", surveyQuestion }, { "surveyDataClassDataContext", surveyDataClassDataContext } }; if (editMode) { iSurveyQuestion.Settings.Add("EditMode", editMode); iSurveyQuestion.Settings.Add("ButtonNew", buttonNew); } ucSurveyQuestion.ID = string.Format("GDP_{0}", idPostFix); radMP.PageViews[1].Controls.Add(ucSurveyQuestion); }