public bool SaveRelationInfo(MyRelationInfo item) { bool result = true; return(result); }
/// <summary> /// 递归绑定关系树 /// </summary> /// <param name="treeList"></param> /// <param name="treeNode"></param> /// <param name="relationType"></param> /// <param name="relationTypeList"></param> private void LoadRelationTreeNode(DevExpress.XtraTreeList.TreeList treeList, TreeListNode treeNode, MyRelationInfo relationInfo, List <MyRelationInfo> relationInfoList) { int grade = relationInfo.RELATIONINFO_GRADE; string parentid = relationInfo.RELATIONINFO_PARENTID; foreach (MyRelationInfo item in relationInfoList) { if (item.RELATIONINFO_PARENTID == parentid && item.RELATIONINFO_GRADE - grade == 1) { TreeListNode typeNode = treeList.AppendNode(new Object[] { item.RELATIONINFO_ID, item.RELATIONINFO_CODE, item.RELATIONINFO_NAME, item.RELATIONINFO_PARENTID, item.RELATIONINFO_IFDETAIL, item.RELATIONINFO_GRADE, item.RELATIONINFO_IFINVALID, item.RELATIONINFO_NOTE, item.RELATIONINFO_CREATETIME, item.RELATIONINFO_LASTMODIFIEDTIME, item.RELATIONINFO_MODIFICATIONTIMES }, treeNode); typeNode.StateImageIndex = 0; // 递归绑定关系树 LoadRelationTreeNode(treeList, typeNode, item, relationInfoList); } } }