unknown 5 năm trước cách đây
mục cha
commit
871d869c54

+ 2 - 1
o2web/jsdoc.conf.json

@@ -44,7 +44,8 @@
         "title": "O2OA前台API" //最终生成的文档中标题
     },
     "o2" : {
-        "actionOutPath" : "./o2web/jsdoc/{actionRoot}/{actionName}.json"
+        "actionOutPath" : "./o2web/jsdoc/{actionRoot}/{actionName}.json",
+        "actionOutExamplePath" : "./o2web/jsdoc_static/actionOut_examples/{actionRoot}.json"
     }
 }
 //执行命令: jsdoc -c ./o2web/jsdoc.conf.json

+ 60 - 0
o2web/jsdoc_static/actionOut_examples/x_cms_assemble_control.json

@@ -0,0 +1,60 @@
+{
+  "Control": {
+    "allowRead": true,
+    "allowPublishDocument": true,
+    "allowSave": true,
+    "allowPopularDocument": true,
+    "allowEditDocument": true,
+    "allowDeleteDocument": true
+  },
+  "Attachment":  {
+    "id": "a5cc5858-cac5-445a-a0a5-888d224eb2f6",
+    "site": "attachment_1",
+    "name": "13145352_115454884000_2.jpg",
+    "appId": "c295f34c-9ce1-4122-b795-820267e32b68",
+    "categoryId": "33fb19f0-0670-464d-875c-32fb86148f7a",
+    "documentId": "ca74cbef-2a7f-401a-80e3-577ac9839348",
+    "creatorUid": "XX@huqi@P",
+    "extension": "jpg",
+    "length": 364507
+  },
+  "Document": {
+    "creatorPersonShort": "XXX",
+    "creatorUnitNameShort": "开发部",
+    "creatorTopUnitNameShort": "浙江兰德纵横",
+    "id": "3359aedd-c2d8-4d8c-b8b0-02507da1b3f4",
+    "summary": "",
+    "title": "航天科工外部董事调研组到培训中心调研",
+    "documentType": "信息",
+    "appId": "c295f34c-9ce1-4122-b795-820267e32b68",
+    "appName": "通知公告",
+    "categoryId": "33fb19f0-0670-464d-875c-32fb86148f7a",
+    "categoryName": "通知公告",
+    "categoryAlias": "通知公告-通知公告",
+    "form": "dddefed4-4411-4e4e-b982-cdd4cd083443",
+    "formName": "通知公告编辑表单",
+    "readFormId": "d6f1f596-fcb7-4a87-baaf-7f6cdafe3cec",
+    "readFormName": "通知公告阅读表单",
+    "creatorPerson": "李义@liyi@P",
+    "creatorIdentity": "李义@469d1601-c4a5-46ae-b7bf-4da9af07b6fa@I",
+    "creatorUnitName": "浙江兰德纵横@a706f5f0-4a3b-4785-8e1d-0a944bfad4eb@U",
+    "creatorTopUnitName": "浙江兰德纵横@a706f5f0-4a3b-4785-8e1d-0a944bfad4eb@U",
+    "docStatus": "published",
+    "publishTime": "2018-01-04 14:17:16",
+    "readPersonList": [
+      "张三@zhangsan@P",
+      "所有人"
+    ],
+    "readUnitList": [],
+    "readGroupList": [],
+    "authorPersonList": [
+      "张三@zhangsan@P"
+    ],
+    "authorUnitList": [],
+    "authorGroupList": [],
+    "managerList": [
+      "张三@zhangsan@P"
+    ],
+    "pictureList": []
+  }
+}

+ 103 - 0
o2web/jsdoc_static/actionOut_examples/x_organization_assemble_express.json

@@ -0,0 +1,103 @@
+{
+  "Person" : {
+    "name": "李四",
+    "genderType": "m",
+    "signature": "",
+    "description": "",
+    "employee": "1111",
+    "unique": "lisi",
+    "distinguishedName": "李四@lisi@P",
+    "orderNumber": 14214946,
+    "mail": "",
+    "weixin": "",
+    "qq": "",
+    "mobile": "85252281460",
+    "officePhone": "",
+    "boardDate" : "",
+    "birthday" : "",
+    "age" : "",
+    "qiyeweixinId" : "",
+    "dingdingId" : "",
+    "zhengwuDingdingId" : ""
+  },
+  "PersonAttribute" : {
+    "name": "住址",
+    "person": "张三@zhangsan@P",
+    "attributeList": [
+      "杭州市","绍兴市"
+    ]
+  },
+  "Unit" : {
+    "name": "开发部",
+    "unique": "kfb",
+    "distinguishedName": "开发部@kfb@U",
+    "typeList": [
+      "部门"
+    ],
+    "description": "",
+    "shortName": "kfb",
+    "level": 2,
+    "levelName": "浙江兰德纵横/开发部",
+    "superior": "浙江兰德纵横@a706f5f0-4a3b-4785-8e1d-0a944bfad4eb@U"
+  },
+  "UnitDuty" : {
+    "name": "李四",
+    "unique": "23dd1b53-feed-485d-8c9c-1a4e64ff58a2",
+    "description": "",
+    "distinguishedName": "李四@23dd1b53-feed-485d-8c9c-1a4e64ff58a2@I",
+    "person": "李四@lisi@P",
+    "unit": "开发部@kfb@U",
+    "unitName": "开发部",
+    "unitLevel": 2,
+    "unitLevelName": "浙江兰德纵横/开发部",
+    "orderNumber": 24920439
+  },
+  "UnitAttribute" : {
+    "name": "部门类别",
+    "unit": "开发部@kfb@U",
+    "attributeList": [
+      "生产部门"
+    ]
+  },
+  "Identity" : {
+    "name": "李四",
+    "unique": "23dd1b53-feed-485d-8c9c-1a4e64ff58a2",
+    "description": "",
+    "distinguishedName": "李四@23dd1b53-feed-485d-8c9c-1a4e64ff58a2@I",
+    "person": "李四@lisi@P",
+    "unit": "开发部@kfb@U",
+    "unitName": "开发部",
+    "unitLevel": 2,
+    "unitLevelName": "浙江兰德纵横/开发部",
+    "orderNumber": 24920439
+  },
+  "Role" : {
+    "name": "Manager",
+    "unique": "ManagerSystemRole",
+    "description": "",
+    "distinguishedName": "Manager@ManagerSystemRole@R",
+    "orderNumber": 7897556,
+    "personList": [
+      "张三@zhangsan@P",
+      "李四@lisi@P"
+    ],
+    "groupList": [
+      "测试群组@ceshizu@G"
+    ]
+  },
+  "Group": {
+    "name": "工作汇报读者",
+    "unique": "ReportReader",
+    "description": "可查看所有部门所有状态的工作汇报",
+    "distinguishedName": "工作汇报读者@ReportReader@G",
+    "orderNumber": 13699599,
+    "personList": [
+      "张三@zhangsan@P",
+      "李四@lisi@P"
+    ],
+    "groupList": [
+      "所有部门领导@AllDepartLeader@G",
+      "所有部门汇报管理员@AllDepartReportManager@G"
+    ]
+  }
+}

+ 165 - 0
o2web/jsdoc_static/actionOut_examples/x_processplatform_assemble_surface.json

@@ -0,0 +1,165 @@
+{
+  "Work" : {
+    "id": "854e2c22-718e-48bb-98db-96f4b43e7ee8",
+    "splitValue": "xxxxxxxxxxxxxx",
+    "title": "xx7月北京出差报销审批",
+    "startTime": "2018-09-07 14:03:22",
+    "startTimeMonth": "2018-09",
+    "creatorPerson": "xx@huqi@P",
+    "creatorIdentity": "xx@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "creatorUnit": "xx@c448d8bb-98b8-4305-9d3f-12537723cfcc@U",
+    "creatorUnitLevelName": "浙江兰德纵横/开发部",
+    "application": "1dc23336-6be6-402b-bed6-36e707a1dd17",
+    "applicationName": "财务管理",
+    "applicationAlias": "finance",
+    "process": "2207db11-dddf-4ebd-864d-3819f3e173c6",
+    "processName": "报销审批流程",
+    "processAlias": "",
+    "activity": "13d15daf-2ac5-4c1b-a669-1607a0e5ed15",
+    "activityType": "manual",
+    "activityName": "部门领导审核",
+    "activityAlias": "",
+    "activityDescription": "",
+    "activityArrivedTime": "2018-09-27 22:49:21",
+    "serial": "",
+    "workStatus": "processing",
+    "errorRetry": 0,
+    "splitting": false,
+    "form": "db3b2766-93a1-4058-b522-0edb922bd84f",
+    "manualTaskIdentityList" : "张三@db3b2766-93a1-4058-b522-0edb922bd84f@I",
+    "manualTaskIdentityText" : "张三"
+  },
+  "WorkCompleted" : {
+    "id": "be0195f1-f2e2-4eac-911c-99897a43ff8f",
+    "title": "xx7月北京出差报销审批",
+    "startTime": "2018-09-19 16:14:16",
+    "startTimeMonth": "2018-09",
+    "completedTime": "2018-09-19 16:15:28",
+    "completedTimeMonth": "2018-09",
+    "creatorPerson": "xx@huqi@P",
+    "creatorIdentity": "xx@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "creatorUnit": "xx@c448d8bb-98b8-4305-9d3f-12537723cfcc@U",
+    "creatorUnitLevelName": "浙江兰德纵横/开发部",
+    "application": "1dc23336-6be6-402b-bed6-36e707a1dd17",
+    "applicationName": "财务管理",
+    "applicationAlias": "finance",
+    "process": "2207db11-dddf-4ebd-864d-3819f3e173c6",
+    "processName": "报销审批流程",
+    "processAlias": "",
+    "serial": "",
+    "form": "320be1ca-ee49-478f-a751-f65ab67cf818"
+  },
+  "Task" : {
+    "id": "dd476045-7c79-44f7-9dba-f51d322de40f",
+    "title": "XX7月北京出差报销审批",
+    "startTime": "2018-09-27 22:49:22",
+    "startTimeMonth": "2018-09",
+    "work": "854e2c22-718e-48bb-98db-96f4b43e7ee8",
+    "application": "1dc23336-6be6-402b-bed6-36e707a1dd17",
+    "applicationName": "财务管理",
+    "applicationAlias": "finance",
+    "process": "2207db11-dddf-4ebd-864d-3819f3e173c6",
+    "processName": "报销审批流程",
+    "processAlias": "",
+    "serial": "",
+    "person": "XXX@huqi@P",
+    "identity": "XX@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "unit": "XX@c448d8bb-98b8-4305-9d3f-12537723cfcc@U",
+    "activity": "13d15daf-2ac5-4c1b-a669-1607a0e5ed15",
+    "activityName": "部门领导审核",
+    "activityAlias": "",
+    "activityDescription": "",
+    "activityType": "manual",
+    "creatorPerson": "XX@huqi@P",
+    "creatorIdentity": "XX@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "creatorUnit": "XX@c448d8bb-98b8-4305-9d3f-12537723cfcc@U",
+    "expired": false,
+    "urged": false,
+    "routeList": [
+      "89b58fe0-6dcb-4fe7-8c2e-3f77204df6d4",
+      "f3105b7a-2929-4682-aab8-15fef5ea0f23"
+    ],
+    "routeNameList": [
+      "退回申请人",
+      "送财务部门复审"
+    ],
+    "routeOpinionList": [
+      "",
+      ""
+    ],
+    "first": true
+  },
+  "Read" : {
+    "id": "dd476045-7c79-44f7-9dba-f51d322de40f",
+    "title": "XX7月北京出差报销审批",
+    "startTime": "2018-09-27 22:49:22",
+    "startTimeMonth": "2018-09",
+    "work": "854e2c22-718e-48bb-98db-96f4b43e7ee8",
+    "application": "1dc23336-6be6-402b-bed6-36e707a1dd17",
+    "applicationName": "财务管理",
+    "applicationAlias": "finance",
+    "process": "2207db11-dddf-4ebd-864d-3819f3e173c6",
+    "processName": "报销审批流程",
+    "processAlias": "",
+    "completed": false,
+    "serial": "",
+    "person": "XXX@huqi@P",
+    "identity": "XX@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "unit": "XX@c448d8bb-98b8-4305-9d3f-12537723cfcc@U",
+    "activity": "13d15daf-2ac5-4c1b-a669-1607a0e5ed15",
+    "activityName": "部门领导审核",
+    "activityAlias": "",
+    "activityDescription": "",
+    "activityType": "manual",
+    "creatorPerson": "XX@huqi@P",
+    "creatorIdentity": "XX@481c9edc-5fb5-41f1-b5c2-6ea609082cdb@I",
+    "creatorUnit": "XX@c448d8bb-98b8-4305-9d3f-12537723cfcc@U"
+  },
+  "Activity" : {
+    "id": "801087c5-a4e6-4b91-bf4d-a81cdaa04471",
+    "name": "办理",
+    "description": "",
+    "alias": "",
+    "resetRange": "department",
+    "resetCount": 0,
+    "allowReset": true,
+    "manualMode": "single"
+  },
+  "Control" : {
+    "allowVisit": true,
+    "allowProcessing": true,
+    "allowReadProcessing": false,
+    "allowSave": true,
+    "allowReset": false,
+    "allowRetract": false,
+    "allowReroute": false,
+    "allowDelete": true,
+    "allowRollback": false,
+    "allowAddSplit": false,
+    "allowPress": false
+  },
+  "Attachment" : {
+    "id": "56c4e86f-a4c8-4cc2-a150-1a0d2c5febcb",
+    "name": "133203a2-92e6-4653-9954-161b72ddb7f9.png",
+    "extension": "png",
+    "length": 43864,
+    "person": "xx@huqi@P",
+    "lastUpdateTime": "2018-09-27 15:50:34",
+    "lastUpdatePerson": "xx@huqi@P",
+    "activity": "e31ad938-c495-45a6-8d77-b8a9b61a165b",
+    "activityName": "申请人",
+    "activityType": "manual",
+    "site": "$mediaOpinion",
+    "type": "image/png"
+  },
+  "FormInfor" : {
+    "id": "db3b2766-93a1-4058-b522-0edb922bd84f",
+    "name": "报销申请表单",
+    "alias": "报销申请表单",
+    "description": "",
+    "application": "1dc23336-6be6-402b-bed6-36e707a1dd17",
+    "lastUpdatePerson": "XX@huqi@P",
+    "lastUpdateTime": "2018-09-30 22:46:30",
+    "icon": "..."
+  }
+}

+ 2 - 2
o2web/source/o2_core/o2/xScript/CMSEnvironment.js

@@ -47,7 +47,7 @@ MWF.xScript.CMSEnvironment = function(ev){
          * @method getDocument
          * @static
          * @return {Document} 文档对象.
-         * @o2ActionOut x_cms_assemble_control.WoDocument|ignoreNoDescr=true
+         * @o2ActionOut x_cms_assemble_control.WoDocument|ignoreNoDescr=true|example=Document
          * @o2syntax
          * var doc = this.documentContext.getDocument();
          */
@@ -74,7 +74,7 @@ MWF.xScript.CMSEnvironment = function(ev){
          * @method getAttachmentList
          * @static
          * @return {DocumentFileInfo[]} 当前文档的附件对象列表.
-         * @o2ActionOut x_cms_assemble_control.FileInfoAction.get
+         * @o2ActionOut x_cms_assemble_control.FileInfoAction.get|example=Attachment
          * @o2syntax
          * var attachmentList = this.documentContext.getAttachmentList();
          */

+ 12 - 12
o2web/source/o2_core/o2/xScript/Environment.js

@@ -193,8 +193,8 @@ MWF.xScript.Environment = function(ev){
          * @method getWork
          * @static
          * @return {(Work|WorkCompleted)} 流程实例对象;如果流程已结束,返回已结束的流程实例对象.
-         * @o2ActionOut x_processplatform_assemble_surface.WoWork|ignoreNoDescr=true|Work对象:
-         * @o2ActionOut x_processplatform_assemble_surface.WorkCompletedAction.get|ignoreProps=[properties]|WorkCompleted对象:
+         * @o2ActionOut x_processplatform_assemble_surface.WoWork|example=Work|ignoreNoDescr=true|Work对象:
+         * @o2ActionOut x_processplatform_assemble_surface.WorkCompletedAction.get|example=WorkCompleted|ignoreProps=[properties]|WorkCompleted对象:
          * @o2syntax
          * var work = this.workContext.getWork();
          */
@@ -222,7 +222,7 @@ MWF.xScript.Environment = function(ev){
         /**
          * 当前流程实例正在流转中,并且当前用户有待办,则返回当前用户的待办对象,否则返回null。
          * @summary 获取当前流程与当前用户相关的待办对象:task对象。
-         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.get
+         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.get|example=Task
          * @method getTask
          * @static
          * @return {(Task|Null)} 当前用户的待办任务对象:task。当前用户没有对此流程实例的待办时,或流程实例已经流转结束,返回null.
@@ -234,7 +234,7 @@ MWF.xScript.Environment = function(ev){
         /**
          * 获取当前流程实例的所有待办对象。如果流程实例已流转完成,则返回一个空数组。
          * @method getTaskList
-         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.listWithWork
+         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.listWithWork|example=Task
          * @static
          * @param {Function} [callback] 正确获取待办数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取待办数组出错时的回调。
@@ -261,7 +261,7 @@ MWF.xScript.Environment = function(ev){
         /**
          * 根据当前工作的job获取当前流程实例的所有待办对象。如果流程实例已流转完成,则返回一个空数组。
          * @method getTaskListByJob
-         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.listWithJob
+         * @o2ActionOut x_processplatform_assemble_surface.TaskAction.listWithJob|example=Task
          * @static
          * @param {Function} [callback] 正确获取待办数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取待办数组出错时的回调。
@@ -293,7 +293,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取已办数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取已办数组出错时的回调。
          * @return {(TaskCompleted[])} 已办任务列表.
-         * @o2ActionOut x_processplatform_assemble_surface.TaskCompletedAction.listWithWork
+         * @o2ActionOut x_processplatform_assemble_surface.TaskCompletedAction.listWithWork|example=Task
          * @o2syntax
          * //本样例以同步执行
          * var taskCompletedList = this.workContext.getTaskCompletedList();
@@ -321,7 +321,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取已办数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取已办数组出错时的回调。
          * @return {(TaskCompleted[])} 已办任务列表.
-         * @o2ActionOut x_processplatform_assemble_surface.TaskCompletedAction.listWithJob
+         * @o2ActionOut x_processplatform_assemble_surface.TaskCompletedAction.listWithJob|example=Task
          * @o2syntax
          * //本样例以同步执行
          * var taskCompletedList = this.workContext.getTaskCompletedListByJob();
@@ -349,7 +349,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取待阅数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取待阅数组出错时的回调。
          * @return {(Read[])} 当前流程实例的所有待阅对象数组.
-         * @o2ActionOut x_processplatform_assemble_surface.ReadAction.get
+         * @o2ActionOut x_processplatform_assemble_surface.ReadAction.get|example=Read
          * @o2syntax
          * //本样例以同步执行
          * var readList = this.workContext.getReadList();
@@ -376,7 +376,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取待阅数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取待阅数组出错时的回调。
          * @return {(Read[])} 当前流程实例的所有待阅对象数组.
-         * @o2ActionOut x_processplatform_assemble_surface.ReadAction.listWithJob
+         * @o2ActionOut x_processplatform_assemble_surface.ReadAction.listWithJob|example=Read
          * @o2syntax
          * //本样例以同步执行
          * var readList = this.workContext.getReadListByJob();
@@ -404,7 +404,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取已阅数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取已阅数组出错时的回调。
          * @return {(ReadCompleted[])} 当前流程实例的所有已阅对象数组.
-         * @o2ActionOut x_processplatform_assemble_surface.ReadCompletedAction.listWithWork
+         * @o2ActionOut x_processplatform_assemble_surface.ReadCompletedAction.listWithWork|example=Read
          * @o2syntax
          * //本样例以同步执行
          * var readCompletedList = this.workContext.getReadCompletedList();
@@ -431,7 +431,7 @@ MWF.xScript.Environment = function(ev){
          * @param {Function} [callback] 正确获取已阅数组的回调,如果有此参数,本方法以异步执行,否则同步执行
          * @param {Function} [error] 获取已阅数组出错时的回调。
          * @return {(ReadCompleted[])} 当前流程实例的所有已阅对象数组.
-         * @o2ActionOut x_processplatform_assemble_surface.ReadCompletedAction.listWithJob
+         * @o2ActionOut x_processplatform_assemble_surface.ReadCompletedAction.listWithJob|example=Read
          * @o2syntax
          * //本样例以同步执行
          * var readCompletedList = this.workContext.getReadCompletedListByJob();
@@ -503,7 +503,7 @@ MWF.xScript.Environment = function(ev){
          * @method getAttachmentList
          * @static
          * @return {WorkAttachmentData[]} 附件数据.
-         * @o2ActionOut x_processplatform_assemble_surface.AttachmentAction.getWithWorkOrWorkCompleted
+         * @o2ActionOut x_processplatform_assemble_surface.AttachmentAction.getWithWorkOrWorkCompleted|example=Attachment
          * @o2syntax
          * var attachmentList = this.workContext.getAttachmentList();
          */

+ 29 - 29
o2web/source/o2_core/o2/xScript/ViewEnvironment.js

@@ -729,7 +729,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|IdentityData|IdentityData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回身份,单个是Object,多个是Array。
-         * @o2ActionOut x_organization_assemble_express.IdentityAction.listObject|typedef=IdentityData|ignoreNoDescr=true|ignoreProps=[woUnitDutyList,woUnit,woGroupList]
+         * @o2ActionOut x_organization_assemble_express.IdentityAction.listObject|example=Identity|ignoreNoDescr=true|ignoreProps=[woUnitDutyList,woUnit,woGroupList]
          * @o2syntax
          * //同步执行,返回身份,单个是对象,多个是数组。
          * var identityList = this.org.getIdentity( name );
@@ -771,7 +771,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|IdentityData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回身份对象数组。
-         * @o2ActionOut x_organization_assemble_express.IdentityAction.listWithPersonObject
+         * @o2ActionOut x_organization_assemble_express.IdentityAction.listWithPersonObject|example=Identity
          * @o2syntax
          * //同步执行,返回身份对象数组。
          * var identityList = this.org.listIdentityWithPerson( person );
@@ -814,7 +814,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|IdentityData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回身份对象数组。
-         * @o2ActionOut x_organization_assemble_express.IdentityAction.listWithUnitSubNestedObject
+         * @o2ActionOut x_organization_assemble_express.IdentityAction.listWithUnitSubNestedObject|example=Identity
          * @o2syntax
          * //同步执行,返回直接组织身份对象数组。
          * var identityList = this.org.listIdentityWithUnit( unit );
@@ -877,7 +877,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织,单个是Object,多个是Array。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织,单个是对象,多个是数组。
          * var unitList = this.org.getUnit( name );
@@ -921,7 +921,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitSubNestedObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitSubNestedObject|example=Unit
          * @o2syntax
          * //同步执行,返回嵌套下级组织数组。
          * var unitList = this.org.listSubUnit( name, true );
@@ -970,7 +970,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitSupNestedObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitSupNestedObject|example=Unit
          * @o2syntax
          * //同步执行,返回嵌套上级组织数组。
          * var unitList = this.org.listSupUnit( name, true );
@@ -1037,7 +1037,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回对应组织,单个为对象,多个为数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.getWithIdentityWithLevelObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.getWithIdentityWithLevelObject|example=Unit
          * @o2syntax
          * //同步执行,返回直接所在组织,单个为对象,多个为数组。
          * var unitList = this.org.getUnitByIdentity( name );
@@ -1133,7 +1133,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithIdentitySupNestedObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithIdentitySupNestedObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织数组。
          * var unitList = this.org.listAllSupUnitWithIdentity( name );
@@ -1174,7 +1174,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithPersonObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithPersonObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织数组。
          * var unitList = this.org.listUnitWithPerson( name );
@@ -1215,7 +1215,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回个人所在组织及所有上级组织。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithPersonSupNestedObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithPersonSupNestedObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织数组。
          * var unitList = this.org.listAllSupUnitWithPerson( name );
@@ -1257,7 +1257,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitAttributeObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitAttributeObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织数组。
          * var unitList = this.org.listUnitWithAttribute( attributeName, attributeName );
@@ -1299,7 +1299,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitDutyObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listWithUnitDutyObject|example=Unit
          * @o2syntax
          * //同步执行,返回组织数组。
          * var unitList = this.org.listUnitWithDuty( dutyName, identity );
@@ -1339,7 +1339,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|UnitData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回顶层组织数组。
-         * @o2ActionOut x_organization_assemble_express.UnitAction.listObject
+         * @o2ActionOut x_organization_assemble_express.UnitAction.listObject|example=Unit
          * @o2syntax
          * //同步执行,返回顶层组织数组。
          * var unitList = this.org.listTopUnit();
@@ -1381,7 +1381,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员,单个是Object,多个是Array。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listObject|example=Person
          * @o2syntax
          * //同步执行,返回人员,单个是对象,多个是数组。
          * var personList = this.org.getPerson( name );
@@ -1429,7 +1429,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonSubDirectObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonSubDirectObject|example=Person
          * @o2syntax
          * //同步执行,返回嵌套下级人员数组。
          * var personList = this.org.listSubPerson( name, true );
@@ -1478,7 +1478,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonSupDirectObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonSupDirectObject|example=Person
          * @o2syntax
          * //同步执行,返回嵌套上级人员数组。
          * var personList = this.org.listSupPerson( name, true );
@@ -1524,7 +1524,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员对象数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithGroupObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithGroupObject|example=Person
          * @o2syntax
          * //同步执行,返回人员数组。
          * var personList = this.org.listPersonWithGroup( group );
@@ -1566,7 +1566,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员对象数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithRoleObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithRoleObject|example=Person
          * @o2syntax
          * //同步执行,返回人员数组。
          * var personList = this.org.listPersonWithRole( role );
@@ -1608,7 +1608,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员对象数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithIdentityObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithIdentityObject|example=Person
          * @o2syntax
          * //同步执行,返回人员数组。
          * var personList = this.org.listPersonWithIdentity( identity );
@@ -1666,7 +1666,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员对象数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithUnitSubDirectObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithUnitSubDirectObject|example=Person
          * @o2syntax
          * //同步执行,返回组织的直接人员数组。
          * var personList = this.org.listPersonWithUnit( unit );
@@ -1718,7 +1718,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|PersonData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回人员对象数组。
-         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonAttributeObject
+         * @o2ActionOut x_organization_assemble_express.PersonAction.listWithPersonAttributeObject|example=Person
          * @o2syntax
          * //同步执行,返回拥有对应属性名和属性值人员数组。
          * var personList = this.org.listPersonWithAttribute( name, value );
@@ -1778,7 +1778,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|IdentityData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回身份数组。
-         * @o2ActionOut x_organization_assemble_express.UnitDutyAction.getWithUnitWithName
+         * @o2ActionOut x_organization_assemble_express.UnitDutyAction.getWithUnitWithName|example=Identity
          * @o2syntax
          * //同步执行,返回身份数组。
          * var identityList = this.org.getDuty( dutyName, unit );
@@ -1900,7 +1900,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|Object[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回职务数组
-         * @o2ActionOut x_organization_assemble_express.UnitDutyAction.listWithUnitObject
+         * @o2ActionOut x_organization_assemble_express.UnitDutyAction.listWithUnitObject|example=UnitDuty
          * @o2syntax
          * //同步执行,返回职务数组。
          * var dutyList = this.org.listUnitAllDuty( unit );
@@ -1943,7 +1943,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|GroupData|GroupData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回群组,单个是Object,多个是Array。
-         * @o2ActionOut x_organization_assemble_express.GroupAction.listObject
+         * @o2ActionOut x_organization_assemble_express.GroupAction.listObject|example=Group
          * @o2syntax
          * //同步执行,返回群组,单个是Object,多个是Array。
          * var groupList = this.org.getGroup( name );
@@ -1993,7 +1993,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|GroupData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回群组数组。
-         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithGroupSubDirectObject
+         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithGroupSubDirectObject|example=Group
          * @o2syntax
          * //同步执行,返回嵌套下级群组数组。
          * var groupList = this.org.listSubGroup( name, true );
@@ -2054,7 +2054,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|GroupData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回群组数组。
-         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithGroupSupDirectObject
+         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithGroupSupDirectObject|example=Group
          * @o2syntax
          * //同步执行,返回嵌套上级群组数组。
          * var groupList = this.org.listSupGroup( name, true );
@@ -2108,7 +2108,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|GroupData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回群组对象数组。
-         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithPersonObject
+         * @o2ActionOut x_organization_assemble_express.GroupAction.listWithPersonObject|example=Group
          * @o2syntax
          * //同步执行,返回群组数组。
          * var groupList = this.org.listGroupWithPerson( name );
@@ -2155,7 +2155,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|RoleData|RoleData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回角色,单个为Object,多个为Array。
-         * @o2ActionOut x_organization_assemble_express.RoleAction.listObject
+         * @o2ActionOut x_organization_assemble_express.RoleAction.listObject|example=Role
          * @o2syntax
          * //同步执行,返回角色,单个为对象,多个为数组。
          * var roleList = this.org.getRole( name );
@@ -2202,7 +2202,7 @@ MWF.xScript.ViewEnvironment = function (ev) {
          * @return {Promise|RoleData[]} 当async为true时,返回
          * {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise|Promise}。
          * 否则返回角色对象数组。
-         * @o2ActionOut x_organization_assemble_express.RoleAction.listWithPersonObject
+         * @o2ActionOut x_organization_assemble_express.RoleAction.listWithPersonObject|example=Role
          * @o2syntax
          * //同步执行,返回角色数组。
          * var roleList = this.org.listRoleWithPerson( name );