Exemplo n.º 1
0
        public ActionResult getZgList(UserInfo obj)
        {
            List <ZhaoGong> List = new ZhaoGongBLL().GetZgListIndex();

            ViewBag.zglist = List;
            return(PartialView("_zglist", List));
        }
Exemplo n.º 2
0
        public ActionResult GetDetail(string id)
        {
            ZhaoGong obj = new ZhaoGongBLL().GetObjById(id);

            ViewBag.id = id;
            return(View("zgDetail", obj));
        }
Exemplo n.º 3
0
        public ActionResult aZgList()
        {
            List <ZhaoGong> List = new ZhaoGongBLL().GetZgList();

            ViewBag.list = List;
            return(View());
        }
Exemplo n.º 4
0
        public ActionResult MyFabu(string userPhone)
        {
            List <ZhaoGong> List = new ZhaoGongBLL().GetZgListByWord(userPhone);

            ViewBag.list = List;
            return(View());
        }
Exemplo n.º 5
0
        public ActionResult getZgFabu(ZhaoGong obj)
        {
            //if (ModelState.IsValid)
            //{
            obj = new ZhaoGong
            {
                //zgId, zgTitle, zgXuqiu, zgZhuTilei, zgZhuti, zgArea, zgGz, zgNum, zgDetail, zgUser, zgPhone,
                //zgFaburen, zgStarttime, zgEndtime, zgAddtime, zgImg1, zgImg2, zgImg3, isTuijian, isRemen
                zgTitle     = obj.zgTitle,
                zgXuqiu     = obj.zgXuqiu,
                zgZhuTilei  = obj.zgZhuTilei,
                zgZhuti     = obj.zgZhuti,
                zgArea      = obj.zgArea,
                zgGz        = obj.zgGz,
                zgNum       = obj.zgNum,
                zgDetail    = obj.zgDetail,
                zgUser      = obj.zgUser,
                zgPhone     = obj.zgPhone,
                zgStarttime = obj.zgStarttime,
                zgEndtime   = obj.zgEndtime,
                zgFaburen   = obj.zgFaburen
            };
            int    result = new ZhaoGongBLL().Add(obj);
            string info   = "--->" + obj.zgTitle + "消息已经成功发布!";

            return(RedirectToAction("zgFabu", new { info }));
            //return this.Content("<script>window.location='" + Url.Action("GetList", "SysAdmin") + "'</script>");
            //return this.Content("发布成功!");
            //}
            //return View("aZgFabu");
        }
Exemplo n.º 6
0
        public ActionResult Del(string id)
        {
            int result = new ZhaoGongBLL().Del(id);

            return(this.Content("删除成功!"));
            //string info = "已删除一条记录!";
            //return RedirectToAction("MyFabu", "Zhaogong", new { info });
        }
Exemplo n.º 7
0
        public ActionResult zgInfo()
        {
            //用工信息列表
            List <ZhaoGong> List = new ZhaoGongBLL().GetZgListIndex();

            ViewBag.zglist = List;
            return(View());
        }
Exemplo n.º 8
0
        public ActionResult ZgInfo(string strWord)
        {
            // List<ZhaoGong> List = new ZhaoGongBLL().GetZgList();
            List <ZhaoGong> List = new ZhaoGongBLL().GetZgListByWord(strWord);

            ViewBag.list = List;

            return(View());
        }
Exemplo n.º 9
0
        public ActionResult getGzListByGzPid(int pid)
        {
            //工种列表
            List <ZhaoGong>      gzlsit = new ZhaoGongBLL().GetGzList(pid);
            JavaScriptSerializer jss    = new JavaScriptSerializer();
            string strList = jss.Serialize(gzlsit);

            return(Json(strList, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 10
0
        //[Authorize]
        public ActionResult zhFabu(string info)
        {
            List <ZhaoGong> List1 = new ZhaoGongBLL().GetGzList(1);
            List <ZhaoGong> List2 = new ZhaoGongBLL().GetGzList(2);
            List <ZhaoGong> List3 = new ZhaoGongBLL().GetGzList(3);
            List <ZhaoGong> List4 = new ZhaoGongBLL().GetGzList(4);

            ViewBag.list1 = List1;
            ViewBag.list2 = List2;
            ViewBag.list3 = List3;
            ViewBag.list4 = List4;
            return(View());
        }
Exemplo n.º 11
0
        public ActionResult GongZhong(string info)
        {
            ViewBag.info = info;
            List <ZhaoGong> List1 = new ZhaoGongBLL().GetGzList(1);
            List <ZhaoGong> List2 = new ZhaoGongBLL().GetGzList(2);
            List <ZhaoGong> List3 = new ZhaoGongBLL().GetGzList(3);
            List <ZhaoGong> List4 = new ZhaoGongBLL().GetGzList(4);

            ViewBag.list1 = List1;
            ViewBag.list2 = List2;
            ViewBag.list3 = List3;
            ViewBag.list4 = List4;
            return(PartialView("_GongZhong"));
        }
Exemplo n.º 12
0
        public ActionResult zhInfo(string strWord)
        {
            // List<ZhaoHuo> List = new ZhaoHuoBLL().GetZgList();
            List <ZhaoHuo> ListCity = new ZhaoHuoBLL().GetZhCityList();

            ViewBag.ListCity = ListCity;
            List <ZhaoHuo> List = new ZhaoHuoBLL().GetZhListByWord(strWord);

            ViewBag.list = List;
            List <ZhaoGong> List1 = new ZhaoGongBLL().GetGzList(1);
            List <ZhaoGong> List2 = new ZhaoGongBLL().GetGzList(2);
            List <ZhaoGong> List3 = new ZhaoGongBLL().GetGzList(3);
            List <ZhaoGong> List4 = new ZhaoGongBLL().GetGzList(4);

            ViewBag.list1 = List1;
            ViewBag.list2 = List2;
            ViewBag.list3 = List3;
            ViewBag.list4 = List4;
            ViewBag.xin0  = "<i class='glyphicon glyphicon-star-empty'></i>"
                            + "<i class='glyphicon glyphicon-star-empty'></i>"
                            + "<i class='glyphicon glyphicon-star-empty'></i>"
                            + "<i class='glyphicon glyphicon-star-empty'></i>"
                            + "<i class='glyphicon glyphicon-star-empty'></i>";
            ViewBag.xin1 = "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>";
            ViewBag.xin2 = "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>";
            ViewBag.xin3 = "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>";
            ViewBag.xin4 = "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star-empty'></i>";
            ViewBag.xin5 = "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>"
                           + "<i class='glyphicon glyphicon-star'></i>";
            return(View());
        }
Exemplo n.º 13
0
        public ActionResult _LwCity()
        {
            List <Laowu> ListCity = new LaowuBLL().GetZhCityList();

            ViewBag.ListCity = ListCity;
            List <ZhaoGong> List1 = new ZhaoGongBLL().GetGzList(1);
            List <ZhaoGong> List2 = new ZhaoGongBLL().GetGzList(2);
            List <ZhaoGong> List3 = new ZhaoGongBLL().GetGzList(3);
            List <ZhaoGong> List4 = new ZhaoGongBLL().GetGzList(4);

            ViewBag.list1 = List1;
            ViewBag.list2 = List2;
            ViewBag.list3 = List3;
            ViewBag.list4 = List4;
            return(PartialView("_LwCity"));
        }