/// <summary> /// 获取扩展属性表单的对应模块数据 /// </summary> /// <returns></returns> private object GetEntityListByRelation() { var data = fromModuleBLL.GetEntityListByRelation("{\"F_FrmKind\":\"1\"}"); Dictionary <string, List <FormModuleEntity> > dictionary = new Dictionary <string, List <FormModuleEntity> >(); foreach (var item in data) { if (!dictionary.ContainsKey(item.F_ObjectId)) { List <FormModuleEntity> list = new List <FormModuleEntity>(); list.Add(item); dictionary.Add(item.F_ObjectId, list); } else { dictionary[item.F_ObjectId].Add(item); } } return(dictionary); }