Пример #1
0
 /// <summary>
 /// 添加或编辑
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static ResumeInfo Create(ResumeInfo model)
 {
     if (model.Id == 0)
     {
         int id = ResumeManage.Insert(model);
         model.Id = id;
     }
     else
     {
         //Update
     }
     return(model);
 }
Пример #2
0
        public string HubbleSearchers([FromBody] SearchModel searchData)
        {
            var errorModel = new ErrorModel();

            try
            {
                var resumeEntity = new ResumeSearchEntity();
                resumeEntity.Birth         = searchData.birthday;
                resumeEntity.CandidateName = searchData.name;
                resumeEntity.Cities        = searchData.cities;
                resumeEntity.Company       = searchData.company;
                resumeEntity.Email         = searchData.email;
                resumeEntity.EmployeeNo    = searchData.employeeNo;
                resumeEntity.ExtId         = searchData.identity;
                resumeEntity.ExtraDatas    = new ExtraDatas();
                if (searchData.extraDatas != null)
                {
                    resumeEntity.ExtraDatas.HidResumeId  = searchData.extraDatas.resumeId;
                    resumeEntity.ExtraDatas.ResumeUserId = searchData.extraDatas.resumeUserId;
                    resumeEntity.ExtraDatas.UserName     = searchData.extraDatas.userName;
                }
                resumeEntity.GraduateYear = searchData.graduateYear;
                resumeEntity.Mobile       = searchData.mobile;
                resumeEntity.MobileLast   = searchData.mobileLast;
                resumeEntity.Registry     = searchData.registry;
                resumeEntity.School       = searchData.school;
                resumeEntity.SearchType   = (string.IsNullOrWhiteSpace(searchData.mobile) &&
                                             string.IsNullOrWhiteSpace(searchData.email))
                    ? 0
                    : 1;
                resumeEntity.Sex         = searchData.sex;
                resumeEntity.SiteCode    = searchData.siteCode;
                resumeEntity.UserIp      = "";
                resumeEntity.UserBrowser = searchData.p_browser + " " + searchData.p_version;
                resumeEntity.token       = searchData.token;
                var returnContent = new ResumeManage().ResumeSearch(resumeEntity);
                return(JsonPageResult(returnContent));
            }
            catch (Exception e)
            {
                errorModel.Flag   = 4;
                errorModel.Info   = "接口异常!请联系管理员!";
                errorModel.Result = "";
                return(JsonPageResult(Newtonsoft.Json.JsonConvert.SerializeObject(errorModel)));
            }
        }
Пример #3
0
        public string StructuredImportResume([FromBody] StructuredImportModel importModel)
        {
            var errorModel = new ErrorModel();

            try
            {
                //if (!new CommonController().CheckUpdateAvailable(importData.structuredResumeDetail.src[0].ToString()))
                //{
                //    errorModel.Flag = 4;
                //    errorModel.Info = "此招聘站点暂时不支持简历上传!";
                //    errorModel.Result = "";
                //    return JsonPageResult(Newtonsoft.Json.JsonConvert.SerializeObject(errorModel));
                //}
                var returnContent = new ResumeManage().ImportStructured(importModel);
                return(JsonPageResult(returnContent));
            }
            catch (Exception e)
            {
                errorModel.Flag   = 4;
                errorModel.Info   = "接口异常!请联系管理员!";
                errorModel.Result = "";
                return(JsonPageResult(Newtonsoft.Json.JsonConvert.SerializeObject(errorModel)));
            }
        }
Пример #4
0
 /// <summary>
 /// 删除(逻辑删除)
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static int Delete(int id)
 {
     return(ResumeManage.Delete(id));
 }
Пример #5
0
 /// <summary>
 /// 列表
 /// </summary>
 /// <param name="setting"></param>
 /// <returns></returns>
 public static IPageOfList <ResumeInfo> List(SearchSetting setting)
 {
     return(ResumeManage.List(setting));
 }
Пример #6
0
 /// <summary>
 /// 根据GUID获取
 /// </summary>
 /// <param name="guid"></param>
 /// <returns></returns>
 public static ResumeInfo GetByGUID(string guid)
 {
     return(ResumeManage.GetByGUID(guid));
 }