<tr hidden="[[formula('isEmptyItems')}}">
<th><sc-label text="변경이력"></sc-label></th>
<td>
<div class="field-box">
<sc-radio-group-field id="rdoBomRev" items="{{bomRevList}}" value="{{searchParam.rev}}" disable-auto-select="true" on-change="onChange" i18n-disabled></sc-radio-group-field>
<div class="hspace-5"></div>
<sc-button auth-r id="btnSrch" text="조회" on-click="onBtnClick" hidden="true"></sc-button>
</div>
</td>
<th><sc-label text="삭제포함조회"></sc-label></th>
<td>
<sc-checkbox-field id="chkIsAll" input-value="{{searchParam.is_all}}" checked-value="Y" un-checked-value="N" on-checkchange="onCheckchange"></sc-checkbox-field>
</td>
</tr>
onChange : function(event)
{
var me = this;
switch (event.target.id)
{
case "rdoBomRev" :
//console.log(event.target.value);
me.$.btnSrch.fire("click");
break;
}
},
onCheckchange : function(event)
{
var me = this
var checked = event.detail;
switch (event.target.id)
{
case "chkIsAll" :
// 아래조건 없으면 최초 로딩시 Event 호출된다.
if (UT.nvl(me.checkedIsAll, false) != event.target.value)
{
me.checkedIsAll = event.target.value;
//console.log(me.checkedIsAll);
//console.log(me.id + " : chk");
me.$.btnSrch.fire("click");
}
break;
}
},
on-change 는 값을 불러올때 마다 호출되어서 대신 on-select 쓰는게 낫다.