コード例 #1
0
        public ActionResult GetVerify(int ID)
        {
            C_UserPrize getprize = C_UserPrize.GetEntityByID(ID);

            getprize.State = "已审核";
            int    rtn = getprize.UpdateByID();
            string msg = rtn > 0 ? "ok" : "网络出错了!!";

            return(Content(msg));
        }
コード例 #2
0
        public ActionResult GetPage(C_UserPrize condition)
        {
            string where = string.Empty;
            if (!string.IsNullOrWhiteSpace(condition.keyword))
            {
                where += string.Format(" and ( AntiCode like '%{0}%' or Phone like '%{0}%' or Name like '%{0}%')", condition.keyword);
            }
            PageJsonModel <C_UserPrize> page = new PageJsonModel <C_UserPrize>();

            page.pageIndex = condition.pageIndex;
            page.pageSize  = condition.pageSize;
            page.strForm   = @"C_UserPrize  ";
            page.strSelect = " * ";
            page.strWhere  = where;
            page.strOrder  = "DatCreate desc";
            page.LoadList();
            return(Json(page.pageResponse, JsonRequestBehavior.AllowGet));
        }