API
Component

OrgDialogPC ($UI/comp/entorgs/components/entorgs/orgDialogPC)

使用范围:UI2

Contents

component OrgDialogPC ($UI/comp/entorgs/components/entorgs/orgDialogPC) extends WindowDialog

OrgDialogPC

Constructor Top

  OrgDialogPC ()
  OrgDialogPC ( options)

Properties Top

boolean cascade

多选时是否级联选择

string filter

组织数据KSQL过滤表达式

boolean includeDisabled

包含禁用组织,缺省:false

string includeOrgKind

包含的机构类型,缺省:全部类型

boolean multiSelection

是否多选

string rootFilter

组织根数据KSQL过滤表达式

string selectFilter

选中过滤表达式

表达式执行的this是行,即$row 当前表达式中可使用变量: "$model" : 当前的model, "$row" : {$UI/system/components/justep/data/data#Row} 当前过滤执行的行

string title

显示的标题

Attributes Top

boolean cascade

多选时是否级联选择

string filter

组织数据KSQL过滤表达式

boolean includeDisabled

包含禁用组织,缺省:false

string includeOrgKind

包含的机构类型,缺省:全部类型

boolean multiSelection

是否多选

string rootFilter

组织根数据KSQL过滤表达式

string selectFilter

选中过滤表达式

表达式执行的this是行,即$row 当前表达式中可使用变量: "$model" : 当前的model, "$row" : {$UI/system/components/justep/data/data#Row} 当前过滤执行的行

string title

显示的标题

Methods Top

Object get (String name)
void open (object option)
void set (json arg)

Events Top

void onReceive (ReceiveEvent event)

Constructor details Top

public OrgDialogPC ()

OrgDialogPC

public OrgDialogPC ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Properties Detail Top

public boolean cascade

多选时是否级联选择

public string filter

组织数据KSQL过滤表达式

public boolean includeDisabled

包含禁用组织,缺省:false

public string includeOrgKind

包含的机构类型,缺省:全部类型

public boolean multiSelection

是否多选

public string rootFilter

组织根数据KSQL过滤表达式

public string selectFilter

选中过滤表达式

表达式执行的this是行,即$row 当前表达式中可使用变量: "$model" : 当前的model, "$row" : {$UI/system/components/justep/data/data#Row} 当前过滤执行的行

public string title

显示的标题

Attributes Detail Top

public boolean cascade

多选时是否级联选择

public string filter

组织数据KSQL过滤表达式

public boolean includeDisabled

包含禁用组织,缺省:false

public string includeOrgKind

包含的机构类型,缺省:全部类型

public boolean multiSelection

是否多选

public string rootFilter

组织根数据KSQL过滤表达式

public string selectFilter

选中过滤表达式

表达式执行的this是行,即$row 当前表达式中可使用变量: "$model" : 当前的model, "$row" : {$UI/system/components/justep/data/data#Row} 当前过滤执行的行

public string title

显示的标题

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

属性名称,取值范围:"title"、"limit"、"cascade"、"showFilter"、"selectFilter"、"multiSelection"、"includeOrgKind"

Return Value

Object

public void open (object option)

打开对话框

Parameters

object option


结构如下:

{ "reload" : 重新加载对话框, "data" : { selected : {List<$UI/system/components/justep/data/data#Row>} 选中的行 }, 其他set可以设置的属性 }

Return Value

void

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "title" : {string} 显示的标题 "limit" : {number} 加载数据的list一页的记录数,>0的数,默认12 "cascade": {boolean} 多选时是否级联选择 "selectFilter": {string} 选中过滤表达式 "multiSelection": {boolean} 是否多选 "includeOrgKind": {string} 显示的组织类型,组织扩展名使用","分隔的字符串类型,如:.psm,.dpt "rootFilter": {string} 组织根数据KSQL过滤表达式 "filter": {string} 组织数据KSQL过滤表达式 }

Return Value

void

Events Detail Top

public void onReceive (ReceiveEvent event)

[回调型事件].w返回数据事件

Parameters

ReceiveEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : {List<$UI/system/components/justep/data/data#Row>} 返回的数据 }

Return Value

void