CURDOC : object
当前文档
Kind: global namespace
- CURDOC :
object
- .getId() ⇒
Document
- .getItemValue(fieldName) ⇒
Object
- .getItemValueAsString(fieldName) ⇒
String
- .getItemValueAsDate(fieldName) ⇒
Date
- .getItemValueAsDouble(fieldName) ⇒
Double
- .getItemValueAsInt(fieldName:当前打开文档的字段名) ⇒
Integer
- .countSubDocument(formName) ⇒
Integer
- .sumSubDocument(formName, fieldName) ⇒
Double
- .getCurrentDocument() ⇒
Document
- .getParentDocument() ⇒
Document
- .getRelateDocument() ⇒
Document
- .getStateLabel() ⇒
String
- .isComplete() ⇒
Boolean
- .isFirtNode() ⇒
Boolean
- .isCompleteByDocId(docid) ⇒
Boolean
- .getSubFlowDocList() ⇒
Collection.<Document>
- .getParentFlowDoc() ⇒
Document
- .checkFieldUnique(fieldName, fieldValue, msg) ⇒
- .getId() ⇒
CURDOC.getId() ⇒ Document
获取当前打开文档的ID
Kind: static method of CURDOC
Returns: Document
- 获取当前打开文档的ID
CURDOC.getItemValue(fieldName) ⇒ Object
获取当前打开文档中Item的值
Kind: static method of CURDOC
Returns: Object
- 获取当前打开文档中Item的值
Param | Type | Description |
---|---|---|
fieldName | String |
当前打开文档的字段名 |
CURDOC.getItemValueAsString(fieldName) ⇒ String
获取当前打开文档中Item的值,且以字符串形式返回
Kind: static method of CURDOC
Returns: String
- 获取当前打开文档中Item的值,且以字符串形式返回
Param | Type | Description |
---|---|---|
fieldName | String |
当前打开文档的字段名 |
CURDOC.getItemValueAsDate(fieldName) ⇒ Date
获取当前打开文档中Item的值,且以日期形式返回
Kind: static method of CURDOC
Returns: Date
- 获取当前打开文档中Item的值,且以日期形式返回
Param | Type | Description |
---|---|---|
fieldName | String |
当前打开文档的字段名 |
CURDOC.getItemValueAsDouble(fieldName) ⇒ Double
获取当前打开文档中Item的值,且以double形式返回
Kind: static method of CURDOC
Returns: Double
- 获取当前打开文档中Item的值,且以double形式返回
Param | Type | Description |
---|---|---|
fieldName | String |
当前打开文档的字段名 |
CURDOC.getItemValueAsInt(fieldName:当前打开文档的字段名) ⇒ Integer
获取当前打开文档中Item的值,且以Integer形式返回
Kind: static method of CURDOC
Returns: Integer
- 获取当前打开文档中Item的值,且以整型值形式返回
Param | Type |
---|---|
fieldName:当前打开文档的字段名 | String |
CURDOC.countSubDocument(formName) ⇒ Integer
根据子文档名,获取当前文档的子文档个数
Kind: static method of CURDOC
Returns: Integer
- 子文档个数
Param | Type | Description |
---|---|---|
formName | String |
当前打开文档的子文档表单名 |
CURDOC.sumSubDocument(formName, fieldName) ⇒ Double
根据子文档名和字段名,获取当前打开文档的子文档中字段的值总和
Kind: static method of CURDOC
Returns: Double
- 根据子文档名和字段名,获取当前打开文档的子文档中字段的值总和
Param | Type | Description |
---|---|---|
formName | String |
当前打开文档的子文档表单名 |
fieldName | String |
子文档的字段名 |
CURDOC.getCurrentDocument() ⇒ Document
返回当前打开文档对象
Kind: static method of CURDOC
Returns: Document
- 返回当前打开文档对象
CURDOC.getParentDocument() ⇒ Document
返回当前打开文档的父文档对象
Kind: static method of CURDOC
Returns: Document
- 返回当前打开文档的父文档对象
CURDOC.getRelateDocument() ⇒ Document
获取关联的文档,当包含元素不存在父子关系时生效
Kind: static method of CURDOC
Returns: Document
- 关联文档
CURDOC.getStateLabel() ⇒ String
获取当前文档的状态标签
Kind: static method of CURDOC
Returns: String
- 返回当前文档的状态标签
CURDOC.isComplete() ⇒ Boolean
获取当前记录是否审批完成
Kind: static method of CURDOC
Returns: Boolean
- true审批完成,false未审批完成
CURDOC.isFirtNode() ⇒ Boolean
获取当前记录是否处在第一个节点
Kind: static method of CURDOC
Returns: Boolean
- true是流程第一个节点,false非流程第一个节点
CURDOC.isCompleteByDocId(docid) ⇒ Boolean
获取指定文档是否流程完成
Kind: static method of CURDOC
Returns: Boolean
- true流程完成,false流程未完成
Param | Type | Description |
---|---|---|
docid | String |
文档ID |
CURDOC.getSubFlowDocList() ⇒ Collection.<Document>
获取子流程文档
Kind: static method of CURDOC
Returns: Collection.<Document>
- 获取子流程文档
CURDOC.getParentFlowDoc() ⇒ Document
获取父流程文档
Kind: static method of CURDOC
Returns: Document
- 获取父流程文档
CURDOC.checkFieldUnique(fieldName, fieldValue, msg) ⇒
判断唯一性
Kind: static method of CURDOC
Returns: 如果不唯一返回提示信息,否则返回空字符串
Param | Type | Description |
---|---|---|
fieldName | String |
字段名称 |
fieldValue | String |
字段值 |
msg | String |
预设字段值重复提示信息 |