Ejemplo n.º 1
0
        /// <summary>
        /// 查询招聘活动信息
        /// </summary>
        /// <param name="rectPlanyID">招聘活动ID</param>
        /// <returns></returns>
        public static DataSet GetRectPlanInfoWithID(string rectPlanyID)
        {//获取登陆用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];
            //设置公司代码
            string companyCD = userInfo.CompanyCD;

            return(RectPlanDBHelper.GetRectPlanInfoWithID(rectPlanyID, companyCD));
        }
Ejemplo n.º 2
0
        public static DataTable SearchSpecialExport(RectPlanSearchModel model, int pageIndex, int pageCount, string ord, ref int TotalCount)
        {
            //获取登陆用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //设置公司代码
            model.CompanyCD = userInfo.CompanyCD;
            return(RectPlanDBHelper.SearchRectExport(model, pageIndex, pageCount, ord, ref TotalCount));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 查询招聘活动信息
        /// </summary>
        /// <param name="model">查询条件</param>
        /// <returns></returns>
        public static DataTable SearchRectPlanInfo(RectPlanSearchModel model)
        {
            //获取登陆用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //设置公司代码
            model.CompanyCD = userInfo.CompanyCD;
            return(RectPlanDBHelper.SearchRectPlanInfo(model));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 删除招聘活动信息
        /// </summary>
        /// <param name="employeeNo">人员编号</param>
        /// <returns></returns>
        public static bool DeleteRectPlanInfo(string planNo)
        {
            //获取公司代码
            string companyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD;
            //执行删除操作
            bool isSucc = RectPlanDBHelper.DeleteRectPlanInfo(planNo, companyCD);

            //定义变量
            string remark;

            //成功时
            if (isSucc)
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_SUCCESS;
            }
            else
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_FAILED;
            }
            //获取删除的编号列表
            string[] noList = planNo.Split(',');
            //遍历所有编号,登陆操作日志
            for (int i = 0; i < noList.Length; i++)
            {
                //获取编号
                string no = noList[i];
                //替换两边的 '
                no = no.Replace("'", string.Empty);

                //操作日志
                LogInfoModel logModel = InitLogInfo(no);
                //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空
                logModel.Element = ConstUtil.LOG_PROCESS_DELETE;
                //设置操作成功标识
                logModel.Remark = remark;

                //登陆日志
                LogDBHelper.InsertLog(logModel);
            }

            return(isSucc);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 编辑招聘活动信息
        /// </summary>
        /// <param name="model">招聘申请活动</param>
        /// <returns></returns>
        public static bool SaveRectPlanInfo(RectPlanModel model)
        {
            //获取登陆用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //设置公司代码
            model.CompanyCD      = userInfo.CompanyCD;
            model.ModifiedUserID = userInfo.UserID;
            //定义返回变量
            bool isSucc = false;
            //操作日志
            LogInfoModel logModel = InitLogInfo(model.PlanNo);

            //更新
            if (ConstUtil.EDIT_FLAG_UPDATE.Equals(model.EditFlag))
            {
                try
                {
                    logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;
                    //执行更新操作
                    isSucc = RectPlanDBHelper.UpdateRectPlanInfo(model);
                }
                catch (Exception ex)
                {
                    //输出系统日志
                    WriteSystemLog(userInfo, ex);
                }
            }
            //插入
            else
            {
                try
                {
                    logModel.Element = ConstUtil.LOG_PROCESS_INSERT;
                    //执行插入操作
                    isSucc = RectPlanDBHelper.InsertRectPlanInfo(model);
                }
                catch (Exception ex)
                {
                    //输出系统日志
                    WriteSystemLog(userInfo, ex);
                }
            }
            //更新成功时
            if (isSucc)
            {
                //设置操作成功标识
                logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
            }
            //更新不成功
            else
            {
                //设置操作成功标识
                logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
            }

            //登陆日志
            LogDBHelper.InsertLog(logModel);

            return(isSucc);
        }