public JsonResult InitSingle() { #region 权限控制 int[] iRangePage = { AddPageNodeId, EditPageNodeId, DetailPageNodeId }; int iCurrentPageNodeId = AddPageNodeId; var tempAuth = Utits.IsNodePageAuth(iRangePage, iCurrentPageNodeId); if (tempAuth.ErrorType != 1) { return(Json(tempAuth)); } #endregion #region InitSingle Guid ID = RequestParameters.PGuid("ID"); if (ID != Guid.Empty) { var usersBll = new CustomerBll(); var item = usersBll.GetVObjectById(ID); var szDetailModel = new ResultDetail(); szDetailModel.Entity = item; szDetailModel.ErrorType = 1; return(Json(szDetailModel)); } else { var sRetrunModel = new ResultMessage(); sRetrunModel.ErrorType = 0; sRetrunModel.MessageContent = "参数错误."; return(Json(sRetrunModel)); } #endregion }