Пример #1
0
        public ActionResult GetYYYone()
        {
            var        id   = Request["id"] == null ? 0 : Convert.ToInt64(Request["id"]);
            T_YxPerson temp = T_YxPersonService.LoadEntities(x => x.ID == id).FirstOrDefault();

            return(Content(Common.SerializerHelper.SerializeToString(new { serverData = temp, msg = "yes" })));
        }
Пример #2
0
        public ActionResult Index()
        {
            var City = T_CityService.LoadEntities(x => x.DelFlag == Delflag).DefaultIfEmpty();

            ViewBag.City = City;
            ViewBag.json = Json(new { rows = City }, JsonRequestBehavior.AllowGet);
            ViewBag.YYY  = T_YxPersonService.LoadEntities(x => x.DEL == 0).DefaultIfEmpty();
            return(View());
        }
Пример #3
0
        public ActionResult DelListYXY()
        {
            var id   = Convert.ToInt64(Request["id"]);
            var temp = T_YxPersonService.LoadEntities(x => x.ID == id).FirstOrDefault();

            temp.DEL = 1;
            if (temp != null)
            {
                if (T_YxPersonService.EditEntity(temp))
                {
                    return(Json("ok", JsonRequestBehavior.AllowGet));
                }
                else
                {
                    return(Json("no", JsonRequestBehavior.AllowGet));
                }
            }
            else
            {
                return(Json("null", JsonRequestBehavior.AllowGet));
            }
        }