Пример #1
0
        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="keyValue"></param>
        /// <returns></returns>
        public ActionResult getEntity(string keyValue)
        {
            var bll   = new SelfEvaluateBLL();
            var model = bll.GetEntity(keyValue);

            return(Content(model.ToJson()));
        }
Пример #2
0
        /// <summary>
        ///台账
        /// </summary>
        /// <returns></returns>
        public ActionResult DetailRecord(string keyValue)
        {
            var bll   = new SelfEvaluateBLL();
            var model = bll.GetEntity(keyValue);

            return(View(model));
        }
Пример #3
0
 public object GetSelfEvaluateInfo([FromBody] JObject json)
 {
     try
     {
         var     bll    = new SelfEvaluateBLL();
         string  res    = HttpContext.Current.Request["json"];
         dynamic dy     = JsonConvert.DeserializeObject <ExpandoObject>(res);
         string  userid = dy.userid;
         OperatorProvider.AppUserId = userid;  //设置当前用户
         Operator curUser = OperatorProvider.Provider.Current();
         if (null == curUser)
         {
             return(new { code = -1, count = 0, info = "请求失败,请登录!", data = new object() });
         }
         var entity = bll.GetEntity(dy.data);
         return(new { code = 0, count = 0, info = "获取成功", data = entity });
     }
     catch (Exception ex)
     {
         return(new { code = -1, count = 0, info = "获取数据失败:" + ex.Message, data = new object() });
     }
 }