Example #1
0
        /// <summary>
        ///  投递简历
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool SendResumeByID(HCQ2_Model.APPModel.ParamModel.PostDetialParam model)
        {
            HCQ2_Model.T_User user = DBSession.IT_UserDAL.Select(s => s.user_guid.Equals(model.userid)).FirstOrDefault();
            if (null == user)
            {
                return(false);
            }
            HCQ2_Model.A01 a01 = DBSession.IA01DAL.Select(s => s.A0177.Equals(user.user_identify)).FirstOrDefault();
            if (null == a01)
            {
                return(false);
            }
            HCQ2_Model.T_UseWorker         work = DBSession.IT_UseWorkerDAL.Select(s => s.use_id == model.use_id).FirstOrDefault();
            HCQ2_Model.T_JobResumeRelation job  = new HCQ2_Model.T_JobResumeRelation
            {
                com_id     = work.com_id,
                use_id     = model.use_id,
                A0177      = a01.A0177,
                UnitID     = a01.UnitID,
                send_date  = DateTime.Now,
                job_status = "01"
            };
            int mark = DBSession.IT_JobResumeRelationDAL.Add(job);

            return(mark > 0 ? true : false);
        }
Example #2
0
 /// <summary>
 ///  编辑招聘信息
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int EditUseWork(T_UseWorkerModel model)
 {
     if (null == model)
     {
         return(0);
     }
     HCQ2_Model.T_UseWorker job = new HCQ2_Model.T_UseWorker
     {
         com_id         = model.com_id,
         use_title      = model.use_title,
         work_type      = model.work_type,
         trade_type     = model.trade_type,
         work_city      = model.work_city,
         addr           = model.addr,
         use_wage_start = model.use_wage_start,
         use_wage_end   = model.use_wage_end,
         use_sex        = model.use_sex,
         use_age        = model.use_age,
         use_edu        = model.use_edu,
         use_ageLimit   = model.use_ageLimit,
         use_major      = model.use_major,
         work_start     = model.work_start,
         issue_start    = DateTime.Now,
         use_status     = model.use_status,
         postNote       = model.postNote,
         use_note       = model.use_note,
         header_img     = model.logo
     };
     return(Modify(job, s => s.use_id == model.use_id, "work_type", "use_title", "trade_type", "work_city", "addr", "use_wage_start", "use_wage_end", "use_sex", "use_age", "use_edu", "use_ageLimit", "use_major", "work_start", "issue_start", "use_status", "postNote", "use_note", "header_img"));
 }
Example #3
0
 /// <summary>
 ///  添加招聘信息
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int AddUseWork(T_UseWorkerModel model)
 {
     if (null == model)
     {
         return(0);
     }
     HCQ2_Model.T_UseWorker job = new HCQ2_Model.T_UseWorker
     {
         com_id         = model.com_id,
         use_title      = model.use_title,
         work_type      = model.work_type,
         trade_type     = model.trade_type,
         work_city      = model.work_city,
         addr           = model.addr,
         use_wage_start = model.use_wage_start,
         use_wage_end   = model.use_wage_end,
         use_sex        = model.use_sex,
         use_age        = model.use_age,
         use_edu        = model.use_edu,
         use_ageLimit   = model.use_ageLimit,
         use_major      = model.use_major,
         work_start     = model.work_start,
         issue_start    = DateTime.Now,
         use_status     = model.use_status,
         postNote       = model.postNote,
         use_note       = model.use_note,
         header_img     = model.logo
     };
     return(Add(job));
 }