public JsonResult InsDepartment(JqTreeModel _param)
        {
            int result = 0;

            try
            {
                DaoFactory.BeginTransaction();

                DObject dobj = new DObject();
                dobj.Type        = CommonConstant.TYPE_DEPARTMENT;
                dobj.Name        = _param.label;
                dobj.Description = _param.value;
                result           = DObjectRepository.InsDObject(dobj);

                DRelationship dRel = new DRelationship();
                dRel.Type    = CommonConstant.RELATIONSHIP_DEPARTMENT;
                dRel.FromOID = _param.parentId;
                dRel.ToOID   = result;
                DRelationshipRepository.InsDRelationshipNotOrd(dRel);

                DaoFactory.Commit();
            }
            catch (Exception ex)
            {
                DaoFactory.Rollback();
                return(Json(new ResultJsonModel {
                    isError = true, resultMessage = ex.Message, resultDescription = ex.ToString()
                }));
            }
            return(Json(result));
        }