public async Task <string> GetVLClientInfo(string apikey, double version, string returntype, [FromQuery] string province, [FromQuery] string district, [FromQuery] string facility, [FromQuery] DateTime stdate, [FromQuery] DateTime edate)
 {
     try
     {
         if (version.Equals(ApiVersion))
         {
             if (!string.IsNullOrEmpty(returntype) && ValidReturnTypes != null && ValidReturnTypes.Contains(returntype.ToLower()))
             {
                 if (!string.IsNullOrEmpty(apikey) && apikey.Length == 32 && ApiKey == apikey)
                 {
                     return(await VLClient.All(ApiConfiguration, ConnectionString, province, district, facility, stdate, edate).ToReturnType(returntype));
                 }
                 else
                 {
                     return(await Core.ToReturnType(new Response("Failed", "Invalid apikey"), returntype));
                 }
             }
             else
             {
                 return(await Core.OutputText("Supported return types are json and xml only."));
             }
         }
         else
         {
             return(await Core.OutputText("Version not yet implemented"));
         }
     }
     catch (Exception ex) { return(await Core.ToReturnType(new Response("Failed", ex.Message), "json")); }
 }
        protected void saveBtn_Click(object sender, EventArgs e)
        {
            try
            {
                var client = new VLClient();
                client.Code       = this.Code.Text;
                client.Name       = this.Name.Text;
                client.Profession = this.Profession.Text;
                client.Country    = Int32.Parse(this.Country.SelectedValue);
                client.TimeZoneId = this.TimeZone.SelectedValue;
                client.Prefecture = this.Prefecture.Text;
                client.Town       = this.Town.Text;
                client.Address    = this.Address.Text;
                client.Zip        = this.Zip.Text;
                client.Telephone1 = this.Telephone1.Text;
                client.Telephone2 = this.Telephone2.Text;
                client.WebSite    = this.WebSite.Text;
                client.Comment    = this.Comment.Text;
                client.Profile    = Int32.Parse(this.cmProfile.SelectedValue);

                client = SystemManager.CreateClient(client);

                this.Response.Redirect(_UrlSuffix("list.aspx"), false);
                this.Context.ApplicationInstance.CompleteRequest();
            }
            catch (ThreadAbortException)
            {
                //
            }
            catch (Exception ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
 void SetValues(VLClient client)
 {
     this.Code.Text              = client.Code;
     this.Name.Text              = client.Name;
     this.Profession.Text        = client.Profession;
     this.Country.SelectedValue  = client.Country.ToString(CultureInfo.InvariantCulture);
     this.TimeZone.SelectedValue = client.TimeZoneId;
     this.Prefecture.Text        = client.Prefecture;
     this.Town.Text              = client.Town;
     this.Address.Text           = client.Address;
     this.Zip.Text                = client.Zip;
     this.Telephone1.Text         = client.Telephone1;
     this.Telephone2.Text         = client.Telephone2;
     this.WebSite.Text            = client.WebSite;
     this.Comment.Text            = client.Comment;
     this.cmProfile.SelectedValue = client.Profile.ToString(CultureInfo.InvariantCulture);
 }
 void GetValues(VLClient client)
 {
     client.Code       = this.Code.Text;
     client.Name       = this.Name.Text;
     client.Profession = this.Profession.Text;
     client.Country    = Int32.Parse(this.Country.SelectedValue);
     client.TimeZoneId = this.TimeZone.SelectedValue;
     client.Prefecture = this.Prefecture.Text;
     client.Town       = this.Town.Text;
     client.Address    = this.Address.Text;
     client.Zip        = this.Zip.Text;
     client.Telephone1 = this.Telephone1.Text;
     client.Telephone2 = this.Telephone2.Text;
     client.WebSite    = this.WebSite.Text;
     client.Comment    = this.Comment.Text;
     client.Profile    = Int32.Parse(this.cmProfile.SelectedValue);
 }
示例#5
0
 protected override void OnLoad(EventArgs e)
 {
     try
     {
         if (!this.IsPostBack)
         {
             //Πρέπει στο url να υπάρχει ένα ClientId
             string _value = this.Request.Params["ClientId"];
             if (!string.IsNullOrEmpty(_value))
             {
                 var clientId = Int32.Parse(_value);
                 this.SelectedClient = SystemManager.GetClientById(clientId);
             }
             if (this.SelectedClient == null)
             {
                 throw new VLException("ClientId is invalid!");
             }
         }
     }
     catch (Exception)
     {
         this.Response.Redirect("../list.aspx");
     }
 }
示例#6
0
        protected VLSurvey CreateSurvey1(VLSurveyManager surveyManager, VLClient client, string surveyTitle = "Employee survey")
        {
            //Δημιουργούμε ένα Survey (και αυτόματα δημιουργείται ένα default view για αυτή):
            var survey = surveyManager.CreateSurvey(client, surveyTitle, textsLanguage: BuiltinLanguages.English);

            survey.HeaderHtml     = "Employee survey";
            survey.WelcomeHtml    = "Dear staff members,<br><br>please fill out the questionnaire as soon as possible and try to answer all questions including personal data. By all means your data will be processed and evaluated anonymously.<br><br>When the survey is completed you will get informed about the overall result in detail. Your superior will inform you about the results of the department.<br><br>Your participation is very important! Only a high participation rate leads to significant results.<br><br>Thank you for your cooperation and commitment!<br>";
            survey.GoodbyeHtml    = "we thank you!!!";
            survey.StartButton    = "Start Survey";
            survey.PreviousButton = "Back";
            survey.NextButton     = "Next";
            survey.DoneButton     = "Submit";
            survey = surveyManager.UpdateSurvey(survey);

            var page1 = surveyManager.GetFirstSurveyPage(survey);

            page1.ShowTitle = "Task and working environment";
            page1           = surveyManager.UpdateSurveyPage(page1);
            var page2 = surveyManager.CreateSurveyPage(survey, "Further education and training");
            var page3 = surveyManager.CreateSurveyPage(survey, "Cooperation with the superior");
            var page4 = surveyManager.CreateSurveyPage(survey, string.Empty);
            var page5 = surveyManager.CreateSurveyPage(survey, "General attitude");
            var page6 = surveyManager.CreateSurveyPage(survey, "The company");
            var page7 = surveyManager.CreateSurveyPage(survey, "Statistical data");
            var page8 = surveyManager.CreateSurveyPage(survey, "General statements:");


            survey                = surveyManager.AddSurveyLanguage(survey.SurveyId, BuiltinLanguages.English, BuiltinLanguages.Greek);
            survey.HeaderHtml     = "Γκαλοπ Εργαζομένων";
            survey.WelcomeHtml    = "Αγαπητοί υπάλληλοι....";
            survey.GoodbyeHtml    = "σας ευχαριστούμε";
            survey.StartButton    = "Ξεκινήστε";
            survey.PreviousButton = "Προηγούμενο";
            survey.NextButton     = "Επόμενο";
            survey.DoneButton     = "Τερμα!";
            survey                = surveyManager.UpdateSurvey(survey);

            page1           = surveyManager.GetSurveyPageById(survey.SurveyId, page1.PageId, BuiltinLanguages.Greek.LanguageId);
            page1.ShowTitle = "Καθηκοντα και εργασιακό περιβάλλον";
            page1           = surveyManager.UpdateSurveyPage(page1);
            page2           = surveyManager.GetSurveyPageById(survey.SurveyId, page2.PageId, BuiltinLanguages.Greek.LanguageId);
            page2.ShowTitle = "Επιπλέον μόρφωση και εκπαίδευση";
            page2           = surveyManager.UpdateSurveyPage(page2);
            page3           = surveyManager.GetSurveyPageById(survey.SurveyId, page3.PageId, BuiltinLanguages.Greek.LanguageId);
            page3.ShowTitle = "Συνεργασία με τον ανώτερο";
            page3           = surveyManager.UpdateSurveyPage(page3);
            page4           = surveyManager.GetSurveyPageById(survey.SurveyId, page4.PageId, BuiltinLanguages.Greek.LanguageId);
            page4.ShowTitle = "";
            page4           = surveyManager.UpdateSurveyPage(page4);
            page5           = surveyManager.GetSurveyPageById(survey.SurveyId, page5.PageId, BuiltinLanguages.Greek.LanguageId);
            page5.ShowTitle = "Γενικό πνεύμα";
            page5           = surveyManager.UpdateSurveyPage(page5);
            page6           = surveyManager.GetSurveyPageById(survey.SurveyId, page6.PageId, BuiltinLanguages.Greek.LanguageId);
            page6.ShowTitle = "Η εταιρεία";
            page6           = surveyManager.UpdateSurveyPage(page6);
            page7           = surveyManager.GetSurveyPageById(survey.SurveyId, page7.PageId, BuiltinLanguages.Greek.LanguageId);
            page7.ShowTitle = "Στατιστικά δεδομένα";
            page7           = surveyManager.UpdateSurveyPage(page7);
            page8           = surveyManager.GetSurveyPageById(survey.SurveyId, page8.PageId, BuiltinLanguages.Greek.LanguageId);
            page8.ShowTitle = "Γενικές δηλώσεις";
            page8           = surveyManager.UpdateSurveyPage(page8);



            //1. QUESTION: Please fill out the following chart
            var question1 = surveyManager.CreateQuestion(survey.SurveyId, page1.PageId, QuestionType.MatrixOnePerRow, "Please fill out the following chart", BuiltinLanguages.English);

            surveyManager.CreateQuestionColumn(survey.SurveyId, question1.QuestionId, "absolutely not true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question1.QuestionId, "not true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question1.QuestionId, "partly true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question1.QuestionId, "true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question1.QuestionId, "absolutely true", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question1.QuestionId, "The time is sufficient for performing my tasks");
            surveyManager.CreateQuestionOption(survey.SurveyId, question1.QuestionId, "We help each other in my working environment");
            surveyManager.CreateQuestionOption(survey.SurveyId, question1.QuestionId, "My job allows me to use my knowledge and skills");
            surveyManager.CreateQuestionOption(survey.SurveyId, question1.QuestionId, "The working atmosphere in my working environment is good");
            surveyManager.CreateQuestionOption(survey.SurveyId, question1.QuestionId, "I am satisfied with the external conditions at my workstation");

            //2. QUESTION: What needs to be improved at your workstation?  (Several answers are possible)
            var question2 = surveyManager.CreateQuestion(survey.SurveyId, page1.PageId, QuestionType.ManyFromMany, "What needs to be improved at your workstation", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "nothing");
            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "ventilation");
            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "more daylight");
            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "better illumination");
            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "cafeteria");
            surveyManager.CreateQuestionOption(survey.SurveyId, question2.QuestionId, "equipment workstation");

            //3. QUESTION: Please fill out the following chart
            var question3 = surveyManager.CreateQuestion(survey.SurveyId, page2.PageId, QuestionType.MatrixOnePerRow, "Please fill out the following chart?", BuiltinLanguages.English);

            surveyManager.CreateQuestionColumn(survey.SurveyId, question3.QuestionId, "absolutely not true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question3.QuestionId, "not true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question3.QuestionId, "partly true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question3.QuestionId, "true", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question3.QuestionId, "absolutely true", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question3.QuestionId, "The company offers me enough possibilties for further development");
            surveyManager.CreateQuestionOption(survey.SurveyId, question3.QuestionId, "I am satisfied with the offered options for further education and training");

            //4. QUESTION: Please fill out the following chart
            var question4 = surveyManager.CreateQuestion(survey.SurveyId, page3.PageId, QuestionType.MatrixOnePerRow, "Please fill out the following chart?", BuiltinLanguages.English);

            surveyManager.CreateQuestionColumn(survey.SurveyId, question4.QuestionId, "i totally disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question4.QuestionId, "I disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question4.QuestionId, "I partly agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question4.QuestionId, "I agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question4.QuestionId, "I absolutely agree", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question4.QuestionId, "My superior promotes my according to my skills");
            surveyManager.CreateQuestionOption(survey.SurveyId, question4.QuestionId, "My superior gives me frank and honest feedback");
            surveyManager.CreateQuestionOption(survey.SurveyId, question4.QuestionId, "My superior assesses my performance in a fair way");
            surveyManager.CreateQuestionOption(survey.SurveyId, question4.QuestionId, "My superior encourages me sufficiantly");

            //5. QUESTION: Please fill out the following chart
            var question5 = surveyManager.CreateQuestion(survey.SurveyId, page4.PageId, QuestionType.MatrixOnePerRow, "Please fill out the following chart?", BuiltinLanguages.English);

            surveyManager.CreateQuestionColumn(survey.SurveyId, question5.QuestionId, "i totally disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question5.QuestionId, "I disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question5.QuestionId, "I partly agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question5.QuestionId, "I agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question5.QuestionId, "I absolutely agree", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question5.QuestionId, "I have enough information do do my job well");
            surveyManager.CreateQuestionOption(survey.SurveyId, question5.QuestionId, "We exchange information and experiences sufficiantly in my working environment");
            surveyManager.CreateQuestionOption(survey.SurveyId, question5.QuestionId, "The management informs the staff about current developments and decisions adequately");
            surveyManager.CreateQuestionOption(survey.SurveyId, question5.QuestionId, "The management informs timely about current developments and decisions");

            //6. QUESTION:   All in all how satisfied with the company are you at present?
            var question6 = surveyManager.CreateQuestion(survey.SurveyId, page5.PageId, QuestionType.OneFromMany, "All in all how satisfied with the company are you at present?", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question6.QuestionId, "very dissatisfied");
            surveyManager.CreateQuestionOption(survey.SurveyId, question6.QuestionId, "dissatisfied");
            surveyManager.CreateQuestionOption(survey.SurveyId, question6.QuestionId, "partly satisfied");
            surveyManager.CreateQuestionOption(survey.SurveyId, question6.QuestionId, "satisfied");
            surveyManager.CreateQuestionOption(survey.SurveyId, question6.QuestionId, "very satisfied");

            //7. QUESTION: Please fill out the following chart
            var question7 = surveyManager.CreateQuestion(survey.SurveyId, page6.PageId, QuestionType.MatrixOnePerRow, "Please fill out the following chart?", BuiltinLanguages.English);

            surveyManager.CreateQuestionColumn(survey.SurveyId, question7.QuestionId, "i totally disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question7.QuestionId, "I disagree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question7.QuestionId, "I partly agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question7.QuestionId, "I agree", BuiltinLanguages.English);
            surveyManager.CreateQuestionColumn(survey.SurveyId, question7.QuestionId, "I absolutely agree", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question7.QuestionId, "The cooperation with the colleagues in the other departments is good");
            surveyManager.CreateQuestionOption(survey.SurveyId, question7.QuestionId, "Our company will be successful also in the future");
            surveyManager.CreateQuestionOption(survey.SurveyId, question7.QuestionId, "I feel solidarity with the company also beyond my job related commitment");
            surveyManager.CreateQuestionOption(survey.SurveyId, question7.QuestionId, "I can recommend my employer");

            //8. QUESTION: Which department do you work in?
            var question8 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.OneFromMany, "Which department do you work in?", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question8.QuestionId, "A");
            surveyManager.CreateQuestionOption(survey.SurveyId, question8.QuestionId, "B");
            surveyManager.CreateQuestionOption(survey.SurveyId, question8.QuestionId, "C");
            surveyManager.CreateQuestionOption(survey.SurveyId, question8.QuestionId, "D");

            //9. QUESTION: How long have you been working in the company?
            var question9 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.OneFromMany, "How long have you been working in the company?", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question9.QuestionId, "< 1 year");
            surveyManager.CreateQuestionOption(survey.SurveyId, question9.QuestionId, "1-3 years");
            surveyManager.CreateQuestionOption(survey.SurveyId, question9.QuestionId, "3-10 years");
            surveyManager.CreateQuestionOption(survey.SurveyId, question9.QuestionId, "> 11 years");


            //10. QUESTION: Do you hold staff responsibility?
            var question10 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.OneFromMany, "Do you hold staff responsibility?", BuiltinLanguages.English);

            surveyManager.CreateQuestionOption(survey.SurveyId, question10.QuestionId, "Yes");
            surveyManager.CreateQuestionOption(survey.SurveyId, question10.QuestionId, "No");

            //11. QUESTION: Statistical data
            var question11 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.Composite, "Statistical data", BuiltinLanguages.English);

            var question12 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.Integer, "Age", BuiltinLanguages.English);

            question12.MasterQuestion = question11.QuestionId;
            question12 = surveyManager.UpdateQuestion(question12);

            var question13 = surveyManager.CreateQuestion(survey.SurveyId, page7.PageId, QuestionType.DropDown, "Gender", BuiltinLanguages.English);

            question13.MasterQuestion = question11.QuestionId;
            question13 = surveyManager.UpdateQuestion(question13);

            //12. QUESTION: General statements:
            var question14 = surveyManager.CreateQuestion(survey.SurveyId, page8.PageId, QuestionType.MultipleLine, "General statements:", BuiltinLanguages.English);


            return(survey);
        }
示例#7
0
        protected VLSurvey CreateSurvey2(VLSurveyManager surveyManager, VLClient client, string surveyTitle = "Questionnaire #1", string surveyShowTitle = "Risk assessment")
        {
            //Δημιουργούμε ένα Survey (και αυτόματα δημιουργείται ένα default view για αυτή):
            var survey = surveyManager.CreateSurvey(client, surveyTitle, surveyShowTitle);

            //Αυτή είναι η σελίδα που δημιουργήθηκε αυτόματα:
            var page1 = surveyManager.GetFirstSurveyPage(survey);
            var page2 = surveyManager.CreateSurveyPage(survey, null, "This is the second page");
            var page3 = surveyManager.CreateSurveyPage(survey, null, "This is the third page");


            //Δημιουργούμε ερωτήσεις στην page1:
            var question1 = surveyManager.CreateQuestion(page1, QuestionType.SingleLine, "What is your name?");
            var question2 = surveyManager.CreateQuestion(page1, QuestionType.Integer, "What is your age?");
            var question3 = surveyManager.CreateQuestion(page1, QuestionType.Decimal, "What is your weight?");
            var question4 = surveyManager.CreateQuestion(page1, QuestionType.Date, "What is your birthday?");

            //Δημιουργούμε ερωτήσεις στην page2:
            var question5 = surveyManager.CreateQuestion(page2, QuestionType.OneFromMany, "From where are you?");
            {
                var option5_01 = surveyManager.CreateQuestionOption(question5, "Greece");
                var option5_02 = surveyManager.CreateQuestionOption(question5, "UK");
                var option5_03 = surveyManager.CreateQuestionOption(question5, "USA");
                var option5_04 = surveyManager.CreateQuestionOption(question5, "Bulgaria");
            }
            var question6 = surveyManager.CreateQuestion(page2, QuestionType.OneFromMany, "Who is your friend?");
            {
                var option6_01 = surveyManager.CreateQuestionOption(question6, "John");
                var option6_02 = surveyManager.CreateQuestionOption(question6, "Bruto");
                var option6_03 = surveyManager.CreateQuestionOption(question6, "Makis");
                var option6_04 = surveyManager.CreateQuestionOption(question6, "Anna");
                var option6_05 = surveyManager.CreateQuestionOption(question6, "George");
                var option6_06 = surveyManager.CreateQuestionOption(question6, "Tasos");
            }
            var question7 = surveyManager.CreateQuestion(page2, QuestionType.ManyFromMany, "What Cars do you like?");
            {
                var option7_01 = surveyManager.CreateQuestionOption(question7, "Subaru");
                var option7_02 = surveyManager.CreateQuestionOption(question7, "Jaguar");
                var option7_03 = surveyManager.CreateQuestionOption(question7, "Chevrolet");
                var option7_04 = surveyManager.CreateQuestionOption(question7, "Lamborghini");
                var option7_05 = surveyManager.CreateQuestionOption(question7, "Ford");
                var option7_06 = surveyManager.CreateQuestionOption(question7, "Nissan");
                var option7_07 = surveyManager.CreateQuestionOption(question7, "Mazda");
                var option7_08 = surveyManager.CreateQuestionOption(question7, "Citroen");
            }

            //Δημιουργούμε ερωτήσεις στην page3:
            var question8 = surveyManager.CreateQuestion(page3, QuestionType.MatrixOnePerRow, "Βαθμολογήστε την απόδοσή σας σε κάθε μάθημα:");
            {
                var option8_01 = surveyManager.CreateQuestionOption(question8, "Mathematica");
                var option8_02 = surveyManager.CreateQuestionOption(question8, "Chemistry");
                var option8_03 = surveyManager.CreateQuestionOption(question8, "Biology");
                var option8_04 = surveyManager.CreateQuestionOption(question8, "Physics");
                var column8_01 = surveyManager.CreateQuestionColumn(question8, "1");
                var column8_02 = surveyManager.CreateQuestionColumn(question8, "2");
                var column8_03 = surveyManager.CreateQuestionColumn(question8, "3");
                var column8_04 = surveyManager.CreateQuestionColumn(question8, "4");
                var column8_05 = surveyManager.CreateQuestionColumn(question8, "5");
                var column8_06 = surveyManager.CreateQuestionColumn(question8, "6");
                var column8_07 = surveyManager.CreateQuestionColumn(question8, "7");
                var column8_08 = surveyManager.CreateQuestionColumn(question8, "8");
                var column8_09 = surveyManager.CreateQuestionColumn(question8, "9");
                var column8_10 = surveyManager.CreateQuestionColumn(question8, "10");
            }

            var question9 = surveyManager.CreateQuestion(page3, QuestionType.OneFromMany, "Are you satisfied?");
            {
                var option9_01 = surveyManager.CreateQuestionOption(question9, "Yes");
                var option9_02 = surveyManager.CreateQuestionOption(question9, "No");
            }

            var question10 = surveyManager.CreateQuestion(page3, QuestionType.MatrixManyPerRow, "Kino");

            {
                var option10_01 = surveyManager.CreateQuestionOption(question10, "Row1");
                var option10_02 = surveyManager.CreateQuestionOption(question10, "Row2");
                var option10_03 = surveyManager.CreateQuestionOption(question10, "Row3");
                var option10_04 = surveyManager.CreateQuestionOption(question10, "Row4");
                var option10_05 = surveyManager.CreateQuestionOption(question10, "Row5");
                var option10_06 = surveyManager.CreateQuestionOption(question10, "Row6");
                var column10_01 = surveyManager.CreateQuestionColumn(question10, "col1");
                var column10_02 = surveyManager.CreateQuestionColumn(question10, "col2");
                var column10_03 = surveyManager.CreateQuestionColumn(question10, "col3");
                var column10_04 = surveyManager.CreateQuestionColumn(question10, "col4");
                var column10_05 = surveyManager.CreateQuestionColumn(question10, "col5");
            }

            return(survey);
        }