Click here to Skip to main content
15,867,330 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create PDF from iTextSharp in Unity3d for iOS Pin
Richard MacCutchan28-Sep-16 2:36
mveRichard MacCutchan28-Sep-16 2:36 
QuestionDateTime ISO 8601 Format Pin
tadhg8827-Sep-16 23:52
tadhg8827-Sep-16 23:52 
AnswerRe: DateTime ISO 8601 Format Pin
Daniel Pfeffer28-Sep-16 0:00
professionalDaniel Pfeffer28-Sep-16 0:00 
GeneralRe: DateTime ISO 8601 Format Pin
OriginalGriff28-Sep-16 0:25
mveOriginalGriff28-Sep-16 0:25 
GeneralRe: DateTime ISO 8601 Format Pin
Ravi Bhavnani28-Sep-16 3:45
professionalRavi Bhavnani28-Sep-16 3:45 
GeneralRe: DateTime ISO 8601 Format Pin
tadhg8828-Sep-16 23:30
tadhg8828-Sep-16 23:30 
GeneralRe: DateTime ISO 8601 Format Pin
Daniel Pfeffer29-Sep-16 0:54
professionalDaniel Pfeffer29-Sep-16 0:54 
QuestionDatamodel for Survey Form Pin
Member 1204569227-Sep-16 22:57
Member 1204569227-Sep-16 22:57 
Im working on an Online Survey Form and a Question Builder.

You create different of question groups via the Question Builder by dragging(drag N drop) In Yes/No-questions, OptionLists and Text-input-fields. Here Is how the Question-builder looks like:(picture):

http://i.stack.imgur.com/U1RY2.png[^]

After you have created this groups with Questions, you can populate the Survey form with this Question groups. After you have created the Survey Form and added the groups of questions, the form should be assigned to all the users In the system.

I want your input on my Data-model how this should work. Below you can see my models. The thing I am a little worried about Is how the Answer-model should work.

C#
QuestionContainer
---------------
public int ID { get; set; }
public string QuestionerContainerName { get; set; }
public virtual List<Question> Questions { get; set; }

Question
--------------
public int ID { get; set; }
public string QuestionHeader { get; set; }
public string QuestionHelpText { get; set; }
public string QuestionText { get; set; }
public virtual List<QuestionOption> QuestionOptions { get; set; }

QuestionOption
---------------
public string OptionText { get; set; }
public int RiskScore { get; set; }
public Question NestedQuestion {get; set;}


The QuestionOption Is the different of answer options/alternatives a question has.

Here comes the models for the Form Suvey

C#
FormModel
-----------------
public int ID { get; set; }
public string Name { get; set; }
public string IntroTitle { get; set; }
public string IntroText { get; set; }
public string SupportName { get; set; }
public string SupportPhone { get; set; }

public virtual FormSection FormSections { get; set; }

FormSection
----------------------
public LicenseHolderModel LicenseHolder { get; set; }
public List<GasStationModel> GasStations { get; set; }
public List<Question> FormQuestions1 { get; set; }
public List<Question> FormQuestions2 { get; set; }

SurveyAnswers(Is this Ok??)
-----------------------
public int ID {get; set}
public int SurveyFormId {get; set;}
public int QuestionOptionId {get; set;}
public string Answer {get; set;}


Can you guys give me som Input of this? Have I missed something? As I said, Im not sure If I have got the Answer-model right. I want to store the answer on each question that the user has enterd In the form.

modified 28-Sep-16 5:10am.

AnswerRe: Datamodel for Survey Form Pin
Gerry Schmitz28-Sep-16 8:09
mveGerry Schmitz28-Sep-16 8:09 
GeneralRe: Datamodel for Survey Form Pin
Member 1204569228-Sep-16 21:15
Member 1204569228-Sep-16 21:15 
QuestionColumn sum of multiple columns of dynamic gridview using Javascript Pin
SREENATH GANGA27-Sep-16 21:57
SREENATH GANGA27-Sep-16 21:57 
AnswerRe: Column sum of multiple columns of dynamic gridview using Javascript Pin
Pete O'Hanlon27-Sep-16 23:20
subeditorPete O'Hanlon27-Sep-16 23:20 
QuestionDelegates with Events Pin
Member 1116162526-Sep-16 18:01
Member 1116162526-Sep-16 18:01 
AnswerRe: Delegates with Events Pin
Pete O'Hanlon26-Sep-16 19:36
subeditorPete O'Hanlon26-Sep-16 19:36 
GeneralRe: Delegates with Events Pin
Rahul VB27-Sep-16 23:04
professionalRahul VB27-Sep-16 23:04 
QuestionError Making Method Async Pin
Kevin Marois24-Sep-16 12:13
professionalKevin Marois24-Sep-16 12:13 
AnswerRe: Error Making Method Async Pin
George Swan24-Sep-16 12:43
mveGeorge Swan24-Sep-16 12:43 
AnswerRe: Error Making Method Async Pin
Pete O'Hanlon24-Sep-16 21:31
subeditorPete O'Hanlon24-Sep-16 21:31 
SuggestionRe: Error Making Method Async Pin
Richard Deeming26-Sep-16 1:52
mveRichard Deeming26-Sep-16 1:52 
QuestionCancelRequest not work! Pin
Programmer 124-Sep-16 7:13
Programmer 124-Sep-16 7:13 
AnswerRe: CancelRequest not work! Pin
Eddy Vluggen24-Sep-16 11:48
professionalEddy Vluggen24-Sep-16 11:48 
GeneralRe: CancelRequest not work! Pin
Programmer 124-Sep-16 19:31
Programmer 124-Sep-16 19:31 
GeneralRe: CancelRequest not work! Pin
Eddy Vluggen26-Sep-16 4:53
professionalEddy Vluggen26-Sep-16 4:53 
QuestionStrange problem in Exception handling Pin
Programmer 123-Sep-16 21:44
Programmer 123-Sep-16 21:44 
AnswerRe: Strange problem in Exception handling Pin
OriginalGriff23-Sep-16 22:36
mveOriginalGriff23-Sep-16 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.