Exemple #1
0
        public static CourseTypeSkillProfile CreateCourseTypeSkillProfile(string courseTypeId,
                                                                          string skillId,
                                                                          global::Microsoft.Dynamics.DataEntities.RatingModel ratingModel,
                                                                          global::Microsoft.Dynamics.DataEntities.CourseType courseType,
                                                                          global::Microsoft.Dynamics.DataEntities.RatingLevel ratingLevel,
                                                                          global::Microsoft.Dynamics.DataEntities.Skill skill)
        {
            CourseTypeSkillProfile courseTypeSkillProfile = new CourseTypeSkillProfile();

            courseTypeSkillProfile.CourseTypeId = courseTypeId;
            courseTypeSkillProfile.SkillId      = skillId;
            if ((ratingModel == null))
            {
                throw new global::System.ArgumentNullException("ratingModel");
            }
            courseTypeSkillProfile.RatingModel = ratingModel;
            if ((courseType == null))
            {
                throw new global::System.ArgumentNullException("courseType");
            }
            courseTypeSkillProfile.CourseType = courseType;
            if ((ratingLevel == null))
            {
                throw new global::System.ArgumentNullException("ratingLevel");
            }
            courseTypeSkillProfile.RatingLevel = ratingLevel;
            if ((skill == null))
            {
                throw new global::System.ArgumentNullException("skill");
            }
            courseTypeSkillProfile.Skill = skill;
            return(courseTypeSkillProfile);
        }
        public static JobPreferredSkill CreateJobPreferredSkill(string jobId,
                                                                string skillId,
                                                                global::Microsoft.Dynamics.DataEntities.RatingModel ratingModel,
                                                                global::Microsoft.Dynamics.DataEntities.Job job,
                                                                global::Microsoft.Dynamics.DataEntities.RatingLevel ratingLevel,
                                                                global::Microsoft.Dynamics.DataEntities.Skill skill)
        {
            JobPreferredSkill jobPreferredSkill = new JobPreferredSkill();

            jobPreferredSkill.JobId   = jobId;
            jobPreferredSkill.SkillId = skillId;
            if ((ratingModel == null))
            {
                throw new global::System.ArgumentNullException("ratingModel");
            }
            jobPreferredSkill.RatingModel = ratingModel;
            if ((job == null))
            {
                throw new global::System.ArgumentNullException("job");
            }
            jobPreferredSkill.Job = job;
            if ((ratingLevel == null))
            {
                throw new global::System.ArgumentNullException("ratingLevel");
            }
            jobPreferredSkill.RatingLevel = ratingLevel;
            if ((skill == null))
            {
                throw new global::System.ArgumentNullException("skill");
            }
            jobPreferredSkill.Skill = skill;
            return(jobPreferredSkill);
        }
 partial void OnHcmRatingModelChanging(global::Microsoft.Dynamics.DataEntities.RatingModel value);
Exemple #4
0
        public static RatingLevel CreateRatingLevel(string ratingLevelId, string ratingModelId, int factor, global::Microsoft.Dynamics.DataEntities.RatingModel ratingModel)
        {
            RatingLevel ratingLevel = new RatingLevel();

            ratingLevel.RatingLevelId = ratingLevelId;
            ratingLevel.RatingModelId = ratingModelId;
            ratingLevel.Factor        = factor;
            if ((ratingModel == null))
            {
                throw new global::System.ArgumentNullException("ratingModel");
            }
            ratingLevel.RatingModel = ratingModel;
            return(ratingLevel);
        }