示例#1
0
        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);
        }
示例#2
0
 public Response(Option type)
 {
     Id            = IDUtils.NewGuid();
     TypeCode      = type.Code;
     MissingValues = new List <MissingValue>();
     Layout        = null;
     Scale         = EDOConstants.DEF_SCALE;
 }
示例#3
0
        public Response Dup()
        {
            Response newResponseModel = Clone() as Response;

            //replicate new answers itself
            newResponseModel.Id = IDUtils.NewGuid();
            return(newResponseModel);
        }
示例#4
0
 public DataFile()
 {
     Id = IDUtils.NewGuid();
     GrossRecordStructureId   = IDUtils.NewGuid();
     RecordLayoutId           = IDUtils.NewGuid();
     PhysicalRecordSegment    = "Segment_" + IDUtils.NewGuid();
     PhysicalInstanceId       = IDUtils.NewGuid();
     DataFileIdentificationId = IDUtils.NewGuid();
     GrossFileStructureId     = IDUtils.NewGuid();
 }
示例#5
0
 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;
 }
示例#6
0
文件: Sampling.cs 项目: ssjda-ddi/EDO
        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;
        }
示例#7
0
文件: Coverage.cs 项目: ssjda-ddi/EDO
 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();
 }
示例#8
0
文件: DDIUtils.cs 项目: ssjda-ddi/EDO
        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);
        }
示例#9
0
        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
        }
示例#10
0
文件: Question.cs 项目: ssjda-ddi/EDO
 public Question()
 {
     Id       = IDUtils.NewGuid();
     Response = new Response();
 }
示例#11
0
 public VariableScheme()
 {
     Id = IDUtils.NewGuid();
 }
示例#12
0
 public DataSet()
 {
     Id            = IDUtils.NewGuid();
     VariableGuids = new List <string>();
 }
示例#13
0
文件: Code.cs 项目: ssjda-ddi/EDO
 public Code()
 {
     Id = IDUtils.NewGuid();
 }
示例#14
0
 public Universe()
 {
     IsMain = false;
     Id     = IDUtils.NewGuid();
     SamplingProcedureId = IDUtils.NewGuid();
 }
示例#15
0
 public Event()
 {
     Id        = IDUtils.NewGuid();
     DateRange = new DateRange();
 }
示例#16
0
文件: GroupId.cs 项目: ssjda-ddi/EDO
 public GroupId()
     : this(IDUtils.NewGuid(), IDUtils.NewGuid())
 {
 }
示例#17
0
 public ConceptScheme()
 {
     Id       = IDUtils.NewGuid();
     Concepts = new List <Concept>();
 }
示例#18
0
文件: Variable.cs 项目: ssjda-ddi/EDO
 public Variable()
 {
     this.Id       = IDUtils.NewGuid();
     this.Response = new Response();
 }
示例#19
0
文件: Abstract.cs 项目: ssjda-ddi/EDO
 public Abstract()
 {
     Id        = IDUtils.NewGuid();
     PurposeId = IDUtils.NewGuid();
     SummaryId = IDUtils.NewGuid();
 }
示例#20
0
 public CodeScheme()
 {
     Id    = IDUtils.NewGuid();
     Codes = new List <Code>();
 }
示例#21
0
 public Concept()
 {
     Id = IDUtils.NewGuid();
 }
示例#22
0
 public Statement()
 {
     Id = IDUtils.NewGuid();
 }
示例#23
0
 public QuestionConstruct()
 {
     Id = IDUtils.NewGuid();
 }
示例#24
0
 public QuestionGroup()
 {
     Id          = IDUtils.NewGuid();
     QuestionIds = new List <string>();
 }
示例#25
0
 public CategoryScheme()
 {
     Id         = IDUtils.NewGuid();
     Categories = new List <Category>();
 }
示例#26
0
 public Organization(string organizationName)
 {
     Id = IDUtils.NewGuid();
     OrganizationName = organizationName;
 }
示例#27
0
 public IfThenElse()
 {
     Id          = IDUtils.NewGuid();
     IfCondition = new IfCondition();
     ElseIfs     = new List <ElseIf>();
 }
示例#28
0
 public FundingInfo()
 {
     Id           = IDUtils.NewGuid();
     DateRange    = new DateRange();
     Organization = new Organization();
 }
示例#29
0
文件: Sequence.cs 项目: ssjda-ddi/EDO
 public Sequence()
 {
     Id = IDUtils.NewGuid();
     ControlConstructIds = new List <string>();
 }
示例#30
0
 public Category()
 {
     Id = IDUtils.NewGuid();
 }