Esempio n. 1
0
        /// <summary>
        /// 得到部门信息传回JSon
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Edit(string id)
        {
            Position     posit    = db.GetModel(int.Parse(id));
            EmployeeData emdb     = new EmployeeData();
            var          OperUser = posit.OperUser == null ? null : emdb.GetModel(int.Parse(posit.OperUser)).EmpName;
            //List<Position> positions = db.GetParentPost(int.Parse(id));
            var strResult = "{\"OperUser\":\"" + OperUser + "\",\"posit\":" + posit.ToJsonString() + "}";

            return(Json(strResult));
        }