Ejemplo n.º 1
0
        protected void btn_save_exp_Click(object sender, EventArgs e)
        {
            // get login userId
            MembershipUser CurrentUser = Membership.GetUser();
            Guid           FK_UserId   = (Guid)CurrentUser.ProviderUserKey;
            // string FK_UserId = UserId.ToString();
            string Country      = txt_exp_country.Text;
            string Company      = txt_exp_company.Text;
            string StartingDate = txt_exp_startingdate.Text;
            string Title        = txt_exp_title.Text;

            ExperienceBLL.InsertNewUserExperience(FK_UserId, Country, Company, Title, StartingDate);
            // CourseBLL.insertNewCourseToUser(UserId, txt_add_course.Text.ToString());
            // CourseBLL.insertNewCourse(CourseName, CourseNumber, CourseDate, CourseAssociatedWith);
        }
Ejemplo n.º 2
0
 public int ExperienceDelete(List<T_HR_EXPERIENCE> delexps)
 {
     using (ExperienceBLL expbll = new ExperienceBLL())
     {
         return expbll.ExperienceDelete(delexps);
     }
 }
Ejemplo n.º 3
0
 public int ExperienceUpdate(List<T_HR_EXPERIENCE> entity)
 {
     using (ExperienceBLL bll = new ExperienceBLL())
     {
         return bll.ExperienceUpdate(entity);
     }
 }
Ejemplo n.º 4
0
 public void ExperienceAdd(T_HR_EXPERIENCE entity)
 {
     using (ExperienceBLL bll = new ExperienceBLL())
     {
         bll.ExperienceAdd(entity);
     }
 }
Ejemplo n.º 5
0
 public List<T_HR_EXPERIENCE> GetExperienceAll(string resumeID)
 {
     using (ExperienceBLL bll = new ExperienceBLL())
     {
         IQueryable<T_HR_EXPERIENCE> q = bll.GetExperienceAll(resumeID);
         return q.Count() > 0 ? q.ToList() : null;
     }
 }
Ejemplo n.º 6
0
 public void ResumeUpdate(T_HR_RESUME entity, List<T_HR_EXPERIENCE> experience, List<T_HR_EDUCATEHISTORY> eduHistory, List<T_HR_EXPERIENCE> delexps, List<T_HR_EDUCATEHISTORY> deledus, ref string strMsg)
 {
     using (ResumeBLL bll = new ResumeBLL())
     {
         bll.ResumeUpdate(entity, ref  strMsg);
         ExperienceBLL expbll = new ExperienceBLL();
         expbll.ExperienceDelete(delexps);
         expbll.ExperienceUpdate(experience);
         EducateHistoryBLL edubll = new EducateHistoryBLL();
         edubll.EducateHistoryDelete(deledus);
         edubll.EducateHistoryUpdate(eduHistory);
     }
 }
Ejemplo n.º 7
0
 public void ResumeAdd(T_HR_RESUME entity, T_HR_EXPERIENCE[] experience, T_HR_EDUCATEHISTORY[] eduHistory, ref string strMsg)
 {
     using (ResumeBLL bll = new ResumeBLL())
     {
         bll.ResumeAdd(entity, ref strMsg);
         ExperienceBLL expbll = new ExperienceBLL();
         foreach (var exp in experience)
         {
             expbll.ExperienceAdd(exp);
         }
         EducateHistoryBLL edubll = new EducateHistoryBLL();
         foreach (var edu in eduHistory)
         {
             edubll.EducateHistoryAdd(edu);
         }
     }
 }
Ejemplo n.º 8
0
        public IActionResult Index()
        {
            personBLL = new PersonBLL();
            var modelPerson = personBLL.GetPerson();

            if (modelPerson == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.Person = modelPerson;
            }

            //Education
            educationBLL = new EducationBLL();
            var modelEducation = educationBLL.GetCollectionEducation();

            if (modelEducation == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.Education = modelEducation;
            }

            //Experience
            experienceBLL = new ExperienceBLL();
            var modelExperience = experienceBLL.GetCollectionExperience();

            if (modelExperience == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.Experience = modelExperience;
            }

            //Skill Coding
            skillBLL = new SkillBLL();
            var modelSkillCode = skillBLL.GetCollectionSkillsByType("C");

            if (modelSkillCode == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.SkillsCoding = modelSkillCode;
            }

            //Skill Others
            var modelSkillOthers = skillBLL.GetCollectionSkillsByType("O");

            if (modelSkillOthers == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.SkillsOthers = modelSkillOthers;
            }

            //Pricing Freelancer Skill
            pricingSkillBLL = new PricingBLL();
            var modelPricing = pricingSkillBLL.GetPricingByType("FL");

            if (modelPricing == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.PricingSkillFreelancer = modelPricing;
            }

            //Pricing Freelancer Skills Collection
            var modelPSCollection = pricingSkillBLL.GetCollectionPricingSkill("FL");

            if (modelPSCollection == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.PricingSkillCollectionFreelancer = modelPSCollection;
            }

            //Pricing Fulltime Skill
            var modelPricingFullTime = pricingSkillBLL.GetPricingByType("FT");

            if (modelPricingFullTime == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.PricingSkillFulltime = modelPricingFullTime;
            }

            //Pricing FullTime Skills Collection
            var modelPSFullTimeCollection = pricingSkillBLL.GetCollectionPricingSkill("FT");

            if (modelPSFullTimeCollection == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.PricingSkillCollectionFulltime = modelPSFullTimeCollection;
            }

            //Project Work
            projectWorkBLL = new ProjectWorkBLL();
            var modelProjectWork = projectWorkBLL.GetCollectionProjectWorkFactory();

            if (modelProjectWork == null)
            {
                return(NotFound());
            }
            else
            {
                ViewBag.ProjectWorkCollection = modelProjectWork;
            }

            //Comments
            commentBLL = new CommentBLL();
            var modelComment = commentBLL.GetCollectionComment();

            if (modelComment == null)
            {
                return(null);
            }
            else
            {
                ViewBag.Comments = modelComment;
            }

            //Contacts
            contactBLL = new ContactBLL();
            var modelContact = contactBLL.GetCollectionContact();

            if (modelContact == null)
            {
                return(null);
            }
            else
            {
                ViewBag.Contacts = modelContact;
            }

            return(View());
        }