Exemple #1
0
        private static CompetencyType CreateSubCompetencyType()
        {
            CompetencyType c = new CompetencyType();

            c.CompetencyEvidence = new List <CompetencyTypeCompetencyEvidence>();
            CompetencyTypeCompetencyEvidence ctce = CreateCompetencyTypeCompetencyEvidence();

            c.CompetencyEvidence.Add(ctce);

            c.CompetencyId = CreateCompetencyTypeCompetencyId();

            c.CompetencyWeight = new List <CompetencyTypeCompetencyWeight>();
            CompetencyTypeCompetencyWeight cw = CreateCompetencyTypeCompetencyWeight();

            c.CompetencyWeight.Add(cw);

            c.description       = "Omschrijving";
            c.name              = "CompetencyType Naam";
            c.required          = true;
            c.requiredSpecified = true;

            c.TaxonomyId = new List <CompetencyTypeTaxonomyId>();
            CompetencyTypeTaxonomyId ctt = CreateCompetencyTypeTaxonomyId();

            c.TaxonomyId.Add(ctt);

            return(c);
        }
        public async Task <IActionResult> Edit(int id, [Bind("Id,Tier,name")] CompetencyType competencyType)
        {
            if (id != competencyType.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(competencyType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!CompetencyTypeExists(competencyType.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(competencyType));
        }
        public async Task <IActionResult> Create([Bind("Id,Tier,name")] CompetencyType competencyType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(competencyType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(competencyType));
        }
Exemple #4
0
        private static StructuredXMLResumeTypeQualifications CreateStructuredXMLResumeTypeQualifications()
        {
            StructuredXMLResumeTypeQualifications q = new StructuredXMLResumeTypeQualifications();

            q.Competency = new List <CompetencyType>();
            CompetencyType c = CreateCompetencyType();

            q.Competency.Add(c);

            q.QualificationSummary = "QualificationSummary";
            return(q);
        }
Exemple #5
0
        public static bool CheckValue(double value, CompetencyType type)
        {
            Func <double, bool> checker;

            switch (type)
            {
            case (CompetencyType.Bool):
                checker = CompetencyLevels.IsBool;
                break;

            case (CompetencyType.Range):
                checker = CompetencyLevels.IsRange;
                break;

            default:
                return(false);
            }
            return(checker(value));
        }
Exemple #6
0
        private static void DoCV()
        {
            ResumeType r = new ResumeType();

            //r.DistributionGuidelines = new DistributionGuidelinesType();
            //r.DistributionGuidelines.DistributeTo = new List<DistributionGuidelinesTypeDistributeTo>();

            //DistributionGuidelinesTypeDistributeTo dis = new DistributionGuidelinesTypeDistributeTo();
            //dis.Id = CreateEntityIdType();

            //dis.ContactMethod = new List<ContactMethodType>();

            //ContactMethodType m = CreateContactMethodType();
            //dis.ContactMethod.Add(m);

            //dis.Name = "Bert Zingemans";
            //dis.validFrom = GetDateTime();
            //dis.validTo = "2011-12-31";

            //r.DistributionGuidelines.DistributeTo.Add(dis);

            r.lang     = "nl";
            r.ResumeId = CreateEntityIdType();

            r.StructuredXMLResume = new StructuredXMLResumeType();

            //r.StructuredXMLResume.Achievements = new List<AchievementType>();
            //r.StructuredXMLResume.Achievements.Add(CreateAchievementType());

            //r.StructuredXMLResume.Associations = new List<Association>();
            //r.StructuredXMLResume.Associations.Add(CreateAssociation());

            r.StructuredXMLResume.Comments    = "Commentaar";
            r.StructuredXMLResume.ContactInfo = CreateSEPContactInfoType();

            r.StructuredXMLResume.EducationHistory = new List <EducationHistoryTypeSchoolOrInstitution>();
            EducationHistoryTypeSchoolOrInstitution e = CreateEducationHistoryTypeSchoolOrInstitution();

            r.StructuredXMLResume.EducationHistory.Add(e);

            r.StructuredXMLResume.EmploymentHistory = new List <EmployerOrgDataType>();
            EmployerOrgDataType eh = CreateEmployerOrgDataType();

            r.StructuredXMLResume.EmploymentHistory.Add(eh);

            r.StructuredXMLResume.ExecutiveSummary = "ExecutiveSummary";

            r.StructuredXMLResume.Languages = new List <Language>();
            Language l = CreateLanguage("nl", "Nederlands");

            r.StructuredXMLResume.Languages.Add(l);
            l = CreateLanguage("de", "Duits");
            r.StructuredXMLResume.Languages.Add(l);

            //r.StructuredXMLResume.LicensesAndCertifications = new List<CredentialType>();
            //CredentialType ct = CreateCredentialType();
            //r.StructuredXMLResume.LicensesAndCertifications.Add(ct);

            //r.StructuredXMLResume.MilitaryHistory = new MilitaryHistoryType();
            //r.StructuredXMLResume.MilitaryHistory.Comments = "Commentaar";
            //r.StructuredXMLResume.MilitaryHistory.CountryServed = "NL";
            //r.StructuredXMLResume.MilitaryHistory.ServiceDetail = new List<MilitaryHistoryTypeServiceDetail>();
            //MilitaryHistoryTypeServiceDetail mt = CreateMilitaryHistoryTypeServiceDetail();
            //r.StructuredXMLResume.MilitaryHistory.ServiceDetail.Add(mt);

            //r.StructuredXMLResume.PatentHistory = new List<PatentDescriptionType>();
            //PatentDescriptionType pdt = CreatePatentDescriptionType();
            //r.StructuredXMLResume.PatentHistory.Add(pdt);

            //r.StructuredXMLResume.ProfessionalAssociations = new List<string>();
            //r.StructuredXMLResume.ProfessionalAssociations.Add("ProfessionalAssociations1");
            //r.StructuredXMLResume.ProfessionalAssociations.Add("ProfessionalAssociations2");

            //PublicationHistoryType pht = CreatePublicationHistoryType();

            r.StructuredXMLResume.Qualifications            = new StructuredXMLResumeTypeQualifications();
            r.StructuredXMLResume.Qualifications.Competency = new List <CompetencyType>();
            CompetencyType ct2 = CreateCompetencyType();

            r.StructuredXMLResume.Qualifications.Competency.Add(ct2);
            r.StructuredXMLResume.Qualifications.QualificationSummary = "QualificationSummary";


            //r.StructuredXMLResume.References = new List<ReferenceType>();
            //ReferenceType rt = CreateReferenceType();
            //r.StructuredXMLResume.References.Add(rt);

            //r.StructuredXMLResume.SpeakingEventsHistory = new List<SpeakingEventType>();
            //SpeakingEventType set = CreateSpeakingEventType();
            //r.StructuredXMLResume.SpeakingEventsHistory.Add(set);

            //r.StructuredXMLResume.SecurityCredentials = new List<CredentialType>();
            //CredentialType cdt = new CredentialType();

            //cdt.Description = "Omschrijving";

            //cdt.EffectiveDate = new CredentialTypeEffectiveDate();
            //cdt.EffectiveDate.FirstIssuedDate = CreateFlexibleDatesType();
            //cdt.EffectiveDate.ValidFrom = CreateFlexibleDatesType(); ;
            //cdt.EffectiveDate.ValidTo = CreateFlexibleDatesType();

            //cdt.Id = "Id";
            //cdt.IssuingAuthority = new IssuingAuthorityType();
            //cdt.IssuingAuthority.countryCode = "NL";
            //cdt.IssuingAuthority.Value = "value";
            //cdt.Name = "Name";

            //r.StructuredXMLResume.SecurityCredentials.Add(cdt);

            //r.StructuredXMLResume.ResumeAdditionalItems = new List<AdditionalItemType>();
            //AdditionalItemType a = CreateAdditionalItemType();
            //r.StructuredXMLResume.ResumeAdditionalItems.Add(a);

            r.StructuredXMLResume.RevisionDate = GetDateTime();

            r.UserArea = new UserAreaType();
            r.UserArea.NocoreResume          = CreateNocoreResume();
            r.UserArea.NocoreResumeSpecified = true;


            r.SaveToFile("resume.xml");
        }
Exemple #7
0
 public Competency(string name, CompetencyType type)
 {
     this.Name = name;
     this.Type = type;
 }
Exemple #8
0
 public void Remove(CompetencyType obj)
 {
     context.CompetencyTypes.DeleteObject(obj);
 }