Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            var entity = (new YhAreainfoManager()).GetItemByKey(id);

            ViewBag.region = new SelectList(CommonFeild.GetAreaList(), "Name", "Name", entity.region);
            return(View(entity));
        }
Exemplo n.º 2
0
        public ActionResult GetRegions()
        {
            List <string> allRegion = (new YhAreainfoManager()).GetAllRegion();
            List <object> newList   = new List <object>();

            foreach (dynamic item in CommonFeild.GetAreaList())
            {
                if (allRegion.Contains(item.Name))
                {
                    newList.Add(item);
                }
            }
            return(Json(newList, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public ActionResult Index(string moule, int moduleId, int RoadID)
        {
            var entity = (new YhImgInfoManager()).GetImgByModule(moule, moduleId);

            ViewBag.imgList       = entity;
            ViewBag.imgModuleList = new SelectList(CommonFeild.GetModuleList(), "code", "name", moule);
            var imgTypeList = (new BfCodeInfoDAL()).GetBfCodeByModuleId("ImgType");

            ViewBag.ImgType       = new SelectList(imgTypeList, "Code", "Name", 1);
            ViewBag.imgModuleId   = moduleId;
            ViewBag.imgModule     = moule;
            ViewBag.imgModuleName = CommonFeild.GetModuleName(moule);
            ViewBag.RoadID        = RoadID;
            return(View(entity));
        }
Exemplo n.º 4
0
 public ActionResult Add()
 {
     ViewBag.region = new SelectList(CommonFeild.GetAreaList(), "Name", "Name", "浦东新区");
     return(View());
 }