예제 #1
0
        /// <summary>
        /// 点击编辑转到的Action 得到该部门的信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Edit(string id)
        {
            Dept         dept      = db.GetModel(int.Parse(id));
            EmployeeData emdb      = new EmployeeData();
            var          OperUser  = dept.OperUser == null ? null : emdb.GetModel(int.Parse(dept.OperUser)).EmpName;
            List <Dept>  Dropdepts = db.GetParentDept(int.Parse(id));
            var          strResult = "{\"OperUser\":\"" + OperUser + "\",\"dept\":" + dept.ToJsonString() + "}";

            return(Json(strResult));
        }