Model
1.DynmicMetadata
Functions
Properties
2.EasyDataGridModel<T>
Properties
3.WorkflowResult
Properties
4.CurrentUser
Functions
Properties
Button sdk
Action [点击事件]
Action script global variable [AS全局变量]
Action script retrun data [AS返回值]
对象为 Action script global variable中的Return
Action script functions [AS所支持的方法]
1.创建Document,返回影响行数
int Service.CreateDocument(Dictionary
2.获取指定条件的Document数量
long GetEntitiesCount(string query);
3.通过Mongo操作符更新Document
int Service.UpdateDocument(string opr,Dictionary
4.执行Workflow GoNext
WorkflowResult Service.WorkflowDoAction(string actionCode,string dataId = null,Dictionary
Page sdk
Page render
Render script global variable [页面渲染时全局变量]
Render script retrun data [按钮渲染时返回值]
对象为 Render script global variable中的Return
Action script functions [AS所支持的方法]
1.创建Document,返回影响行数
int Service.CreateDocument(string entityCode, Dictionary
2.获取指定条件的Document数量
long GetEntitiesCount(string entityCode,string query);
3.根据条件判断当前人是否已经创建Document
string Service.IsCreated(string query, string creatorId = null)
4.通过Mongo操作符更新Document
int Service.UpdateDocument(string entityCode,string opr,Dictionary
5.执行Workflow GoNext
WorkflowResult Service.WorkflowDoAction(string entityCode,string actionCode,string dataId = null,Dictionary
Button Render
设置Button Render
string Service.SetButtonRender( string ButtonId, bool IsRender = true);
设置Button Display
string Service.SetButtonDisplay( string ButtonId, bool IsDisplay = true);
设置Button Disabled
string Service.SetButtonDisabled( string ButtonId, bool IsDisabled = false);
Common sdk
Service common script functions [Service 公共方法]
1.调用第三方WebApi,返回Json
string Service.CallWebApi(string method,string domain,string url,string postData = null);
2.Runtime log 输出
void Service.ConsoleLog(string message,object data);
3.获取指定条件的Documents的字典List,以及总行数
EasyDataGridModel<Dictionary<string, object>> GetEntitiesData(string QueryAlias, string query, string order, int index, int size);
4.获取指定条件的DynamicMetadata
DynamicMetadata Service.GetEntityData(string query, string formAlias=null) ;
5.生成跳转URL
string Service.RedirectUrl(string dataId = null, string pageMode = "Preview");
6.通过 EmailTemplateCode 邮件发送至MailMaster
bool Service.SendEmail(string emailTempCode, string mailTo,Dictionary
AntsProvider common script functions [AntsProvider 公共方法]
1.调用第三方WebApi,返回Json
string AntsProvider.CallWebApi(string method,string domain,string url,string postData = null);
2.创建Document,返回影响行数
int AntsProvider.CreateDocument(string tenantId, string appCode, string entityCode, string env, string dataId,Dictionary
3.获取指定条件的Document数量
long AntsProvider.GetEntitiesCount(string tenantId, string appCode,string entityCode, string env, List
4.获取指定条件的Documents的字典List,以及总行数
EasyDataGridModel<Dictionary<string, object>> AntsProvider.GetEntitiesData(string tenantId, string appCode,string QueryAlias, string env, List
5.获取指定条件的DynamicMetadata by SearchItem
DynamicMetadata AntsProvider.GetEntityData(string tenantId, string appCode, string formAlias, string env,List
6.获取指定条件的DynamicMetadata by DataId
DynamicMetadata AntsProvider.GetEntityData(string tenantId, string appCode, string formAlias, string env,string dataId);
7.获取跳转地址
string AntsProvider.GetRedirectUrl(string tenantId,string appCode,string env,string formAlias,string dataId=null ,string pageMode = "Preview");
8.通过 EmailTemplateCode 邮件发送至MailMaster
bool AntsProvider.SendEmail(string tenantId, string appCode, string entityCode, string emailTempCode,string mailTo, string mailcc, object data, Dictionary
9.通过Mongo操作符更新Document
int AntsProvider.UpdateDocument(string tenantId, string appCode, string entityCode, string env, string dataId,string opr, Dictionary
10.执行Workflow GoNext
WorkflowResult AntsProvider.WorkflowDoAction(string tenantId, string appCode, string entityCode, string env,string dataId,string actionCode, Dictionary