zoukankan
html css js c++ java
获取最根级EDT类型名称
有时候需要修改某个扩展数据类型的属性,比如字段的长度等,这些属性只能在最根级的EDT类型上修改,所以需要找到最根级的EDT类型,这个小例子演示了如何根据当前表的字段获取其对应的最根级EDT类型。
//
Return the top extendtypeid,If error,return ''
static
ExtendedDataTypeName GetFinalExtendedType(TableId _tableId,FieldId _fieldId)
{
SysDictField dictField;
SysDictType dictType;
ExtendedTypeId tmpExtendTypeId;
ExtendedTypeId finalExtendTypeId;
ExtendedTypeId getNextExtendedTypeId(DictType _dictType)
{
;
if
(_dictType.extend())
return
_dictType.extend();
else
return
0
;
}
;
if
(_tableId
&&
_fieldId)
dictField
=
new
SysDictField(_tableId,_fieldId);
else
return
''
;
dictType
=
new
SysDictType(dictField.typeId());
if
(
!
dictType)
return
''
;
finalExtendTypeId
=
dictType.id();
while
(
true
)
{
tmpExtendTypeId
=
getNextExtendedTypeId(dictType);
//
if not '',find next extendTypeId
if
(tmpExtendTypeId)
{
finalExtendTypeId
=
tmpExtendTypeId;
dictType
=
new
DictType(finalExtendTypeId);
}
else
break
;
}
if
(finalExtendTypeId)
return
new
dictType(finalExtendTypeId).Name();
else
return
''
;
}
附件
是测试用例。
查看全文
相关阅读:
每日一篇文献:Robotic pick-and-place of novel objects in clutter with multi-affordance grasping and cross-domain image matching
每日一篇文献:Intuitive Bare-Hand Teleoperation of a Robotic Manipulator Using Virtual Reality and Leap Motion
每日一篇文献:Virtual Kinesthetic Teaching for Bimanual Telemanipulation
HEBI Robotic Arm VR Teleoperation
「iQuotient Case」AR device teleoperated robotic arm
VR and Digital Twin Based Teleoperation of Robotic Arm
HEBI Robotic Arm VR Teleoperation
Human Robot Interaction
Immersive Teleoperation Project
机器人演示学习
原文地址:https://www.cnblogs.com/Farseer1215/p/885454.html
最新文章
Django用rest_framework里的serializers.ModelSerializer序列化
bootstrap-select简单使用
Django: 使用django-rest-framework-jwt时自定义user表(且未继承auth.user表)
Django: DRF自定义分页器
Django:CBV模式的数据权限实现
解决Django中 distinct 只对一个字段有用,同时查出其他字段
宣传海报制作
(Web前端)十分优秀的后台管理框架收集
ScrollView嵌套滑动的TextView | ScrollView嵌套ScrollView | TextView自体滑动
android解决W/System.err: retrofit2.adapter.rxjava3.HttpException: HTTP 400 Bad Request 错误
热门文章
golang异步批处理的例子
hadoop初步
manjaro安装anydesk
manjaro下向日葵的启动
罗技鼠标在manjaro下不时卡顿的问题
milvus初步
debian校验数字签名时出错
rust环境配置
elixir的phoenix环境配置
snap设置代理
Copyright © 2011-2022 走看看