コード例 #1
0
        public virtual JobsCategoriesBLL GetByJobCategoryID(int JobCategoryID)
        {
            JobsCategories    JobCategory       = new JobsCategoriesDAL().GetByJobCategoryID(JobCategoryID);
            JobsCategoriesBLL JobsCategoriesBLL = new JobsCategoriesBLL();

            if (JobCategory != null)
            {
                if (JobCategory.JobCategoryID > 0)
                {
                    return(new JobsCategoriesBLL().MapJobCategory(JobCategory));
                }
            }
            return(null);
        }
コード例 #2
0
 public PromotionsJobsCategoriesBLL MapPromotionJobCategory(PromotionsJobsCategories PromotionJobCategory)
 {
     try
     {
         PromotionsJobsCategoriesBLL PromotionsJobsCategoriesBLL = null;
         if (PromotionJobCategory != null)
         {
             PromotionsJobsCategoriesBLL = new PromotionsJobsCategoriesBLL()
             {
                 PromotionJobCategoryID = PromotionJobCategory.PromotionJobCategoryID,
             };
             if (PromotionJobCategory.JobsCategories != null)
             {
                 PromotionsJobsCategoriesBLL.JobCategory = new JobsCategoriesBLL().MapJobCategory(PromotionJobCategory.JobsCategories);
             }
             if (PromotionJobCategory.PromotionsPeriods != null)
             {
                 PromotionsJobsCategoriesBLL.PromotionPeriod = new PromotionsPeriodsBLL().MapPromotionPeriod(PromotionJobCategory.PromotionsPeriods);
             }
             else
             {
                 PromotionsJobsCategoriesBLL.PromotionPeriod = new PromotionsPeriodsBLL();
             }
             if (PromotionJobCategory.AssignedJobsCategories != null)
             {
                 PromotionsJobsCategoriesBLL.AssignedJobCategory = new JobsCategoriesBLL().MapJobCategory(PromotionJobCategory.AssignedJobsCategories);
             }
             else
             {
                 PromotionsJobsCategoriesBLL.AssignedJobCategory = new JobsCategoriesBLL();
             }
         }
         return(PromotionsJobsCategoriesBLL);
     }
     catch
     {
         throw;
     }
 }
コード例 #3
0
 public JobsCategoriesBLL MapJobCategory(JobsCategories JobCategory)
 {
     try
     {
         JobsCategoriesBLL JobCategoryBLL = null;
         if (JobCategory != null)
         {
             JobCategoryBLL = new JobsCategoriesBLL()
             {
                 JobCategoryID   = JobCategory.JobCategoryID,
                 JobCategoryName = JobCategory.JobCategoryName,
                 JobCategoryNo   = JobCategory.JobCategoryNo
             };
             if (JobCategory.JobsGroups != null)
             {
                 JobCategoryBLL.JobGroup = new JobsGroupsBLL().MapJobGroup(JobCategory.JobsGroups);
             }
             if (JobCategory.Qualifications != null)
             {
                 JobCategoryBLL.MinQualification = new QualificationsBLL().MapQualification(JobCategory.Qualifications);
             }
             if (JobCategory.GeneralSpecializations != null)
             {
                 JobCategoryBLL.MinGeneralSpecialization = new GeneralSpecializationsBLL().MapGeneralSpecialization(JobCategory.GeneralSpecializations);
             }
             if (JobCategory.QualificationsDegrees != null)
             {
                 JobCategoryBLL.MinQualificationDegree = new QualificationsDegreesBLL().MapQualificationDegree(JobCategory.QualificationsDegrees);
             }
         }
         return(JobCategoryBLL);
     }
     catch
     {
         throw;
     }
 }