예제 #1
0
        public ActionResult zpinfo(string strWord)
        {
            List <ZhaoPin> List = new ZhaoPinBLL().GetListByWord(strWord);

            ViewBag.list = List;
            return(View());
        }
예제 #2
0
        public ActionResult zpfabu()
        {
            List <ZhaoPin> List = new ZhaoPinBLL().GetList();

            ViewBag.list = List;
            return(View());
        }
예제 #3
0
        public ActionResult GetDetail(string id)
        {
            ZhaoPin obj = new ZhaoPinBLL().GetObjById(id);

            ViewBag.id = id;
            return(View("Detail", obj));
        }
예제 #4
0
        public ActionResult GetAdd(ZhaoPin obj)
        {
            obj = new ZhaoPin
            {
                zpXuqiu    = obj.zpXuqiu,
                zpZhuTilei = obj.zpZhuTilei,
                zpZhuti    = obj.zpZhuti,
                zpArea     = obj.zpArea,
                zpGangwei  = obj.zpGangwei,
                zpNum      = obj.zpNum,
                zpPayL     = obj.zpPayL,
                zpPayH     = obj.zpPayH,
                zpFuli     = obj.zpFuli,
                zpDetail   = obj.zpDetail,
                zpUser     = obj.zpUser,
                zpPhone    = obj.zpPhone,
                zpFaburen  = obj.zpFaburen,
                //zpAddtime = obj.admin_name,
                zpEndtime = obj.zpEndtime
            };
            int    result = new ZhaoPinBLL().Add(obj);
            string info   = "添加成功!";

            return(RedirectToAction("zpFabu", new { info }));
        }
예제 #5
0
        public ActionResult zpfabu(string info)
        {
            ViewBag.info = info;
            List <ZhaoPin> List = new ZhaoPinBLL().GetList();

            ViewBag.list = List;
            return(View());
        }
예제 #6
0
        public ActionResult ZpList(int page = 1)
        {
            List <ZhaoPin> List  = new ZhaoPinBLL().GetList();
            var            pList = List.ToPagedList(page, 10);

            ViewBag.list = pList;
            return(View(pList));
        }
예제 #7
0
        public ActionResult Index()
        {
            //用工信息列表
            List <ZhaoPin> List = new ZhaoPinBLL().GetListIndex();

            ViewBag.zplist = List;
            //个人劳务列表
            List <Laowu> Listlw = new LaowuBLL().GetLwListIndex();

            ViewBag.lwlist = Listlw;
            return(View());
        }
예제 #8
0
        public ActionResult Del(string Id)
        {
            int result = new ZhaoPinBLL().Del(Id);

            if (result == 1)
            {
                return(this.Content("删除成功!"));

                                //string info = "删除成功!";
                                //return RedirectToAction("aUserList", "UserInfo", new { info });

                           
            }
            else
            {
                return(this.Content("删除失败!"));
            }
        }
예제 #9
0
        // GET: ZhaoGong
        public ActionResult Index(UserInfo obj)
        {
            //招聘信息列表
            List <ZhaoPin> List = new ZhaoPinBLL().GetListIndex();

            ViewBag.zplist = List;
            //个人劳务列表
            List <Laowu> Listlw = new LaowuBLL().GetLwListIndex();

            ViewBag.lwlist = Listlw;
            //消息法规列表
            List <Article> Listtz = new ArticleBLL().GetListByAcidIndex(2);

            ViewBag.tzlist = Listtz;
            //培训通知列表
            List <Article> Listpx = new ArticleBLL().GetListByAcidIndex(3);

            ViewBag.pxlist = Listpx;
            return(View());
        }
예제 #10
0
         public ActionResult GetAdd(ZhaoPin obj)
 {
     if (obj.zpGangwei == null)
     {
         string warningText = "岗位信息不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     if (obj.zpZhuti == null)
     {
         string warningText = "主体信息不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     if (obj.zpNum < 1)
     {
         string warningText = "招聘人数不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     if (obj.zpArea == null)
     {
         string warningText = "招聘地区不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     if (obj.zpPayL == null)
     {
         string warningText = "薪资待遇不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     if (obj.zpUser == null)
     {
         string warningText = "联系人不能为空!";
         return(this.Content("<script>$(function(){warning('" + warningText + "');})</script>"));
     }
     else
     {
         obj = new ZhaoPin
         {
             zpXuqiu    = obj.zpXuqiu,
             zpZhuTilei = obj.zpZhuTilei,
             zpZhuti    = obj.zpZhuti,
             zpArea     = obj.zpArea,
             zpGangwei  = obj.zpGangwei,
             zpNum      = obj.zpNum,
             zpPayL     = obj.zpPayL,
             zpPayH     = obj.zpPayH,
             zpFuli     = obj.zpFuli,
             zpDetail   = obj.zpDetail,
             zpUser     = obj.zpUser,
             zpPhone    = obj.zpPhone,
             zpFaburen  = obj.zpFaburen,
             //zpAddtime = obj.admin_name,
             zpEndtime = obj.zpEndtime
         };
         int result = new ZhaoPinBLL().Add(obj);
         if (Request.IsAjaxRequest())
         {
             string successText = "添加成功!";
             return(this.Content("<script>$(function(){success('" + successText + "');})</script>"));
         }
         else
         {
             return(this.Content("不是Ajax提交"));
             //return this.Content("<script>window.location='" + Url.Action("GetList", "SysAdmin") + "'</script>");
         }
     }
 }
예제 #11
0
        public ActionResult SetPropertity(int id, int type, int action, string enumPageType)
        {
            ResultInfo ri = new ResultInfo();

            if (UserBaseBLL.Instance.IsRoot)
            {
                if (id > 0)
                {
                    if (type > 0 && type < 4)
                    {
                        int flag = action == 1 ? 1 : 0;

                        if (enumPageType == "qiuzhi")
                        {
                            #region 求职
                            QiuZhiBLL qiuzhibll = QiuZhiBLL.Instance;
                            var       qzmodel   = qiuzhibll.GetModel(id);
                            if (qzmodel != null)
                            {
                                if (type == 1)
                                {
                                    qzmodel.IsJinghua = flag;
                                }
                                else if (type == 2)
                                {
                                    qzmodel.IsRemen = flag;
                                }
                                else
                                {
                                    qzmodel.IsTop = flag;
                                }
                                ri = qiuzhibll.Update(qzmodel);
                            }
                            else
                            {
                                ri.Msg = "求职信息不存在";
                            }
                            #endregion
                        }
                        else if (enumPageType == "zhaopin")
                        {
                            #region 招聘
                            ZhaoPinBLL zhaopinbll = ZhaoPinBLL.Instance;
                            var        zpmodel    = zhaopinbll.GetModel(id);
                            if (zpmodel != null)
                            {
                                if (type == 1)
                                {
                                    zpmodel.IsJinghua = flag;
                                }
                                else if (type == 2)
                                {
                                    zpmodel.IsRemen = flag;
                                }
                                else
                                {
                                    zpmodel.IsTop = flag;
                                }
                                ri = zhaopinbll.Update(zpmodel);
                            }
                            else
                            {
                                ri.Msg = "招聘信息不存在";
                            }
                            #endregion
                        }
                        else
                        {
                            #region 产品信息
                            ProductBLL productbll = ProductBLL.Instance;
                            var        pmodel     = productbll.GetModel(id);
                            if (pmodel != null)
                            {
                                if (type == 1)
                                {
                                    pmodel.IsJinghua = flag;
                                }
                                else if (type == 2)
                                {
                                    pmodel.IsRemen = flag;
                                }
                                else
                                {
                                    pmodel.IsTop = flag;
                                }
                                ri = productbll.Update(pmodel);
                            }
                            else
                            {
                                ri.Msg = "产品信息不存在";
                            }
                            #endregion
                        }
                    }
                    else
                    {
                        ri.Msg = "异常";
                    }
                }
                else
                {
                    ri.Msg = "异常";
                }
            }
            else
            {
                ri.Msg = "你没有权限";
            }
            return(Result(ri));
        }