public void addBasicInfo(JobResumeBasic obj)
        {
            DataClasses1DataContext db = new DataClasses1DataContext();

            db.JobResumeBasics.InsertOnSubmit(obj);
            db.SubmitChanges();
        }
        public void updateBasicInfo(JobResumeBasic br)
        {
            DataClasses1DataContext db = new DataClasses1DataContext();
            var obj = (from x in db.JobResumeBasics
                       where x.userId == br.userId
                       select x).First();

            obj = br;
            db.SubmitChanges();
        }
        public void addBasicInfo(string fname, string lname, string mname, string imgpath, DateTime dob, string gender, string email, string ph1, string ph2, string address, string city, string country, string objective, string depofint, string desofint, DateTime joiningdate, string lastdegree, string lastinstitute, string lastperfor, string scndlastdegree, string scndlastinstitute, string scndlastperfor, string addqualification, int userId)
        {
            DataClasses1DataContext db  = new DataClasses1DataContext();
            JobResumeBasic          obj = new JobResumeBasic();

            int cityid              = getCityId(city);
            int countryid           = getCountryId(country);
            int lastdegreeid        = getDegreeId(lastdegree);
            int lastinstituteid     = getInstituteId(lastinstitute);
            int scndlastdegreeid    = getDegreeId(scndlastdegree);
            int scndlastinstituteid = getInstituteId(scndlastinstitute);

            obj.mname              = mname;
            obj.image              = imgpath;
            obj.dob                = dob;
            obj.gender             = gender;
            obj.ph1                = ph1;
            obj.ph2                = ph2;
            obj.address            = address;
            obj.city               = cityid;
            obj.country            = countryid;
            obj.objective          = objective;
            obj.depofint           = depofint;
            obj.desofint           = desofint;
            obj.joiningdate        = joiningdate;
            obj.lastdegree         = lastdegreeid;
            obj.lastinstitute      = lastinstituteid;
            obj.perflastdegree     = lastperfor;
            obj.scndlastdegree     = scndlastdegreeid;
            obj.scndlastinstitute  = scndlastinstituteid;
            obj.perfscndlastdegree = scndlastperfor;
            obj.addqualification   = addqualification;
            obj.userId             = userId;

            db.JobResumeBasics.InsertOnSubmit(obj);
            db.SubmitChanges();
        }
Exemplo n.º 4
0
        public ActionResult CreateBasicinfo()
        {
            JobResumeBasic br  = new JobResumeBasic();
            BasicInfo      obj = new BasicInfo();

            string fname = Request["fname"];
            string lname = Request["lname"];
            string email = Request["email"];

            br.mname = Request["mname"];
            br.image = Request["image"];
            string date = Request["dob"];

            br.dob     = Convert.ToDateTime(date);
            br.gender  = Request["gender"];
            br.ph1     = Request["ph1"];
            br.ph2     = Request["ph2"];
            br.address = Request["address"];
            string city = Request["city"];

            br.city = obj.getCityId(city);
            string country = Request["country"];

            br.country     = obj.getCountryId(country);
            br.objective   = Request["objective"];
            br.depofint    = Request["depoi"];
            br.desofint    = Request["desoi"];
            date           = Request["joiningdate"];
            br.joiningdate = Convert.ToDateTime(date);
            string lastdegree = Request["lastdegree"];

            br.lastdegree = obj.getDegreeId(lastdegree);
            string lastinstitute = Request["lastinstitute"];

            br.lastinstitute  = obj.getInstituteId(lastinstitute);
            br.perflastdegree = Request["lastperform"];
            string scndlastdegree = Request["scndlastdegree"];

            br.scndlastdegree = obj.getDegreeId(scndlastdegree);
            string scndlastinstitute = Request["scndlastinstitute"];

            br.scndlastinstitute  = obj.getInstituteId(scndlastinstitute);
            br.perfscndlastdegree = Request["scndlastperform"];

            br.addqualification = Request["addqualification"];
            br.userId           = uid;
            obj.addBasicInfo(br);
            getAllLists obj1 = new getAllLists();

            ViewBag.Cities     = obj1.getCities();
            ViewBag.Countaries = obj1.getCountaries();
            ViewBag.Degrees    = obj1.getDegrees();
            ViewBag.Institutes = obj1.getInstitutes();
            BasicInfo b  = new BasicInfo();
            ExpInfo   e1 = new ExpInfo();
            ExtraInfo e2 = new ExtraInfo();

            ViewBag.isBasicInfoExist = b.isBasicInfoFound(uid);
            ViewBag.isExpInfoExist   = e1.isExpInfoFound(uid);
            ViewBag.isExtraInfoExist = e2.isExtraInfoFound(uid);

            UserInfo u = new UserInfo();

            ViewBag.UserInfo = u.getUserInfo(uid);
            return(View("Create"));
        }