protected void LoadInfo() { id = WS.RequestLong("id"); if (id < 0) { return; } DataEntities ent = new DataEntities(); if (u.ID > 0) { ViewHistory his = new ViewHistory(); try { his = (from l in ent.ViewHistory where l.ItemID == id && l.UserID == u.ID && l.ModelID == 5 select l).First(); } catch { } his.ViewTime = DateTime.Now; his.ModelID = 5; his.ItemID = id; his.UserID = u.ID; if (his.ID <= 0) { ent.AddToViewHistory(his); } ent.SaveChanges(); } var j = (from l in ent.JobPost where l.ID == id select l).FirstOrDefault(); var c = (from l in ent.JobCompany where l.ID == j.CompanyID select l).FirstOrDefault(); Title = j.Title; CompanyID = c.ID; CompanyName = c.CompanyName; PostTime = j.PostTime.ToDateTime().ToString("yyyy-MM-dd"); Province = JobAction.GetProviceName(j.Province.ToInt32()); City = JobAction.GetCityName(j.City.ToInt32()); Exp = JobAction.GetExpressionsName(j.Expressions.ToInt32()); Salary = JobAction.GetSalaryDegreeName(j.Salary.ToInt32()); Edu = j.GetPostEdu(); //JobAction.GetEduName(j.Edu.ToInt32()); EmpCount = j.GetPostEduAndNumber(); //j.EmployNumber == 0 ? "若干" : j.EmployNumber.ToS(); Intro = j.Intro; CompIntro = c.Intro; JobAction.AddCityHot(j.City.ToInt32()); RelaJobs = Functions.getpostlist("5", "0", string.Format("t.Title='{0}' and t.Id!={1}", j.Title, j.ID), "t.id desc", "<tr><td height=\"80\"style=\"border-bottom: 1px solid #eeeeee\"><table width=\"810\"align=\"center\"border=\"0\"cellspacing=\"0\"cellpadding=\"0\"><tr><td align=\"left\"><table width=\"680\"border=\"0\"cellspacing=\"0\"cellpadding=\"0\"align=\"left\"><tr><td align=\"left\"class=\"job_title\"><a href=\"Job.aspx?id={id}\">{title}</a></td></tr><tr><td align=\"left\"><table width=\"610\"border=\"0\"cellspacing=\"0\"cellpadding=\"0\"><tr><td align=\"left\"class=\"job_compangy\"><a href=\"Company.aspx?id={companyid}\">{companyname}</a></td><td align=\"left\"class=\"job_qt\">规模{employeecount}/学历{edu}/经验{expressions}</td><td align=\"left\"class=\"job_qt1\">月薪<span>{salary}</span></td></tr></table></td></tr></table></td><td width=\"100\"align=\"center\"style=\"line-height: 24px; color: #666666\"><input type=\"button\"onclick=\"post({id})\"value=\"一键投递\"style=\"background: url(/skin/job/img/td.gif) no-repeat; width: 60px;height: 22px; color: #FFFFFF; border: 0px;\"/><br/>{posttime}</td></tr></table></td></tr>"); }
protected void LoadInfo() { User u = UserAction.opuser; if (u.ID < 0) { Js.AlertAndChangUrl("您还没有登录,请登录或注册后进入简历管理!", "/"); } DataEntities ent = new DataEntities(); JobResumeInfo r = new JobResumeInfo(); try { r = (from l in ent.JobResumeInfo where l.UserID == u.ID select l).First(); } catch { r.UserID = u.ID; r.IsResumeOpen = true; r.Image = "/u/ResumeFace/0.jpg"; r.Title = u.UserName + "的简历"; ent.AddToJobResumeInfo(r); ent.SaveChanges(); } var file = u.DefaultResumeFile(); if (u.ID > 0) { file_resume = string.Format("<a href='{0}' target='_blank'>{1}</a>", file.FilePath, file.FileName); } else { file_resume = "还没有上传简历"; } txt_ChineseName.Text = r.ChineseName; txt_Sex.Text = r.IsMale == true?"男":"女"; txt_LivePlace.Text = JobAction.GetProviceName(r.Province.ToInt32()) + "-" + JobAction.GetCityName(r.City.ToInt32()); txt_Mobile.Text = r.Mobile; txt_Email.Text = r.Email; txt_WorkPlace.Text = JobAction.GetCityName(r.WorkPlace.ToInt32()); txt_Birth.Text = r.Birthday.ToDateTime().ToString("yyyy年MM月dd日"); ResumeOpen = r.IsResumeOpen == true ? "简历完全开放" : "简历关闭"; Image = r.Image; }