public ActionResult AddPigHouseEquipMentInfo()
        {
            if (Session["CheckFeed"] == null || !(bool) Session["AddSystemManage"] ||
                !(bool) Session["CheckSystemManage"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            var listService = new ListService();
            ViewData["PigHouseType"] = listService.GetPigHouseTypeList();
            ViewBag.Title = "添加猪舍";
            return View();
        }
        public ActionResult CheckPigHouseEquipMentInfo(string rfid)
        {
            if (Session["CheckFeed"] == null || !(bool) Session["CheckSystemManage"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            var pigHouseService = new PigHouseService();
            pig_house pigHouse = pigHouseService.FindByRfid(rfid);
            var pigHouseModel = new PigHouseModel
                                    {
                                        Id = pigHouse.Id,
                                        PigHouseTypeId = pigHouse.PigHouseTypeId,
                                        PigHouseTypeName = pigHouse.pig_house_type.Name,
                                        Number = pigHouse.Number,
                                        Rfid = pigHouse.RFID,
                                        Memo = pigHouse.Memo
                                    };
            var listService = new ListService();
            ViewData["PigHouseType"] = listService.GetPigHouseTypeList();
            ViewBag.Title = "查看猪舍";
            return View("AddPigHouseEquipMentInfo", pigHouseModel);
        }