コード例 #1
0
        public ActionResult UnlockStatusBatch()
        {
            string data   = Request.Params["requestData"];
            string status = Request.Params["status"];

            if (data == null || status == null)
            {
                return(Json(
                           new OperateResult
                {
                    content = "数据异常",
                },
                           JsonRequestBehavior.AllowGet
                           ));
            }

            JavaScriptSerializer js      = new JavaScriptSerializer();
            List <long>          lstData = js.Deserialize <List <long> >(data);

            if (lstData.Count == 0)
            {
                return(Json(
                           new OperateResult
                {
                    content = "无考核数据",
                },
                           JsonRequestBehavior.AllowGet
                           ));
            }

            OperateResult or = AssessmentManager.UpdateStatusBatch(lstData, status);

            return(Json(or, JsonRequestBehavior.AllowGet));
        }