private void LoadSettings() { surveyGuid = WebUtils.ParseGuidFromQueryString("SurveyGuid", Guid.Empty); surveyPageGuid = WebUtils.ParseGuidFromQueryString("SurveyPageGuid", Guid.Empty); pageId = WebUtils.ParseInt32FromQueryString("pageid", -1); moduleId = WebUtils.ParseInt32FromQueryString("mid", -1); if (CurrentPage.ContainsModule(moduleId)) { currentModule = new Cynthia.Business.Module(moduleId); } if (surveyGuid != Guid.Empty) { survey = new Survey(surveyGuid); if (survey.SiteGuid != siteSettings.SiteGuid) { surveyGuid = Guid.Empty; survey = null; } else { if (surveyPageGuid != Guid.Empty) { surveyPage = new SurveyFeature.Business.Page(surveyPageGuid); if (surveyPage.SurveyGuid != survey.SurveyGuid) { surveyPageGuid = Guid.Empty; surveyPage = null; } } } } }
private void LoadSettings() { pageId = WebUtils.ParseInt32FromQueryString("pageid", -1); moduleId = WebUtils.ParseInt32FromQueryString("mid", true, -1); if (CurrentPage.ContainsModule(moduleId)) { currentModule = new Cynthia.Business.Module(moduleId); surveyGuid = Survey.GetModulesCurrentSurvey(ModuleId); } }
private void LoadSettings() { timeOffset = SiteUtils.GetUserTimeOffset(); pollGuid = WebUtils.ParseGuidFromQueryString("PollGuid", Guid.Empty); pageId = WebUtils.ParseInt32FromQueryString("pageid", -1); moduleId = WebUtils.ParseInt32FromQueryString("mid", -1); if (CurrentPage.ContainsModule(moduleId)) { currentModule = new Cynthia.Business.Module(moduleId); //currentPoll = new Poll(moduleId); } }
private void LoadSettings() { pageId = WebUtils.ParseInt32FromQueryString("PageId", -1); questionGuid = WebUtils.ParseGuidFromQueryString("QuestionGuid", Guid.Empty); moduleId = WebUtils.ParseInt32FromQueryString("mid", -1); if (CurrentPage.ContainsModule(moduleId)) { currentModule = new Cynthia.Business.Module(moduleId); } question = new Question(questionGuid); if (questionGuid != Guid.Empty) { surveyPageGuid = question.SurveyPageGuid; } else { //we have no question guid so must be a new question string questionTypeParam = Request.QueryString["NewQuestionType"]; questionType = EnumHelper <QuestionType> .Parse(questionTypeParam); surveyPageGuid = WebUtils.ParseGuidFromQueryString("SurveyPageGuid", Guid.Empty); question.SurveyPageGuid = surveyPageGuid; } if (surveyPageGuid != Guid.Empty) { surveyPage = new SurveyFeature.Business.Page(surveyPageGuid); survey = new Survey(surveyPage.SurveyGuid); surveyGuid = survey.SurveyGuid; if (survey.SiteGuid != siteSettings.SiteGuid) { surveyGuid = Guid.Empty; survey = null; surveyPageGuid = Guid.Empty; surveyPage = null; questionGuid = Guid.Empty; question = null; } } }