XUIEleManholeCoverList()

Methods

AddItem(strTitle, strLockState, strStartState, strLeftName, strRightName, boolNormal)

添加一项
Parameters:
Name Type Description
strTitle String 项的标题
strLockState String 解锁/锁定状态
strStartState String 启动/停止状态
strLeftName String 井盖名称
strRightName String 井盖位置
boolNormal Boolean 是否正常

GetBcolseById(id) → {Boolean}

ID获取右图是否关闭
Parameters:
Name Type Description
id Number id
Returns:
Boolean

GetBlockById(id) → {Boolean}

通过ID获取是否解锁
Parameters:
Name Type Description
id Number id
Returns:
Boolean

GetStartById(id) → {Boolean}

通过ID获取是否启动
Parameters:
Name Type Description
id Number id
Returns:
Boolean

RemoveAll()

删除列表所有

RemoveByIndex(nIndex)

按索引删除一项
Parameters:
Name Type Description
nIndex Number 索引从0开始

SetBlockById(id, strLockState)

通过ID设置是否解锁
Parameters:
Name Type Description
id Number id
strLockState String 解锁/锁定状态

SetItemById(id, strLockState, strStartState, bRightBigPic)

通过ID修改项信息
Parameters:
Name Type Description
id Number id
strLockState String 解锁/锁定状态
strStartState String 启动/停止状态
bRightBigPic Boolean 右侧图片

SetItemByIndex(nIndex, strTitle, strLockState, strStartState, strLeftName, strRightName, bRightBigPic)

按索引修改整列内容
Parameters:
Name Type Description
nIndex Number 索引从0开始
strTitle String 项的标题
strLockState String 解锁/锁定状态
strStartState String 启动/停止状态
strLeftName String 井盖名称
strRightName String 井盖位置
bRightBigPic Boolean 右侧图片

SetLockByIndex(nIndex, strName)

索引改锁定文本
Parameters:
Name Type Description
nIndex Number 索引从0开始
strName String 锁定/解锁
Properties:
Name Type Description
LockByIndex Collection [0,"解锁"]

SetNameByIndex(nIndex, strName)

按索引设置名称
Parameters:
Name Type Description
nIndex Number 索引从0开始
strName String 项的名称
Properties:
Name Type Description
NameByIndex Collection [0,"ACU02"]

SetRightIconByIndex(nIndex, boolNormal)

索引设右图标
Parameters:
Name Type Description
nIndex Number 索引从0开始
boolNormal Boolean true正常false异常
Properties:
Name Type Description
RightIconByIndex Collection [0,true]

SetRightPicById(id, bstate)

通过ID设置右侧图
Parameters:
Name Type Description
id Number id
bstate Boolean 正常/异常

SetStartById(id, strStartState)

通过ID设置是否启动
Parameters:
Name Type Description
id Number id
strStartState String 启动/停止状态

SetStartByIndex(nIndex, strName)

索引改启动文本
Parameters:
Name Type Description
nIndex Number 索引从0开始
strName String 启动中/已停止
Properties:
Name Type Description
StartByIndex Collection [0,"启动中"]