public Group() { InstanceId = IDUtils.NewGuid(); Id = IDUtils.NewGuid(); this.studyUnitRelPathNames = new List <string>(); ConceptSchemeCompareTable = new CompareTable() { CompareType = CompareTable.CompareTypes.ConceptScheme }; ConceptCompareTable = new CompareTable() { CompareType = CompareTable.CompareTypes.Concept }; VariableCompareTable = new CompareTable() { CompareType = CompareTable.CompareTypes.Variable }; PurposeId = IDUtils.NewGuid(); ComparisonId = IDUtils.NewGuid(); SharedStudyUnit = new StudyUnit(); //Variables to be shared within the group SharedStudyUnit.Abstract.Title = SHARED_STUDY_UNIT_TITLE; Organization organization = new Organization(); Member member = new Member(); member.OrganizationId = organization.Id; SharedStudyUnit.AddMember(member); SharedStudyUnit.AddOrganization(organization); SharedStudyUnit.Samplings.Add(new Sampling()); SharedStudyUnit.Samplings[0].MemberId = member.Id; SharedStudyUnit.Samplings[0].DateRange = new DateRange(DateTime.Today, DateTime.Today); }
public Response(Option type) { Id = IDUtils.NewGuid(); TypeCode = type.Code; MissingValues = new List <MissingValue>(); Layout = null; Scale = EDOConstants.DEF_SCALE; }
public Response Dup() { Response newResponseModel = Clone() as Response; //replicate new answers itself newResponseModel.Id = IDUtils.NewGuid(); return(newResponseModel); }
public DataFile() { Id = IDUtils.NewGuid(); GrossRecordStructureId = IDUtils.NewGuid(); RecordLayoutId = IDUtils.NewGuid(); PhysicalRecordSegment = "Segment_" + IDUtils.NewGuid(); PhysicalInstanceId = IDUtils.NewGuid(); DataFileIdentificationId = IDUtils.NewGuid(); GrossFileStructureId = IDUtils.NewGuid(); }
public ControlConstructScheme() { Id = IDUtils.NewGuid(); QuestionConstructs = new List <QuestionConstruct>(); QuestionGroupConstructs = new List <QuestionGroupConstruct>(); Statements = new List <Statement>(); IfThenElses = new List <IfThenElse>(); Sequence = new Sequence(); RenumberQuestionNo = true; }
public Sampling() { Id = IDUtils.NewGuid(); DateRange = new DateRange(); CollectionEventId = IDUtils.NewGuid(); ModeOfCollectionId = IDUtils.NewGuid(); CollectionSituationId = IDUtils.NewGuid(); Universes = new List <Universe>(); SamplingNumbers = new List <SamplingNumber>(); CollectorTypeCode = DefaultCollectorType; }
public Coverage() { Id = IDUtils.NewGuid(); TopicalCoverageId = IDUtils.NewGuid(); TemporalCoverageId = IDUtils.NewGuid(); SpatialCoverageId = IDUtils.NewGuid(); //it is not possible to be managed by List <string> since memo and code must be stored in a set Topics = new List <CheckOption>(); Keywords = new List <Keyword>(); DateRange = new DateRange(); Areas = new List <CheckOption>(); GeographicStructureIdSuffix = IDUtils.NewGuid(); GeographicIdSuffix = IDUtils.NewGuid(); }
private static RenameResult RenameId(IIDPropertiesProvider obj, string propertyName, List <string> ids) { RenameResult result = new RenameResult(propertyName); string id = (string)PropertyPathHelper.GetValue(obj, propertyName); if (ids.Contains(id)) { string newId = IDUtils.NewGuid(); PropertyPathHelper.SetValue(obj, propertyName, newId); result.OldId = id; result.NewId = newId; return(result); } return(result); }
public StudyUnit() { this.Id = IDUtils.NewGuid(); //1 this.Events = new List <Event>(); //*1 this.Members = new List <Member>(); //*2 this.Organizations = new List <Organization>(); //*3 this.Abstract = new Abstract(); //*4 this.Coverage = new Coverage(); //*5 this.FundingInfos = new List <FundingInfo>(); //*6 this.Universes = new List <Universe>(); //*7 this.Samplings = new List <Sampling>(); //*8 this.ConceptSchemes = new List <ConceptScheme>(); //*9 this.Questions = new List <Question>(); //*10 this.CategorySchemes = new List <CategoryScheme>(); //*11 this.CodeSchemes = new List <CodeScheme>(); //*12 this.VariableScheme = new VariableScheme(); //*13 this.Variables = new List <Variable>(); //*14 this.DataSets = new List <DataSet>(); //*15 this.DataFiles = new List <DataFile>(); //*16 this.ControlConstructSchemes = new List <ControlConstructScheme>(); //*17 this.QuestionGroups = new List <QuestionGroup>(); this.Books = new List <Book>(); this.StatisticsInfos = new List <StatisticsInfo>(); this.InstanceId = IDUtils.NewGuid(); //2 this.UniverseSchemeId = IDUtils.NewGuid(); //3 this.ConceptualComponentId = IDUtils.NewGuid(); //4 this.GeographicStructureSchemeId = IDUtils.NewGuid(); //5 this.DataCollectionId = IDUtils.NewGuid(); //6 this.QuestionSchemeId = IDUtils.NewGuid(); //7 this.LogicalProductId = IDUtils.NewGuid(); //8 this.DataRelationshipId = IDUtils.NewGuid(); //9 this.PhysicalDataProductId = IDUtils.NewGuid(); //10 this.PhysicalStructureSchemeId = IDUtils.NewGuid(); //11 this.RecordLayoutSchemeId = IDUtils.NewGuid(); //12 this.ArchiveId = IDUtils.NewGuid(); //13 this.OrganizationSchemeId = IDUtils.NewGuid(); //14 this.MethodologyId = IDUtils.NewGuid(); //15 this.ProcessingEventId = IDUtils.NewGuid(); //16 }
public Question() { Id = IDUtils.NewGuid(); Response = new Response(); }
public VariableScheme() { Id = IDUtils.NewGuid(); }
public DataSet() { Id = IDUtils.NewGuid(); VariableGuids = new List <string>(); }
public Code() { Id = IDUtils.NewGuid(); }
public Universe() { IsMain = false; Id = IDUtils.NewGuid(); SamplingProcedureId = IDUtils.NewGuid(); }
public Event() { Id = IDUtils.NewGuid(); DateRange = new DateRange(); }
public GroupId() : this(IDUtils.NewGuid(), IDUtils.NewGuid()) { }
public ConceptScheme() { Id = IDUtils.NewGuid(); Concepts = new List <Concept>(); }
public Variable() { this.Id = IDUtils.NewGuid(); this.Response = new Response(); }
public Abstract() { Id = IDUtils.NewGuid(); PurposeId = IDUtils.NewGuid(); SummaryId = IDUtils.NewGuid(); }
public CodeScheme() { Id = IDUtils.NewGuid(); Codes = new List <Code>(); }
public Concept() { Id = IDUtils.NewGuid(); }
public Statement() { Id = IDUtils.NewGuid(); }
public QuestionConstruct() { Id = IDUtils.NewGuid(); }
public QuestionGroup() { Id = IDUtils.NewGuid(); QuestionIds = new List <string>(); }
public CategoryScheme() { Id = IDUtils.NewGuid(); Categories = new List <Category>(); }
public Organization(string organizationName) { Id = IDUtils.NewGuid(); OrganizationName = organizationName; }
public IfThenElse() { Id = IDUtils.NewGuid(); IfCondition = new IfCondition(); ElseIfs = new List <ElseIf>(); }
public FundingInfo() { Id = IDUtils.NewGuid(); DateRange = new DateRange(); Organization = new Organization(); }
public Sequence() { Id = IDUtils.NewGuid(); ControlConstructIds = new List <string>(); }
public Category() { Id = IDUtils.NewGuid(); }