public ActionResult SetTestForm(string KeyValue) { TestTable base_user = DataFactory.Database().FindEntity <TestTable>(KeyValue); if (base_user == null) { return(Content("")); } //Base_Employee base_employee = DataFactory.Database().FindEntity<Base_Employee>(KeyValue); //Base_Company base_company = DataFactory.Database().FindEntity<Base_Company>(base_user.CompanyId); string strJson = base_user.ToJson(); //公司 //strJson = strJson.Insert(1, "\"CompanyName\":\"" + base_company.FullName + "\","); //员工信息 //strJson = strJson.Insert(1, base_employee.ToJson().Replace("{", "").Replace("}", "") + ","); //自定义 strJson = strJson.Insert(1, Base_FormAttributeBll.Instance.GetBuildForm(KeyValue)); return(Content(strJson)); }