EzComboChain

EzComboManager~ EzComboChain

연계콤보 관리 객체
팩토리 함수 combo.createComboChain을 이용해 생성한다.

Methods

cut(childChain) → {EzComboChain}

Description:
  • 현재 EzComboChain에서 특정 comboChain을 잘라낸다.

Example
comboChain.cut(childChain);
Parameters:
Name Type Description
childChain EzComboChain

잘라낼 ezComboChain

Returns:

잘라낸 ezComboChain

Type
EzComboChain

getColNm() → {String}

Description:
  • 현재 EzComboChain의 colNm을 가져온다.

Example
comboChain.getColNm();
Returns:

콤보가 설정된 colNm, Grid일 경우에만 정상적인 값이 return된다.

Type
String

getComboIndex(value) → {number}

Description:
  • 콤보에 바인딩 된 dataset에서 특정 값을 가진 rowIndex를 가져온다.

Example
comboChain.getComboIndex("001");
Parameters:
Name Type Description
value any

index를 찾을 값

Returns:

특정 값을 가진 row, 값을 찾지 못하였을 경우 -1

Type
number

getComp() → {nexacro.Combo|nexacro.Grid|nexacro.Radio}

Description:
  • 현재 EzComboChain의 component를 가져온다.

Example
var comp = comboChain.getComp();
Returns:

콤보가 설정된 Component

Type
nexacro.Combo | nexacro.Grid | nexacro.Radio

getCurrentComboIdx() → {number}

Description:
  • 콤보에 바인딩 된 dataset에서 현재 콤보의 값을 가진 rowIndex를 가져온다.

Example
comboChain.getCurrentComboIdx();
Returns:

현재 값의 rowIndex

Type
number

getPreComboChain() → {EzComboChain}

Description:
  • 현재 EzComboChain의 부모를 가져온다.

Example
comboChain.getPreComboChain();
Returns:

현재 EzComboChain의 부모

Type
EzComboChain

getRootChain() → {EzComboChain}

Description:
  • 현재 EzComboChain의 가장 첫 Chain을 가져온다.

Example
var root = comboChain.getRootChain();
Returns:

Chain의 시작에 해당하는 ezComboChain

Type
EzComboChain

hasNext() → {boolean}

Description:
  • 현재 EzComboChain에 자식이 있는지 확인한다.

Example
comboChain.hasNext();
Returns:

자식 존재 여부

Type
boolean

refresh()

Description:
  • 현재 EzComboChain의 값을 기준으로 하위 콤보들의 value를 다시 계산한다.

Example
comboChain.refresh();

refreshRoot()

Description:
  • root에 해당하는 EzComboChain 부터 연결된 모든 콤보들의 value를 다시 계산한다.

Example
comboChain.refreshRoot();

setNext(comboChainInfo)

Description:
  • 현재 EzComboChain의 값이 변경시 반응할 EzComboChain을 설정한다.

Example
this.combo.setNext({
  comp : Combo00
  filter : "pre.CD=='HI_CD'";
});
Parameters:
Name Type Description
comboChainInfo Object

콤보체인 정보 객체

Properties
Name Type Attributes Description
comp nexacro.Combo | nexacro.Grid | nexacro.Radio | nexacro.CheckBoxSet | nexacro.MultiCombo

콤보가 구성되어있는 컴포넌트

colNm string <optional>

콤보가 구성되어있는 칼럼명 comp가 Grid일 경우 필수comp가 radio나 combo일 경우 기입 금지

filter string <optional>

상위 EzComboChain과의 관계 정보상위 EzComboChain의 칼럼명앞에는 pre.을 붙힌다.ex) "pre.CD == HI_CD"

updateCurrInfo()

Description:
  • dataset, 바인딩 정보 갱신

Example
comboChain.updateCurrInfo();