概述
RuiScript脚本语言是为了实现在多宿主情况下的运行而设置的一种脚本语言。 该语言为解释执行,执行前先逐段解释,然后按照解释结果执行。
RuiScript运行宿主环境目前支持 C#、javaScript、java这3中运行环境
脚本分析器是按照段落分析的,而不是逐行分析的。因为逐行分析无法实现分支和循环,所以需要段落分析和执行。所谓的段落是指 没有包括 未完成的 循环、分支判断或者函数定义的 代码片段。
//完整的代码段示例
//保存主表记录和所有的子表记录
$result = _compondValue_SaveToDB(newCompondItem_Value);
if ($result)
//循环遍历 凭证明细,累加到 科目余额表对应记录中
$allDetailList = [*@7846ca9c4a244f5195f214a1d0c04c16#1:aclItem]; //使用主表关联获取到对应的明细记录
for(detailItem : $allDetailList)
$jiefang = [719e1cc8cd664023bcac9c91ef051bb1:detailItem]; //明细中的借方金额
$daifang = [3ca99cf3ae7d44e9abf14315bd015f76:detailItem]; //明细中的贷方金额
$kemuCode = _substr([MyName:detailItem],1,3); //明细中的科目代码
$existKMYEItem = _getSingleItem( ownerID,"8454e193d8ff413584b077df6ccdfbd4",ownerID,$kemuCode); //使用科目代码到 科目余额表中获取单条记录
if ($existKMYEItem == null)
//没有找到 对应的科目余额表记录,则插入一条新科目余额表记录
$newKMYEItem = _newAndInit( ownerID,"8454e193d8ff413584b077df6ccdfbd4", null);//新建一条科目余额表记录
_setfieldvalue($newKMYEItem,"MyRangeKey",$kemuCode); //设置科目编码,科目余额表使用科目编码
//新记录插入到数据库
$insertCount = _New_Raw($newKMYEItem, false);
if ($insertCount <=0)
_throw("Failed to insert into 科目余额表");
end if
else
//找到了 对应的科目余额表记录,则更改该科目余额表记录
_setfieldvalue($existKMYEItem,"7cc4cadac1e84ee6ab97c75681494d83",([7cc4cadac1e84ee6ab97c75681494d83:$existKMYEItem]+$jiefang)); //本年累计借方 = 本年累计借方+明细借方金额
//更新数据库
$updateCount = _UpdateSingleItem_Raw($existKMYEItem, true, false, "");
if ($updateCount <= 0)
_throw("Failed to update 科目余额表");
end if
end if;
end for
return true;
else
return false;
end if
基本约束
- 变量名称 必须以 $开头
- 参数名称必须以字母开头,不得以 $或者_开头
- 函数名必须以 下划线 _开头
- for循环中的循环变量 必须以 字符开头,不得以 $或者_开头
- 为了解析方便,代码不能分行
基础类型
介绍
RuiScript中不定义自己的数据类型,所以数据类型均为宿主代码的数据类型。基本可以分为 布尔值 数值类型,字符串类型,键值对,对象等
布尔值
最基本的数据类型就是简单的true/false值
$isDone = false;
if ($type == "normal")
数字
RuiScript统一使用double类型来表示所有的数字,不区分int和double
$decLiteral = 6;
字符串
字符串等同于宿主语言中的string类型。 但是只支持使用 ""来定义字符串,字符串中含有"的需要转义
$name = "smith";
数组
等同于宿主语言中的 List,本语言中需要使用 函数进行创建
$list = _list_new();
_list_add($list,"hello world!");
键值对 MapObj
等同于宿主语言中的 Map<string,object>
$map = _mapObj_new();
_mapObj_add($map,"name","smith");
_mapObj_add($map,"age",16);
$age = _mapObj_get($map,"age");
Object
等同于宿主语言中的对象,具体值 由系统提供的函数函数或者通过参数获取到
方法和函数
方法和函数通过如何方式定义和调用 函数可以通过 return 返回结果,方法不需要返回结果 定义:
function _6c1df6f2e30f4c34a6d10312c7b41980_clearOldDefaultTag(ownerID,aclItem,bool isNewCreate)
//在新记录之前做,可以避免查到新的记录
//如果新增加的默认地址,则需要将其他是默认地址的 地址都清除默认标志
if ([e5da53402dd7408584102c4c5fda9dbb:aclItem])
$where = _where_new();
_where_add($where,"e5da53402dd7408584102c4c5fda9dbb","Equal",true);
if (!(isNewCreate))
_where_add($where,"MyRangeKey","NotQqual",[MyRangeKey:aclItem]);
end if
$allExistDefaultAddress = _queryItems(ownerID,"2083ecec6ada46eba9d72d21765ae941",$where);
for(addressItem:$allExistDefaultAddress)
_setfieldvalue(addressItem,"e5da53402dd7408584102c4c5fda9dbb",false);
$affectCount = _UpdateSingleItem_Raw(addressItem, true, false, "");
if ($affectCount <1)
_throw("Failed to clear default tag of the old default address,please try again!");
end if
end for
end if
return true;
end function
循环
系统支持 for循环 针对一个 list进行循环
for(item : $list)
end for
使用开始和结束值进行循环
$indexArray = _range(1,100,1);
for(intdex:$indexArray)
end for
判断
脚本支持 if elseif else等判断分支
if ($type == 1)
//...
else if($type ==2) //可选
...
else if($type ==3) //可选
...
else //可选
...
end if
lambda 匿名函数
系统使用 ()=>的方式定义lambda函数
(ownerID,providerItemKey,env)=>
//...
$type = 5;
function _calc
//该函数中可以闭包使用 该lambda中的变量定义和参数
if (($type == 2) && ownerID="test")
//...
end if
end function
表达式
表达式,是由数字、算符、数字分组符号(括号)、自由变量和约束变量等以能求得数值的有意义排列方法所得的组合。约束变量在表达式中已被指定数值,而自由变量则可以在表达式之外另行指定数值。
| 类型 | 示例 | 表达式的值 |
|---|---|---|
| 一个变量 | $a | $a的值 |
| 一个常量 | "hello world!" false14 | 该常量的值 |
| 计算结果 | 4+6 $a+34 $type+"Hello" | 计算结果 |
| 逻辑判断表达式 | $type == "hello" | 逻辑判断结果 true或者false | 复杂表达式 | "测试结果为:"+_to_str($type=="hello") | 复杂表达式的计算结果 |
语句
赋值语句
使用表达式的计算结果,给某个变量进行赋值 $a = 1;
返回语句
函数执行结束,并且返回一个结果或者直接返回 return; return $test;
调用函数语句
调用执行某个函数 _setFieldValue(aclItem,"FieldCode",5);
控制语句
循环控制语句
for(item : $list) enf for分支控制语句
if (逻辑判断表达式) else if(逻辑判断表达式) else end if
异常处理 和finally
脚本支持 异常处理和finally处理 备注: try 和 endtry必不可少, catch和finally 二选一或者同时存在
try
$result=_showAndEdit(actionName,ownerID,actionOperateType,providerItemKey,$newItem,actionCode,envViables);
if ($result)
//$newRangeKey = _dataSource_AddItem(dataSource,_getobjectproperty($newItem,"SingleItem"),actionCode,envViables);
$newRangeKey = _dataSource_AddItem(dataSource, $newItem ,actionCode,envViables); //modify 2022.01.30 支持GetParam功能后改进
return (!(_isnullorempty($newRangeKey)));
else
return false;
end if
catch(Exception ex)
//什么都不做,执行下个循环
_showExceptionInfo(ex);
finally
//....
end try
脚本
脚本为 一段代码,其方式可以为简单方式或者标准方式
| 类型 | 示例 | 表达式的值 |
|---|---|---|
| 一行表达式 | $a=="hello" | 表达式的值 |
| 多行表达式和控制语句 |
$a = 5; if ($a == 2) ... else ... end if return true; | return的结果,本例中为 true |
| lambda |
(ownerID,params)=> $a = 5; if ($a == 2) ... else ... end if return $a; | return的结果,本例中为 $a的值 |
内置函数
function Declare Brief
_adddays Datetime _adddays(Datetime dt,int days) 在某个日期类型上 增加 或者 减少(负数) 天数
_addmonths Datetime _addmonths(Datetime dt,int months) 在某个日期类型上 增加 或者 减少(负数) 月数,找到对应月的day,如果没有则取最后一个day
_addSeconds Datetime _addSeconds(Datetime dt,int seconds) 在某个日期类型上 增加 或者 减少(负数) 秒数
_addyears Datetime _addyears(Datetime dt,int years) 在某个日期类型上 增加 或者 减少(负数) 年数
_alert void _alert(string message)
_atan number _atan(number angle)
_avg double _avg(List<object> list) 求平均值
_base64url_ByteArrayToStr string _base64url_ByteArrayToStr(byte[] byteArray) 将basd64url字符串 转换为 byte[]
_base64url_StrToByteArray byte[] _base64url_StrToByteArray(string strBase64url) 将basd64url字符串 转换为 byte[]
_callFunction object _callFunction(function fun,Map_object funParams) 调用一个函数
_callScriptFunction object|null _callScriptFunction(string functionName,List<object> functionParams) 调用一个脚本函数. functionName:函数名 functionParams:参数列表
_cashier bool _cashier(string caption,string ownerID,string ProviderItemKey,string ActionID,string rangeKey,PublicUI_OnlinePayRequestInfo PayRequest) 收款
_cashierWithCatalog bool _cashierWithCatalog(string caption,string ownerID,string ProviderItemKey,string ActionID,string rangeKey,PublicUI_OnlinePayRequestInfo PayRequest,string|List<string>|null|"" catalog) 收款(限定系统收款账号为某种指定的catalog或者指定的catalogList,支持空字符串和null,表示不限定)
_checkModuleScheme string _checkModuleScheme(string schemeInfo) 比较某个模块的 Scheme
_checkScheme string[] _checkScheme(string ownerID)
_codeNameMime_new PublicUI_CodeNameMimeType _codeNameMime_new(string code, string name, string mimeType/* Image icon*/, string publicUrl,string note,string catalog,string description)
_compondTableAndFieldReference_new CompondTableAndFieldReferenceHelper _compondTableAndFieldReference_new(string fieldReference,string tableReference,string version,strting related)
_confirm bool _confirm(string message)
_consoleDump void _consoleDump(string type,string name,object obj) dump对象到Console中
_consoleDumpScriptContext void _consoleDumpScriptContext(null|""|"context"|"var"|"ext"|"param"|"callstack" type) dump脚本上下文到Console中,默认为 var变量。 var:变量 ext:外部环境 param:参数堆栈 callstack:调用堆栈 context:整个上下文
_consoleLog void _consoleLog(object obj) 在cosoel中打印出对象
_consolePrint void _consolePrint(string message) 打印到外部Console中
_count int _count(List<object> list) 求个数
_dataSource_addChildDepend void _dataSource_addChildDepend(IRuiItemsManageDataSource dataSource,IRuiItemsManageDataSource childDataSource,bool isSelectMustNotNull,string|List<ItemServiceProviderCustomerCondition>|null dependInfo) 增加一个依赖于本数据源的 数据源
_dataSource_AddItem string _dataSource_AddItem(IRuiItemsManageDataSource dataSource,PublicUI_CompondItem_Value|PublicUI_CompondItem compondItemvalue,string actionCode,Dictionary<string, string> envViables) 向数据源中插入一条新记录
_dataSource_DeleteItem int _dataSource_DeleteItem(IRuiItemsManageDataSource dataSource,string actionCode,string hashKey,string|PublicUI_CompondItem_Value|PublicUI_CompondItem|number itemTobeDeleted,Dictionary<string, string> envViables) 从数据源中删除一条记录
_dataSource_flush void _dataSource_flush(IRuiItemsManageDataSource dataSource) 将数据源更新到数据库
_dataSource_ForceRefresh void _dataSource_ForceRefresh(IRuiItemsManageDataSource dataSource,string ownerID,bool isNotifyChanged) 要求数据源强制 刷新 isNotifyChanged:是否通知界面进行刷新
_dataSource_ForceRefreshItem void _dataSource_ForceRefreshItem(IRuiItemsManageDataSource dataSource,string ownerID,string hashKey,string rangeKey) 要求数据源强制 刷新 一条记录
_dataSource_getAllCompondItems List<PublicUI_CompondItem> _dataSource_getAllCompondItems(IRuiItemsManageDataSource dataSource) 获取本数据源的所有记录
_dataSource_GetParentICompondItem PublicUI_CompondItem|null _dataSource_GetParentICompondItem(IRuiItemsManageDataSource dataSource) 获取本数据源的parent记录
_dataSource_GetSelectedCompondItem_Values List<PublicUI_CompondItem_Value> _dataSource_GetSelectedCompondItem_Values(IRuiItemsManageDataSource dataSource) 从数据源中获取所有被选择的记录的PublicUI_CompondItem_Value集合
_dataSource_GetSelectedCompondItems List<PublicUI_CompondItem> _dataSource_GetSelectedCompondItems(IRuiItemsManageDataSource dataSource) 从数据源中获取所有被选择的记录的PublicUI_CompondItem集合
_dataSource_GetSelectedKeys List<string> _dataSource_GetSelectedKeys(IRuiItemsManageDataSource dataSource) 从数据源中获取所有被选择的记录的Key集合
_dataSource_GetSingleItem PublicUI_CompondItem _dataSource_GetSingleItem(IRuiItemsManageDataSource dataSource,string hashKey,string rangeKey, string actionCode,Dictionary<string, string> envViables) 从数据源中获取一条记录
_dataSource_GetSingleSelected PublicUI_CompondItem|null _dataSource_GetSingleSelected(IRuiItemsManageDataSource dataSource) 设置数据源中单选条目
_dataSource_GetSingleSelectedKey string|null _dataSource_GetSingleSelectedKey(IRuiItemsManageDataSource dataSource) 从数据源中获取被选择的单条记录,如果没有记录,则返回null
_dataSource_IsAllSelected bool _dataSource_IsAllSelected(IRuiItemsManageDataSource dataSource) 判断数据源中是否所有记录都被选择了,注意:当数据源为空时,返回false
_dataSource_IsSelected bool _dataSource_IsSelected(IRuiItemsManageDataSource dataSource,string|PublicUI_CompondItem_Value|PublicUI_CompondItem|number itemTobeUnSelected) 判断数据源中的一条记录是否被选择,注意: 如果直接指定itemTobeSelected,则必须使用 _makeKeyWithHashAndRangeKey(string hashKey,string rangeKey)进行先构造key
_dataSource_IsSingleSelected bool _dataSource_IsSingleSelected(IRuiItemsManageDataSource dataSource) 判断数据源中是否选择了单条记录,如果没有记录,则返回null
_dataSource_New IRuiItemsManageDataSource _dataSource_New(string providerItemKey, string name,string queryID,string|List<ItemServiceProviderCustomerCondition>|null fixedConditionList) 新建一个直连数据源
_dataSource_New_whitParam IRuiItemsManageDataSource _dataSource_New_withParam(string providerItemKey, string name,string queryID,string|List<ItemServiceProviderCustomerCondition>|null fixedConditionList,string getCompondParamActionCode) 新建一个直连数据源,同时指定paramCode
_dataSource_New_withParam IRuiItemsManageDataSource _dataSource_New_withParam(string providerItemKey, string name,string queryID,string|List<ItemServiceProviderCustomerCondition>|null fixedConditionList,string getCompondParamActionCode) 新建一个直连数据源,同时指定paramCode
_dataSource_NewSingleItem PublicUI_CompondItem _dataSource_NewSingleItem(IRuiItemsManageDataSource dataSource, string ownerID,string actionCode,Dictionary<string, string> envViables) 从数据源中新建一条记录
_dataSource_SelecteAll void _dataSource_SelecteAll(IRuiItemsManageDataSource dataSource) 选择数据源中的所有记录
_dataSource_setChildNotifyParent void _dataSource_setChildNotifyParent(IRuiItemsManageDataSource dataSource,IRuiItemsManageDataSource childDataSource,"New"|"Modify"|"Delete" operType,bool isParentForceSingleRefresh) 设置子数据源发生某个action的时候,parent数据源是否强制刷新对应的记录 operType:子数据源发生的操作 ,isParentForceSingleRefresh:当true时,parent数据源强制刷新对应记录
_dataSource_SetMultiSelectedOneKey void _dataSource_SetMultiSelectedOneKey(IRuiItemsManageDataSource dataSource,string|PublicUI_CompondItem_Value|PublicUI_CompondItem|number itemTobeSelected) 在多选模式下,选择一条记录,注意: 如果直接指定itemTobeSelected,则必须使用 _makeKeyWithHashAndRangeKey(string hashKey,string rangeKey)进行先构造key
_dataSource_SetMultiUnSelectedOneKey void _dataSource_SetMultiUnSelectedOneKey(IRuiItemsManageDataSource dataSource,string|PublicUI_CompondItem_Value|PublicUI_CompondItem|number itemTobeUnSelected) 在多选模式下,不选择一条记录,注意: 如果直接指定itemTobeSelected,则必须使用 _makeKeyWithHashAndRangeKey(string hashKey,string rangeKey)进行先构造key
_dataSource_SetSingleSelected void _dataSource_SetSingleSelected(IRuiItemsManageDataSource dataSource,string|PublicUI_CompondItem_Value|PublicUI_CompondItem|number|null itemTobeSelected) 设置数据源中单选条目
_dataSource_UnSelecteAll void _dataSource_UnSelecteAll(IRuiItemsManageDataSource dataSource) 选择数据源中的所有记录都标记为不选择
_dataSource_UpdateItem int _dataSource_UpdateItem(IRuiItemsManageDataSource dataSource,PublicUI_CompondItem_Value|PublicUI_CompondItem compondItemvalue,string actionCode,Dictionary<string, string> envViables) 向数据源中 update 一条记录
_dateCycleItems List<Date> _dateCycleItems(Datetime startDate,Datetime endDate,"week|month" cycleType,int cycleNum) 在两个日期间循环出现的日期集合 ,cycleType:循环类型 cycleNum:对应循环类型的数值 例如 week,则对应的每周的星期几, Month:每个月的第几天
_dateCycleTimes int _dateCycleTimes(Datetime startDate,Datetime endDate,"week|month" cycleType,int cycleNum) 在两个日期间循环出现的次数 ,cycleType:循环类型week|month cycleNum:对应循环类型的数值 例如 week,则对应的每周的星期几1-7, Month:每个月的第几天1-31
_dateof Date _dateof(Datetime dt) 取 某个日期类型 中的日期部分, 其他部分取0
_dayof int _dayof(DateTime dt)
_dayofweek int _dayofweek(Datetime dt)
_daysbetween double _daysbetween(Datetime startDate,Datetime endDate) 在两个日期之间相差的天数
_deleteItem int _deleteItem(string ownerID, string providerItemKey, string hashKey, string rangeKey,bool useVersionCheck,int modiSN)
_distinct List<Object> _distinct(List<Object> list,Func<object loopListItem,object keyToCompare> keySelectorExpression) 针对列表执行 distinct操作
_downloadFile string|blob _downloadFile(RuiFileSystem_IServiceProvider fileProvider,string path)
_editStore_CreateCompondStore PublicUI_CompondItem_Store _editStore_CreateCompondStore(PublicUI_CompondItem compondItem,bool isNewCreate,string actionCode,mapstr envViables) 创建一个 PublicUI_CompondItem_Store
_editStore_GetFieldValue object _editStore_GetFieldValue(IEditStore editStore,string fieldCode) 从 EditStore中 获取某个字段的值
_editStore_SetFieldValue void _editStore_SetFieldValue(IEditStore editStore,string fieldCode,object newValue) 设置某个字段的值到 EditStore中
_endsWith bool _endsWith(string str,string end) 是否已 end 结尾
_env object _end(string envKey) 获取 环境变量
_error void _error(string title,string content)
_escapeHtml4 string _escapeHtml4(string str) 转义html字符串中的 &等转义字符
_eval object _eval(string str)
_executeAction bool|NewRangeKey|string|int[]|string[] _executeAction(string ownerID, string providerItemKey,string actionID, PublicUI_CompondItem|string compondItem,Dictionary<string,string>|string envViables) 执行一个Action,当Action为Add操作类型的时候,返回的是新记录的MyRangeKey,其他情况下,可以返回 bool表示是否成功,或者返回string
_executeRSP string _executeRSP(string ownerID, string RSPID, {[key:string]:string} envViables)
_executeRSP_JPG Blob _executeRSP_JPG(string ownerID, string RSPID, int widthImage,int ,heightImage, string|null imageType,{[key:string]:string} envViables)
_executeRSP_PDF Blob _executeRSP_PDF(string ownerID, string RSPID, {[key:string]:string} envViables) 执行服务端的rsp,并且生成pdf的字节流
_exist bool _exist(List<object> listToMatch,Func<object loopListItem,bool result> predicateExpression) 判断是否存在符合某个条件的记录
_exportConfigData void _exportConfigData() 导出 ConfigData
_exportCurrentUserDataStr string _exportCurrentUserDataStr(List<String> tableGuidKeyList) 以json字符串的格式导出用户数据
_exportModuleUserDataStr string _exportModuleUserDataStr(string moduleCode,List<String> tableGuidKeyList) 以json字符串的格式导出某个指定模块的用户数据,如果tableGuidKeyList只有一个元素,且其值为*,则表示导出该模块的所有用户数据。模块编号必填
_exportScheme void _exportScheme() 导出 Scheme
_exportScheme_NewMode void _exportScheme_NewMode() 导出 新模式Scheme
_exportUserData RuiUserData _exportUserData(string ownerID,string moduleCode,List<String> tableGuidKeyList) 导出用户数据,moduleCode填写*表示所有模块,tableGuidKeyList如果只有一个元素,其该元素为*,则表示所有表
_external object _external(string key) 获取 执行上下文中 外部变量的值
_extractExcelData List<MapStr> _extractExcelData(string|ArrayBuffer data,int pageNoBase0,int headLineNoBase1,bool isIncludeBlankRow,bool isRaw,string|null dateFormatStr="YYYY-MM-DD HH:mm:ss") 从内容中提取 excel格式的内容. pageNoBase0:该页在excel文件页中的序号,0表示第一页 headLineNoBase1:标题行的行号,第一行为1. isIncludeBlankRow:是否包含空行 isRaw:是否返回raw原始数据 dateFormatStr:日期格式字符串,null表示 YYYY-MM-DD HH:mm:ss
_file_Download void _file_Download(string caption,Dictionary<string,string> urlAndNameList) 显示文件下载界面
_filter List<Object> _filter(List<Object> list,Func<object loopListItem,bool result> predicateExpression)
_first object _first(List<object> listToMatch,Func<object loopListItem,bool result> predicateExpression)
_firstdayofweek int _firstdayofweek(Datetime dt) 本星期的 第一天 的 00:00:00
_from_DateTime Date _from_DateTime(Date value) 将日期类型转换为格式为 2020-07-12 15:53:12 格式的标准序列化字符串
_from_Json string _from_Json(string jsonStr) 将一个json字符串反序列化为对象
_getChildCompondByTableCode List<PublicUI_CompondItem> _getChildCompondByTableCode(PublicUI_CompondItem item,String tableGuidKey) 根据子表Code 获取所有子表记录的 CompondItem 集合
_getChildCompondValueByTableCode List<PublicUI_CompondItem_Value> _getChildCompondValueByTableCode(PublicUI_CompondItem item,String tableGuidKey) 根据子表Code 获取所有子表记录的 CompondValue 集合
_getChildDataSourceByTableCode List<PublicUI_CompondItem_Value> _getChildDataSourceByTableCode(PublicUI_CompondItem item,String tableGuidKey) 根据子表code获取 子表的数据源
_getCompondItem_ValueField string _getCompondItem_ValueField(PublicUI_CompondItem_Value item,string key)
_getCompondItemField string _getCompondItemField(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 值
_getCompondItemFieldParam PublicUI_ParamDefineItem _getCompondItemFieldParam(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 param
_getCompondItemFieldReadable string _getCompondItemFieldReadable(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 可读的字符串
_getCompondItemFieldUnit string _getCompondItemFieldUnit(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 单位
_getCompondItemFieldValue object _getCompondItemFieldValue(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 原始值,值类型为字段的定义内容
_getCurreencyAbbr string _getCurreencyAbbr(string code) 获取货币缩写
_getCurrentOwner string _getCurrentOwner() 获取当前的 Owner
_getCurrentPath string _getCurrentPath() 获取当前路径
_getCurrentServerName string _getCurrentServerName() 获取当前连接的服务器的名称
_getModuleLanguage string _getModuleLanguage(string ownerID,string moduleID) 获取某个模块的多语言配置
_getModuleLanguageByIntlID string _getModuleLanguageByIntlID(string ownerID,string moduleID,string intlID) 获取某个模块的某个Intl的更新之后的最新的多语言配置
_getModuleScheme string _getModuleScheme(string moduleKey) 获取某个模块的 Scheme
_getModuleScheme_NewMode string _getModuleScheme_NewMode(string moduleKey) 获取某个模块的新模式下的 Scheme
_getNewSingleItem PublicUI_CompondItem _getNewSingleItem(string ownerID, string providerItemKey,string actionCode,Dictionary<string,string>|string envViables) 新建一条记录
_getNewSingleItem_whitParam PublicUI_CompondItem _getNewSingleItem_whitParam(string ownerID, string providerItemKey,string actionCode,Dictionary<string,string>|string envViables) 新建一条记录,同时获取params
_getobjectproperty object _getobjectproperty(object item,string propertyName) 获取对象属性值
_getSchemeItemDeclaration PublicUI_ItemDeclarationInfo _getSchemeItemDeclaration(string itemGuidKey) 获取某个 schemeItem 的 定义
_getSchemeItemReference RuiSchem_CheckResult _getSchemeItemReference(string itemGuidKey) 获取某个 schemeItem 的 引用情况
_getSingleItem PublicUI_CompondItem _getSingleItem(string ownerID,string providerItemKey,string hashKey,string rangeKey, string actionCode,Dictionary<string, string> envViables) 查询单条记录
_getSingleItem_whitParam PublicUI_CompondItem _getSingleItem_whitParam(string ownerID,string providerItemKey,string hashKey,string rangeKey, string actionCode,Dictionary<string, string> envViables) 查询单条记录,同时获取params
_getSingleItemCount int _getSingleItemCount(string ownerID, string providerItemKey, string hashKey, string rangeKey);
_getTypeParamInfo PublicUI_TypeParamScriptList _getTypeParamInfo(string typename)
_hash byte[]|string|null _hash(string message,"MD5"|"SHA1"|"SHA256"|"SHA512" hashType,"ByteArray"|"base64"|"base64url"|"hex" outType) 获取hash值
_hourMinute string _hourMinute(Datetime dt) 09:00
_hourMinuteSecond string _hourMinuteSecond(Datetime dt) 09:00:00
_hourof int _hourof(Datetime dt)
_hTML2Image bool _hTML2Image(string html,string name,string|null imageType,int|0 height,int|0 width) 将一个html字符串转化为Image并且保存到本地,类型为mimeType,例如 image/jpeg image/png
_iif object _iif(string condition, object valurForTrue, object valueForFalse)
_importScheme void _importScheme() 导入 Scheme
_importUserData void _importUserData() 以json字符串的格式导出用户数据
_info void _info(string title,string content)
_inlineEdit bool _inlineEdit(string captoin,Datasource dataSource) 显示一个 inlineEdit的窗体
_inputStr string _inputStr(string caption,string str,int maxLength) 输入字符串
_invoke object _invoke(object item,string methodName,list<object> params)
_isempty bool _isempty(object item)
_isnotnull bool _isnotnull(object item)
_isnull bool _isnull(object item)
_isnullorempty bool _isnullorempty(object item)
_join string _join(string separator ,List<object> list ) join 将list用分隔符组合起来
_lastdayofweek int _lastdayofweek(Datetime dt) 本星期的 最后一天 的 00:00:00
_lastdaytimeofweek int _lastdaytimeofweek(Datetime dt) 本星期的 最后一天 的 23:59:59
_length int _length(string value)
_list List<object> _list(object p1,...,int itemCount) 构造一个 list,返回 List<object>
_list_add void _list_add(List<object> list,object value)
_list_getByIndex object _list_getByIndex(List<object> list,int index) 获取一个List中对应索引的 记录,索引号从0开始
_list_new List<object> _list_new()
_makedate Datetime _makedate(int year, int month, int day)
_makedatetime Datetime _makedatetime(int year, int month, int day, int hour, int minute, int second)
_makeKeyWithHashAndRangeKey string _makeKeyWithHashAndRangeKey(string hashKey,string rangeKey) 使用 hashKey和 rangeKey 产生类似于 A_B的 Key
_makePayRequestInfo PublicUI_OnlinePayRequestInfo _makePayRequestInfo( int amountCent, string currencyName, string transactionNo, string transactionName, string transactionDescription) 构造收款信息
_makePayRequestInfoEx PublicUI_OnlinePayRequestInfo _makePayRequestInfoEx( int amountCent, string currencyName, string transactionNo, string transactionName, string transactionDescription,string specfiedRedisKey,MapStr|string|null envViables) 构造收款信息,包括 指定的 redisKey,也就是 银行系统的 orderReference
_makePublicUrl string _makePublicUrl(string userID,string identityKey,string initUrl,string token) 制作Action的url
_makeUrl String _makeUrl(String initUrl,String|null token,boolean isNeedLogin) 制作url,可以携带token或者不携带token, 可以要求用户登录或者不需要登陆
_makeUrl_Action string _makeUrl_Action(string ownerID,string actionID,string providerItemKey,string hashKey,string rangeKey) 制作Action的url
_makeUrl_ActionEx string _makeUrl_ActionEx(string ownerID,string actionID,string providerItemKey,string hashKey,string rangeKey,Dictionary<string, string>|string|null envViables) 制作Action的url
_makeUrl_Layout string _makeUrl_Layout(string ownerID,string layoutID) 制作Layout的url
_makeUrl_Menu String _makeUrl_Menu(String ownerID,String menuID) 制作Layout的url
_makeUrl_Query string _makeUrl_Query(string ownerID,string queryID) 制作query的url
_makeUrl_RSP string _makeUrl_RSP(string ownerID,string RSPID) 制作RSP的url
_mapObj_add void _mapObj_add(Dictionary<string,object> map,string key,any value)
_mapObj_addRange void _mapObj_addRange(Dictionary<string,object> map,Dictionary<string,string>|Dictionary<string,object> mapSource) 批量增加
_mapObj_clr void _mapObj_clr(Dictionary<string,object> map)
_mapObj_del bool _mapObj_del(Dictionary<string,object> map,string key)
_mapObj_get any _mapObj_get(Dictionary<string,object> map,string key)
_mapObj_isContainKey bool _mapObj_isContainKey(Dictionary<string,object> map,string key)
_mapObj_isContainValue bool _mapObj_isContainValue(Dictionary<string,object> map,any value)
_mapObj_Item_GetKey string _mapObj_Item_GetKey(KeyValuePair<string, object> item)
_mapObj_Item_GetValue object _mapObj_Item_GetValue(KeyValuePair<string, object> item)
_mapObj_new Dictionary<string,object> _mapObj_new()
_mapStr_add void _mapStr_add(Dictionary<string,string> map,string key,string value)
_mapStr_addRange void _mapStr_addRange(Dictionary<string,string> map,Dictionary<string,string> mapSource) 批量增加
_mapStr_clr void _mapStr_clr(Dictionary<string,string> map)
_mapStr_del bool _mapStr_del(Dictionary<string,string> map,string key)
_mapStr_get string _mapStr_get(Dictionary<string,string> map,string key)
_mapStr_isContainKey bool _mapStr_isContainKey(Dictionary<string,string> map,string key)
_mapStr_isContainValue bool _mapStr_isContainValue(Dictionary<string,string> map,string value)
_mapStr_new Dictionary<string,string> _mapStr_new()
_max double _max(List<object> list) 求最大值
_min double _min(List<object> list) 求最小值
_minuteof int _minuteof(Datetime dt)
_monthof int _monthof(DateTime dt)
_nearestDate Datetime _nearestDate(Datetime dt) 获取一个DateTime类型最近的在客户端时区上的最近的整日期。 例如 客户端为法国时区 则 2022-11-15 23:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC. 2022-11-16 08:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC
_newGuid string _newGuid() 生成一个新的小写的Guid
_now Datetime _now()
_number_to_str string _number_to_str(number value,int decpos) 将一个数字类型转为字符串, decpos表示表示到小数点后几位
_pad string _pad(string str,bool isLeft,int padtolength,string padChar)
_param object _param(string paramKey) 获取 参数值的值
_param_setInputType RuiParamElementDefine _param_setInputType(RuiParamElementDefine param,PublicUI_MyParamItemSelectType|string selectType, List<Object|PublicUI_ICodeNameMimeType>|string(竖线隔开) items))
_print void _print(string message) 输出到外部环境中
_publicParam_New JsonObject _publicParam_New(string code,string name,"StringType"|"Int32Type"|"DoubleType"|"BooleanType"|"DateTimeType"|null type,string|null subType) 新建一个 PublicParam对象
_queryCount int _queryCount(stirng ownerID,string providerItemKey,string whereListinJson) 查询复合条件的记录个数
_queryItems PublicUI_ListResult _queryItems(stirng ownerID,string providerItemKey,string whereListinJson) 查询多条记录
_queryItems_whitParam PublicUI_ListResult _queryItems_whitParam(stirng ownerID,string providerItemKey,string whereListinJson,string actionCode) 查询多条记录,同时返回这些记录的params
_randNumber string _randNumber(int len) 产生一个n位的随机数字
_range List<int> _range(int start, int stop, int step) 可创建一个整数列表,一般用在 for 循环中,for(int i=start; (step>0)?(i<=stop):(i>=stop); i +=step)
_range_CalIntersect List<Object> _range_CalIntersect(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 计算一个范围和另一个返回的交集,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致,返回List中,第一个元素为begin,第2个元素为end,依次类推,如果结合为空,则表示空集合
_range_CalUnion List<Object> _range_CalUnion(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 计算一个范围和另一个返回的并集,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致,返回List中,第一个元素为begin,第2个元素为end,依次类推,如果结合为空,则表示空集合
_rangeContain bool _rangeContain(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 判断A范围是否包含B范围,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致
_rangeIntersect bool _rangeIntersect(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 判断一个范围是否是交叠的,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致
_readFile string|ArrayBuffer|null _readFile(string caption,string acceptFileType,bool isReadAsString) 读取一个文件
_round double _round(double value,int decimalPos,PublicRoundTypeEnum|string|null roundType = PublicRoundTypeEnum.Round) 四舍五入
_ruisystemsetreturnvalue void _ruisystemsetreturnvalue(object value) 设置返回值为value
_runCompondStr string _runCompondStr(string compondStr,string ownerID ,Dictionary<string,object>|null params) 执行一段组合字符串代码
_runRSP string _runRSP(string script,string ownerID ,Dictionary<string,object>|null params) 执行一段RSP代码
_runScript object|null _runScript(string script,string ownerID ,Dictionary<string,object>|null params) 执行一段脚本代码
_saveFile string _saveFile(RuiFileSystem_IServiceProvider fileProvider,Blob blob,string path,bool isSetPublic)
_saveLocal bool _saveLocal(string name,string|blob data) 保存到本地文件
_searchUsers string _searchUsers(string searchStr) 搜索账号(按照ID Email Name 模糊过滤)
_secondof int _secondof(Datetime dt)
_select List<Object> _select(List<Object> list,Func<object loopListItem,object result> mapExpression) 将所有的记录 map 成新的object
_selectFromList List<object> _selectFromList(string formCaption,PublicListWindowOperateType|string operType,items:List<object>) 从 列表 中选择一条记录
_selectItem List<PublicUI_CompondItem_Value> _selectItem(string ownerID,string formCaption,string tableCode,string|List<ItemServiceProviderCustomerCondition>|null where,PublicListWindowOperateType|string operType) 根据 字段 关联的 relatedForeignInfo 选择一条或者n条记录记录
_selectUser string|null _selectUser() 选择一个用户
_seperateEcoleData string[] _seperateEcoleData(string seperateEcoleCode,string newOwnerID)
_serialiDate string _serialiDate(Datetime dt) 按照标准格式序列化一个时间类型,标准格式为 yyyy-MM-DD HH:MI:SS,其时间为不含时区信息的格林尼治时间
_setCompondItem_ValueField void _setCompondItem_ValueField(PublicUI_CompondItem_Value item,string key,string newValue)
_setCompondItemField void _setCompondItemField(PublicUI_CompondItem item,string key,string newValue)
_setobjectproperty void _setobjectproperty(object item,String propertyName,object newValue) 设置对象属性值
_showall string _showall()
_showall_server string _showall_server() 显示服务端的所有函数
_showAndEdit void _showAndEdit(string caption,string ownerID,string|PublicActionOperateType actionOperateType,string providerItemKey,PublicUI_CompondItem compondItem,string actionCode,Dictionary<string, string>|string envViables) 弹出编辑界面
_showAndEditWithPage void _showAndEditWithPage(string caption,string ownerID,string|PublicActionOperateType actionOperateType,string providerItemKey,PublicUI_CompondItem compondItem,string actionCode,string customerPageCode,Dictionary<string, string>|string envViables,int width) 弹出编辑界面,模板为自定义页面
_showExceptionInfo void _showExceptionInfo(Exception err)
_showfunction string _showfunction(string functionname)
_showfunction_server string _showfunction_server(string functionName) 显示服务端的某些函数
_showInfo void _showInfo(string caption,string message)
_showModal int _showModal(string caption,string pageKey,string ownerID,mapObj bundle) 模态显示一个Page,并且获取到结果.常量 内置常量 modalResult_cancel:0(取消时),modalResult_ok:1(OK确定时) 其他数值用户可以自己直接使用。如果需要返回其他回数据,则需要再返回前 放到bundle中
_showModalWithOption int _showModalWithOption(string caption,string pageKey,string ownerID,mapObj bundle,bool isShowHead,bool isShowFoot,string|null OkText,string|null cancelText) 模态显示一个Page,并且获取到结果.常量 内置常量 modalResult_cancel:0(取消时),modalResult_ok:1(OK确定时) 其他数值用户可以自己直接使用。如果需要返回返回数据,则需要再返回前 放到bundle中
_showParamEdit bool _showParamEdit(string caption,string ownerID,List<PublicUI_ParamDefineItem> params,Dictionary<string, string>|string mapStrValue) 弹出Params编辑界面
_showReference bool _showReference(string ownerID,string caption, string key,bool isRefreshWhenShow) 提示一个 key 的 reference
_showResult void _showResult(string caption,PublicUI_ListResult listResult) 弹出编辑界面
_signResources string _signResources(string ownerID,string userID,string toIdentityKey,int tokenSeconds,List<string> limitedResourceKeys) 签名资源
_sort void _sort(List<Object> listToSort,Func<loopImte,object>|null KeySelector,bool isDesc) 使用后面的keySelector进行排序操作
_split List<string> _split(string seperator,string value)
_startsWith bool _startsWith(string str,string start) 是否已 start 开头
_strset_contain bool _strset_contain(strset setA,strset setB,srting seperator) 集合setA中是否包含setB,分隔符为seperator. 例如 $iscontain = _strset_contain("A,B,C","C,B",",");
_substr string _substr(string value, int startPos, int length) 返回结果:获取一个子字符串 starPos:从开始的索引号 lenth:获取长度,当超过最大长度的时候,取到字符串结尾
_success void _success(string title,string content)
_sum double _sum(List<object> list) 求和
_tan number _tan(number angle)
_throw _throw(string message) 抛出异常
_throwWithType _throwWithType("BAD_REQUEST"|"UNAUTHORIZED"|"NOT_FOUND"|"FORBIDDEN"|"INTERNAL_SERVER_ERROR"|"NETWORK_ERROR" exceptionType,string message) 按照类型抛出异常,抛出类型为 PublicExceptionType枚举定义的
_to_DateTime Date _to_DateTime(string|Date value) 转换成日期类型
_to_fixed string _to_fixed(object value,int fixed)
_to_Json string _to_Json(object obj) 将一个对象转换为json字符串
_to_number double _to_number(string value)
_to_number_default double _to_number_default(string value,double defaultValue)
_to_str string _to_str(object value)
_transDataFromCDFTableToJsonField string[] _transDataFromCDFTableToJsonField(string ownerID)
_unescapeHtml4 string _unescapeHtml4(string str) 反转义html字符串中的 &等转义字符
_updateModuleScheme string _updateModuleScheme(string schemeInfo) 更新某个模块的 Scheme
_updateScheme string[] _updatScheme(string ownerID)
_urldecode string _urldecode(string str)
_urlencode string _urlencode(string str)
_warning void _warning(string title,string content)
_weekofyear int _weekofyear(Datetime dt) 返回结果:一年中的具体星期 1-57 表示一年中的第几个星期
_where_add void _where_add(List<ItemServiceProviderCustomerCondition> where,string code,string compare,sring|bool|Date|double|int value)
_where_addCondition void _where_addCondition(List<ItemServiceProviderCustomerCondition> where,ItemServiceProviderCustomerCondition item)
_where_new List<ItemServiceProviderCustomerCondition> _where_new()
_where_newCondition ItemServiceProviderCustomerCondition _where_newCondition(string code,string|ItemServiceProviderCompareType compare,sring|bool|Date|double|int value) 新建一条Condition记录
_wholeBetween int _wholeBetween(Datetime startDate,Datetime endDate,"day"|"week"|"month"|"year"|"hour"|"minute"|"second" type) 在两个日期之间相差的整周|月|年|小时|分|秒数,例如 同时在一个天|周|月|年|小时|分|秒内,则返回 0,上天|周|月|年|小时|分|秒内,则返回1,以此类推,支持负数
_yearmonth string _yearmonth(Datetime dt) 2018-02
_yearmonthday string _yearmonthday(Datetime dt) 2018-02-30
_yearmonthdayshort string _yearmonthdayshort(Datetime dt) 20180230
_yearmonthshort string yearmonthshort(Datetime dt) 201802
_yearof int _yearof(Datetime dt)
服务端函数
function Declare Brief
_yearof_client int _yearof_client(Datetime dt)
_yearof int _yearof(Datetime dt)
_yearmonthshort_client String _yearmonthshort_client(Datetime dt) 201802
_yearmonthshort String _yearmonthshort(Datetime dt) 201802
_yearmonthdayshort_client String _yearmonthdayshort_client(Datetime dt) 20180230
_yearmonthdayshort String _yearmonthdayshort(Datetime dt) 20180230
_yearmonthday_client String _yearmonthday_client(Datetime dt) 2018-02-30
_yearmonthday string _yearmonthday(Datetime dt) 2018-02-30
_yearmonth_client String _yearmonth_client(Datetime dt) 2018-02
_yearmonth string _yearmonth(Datetime dt) 2018-02
_wholeBetween int _wholeBetween(Datetime startDate,Datetime endDate,"day"|"week"|"month"|"year"|"hour"|"minute"|"second" type) 在两个日期之间相差的整周|月|年|小时|分|秒数,例如 同时在一个天|周|月|年|小时|分|秒内,则返回 0,上天|周|月|年|小时|分|秒内,则返回1,以此类推,支持负数
_where_newCondition ItemServiceProviderCustomerCondition _where_newCondition(String code,String|ItemServiceProviderCompareType compare,sring|bool|Date|double|int value) 新建一条Condition记录
_where_new List<ItemServiceProviderCustomerCondition> _where_new()
_where_addCondition void _where_addCondition(List<ItemServiceProviderCustomerCondition> where,ItemServiceProviderCustomerCondition item)
_where_add void _where_add(List<ItemServiceProviderCustomerCondition> where,String code,String compare,sring|bool|Date|double|int value)
_weekofyear_client int _weekofyear_client(Datetime dt) 返回结果:一年中的具体星期 1-57 表示一年中的第几个星期
_weekofyear int _weekofyear(Datetime dt) 返回结果:一年中的具体星期 1-57 表示一年中的第几个星期
_urlencode String _urlencode(String str)
_urldecode String _urldecode(String str)
_unescapeHtml4 string _unescapeHtml4(string str) 反转义html字符串中的 &等转义字符
_to_str string _to_str(object value)
_to_number_default double _to_number_default(string value,double defaultValue)
_to_number double _to_number(string value)
_to_fixed string _to_fixed(object value,int fixed)
_to_DateTime Date _to_DateTime(string|Date value) 转换成日期类型
_toPublicUI_CodeNameMimeType List<PublicUI_ICodeNameMimeType> _toPublicUI_CodeNameMimeType(List<Object> items))
_throwWithType _throwWithType("BAD_REQUEST"|"UNAUTHORIZED"|"NOT_FOUND"|"FORBIDDEN"|"INTERNAL_SERVER_ERROR"|"NETWORK_ERROR" exceptionType,String message) 按照类型抛出异常,抛出类型为 PublicExceptionType枚举定义的
_throw _throw(string message) 抛出异常
_tan number _tan(number angle)
_sum double _sum(List<object> list) 求和
_substr string _substr(string value, int startPos, int length) 返回结果:获取一个子字符串 starPos:从开始的索引号 lenth:获取长度,当超过最大长度的时候,取到字符串结尾
_strset_contain bool _strset_contain(strset setA,strset setB,srting seperator) 集合setA中是否包含setB,分隔符为seperator. 例如 $iscontain = _strset_contain("A,B,C","C,B",",");
_startsWith boolean _startsWith(String str,String start) 是否已 start 开头
_split List<String> _split(String seperator,String value)
_sortbyfield void _sortbyfield(List<Object> listToSort,string OrderByCodeList) 使用后面的回调函数表达式中 获取到的变量进行 排序操作
_sort void _sort(List<Object> listToSort,Func<loopImte,object>|null KeySelector,bool isDesc) 使用后面的keySelector进行排序操作
_signResources String _signResources(String userID,String toIdentityKey,int tokenSeconds,List<String> limitedResourceKeys) 签名资源
_showfunction String _showfunction(String functionname)
_showall String _showall()
_setobjectproperty void _setobjectproperty(object item,String propertyName,object newValue) 设置对象属性值
_setfieldvalue void _setfieldvalue(Object item,string fieldCode,Object newValue) 设置字段值
_setCompondItem_ValueField_Server void _setCompondItem_ValueField_Server(CompondItem_Value compondItem_Value,string key,object newValue)
_setCompondItem_ValueField void _setCompondItem_ValueField(PublicUI_CompondItem_Value item,String key,String newValue)
_setCompondItemField void _setCompondItemField(PublicUI_CompondItem item,String key,String newValue)
_serialiDate string _serialiDate(Datetime dt) 按照标准格式序列化一个时间类型,标准格式为 yyyy-MM-DD HH:MI:SS,其时间为不含时区信息的格林尼治时间
_sendmailwithparam_start boolean _sendmailwithparam_start(stirng smtpServer,int port,boolean isSSL,stinrg userName,String password,String from,String to,String cc,String subject,String text,String html) 使用参数发送邮件
_sendmailwithparamAndBcc_start boolean _sendmailwithparamAndBcc_start(stirng smtpServer,int port,boolean isSSL,stinrg userName,String password,String from,String to,String cc,string bcc,String subject,String text,String html)
_sendmailwithparamAndBcc boolean _sendmailwithparamAndBcc(stirng smtpServer,int port,boolean isSSL,stinrg userName,String password,String from,String to,String cc,string bcc,String subject,String text,String html)
_sendmailwithparam boolean _sendmailwithparam(stirng smtpServer,int port,boolean isSSL,stinrg userName,String password,String from,String to,String cc,String subject,String text,String html) 使用参数发送邮件
_sendmailWithBcc boolean _sendmailWithBcc(String from,String to,String cc,String bcc,String subject,String text,String html)
_sendmail bool _sendmail(string from,string to,string cc,string subject,string text,string html) 发送邮件
_select List<Object> _select(List<Object> list,Func<object loopListItem,object result> mapExpression) 将所有的记录 map 成新的object
_secondof_client int _secondof_client(Datetime dt)
_secondof int _secondof(Datetime dt)
_saveFileToS3 string _saveFileToS3(InputStream|string|byte[] input,string path,bool isSetPublic) 保存文件到S3
_runScript object|null _runScript(string script,string ownerID ,Dictionary<string,object>|null params) 执行一段脚本代码
_runRSP String _runRSP(string script,string ownerID ,Dictionary<string,object>|null params) 执行一段RSP代码
_runCompondStr String _runCompondStr(string compondStr,string ownerID ,Dictionary<string,object>|null params) 执行一段组合字符串代码
_ruisystemsetreturnvalue void _ruisystemsetreturnvalue(object value) 设置返回值为value
_round double _round(double value,int decimalPos,PublicRoundTypeEnum|String|null roundType = PublicRoundTypeEnum.Round) 四舍五入
_readFromS3 string|byte[] _readFromS3Str(string url,"string"|"byteArray" type) 从S3读取文件
_reCalculate void _reCalculate(String ownerID, String providerItemKey, boolean isNewCreate, String justChangedFieldCode, String actionCode, CompondItem_Value|OwnerIDAsHashKey_ORM value,MapStr|String envViables,bool isForceRecalculate) 重新计算一个 ACLItem_ORM或者CompondItem_Value
_range_CalUnion List<Object> _range_CalUnion(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 计算一个范围和另一个返回的并集,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致,返回List中,第一个元素为begin,第2个元素为end,依次类推,如果结合为空,则表示空集合
_range_CalIntersect List<Object> _range_CalIntersect(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 计算一个范围和另一个返回的交集,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致,返回List中,第一个元素为begin,第2个元素为end,依次类推,如果结合为空,则表示空集合
_rangeIntersect bool _rangeIntersect(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 判断一个范围是否是交叠的,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致
_rangeContain bool _rangeContain(int|double|DateTime ABegin,int|double|DateTime AEnd,int|double|DateTime BBegin,int|double|DateTime BEnd) 判断A范围是否包含B范围,范围可以为 double int类型的范围,也可以是 datetime类型的范围,但是类型必须一致
_range List<int> _range(int start, int stop, int step) 可创建一个整数列表,一般用在 for 循环中,for(int i=start; (step>0)?(i<=stop):(i>=stop); i +=step)
_randNumber string _randNumber(int len) 产生一个n位的随机数字
_querySingleItem object|null _querySingleItem(String ownerID,String providerItemKey,String|List<ItemServiceProviderCustomerCondition>|null where) 查询单条记录,可能返回null表示没查到,或者返回一条记录。 如果查询到多条件记录,则会抛出异常
_queryItems_Order List<object> _queryItems_Order(String ownerID,String providerItemKey,String|List<ItemServiceProviderCustomerCondition>|null where,String|null orderby) 查询记录排序,orderbyge格式 FIELD1,FIELD2 DSC,FIELD3 ASC
_queryItems List<Object> _queryItems(string ownerID,string providerItemKey,string|List<ItemServiceProviderCustomerCondition>|null where) 查询记录
_queryFirstItem_Order object|null _queryFirstItem_Order(String ownerID,String providerItemKey,String|List<ItemServiceProviderCustomerCondition>|null where,String|null orderby) 查询排序之后的第一条记录(null表示没有查询到记录) 记录排序,orderbyge格式 FIELD1,FIELD2 DSC,FIELD3 ASC
_queryFirstItem object|null _queryFirstItem(String ownerID,String providerItemKey,String|List<ItemServiceProviderCustomerCondition>|null where) 查询第一条记录,可能返回null表示没查到,或者返回第一条记录。
_queryCount int _queryCount(string ownerID,string providerItemKey,string|List<ItemServiceProviderCustomerCondition>|null where ) 查询个数
_publicParam_New JsonObject _publicParam_New(string code,string name,"StringType"|"Int32Type"|"DoubleType"|"BooleanType"|"DateTimeType"|null type,string|null subType) 新建一个 PublicParam对象
_print void _print(string message) 输出到外部环境中
_param_setReadOnly RuiParamElementDefine _param_setReadOnly(RuiParamElementDefine param,boolean isReadOnly) 设置参数为只读
_param_setInputType RuiParamElementDefine _param_setInputType(RuiParamElementDefine param,PublicUI_MyParamItemSelectType|string selectType, List<Object|PublicUI_ICodeNameMimeType>|string(竖线隔开) items))
_param_setInputType RuiParamElementDefine _param_setInputType(RuiParamElementDefine param,PublicUI_MyParamItemSelectType|String selectType, List<Object|PublicUI_ICodeNameMimeType>|string(竖线隔开) items))
_param_setDateRange RuiParamElementDefine _param_setDateRange(RuiParamElementDefine param,DateTime minValue,DateTime maxValue) 设置参数 作为日期类型的 最大值和最小值
_param object _param(string paramKey) 获取 参数值的值
_pad string _pad(string str,bool isLeft,int padtolength,string padChar)
_number_to_str String _number_to_str(number value,int decpos) 将一个数字类型转为字符串, decpos表示表示到小数点后几位
_now Datetime _now()
_newOrUpdateUserRole int _newOrUpdateUserRole(String ownerID, String applyFutuID,String roleID) 新建或者更新UserRole信息
_newOrUpdateMember int _newOrUpdateMember(String ownerID, String applyFutuID,String catalog) 新建或者更新Member信息
_newGuid string _newGuid() 生成一个新的小写的Guid
_newAndInit ACLItem_ORM newAndInit(string ownerID,String providerItemKey, Dictionary<String, String> bundle) 新建一条记录
_nearestDate_client Datetime _nearestDate_client(Datetime dt) 获取一个DateTime类型最近的在客户端时区上的最近的整日期。 例如 客户端为法国时区 则 2022-11-15 23:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC. 2022-11-16 08:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC
_nearestDate Datetime _nearestDate(Datetime dt) 获取一个DateTime类型最近的在服务端时区上的最近的整日期。 例如 服务器为法国时区 则 2022-11-15 23:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC. 2022-11-16 08:00:00 UTC的 最近日期为 2022-11-16 00:00:00 UTC
_monthof_client int _monthof_client(DateTime dt)
_monthof int _monthof(DateTime dt)
_minuteof_client int _minuteof_client(Datetime dt)
_minuteof int _minuteof(Datetime dt)
_min double _min(List<object> list) 求最小值
_mergeModuleScheme string _mergeModuleScheme(string scheme_Module,string existScheme) 比较同一个module的scheme内容差异
_max double _max(List<object> list) 求最大值
_mapStr_new Dictionary<String,String> _mapStr_new()
_mapStr_isContainValue boolean _mapStr_isContainValue(Dictionary<String,String> map,String value)
_mapStr_isContainKey boolean _mapStr_isContainKey(Dictionary<String,String> map,String key)
_mapStr_get String _mapStr_get(Dictionary<String,String> map,String key)
_mapStr_del boolean _mapStr_del(Dictionary<String,String> map,String key)
_mapStr_clr void _mapStr_clr(Dictionary<String,String> map)
_mapStr_addRange void _mapStr_addRange(Dictionary<String,String> map,Dictionary<String,String> mapSource) 批量增加
_mapStr_add void _mapStr_add(Dictionary<String,String> map,String key,String value)
_mapObj_new Dictionary<string,object> _mapObj_new()
_mapObj_isContainValue boolean _mapObj_isContainValue(Dictionary<string,object> map,object value)
_mapObj_isContainKey boolean _mapObj_isContainKey(Dictionary<string,object> map,String key)
_mapObj_get object _mapObj_get(Dictionary<string,object> map,String key)
_mapObj_del boolean _mapObj_del(Dictionary<string,object> map,String key)
_mapObj_clr void _mapObj_clr(Dictionary<string,object> map)
_mapObj_addRange void _mapObj_addRange(Dictionary<string,object> map,Dictionary<string,string>|Dictionary<string,object> mapSource) 批量增加
_mapObj_add void _mapObj_add(Dictionary<string,object> map,String key,object value)
_mapObj_Item_GetValue object _mapObj_Item_GetValue(KeyValuePair<String, object> item)
_mapObj_Item_GetKey String _mapObj_Item_GetKey(KeyValuePair<String, object> item)
_makedatetime_client Datetime _makedatetime_client(int year, int month, int day, int hour, int minute, int second)
_makedatetime Datetime _makedatetime(int year, int month, int day, int hour, int minute, int second)
_makedate_client Datetime _makedate_client(int year, int month, int day)
_makedate Datetime _makedate(int year, int month, int day)
_makeUrl_RuiPage String _makeUrl_RuiPage(String ownerID,String ruiPageID) 制作RuiPage的url
_makeUrl_RSP string _makeUrl_RSP(string ownerID,string RSPID) 制作RSP的url
_makeUrl_Query string _makeUrl_Query(string ownerID,string queryID) 制作query的url
_makeUrl_Menu String _makeUrl_Menu(String ownerID,String menuID) 制作Layout的url
_makeUrl_Layout string _makeUrl_Layout(string ownerID,string layoutID) 制作Layout的url(因为新的权限策略,布局已经无法直接访问,所以慎用这个函数)
_makeUrl_ActionEx string _makeUrl_ActionEx(string ownerID,string actionID,string providerItemKey,string hashKey,string rangeKey,Dictionary<string, string>|string|null envViables) 制作Action的url
_makeUrl_Action string _makeUrl_Action(string ownerID,string actionID,string providerItemKey,string hashKey,string rangeKey) 制作Action的url
_makeUrl String _makeUrl(String initUrl,String|null token,boolean isNeedLogin) 制作url,可以携带token或者不携带token, 可以要求用户登录或者不需要登陆
_makePublicUrl String _makePublicUrl(String userID,String identityKey,String initUrl,String token) 制作携带token的url(不推荐使用,建议使用_makeUrl代替)
_makeKeyWithHashAndRangeKey string _makeKeyWithHashAndRangeKey(string hashKey,string rangeKey) 使用 hashKey和 rangeKey 产生类似于 A_B的 Key
_list_new List<object> _list_new()
_list_getByIndex object _list_getByIndex(List<object> list,int index) 获取一个List中对应索引的 记录,索引号从0开始
_list_add void _list_add(List<object> list,object value)
_list List<object> _list(object p1,...,int itemCount) 构造一个 list,返回 List<object>
_length int _length(string value)
_lastdaytimeofweek_client Datetime _lastdaytimeofweek_client(Datetime dt) 本星期的 最后一天 的 23:59:59
_lastdaytimeofweek Datetime _lastdaytimeofweek(Datetime dt) 本星期的 最后一天 的 23:59:59
_lastdayofweek_client Datetime _lastdayofweek_client(Datetime dt) 本星期的 最后一天 的 00:00:00
_lastdayofweek Datetime _lastdayofweek(Datetime dt) 本星期的 最后一天 的 00:00:00
_json_parseArray JsonArray _json_parseArray(string jsonStr) 解析字符串获取JsonArray对象
_json_parse JsonObject _json_parse(string jsonStr) 解析字符串获取JsonObject对象
_json_newJsonObjectBuilder JsonObject _json_newJsonObjectBuilder() 新建一个JsonObjectBuilder对象
_json_newJsonArrayBuilder JsonArrayBuilder _json_newJsonArrayBuilder() 新建一个JsonArrayBuilder对象
_json_getString_Default string _json_getString_Default(JsonObject jsonObject,string name,string defaultValue) 从json对象中获取一个字符串,如果没有,则返回默认值
_json_getString string _json_getString(JsonObject jsonObject,string name) 从json对象中获取一个字符串
_json_getObject JsonObject _json_getObject(JsonObject jsonObject,string name) 从json对象中获取一个Json对象
_json_getInt_Default int _json_getInt_Default(JsonObject jsonObject,string name,int defaultValue) 从json对象中获取一个整数,如果没有,则返回默认值
_json_getInt int _json_getInt(JsonObject jsonObject,string name) 从json对象中获取一个整型值
_json_getDouble_Default double _json_getDouble_Default(JsonObject jsonObject,string name,double defaultValue) 从json对象中获取一个Double,如果没有,则返回默认值
_json_getDouble double _json_getDouble(JsonObject jsonObject,string name) 从json对象中获取一个Double
_json_getBoolean_Default bool _json_getBoolean_Default(JsonObject jsonObject,string name,bool defaultValue) 从json对象中获取一个bool类型,如果没找找到,则返回默认值
_json_getBoolean bool _json_getBoolean(JsonObject jsonObject,string name) 从json对象中获取一个bool类型
_json_getArray List<JsonValue> _json_getArray(JsonObject jsonObject,string name) 从json对象中获取一个Json数组
_json_builderToString string _json_builderToString(JsonObjectBuilder builder) 将一个JsonObjectBuilder对象转为字符串
_json_arrayBuilderToString string _json_arrayBuilderToString(JsonArrayBuilder builder) 将一个JsonArrayBuilder对象转为字符串
_json_addStr JsonArrayBuilder _json_addStr (JsonArrayBuilder builder, string value) 向JsonArrayBuilder中插入一个字符串值
_json_addJsonObjectBuilder JsonArrayBuilder _json_addJsonObjectBuilder(JsonArrayBuilder builder, JsonObjectBuilder value) 向JsonArrayBuilder中插入一个Builder
_json_addJsonArrayBuilder JsonArrayBuilder _json_addJsonArrayBuilder (JsonArrayBuilder builder, JsonArrayBuilder value) 向JsonArrayBuilder中插入一个ArrayBuilder
_json_addInt JsonArrayBuilder _json_addInt (JsonArrayBuilder builder, int value) 向JsonArrayBuilder中插入一个整形值
_json_addDouble JsonArrayBuilder _json_addDouble (JsonArrayBuilder builder, double value) 向JsonArrayBuilder中插入一个Double值
_json_addDate JsonObjectBuilder _json_addDate (JsonObjectBuilder builder,string name, Date value) 向JsonObjectBuilder中插入一个日期值
_json_addBool JsonArrayBuilder _json_addBool (JsonArrayBuilder builder, boolean value) 向JsonArrayBuilder中插入一个bool值
_join String _join(String separator ,List<object> list ) join 将list用分隔符组合起来
_isnullorempty bool _isnullorempty(object item)
_isnull bool _isnull(object item)
_isnotnull bool _isnotnull(object item)
_isempty bool _isempty(object item)
_isIndexedField boolean _isIndexedField(String ownerID, String tableCode,String fieldCode) 该字段是否是索引字段
_invoke object _invoke(object item,String methodName,list<object> params)
_iif object _iif(string condition, object valurForTrue, object valueForFalse)
_htmlToPdf byte[] _htmlToPdf(sring html) 将pdf字符串转换为PDF bye[]
_hourof_client int _hourof_client(Datetime dt)
_hourof int _hourof(Datetime dt)
_hourMinute_client String _hourMinute_client(Datetime dt) 09:00
_hourMinuteSecond_client String _hourMinuteSecond_client(Datetime dt) 09:00:00
_hourMinuteSecond String _hourMinuteSecond(Datetime dt) 09:00:00
_hourMinute String _hourMinute(Datetime dt) 09:00
_hash byte[]|String|null _hash(String message,"MD5"|"SHA1"|"SHA256"|"SHA512" hashType,"ByteArray"|"base64"|"base64url"|"hex" outType) 获取hash值
_hTML2Image byte[] _hTML2Image(string html,string|null imageType,int|0 height,int|0 width) 将一个html字符串转化为Image,返回byte[],类型为mimeType,例如 image/jpeg image/png
_gettemplate String _gettemplate(String ownerID,String templateID,,Dictionary<string, object>|null mapObj) 获取 模板内容
_getobjectproperty object _getobjectproperty(object item,String propertyName) 获取对象属性值
_getfieldvalue Object _getfieldvalue(Object item,string fieldCode) 获取字段值
_getfieldname string _getfieldname(string owner,string tableCode,string fieldCode) 获取字段的名称
_getfieldinfo IPublicFieldInfo _getfieldinfo(string owner,string tableCode,string fieldCode) 获取字段信息
_getcompondtablefieldcodevalue Object _getcompondtablefieldcodevalue(string tableFieldExpression) 当使用 [FieldCode@TableCode#Version:aclItem] 格式的时候,会被自动转换为 这个 函数 进行处理,获取一个表达式的值
_getUserInfo object _getUserInfo(string futuID, "Name"|"Surname"|"EMail"|"Avatar" fieldType) 获取 Futu UserInfo中的具体字段
_getSingleItem Object _getSingleItem(String ownerID,String providerItemKey,String hashKey,String rangeKey) 查询单条记录
_getResources List<object|IPublicResourceInfo> _getResources(string ownerID, string limitModuleCodeOrNull) 获取所有资源或者某个模块的资源
_getResourceCatalog String _getResourceCatalog(String ownerID, String resourceKey) 获取一个字段的catalog
_getNextSeq int _getNextSeq(String ownerID,String seqName) 获取该序列器的下一个序列号
_getMultilanguage_TableData String _getMultilanguage_TableData(String ownerID, String tableCode, String rowRangeKey, String fieldCode, String defaultValue) 获取某条记录的某个字段的多语言
_getMultilanguage_Table String _getMultilanguage_Table(String ownerID, String tableCode, String defaultValue) 获取某个 表 的多语言
_getMultilanguage_String String _getMultilanguage_String(String ownerID,String moduleID,String stringKey, String defaultValue) 获取某个 字符串的 多语言
_getMultilanguage_Resource String _getMultilanguage_Resource(String ownerID, String resourceKey, String defaultValue) 获取某个资源的多语言
_getMultilanguage_Public String _getMultilanguage_Public(String ownerID,String moduleID,String publicStringKey, String defaultValue) 获取某个 Public字符串 的多语言
_getMultilanguage_Module String _getMultilanguage_Module(String ownerID, String moduleID, String defaultValue) 获取某个 模块 的多语言
_getMultilanguage_Menu String _getMultilanguage_Menu(String ownerID, String menuID, String defaultValue) 获取某个 菜单 的多语言
_getMultilanguage_Field String _getMultilanguage_Field(String ownerID, String tableCode, String fieldCode, String defaultValue) 获取某个Field的多语言
_getMultilanguage_Action String _getMultilanguage_Action(String ownerID, String tableCode, String actionCode, String defaultValue) 获取某个action的多语言
_getModuleCodeWithTableCode String _getModuleCodeWithTableCode(String owner,String tableCode) 根据表编码或者该表归属的模块编码
_getCurreencyAbbr string _getCurreencyAbbr(string code) 获取货币缩写
_getCompondItem_ValueField_Server String _getCompondItem_ValueField_Server(CompondItem_Value item,String key)
_getCompondItem_ValueField String _getCompondItem_ValueField(PublicUI_CompondItem_Value item,String key)
_getCompondItemFieldValue object _getCompondItemFieldValue(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 原始值,值类型为字段的定义内容
_getCompondItemFieldUnit string _getCompondItemFieldUnit(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 单位
_getCompondItemFieldReadable string _getCompondItemFieldReadable(PublicUI_CompondItem item,string key) 获取一个 PublicUI_CompondItem 的指定字段的 可读的字符串
_getCompondItemField String _getCompondItemField(PublicUI_CompondItem item,String key) 获取一个 PublicUI_CompondItem 的指定字段的 值
_getChildCompondValueByTableCode List<PublicUI_CompondItem_Value> _getChildCompondValueByTableCode(PublicUI_CompondItem item,String tableGuidKey)
_getChildCompondByTableCode List<PublicUI_CompondItem> _getChildCompondByTableCode(PublicUI_CompondItem item,String tableGuidKey)
_from_DateTime Date _from_DateTime(Date value) 将日期类型转换为格式为 2020-07-12 15:53:12 格式的标准序列化字符串
_fromFieldReferenceCodeToFieldCode String _fromFieldReferenceCodeToFieldCode(String ownerID, String fieldReferenceCode) 查询单条记录
_firstdayofweek_client Datetime _firstdayofweek_client(Datetime dt) 本星期的 第一天 的 00:00:00
_firstdayofweek Datetime _firstdayofweek(Datetime dt) 本星期的 第一天 的 00:00:00
_first object _first(List<object> listToMatch,Func<object loopListItem,bool result> predicateExpression) 查找到满足条件的第一个记录 ,如果没有,则返回null
_filter List<Object> _filter(List<Object> list,Func<object loopListItem,bool result> predicateExpression) 过滤所有满足条件的记录
_external object _external(string key) 获取 执行上下文中 外部变量的值
_exist boolean _exist(List<object> listToMatch,Func<object loopListItem,boolean result> predicateExpression) 判断是否存在符合某个条件的记录
_executeAction_WithRangeKey boolean|NewRangeKey|String|int[]|String[] _executeAction_WithRangeKey(String ownerID, String providerItemKey,String actionID,String rangeKey,Dictionary<String,String>|String envViables) 执行一个Action,当Action为Add操作类型的时候,返回的是新记录的MyRangeKey,其他情况下,可以返回 bool表示是否成功,或者返回string
_escapeHtml4 string _escapeHtml4(string str) 转义html字符串中的 &等转义字符
_env object _end(string envKey) 获取 环境变量
_endsWith boolean _endsWith(String str,String end) 是否已 end 结尾
_distinct List<Object> _distinct(List<Object> list,Func<object loopListItem,object keyToCompare> keySelectorExpression) 针对列表执行 distinct操作
_dbRollbackTrans void _dbRollbackTrans() 回滚一个数据库事务
_dbCommitTrans void _dbCommitTrans() 提交一个数据库事务
_dbBeginTrans void _dbBeginTrans() 开始一个数据库事务
_daysbetween double _daysbetween(Datetime startDate,Datetime endDate) 在两个日期之间相差的天数
_dayofweek_client int _dayofweek_client(Datetime dt)
_dayofweek int _dayofweek(Datetime dt)
_dayof_client int _dayof_client(DateTime dt)
_dayof int _dayof(DateTime dt)
_dateof_client Date _dateof_client(Datetime dt) 取 某个日期类型 中的日期部分, 其他部分取0
_dateof Date _dateof(Datetime dt) 取 某个日期类型 中的日期部分, 其他部分取0
_dateCycleTimes int _dateCycleTimes(Datetime startDate,Datetime endDate,"week|month" cycleType,int cycleNum) 在两个日期间循环出现的次数 ,cycleType:循环类型week|month cycleNum:对应循环类型的数值 例如 week,则对应的每周的星期几1-7, Month:每个月的第几天1-31
_dateCycleItems List<Date> _dateCycleItems(Datetime startDate,Datetime endDate,"week|month" cycleType,int cycleNum) 在两个日期间循环出现的日期集合 ,cycleType:循环类型 cycleNum:对应循环类型的数值 例如 week,则对应的每周的星期几, Month:每个月的第几天
_count int _count(List<object> list) 求个数
_consolePrint void _consolePrint(string message) 打印到外部Console中
_consoleDumpScriptContext void _consoleDumpScriptContext(null|""|"context"|"var"|"ext"|"param"|"callstack" type) dump脚本上下文到Console中,默认为 var变量。 var:变量 ext:外部环境 param:参数堆栈 callstack:调用堆栈 context:整个上下文
_consoleDump void _consoleDump(string type,string name,object obj) dump对象到Console中
_compondValue_SaveToDB boolean _compondValue_SaveToDB(CompondItem_Value _compondItem_Value) 将 compondValue 写入数据库
_compondValue_RemoveChildItem int _compondValue_RemoveChildItem(String ownerID,CompondItem_Value compondItem_Value,String childTableCode, String rangeKey) 在子表中删除一条记录
_compondValue_InsertToDB boolean _compondValue_InsertToDB(CompondItem_Value _compondItem_Value) 将 compondValue 写入数据库
_compondValue_GetChildren List<CompondItem_Value> _compondValue_GetChildren(String ownerID,CompondItem_Value _compondItem_Value,String childTableGuidOrCode) 返回 compondValue中的 child
_compondValue_GetChildItem CompondItem_Value _compondValue_GetChildItem(String ownerID,CompondItem_Value compondItem_Value,String childTableCode, String rangeKey) 获取一条字表记录
_compondValue_DeleteFromDB boolean _compondValue_DeleteFromDB(CompondItem_Value _compondItem_Value) 从数据库中删除一个 compondValue
_compondValue_AddChildItem void _compondValue_AddChildItem(String ownerID,CompondItem_Value compondItem_Value,ACLItem_ORM childItem) 在子表中增加一条记录
_compondTableAndFieldReference_readable string _compondTableAndFieldReference_readable(string ownerID,CompondTableAndFieldReferenceHelper helper) 将 CompondTableAndFieldReferenceHelper 翻译成可读的内容
_compondTableAndFieldReference_new CompondTableAndFieldReferenceHelper _compondTableAndFieldReference_new(string fieldReference,string tableReference,string version,strting related)
_codeNameMime_new PublicUI_CodeNameMimeType _codeNameMime_new(String code, String name, String mimeType/* Image icon*/, String publicUrl,String note,String catalog,String description)
_cloneItem ACLItem_ORM _cloneItem(ACLItem_ORM source,ACLItem_ORM target,boolean isIncludeRangeKey,bool isIngnoreOwnerModiSNAndCreateAndLastModiedInfo) 克隆一条记录
_callScriptFunction object|null _callScriptFunction(String functionName,List<object> functionParams) 调用一个脚本函数. functionName:函数名 functionParams:参数列表
_calculateFieldValue void _calculateFieldValue(OwnerIDAsHashKey_ORM|CompondItem_Value item, string fieldCode) 重新计算一个 字段的值
_base64url_StrToByteArray byte[] _base64url_StrToByteArray(String strBase64url) 将basd64url字符串 转换为 byte[]
_base64url_ByteArrayToStr String _base64url_ByteArrayToStr(byte[] byteArray) 将basd64url字符串 转换为 byte[]
_avg double _avg(List<object> list) 求平均值
_atan number _atan(number angle)
_applyNewFutuID String _applyNewFutuID(String futuID,String emailAddress,String phoneNumber,boolean autoGenerateWhenDuplicate) 申请一个 futuID,当重复的时候 可以自动生成
_addyears Datetime _addyears(Datetime dt,int years) 在某个日期类型上 增加 或者 减少(负数) 年数
_addmonths Datetime _addmonths(Datetime dt,int months) 在某个日期类型上 增加 或者 减少(负数) 月数,找到对应月的day,如果没有则取最后一个day
_adddays Datetime _adddays(Datetime dt,int days) 在某个日期类型上 增加 或者 减少(负数) 天数
_addSeconds Datetime _addSeconds(Datetime dt,int seconds) 在某个日期类型上 增加 或者 减少(负数) 秒数
_UpdateSingleItem_Raw int _UpdateSingleItem_Raw(ACLItem_ORM item, bool useVersionCheck, bool isDirectUpdateVersionField, string partUpdateString) 增加或者修改单条记录
_New_Raw_Ex String _New_Raw_Ex(ACLItem_ORM item, boolean useVersionCheck) 插入单条记录,返回新记录的主键
_New_Raw int _New_Raw(ACLItem_ORM item, boolean useVersionCheck) 插入单条记录
_NewOrUpdate_Raw int _NewOrUpdate_Raw(ACLItem_ORM item, boolean useVersionCheck, boolean isDirectUpdateVersionField, String partUpdateString) 增加或者修改单条记录
_NewOrUpdateOrDelete_Raw int _NewOrUpdateOrDelete_Raw(ACLItem_ORM item, ItemServiceProviderNewOrUpdateOrDeleteRequest request) 增加或修改或删除单条记录
_NewDefaultFieldAndActions void _NewDefaultFieldAndActions(String ownerID,String tableCode) 新建表的默认记录,如果已经创建过了, 则不会创建
_DeleteSingleItem_Raw int _DeleteSingleItem_Raw(ACLItem_ORM item, boolean useVersionCheck) 删除单条记录
_CheckThenNew_Raw int _CheckThenNew_Raw(ACLItem_ORM item, boolean useVersionCheck) 检查如果不存在的话则插入单条记录